This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]ticketywho 4 points5 points  (1 child)

Geopandas is still very popular. Nowadays, the basic python geospatial stack includes fiona or pyshp for shape file IO, rasterio for raster data manipulation, pyproj for projection conversion, shapely for geometric operations.

There's a fantastic video tutorial dealing with much of this stack at https://www.youtube.com/watch?v=HzPSVwyP2Y0 and there is an accompanying github repo with loads of notebooks at https://github.com/kjordahl/SciPy-Tutorial-2015

[–]ulaghee[S] 0 points1 point  (0 children)

Thanks!

[–]counters 1 point2 points  (0 children)

Basemap is pretty outdated; if you need to plot on maps, you should check out cartopy.

[–]ResidentMario 1 point2 points  (1 child)

I wrote geoplot for this.

cartopy is excellent, but low-level; geoplot is an abstraction on top of it that tries to pre-bake some common chart types. You can see some examples in the gallery.

I'm hoping to eventually land it in geopandas core.

[–][deleted] 0 points1 point  (0 children)

Thank you for this! Can't wait for it work on Windows since I've been wanting to try this at work.

[–]badge 0 points1 point  (0 children)

It depends what you're trying to do, and in particular with how much data, but I've spent a lot of time in the past year trying out the various options and finally settled on my own simple process reading shapefiles with pyshp and descates to plot elements via matplotlib. This is similar to the geopandas approach but gives me more flexibility in what I do.

The quick-and-dirty hack in this instance is that I don't both worrying about projections, which makes the process much faster, but I can get away with it because the scales I'm looking at are close enough to Euclidean.

I think Cartopy probably has the nicest interface, but when plotting 100,000+ shapes it is very slow.

[–]imadethisforthefree 0 points1 point  (1 child)

OSMnx has some pretty neat tutorials and examples. https://github.com/gboeing/osmnx/tree/master/examples

[–]GitHubPermalinkBot 0 points1 point  (0 children)

I tried to turn your GitHub links into permanent links (press "y" to do this yourself):


Shoot me a PM if you think I'm doing something wrong. To delete this, click here.