matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
780 stars 392 forks source link

How to get the coordinate of a boundary line. #472

Closed jxalfoudqt closed 5 years ago

jxalfoudqt commented 5 years ago

Dear all,

I can draw the map of Australia continent, but I want to get the coordinate (lon_X, Lat_Y) of the Australia continental boundary line. Does anyone know how to realize it?

Many thanks. Tao

WeatherGod commented 5 years ago

This isn't really possible to do with basemap. Particularly the problem is that the path data for the various boundaries are not indexable by any categories. All of the lines and polygons that basemap provides are just flat lists of those features, with no way to map back to information like the country name, continent, etc.

Now, it might be possible to do it with the GSHHS dataset, which basemap uses as a basis for its maps: https://www.soest.hawaii.edu/pwessel/gshhg/

On Tue, Aug 6, 2019 at 12:01 AM Tao notifications@github.com wrote:

Dear all,

I can draw the map of Australia continent, but I want to get the coordinate (lon_X, Lat_Y) of the Australia continental boundary line. Does anyone know how to realize it?

Many thanks. Tao

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matplotlib/basemap/issues/472?email_source=notifications&email_token=AACHF6GTRSHAV2HMDHYD2XLQDDZS5A5CNFSM4IJSIFNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDQ3BGQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AACHF6DZMP2K4LWZIQFTGZ3QDDZS5ANCNFSM4IJSIFNA .