GenericMappingTools / pygmt

A Python interface for the Generic Mapping Tools.
https://www.pygmt.org
BSD 3-Clause "New" or "Revised" License
749 stars 217 forks source link

Gallery example / tutorial: Show how to plot OSMnx related `MultiDiGraph` objects within PyGMT Figure instance #3430

Closed yvonnefroehlich closed 2 weeks ago

yvonnefroehlich commented 3 weeks ago

Following this GMT Forum post I am wondering if it makes sense to add an example / a tutorial showing that OSMnx related MultiDiGraph objects can be plotted into a PyGMT Figure instance after converting them to a geopandas GeoDataFrame or a tuple of GeoDataFrames (https://forum.generic-mapping-tools.org/t/adding-osmnx-plot-to-pygmt-figure/5203/3?u=yvonnefroehlich).

Partly related to issue #1374.

seisman commented 3 weeks ago

I don't think we should add this gallery example. Users who read the PyGMT documentation carefully should already know that PyGMT supports objects like DataFrame and GeoDataFrame. What they should do is find out whether their Python objects can be converted to DataFrame/GeoDataFrame.

michaelgrund commented 3 weeks ago

Agree with @seisman. If it's possible to tackle a problem by using geopandas before using PyGMT, this should be the way users should go. In my opinion it's not efficient to support several other raw-data sources especially regarding maintenance from the PyGMT side.

yvonnefroehlich commented 2 weeks ago

Thanks for your comments @seisman and @michaelgrund! Based on these feedbacks I am thinking we are not doing this gallery example / tutorial and I am closing this issue as not planned.