We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9b9f2c commit 5c5e84aCopy full SHA for 5c5e84a
docs/user_manual/03-Working-with-Geometries.md
@@ -240,8 +240,12 @@ the geometry functions of shapely:
240
```python
241
from shapely.geometry import shape
242
243
+ fp = osmium.FileProcessor('liechtenstein.osm.pbf')\
244
+ .with_locations().\
245
+ with_filter(osmium.filter.GeoInterfaceFilter())
246
+
247
total = 0.0
- for o in osmium.FileProcessor('liechtenstein.osm.pbf').with_locations().with_filter(osmium.GeoHandler()):
248
+ for o in fp:
249
if o.is_way() and 'highway' in o.tags:
250
# Shapely has only support for Features starting from version 2.1,
251
# so lets cheat a bit here.
0 commit comments