We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to calculate the perimeter length of all ways (with tag man_made=) inside my boundary length = df.geometry.length
length = df.geometry.length
But I'm always getting AttributeError: 'LineString' object has no attribute 'exterior'
AttributeError: 'LineString' object has no attribute 'exterior'
when using your example code and my Sarnia.geojson as input:
with open('Sarnia.geojson') as f: data = json.load(f) poly = shapely.geometry.shape(data['features'][0]['geometry']) df = geopandas_osm.osm.query_osm('way', poly, recurse='down', tags='man_made')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like to calculate the perimeter length of all ways (with tag man_made=) inside my boundary
length = df.geometry.length
But I'm always getting
AttributeError: 'LineString' object has no attribute 'exterior'
when using your example code and my Sarnia.geojson as input:
The text was updated successfully, but these errors were encountered: