marceloprates / prettymaps

A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
GNU Affero General Public License v3.0
11.02k stars 515 forks source link

Chicago #50

Open MDKaiser opened 2 years ago

MDKaiser commented 2 years ago

Most places work, but Chicago produces this error: ERROR:shapely.geos:TopologyException: depth mismatch at at 448510 4637400

Using a slightly modified version of the circular example with a radius of 2500

G21-Goose commented 2 years ago

This seems to be the same as #27 where the issue was in Seattle (47.606292888654316, -122.33203340169379), radius = 5000.

In that case the issue seems to be to do with a footpath around 47.649699, -122.306248 (which was at the edge of the map) but if centered on the footpath it doesn't have an error? So maybe it's to do with only getting part of the geometry?

@MDKaiser 448510 4637400 are the UTM coordinates using this site you can see that the coordinates are 41.886853, -87.620628. Is this near the edge of your map as well?

MDKaiser commented 2 years ago

@MDKaiser 448510 4637400 are the UTM coordinates using this site you can see that the coordinates are 41.886853, -87.620628. Is this near the edge of your map as well?

It is.

I've come across a few more of these instances by now. They're rare, but not unique.

jacopofar commented 2 years ago

I had a similar issue with Milan, Italy, wrote a workaround to skip it in https://github.com/marceloprates/prettymaps/issues/27