You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
31
### Added
32
32
33
33
- Activity infilling can use a geospatial point data source to fill OSM `landuse` areas, e.g. postcode data points.
34
+
- Activity infilling can take place in target areas that have existing facilities, using the `max_existing_acts_fraction` argument to set the area that existing facilities can already take up in the target geometry while still allowing infilling.
Copy file name to clipboardexpand all lines: docs/config.md
+46-1
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ We have noted that it is not uncommon for some small areas to not have building
171
171
172
172
We therefore provide different methods for filling in areas, from [a very ad-hoc solution for filling with a grid of objects](#fill-with-grid-of-objects) to [a solution which relies on external source of building locations without any accompanying metadata](#fill-with-a-point-data-source).
173
173
174
-
These infill methods only cover areas that do not have any of the required activities already within them.
174
+
These infill methods can cover areas that do not have any of the required activities already within them, or [those with a user-defined percentage of the area already occupied by required activities](#fill-in-areas-with-existing-facilities).
175
175
176
176
### Fill with grid of objects
177
177
@@ -267,3 +267,48 @@ In this example, the point source is the UK <a href="https://osdatahub.os.uk/dow
267
267
268
268
!!! warning
269
269
If using the `point_source``fill_method`, the `spacing` configuration option will have no effect.
270
+
271
+
### Fill in areas with existing facilities
272
+
273
+
By default, if there are any of the required activities in a target area, that area will not be infilled.
274
+
You can allow for infilling in these areas by setting `max_existing_acts_fraction`.
275
+
This is the fraction of a target area that can be taken up by existing required activities while still allowing infilling.
276
+
A value of 0.05 would allow target areas with up to 5% of the land area occupied by required activities to still be infilled.
277
+
278
+
!!! note
279
+
This may become messy at high fractions as the infilling will cover the whole area, including parts where there are existing required activities.
280
+
281
+
```json
282
+
{
283
+
...
284
+
"fill_missing_activities":
285
+
[
286
+
{
287
+
"area_tags": [["landuse", "residential"]],
288
+
"required_acts": ["home"],
289
+
"new_tags": [["building", "house"]],
290
+
"size": [10, 10],
291
+
"fill_method": "spacing",
292
+
"spacing": [25, 25],
293
+
"max_existing_acts_fraction": 0.05
294
+
}
295
+
]
296
+
}
297
+
```
298
+
299
+
In the following images we can see two areas that require setting a `max_existing_acts_fraction` above zero to accomplish infilling.
300
+
In the first, almost all of the area required infilling.
301
+
In the second, some of the area was already captured by OSM data, but infilling proved to still be necessary to fill the remainder of the area.
302
+
303
+
<figure>
304
+
<img src="../resources/activity-fill-5pc.png", width="100%", style="background-color:white;", alt="Suffolk data point missing activity fill allowing infilling where up to 5% of the area is already occupied">
305
+
<figcaption>Example of filling missing activities for a residential area in Suffolk, UK with a small number of existing "home" activities in that area.
306
+
In this example, the point source infill method was used.</figcaption>
307
+
</figure>
308
+
309
+
<figure>
310
+
<img src="../resources/activity-fill-5pc-overlap.png", width="100%", style="background-color:white;", alt="Suffolk data point missing activity fill allowing infilling where up to 5% of the area is already occupied">
311
+
<figcaption>Example of filling missing activities for a residential area in Suffolk, UK with a clear overlap between infill and existing "home" activities in that area.
312
+
Even though there is overlap, the infilling is worthwhile as there are many missing points.
313
+
In this example, the point source infill method was used.</figcaption>
0 commit comments