GenericMappingTools / 2020-unavco-course

Planning and material for the 2020 UNAVCO GMT for Geodesy course
34 stars 18 forks source link

Unspecified country is given same color using coast command #35

Closed kstephens13 closed 3 years ago

kstephens13 commented 4 years ago

I was able to plot up a simple map of South Africa with no issue using the coast command, however the country of Lesotho, which is completely surrounded by South Africa, is also given the same color for the ZA country specification. I've attached the map and the command I used is below: gmt coast -RZA -Gwheat -Bg -Wthick -JM15c -N1/thick,black -EZA+ggreen

kstephens13 commented 4 years ago

It seems like I cannot upload pngs or PDFs to the issue. Is there perhaps a preferred format? Many thanks

PaulWessel commented 4 years ago

I think PNGs should work fine - just draw and drop. Not PDFs though.

PaulWessel commented 4 years ago

I suspect this is a "feature" - i.e., donut countries (polygons with holes) may not have been implemented yet. I will have a look once the workshop is over so leave this issue open please.

kstephens13 commented 4 years ago

southafrica_map Ah ha Safari wasn't letting me upload the PNG, but Google Chrome works just fine. Sure, I will leave the issue open.

leouieda commented 4 years ago

@kstephens13 thank you for finding this and bringing it to our attention! We get so much out of these workshops as well. Paul has already fixed this in GenericMappingTools/dcw-gmt#3 and is already moving to generalize it in GenericMappingTools/dcw-gmt#4 🎉

PaulWessel commented 4 years ago

The data have been fixed but using it in GMT will require 6.1.1 and beyond once I have implemented it.