Skip to content

Commit 5c5e84a

Browse files
committed
update filter name in documentation
Fixes #277.
1 parent f9b9f2c commit 5c5e84a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/user_manual/03-Working-with-Geometries.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,12 @@ the geometry functions of shapely:
240240
```python
241241
from shapely.geometry import shape
242242

243+
fp = osmium.FileProcessor('liechtenstein.osm.pbf')\
244+
.with_locations().\
245+
with_filter(osmium.filter.GeoInterfaceFilter())
246+
243247
total = 0.0
244-
for o in osmium.FileProcessor('liechtenstein.osm.pbf').with_locations().with_filter(osmium.GeoHandler()):
248+
for o in fp:
245249
if o.is_way() and 'highway' in o.tags:
246250
# Shapely has only support for Features starting from version 2.1,
247251
# so lets cheat a bit here.

0 commit comments

Comments
 (0)