Skip to content

Commit

Permalink
update filter name in documentation
Browse files Browse the repository at this point in the history
Fixes #277.
  • Loading branch information
lonvia committed Jan 31, 2025
1 parent f9b9f2c commit 5c5e84a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/user_manual/03-Working-with-Geometries.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,12 @@ the geometry functions of shapely:
```python
from shapely.geometry import shape

fp = osmium.FileProcessor('liechtenstein.osm.pbf')\
.with_locations().\
with_filter(osmium.filter.GeoInterfaceFilter())

total = 0.0
for o in osmium.FileProcessor('liechtenstein.osm.pbf').with_locations().with_filter(osmium.GeoHandler()):
for o in fp:
if o.is_way() and 'highway' in o.tags:
# Shapely has only support for Features starting from version 2.1,
# so lets cheat a bit here.
Expand Down

0 comments on commit 5c5e84a

Please sign in to comment.