GenericMappingTools / gmt-examples

Tutorials and guides for the Generic Mapping Tools
https://www.generic-mapping-tools.org/gmt-examples/
Creative Commons Attribution 4.0 International
4 stars 0 forks source link

Add How to guide for GADM data sets #22

Closed Esteban82 closed 5 months ago

Esteban82 commented 5 months ago

I made this how to guide to download and use GADM data.

I choose to download KMZ files (not geopackage as Joaquim did with Julia) because they were slightly smaller.

Maybe it would good to modify the script to store the data in a directory where all the GMT programs can found it (not in the current directory).

Esteban82 commented 5 months ago

Related to https://github.com/GenericMappingTools/dcw-gmt/issues/30#issuecomment-2154188333

anbj commented 5 months ago

Could you give me a quick intro on the gmt-examples repo;

joa-quim commented 5 months ago

KMZ may be slightly smaller but it will be slower to process as it will make two copies in ascii. One from kmz to kml and another from kml to .gmt. And the second conversion implies that ogr2ogr will have to parse a big xml ascii file to convert it to .gmt

Esteban82 commented 5 months ago

The idea is to add examples in another repository (this one) and not in the main one (where the code is).

  • is it hosted somewhere, or does it have to be downloaded and built locally?

https://www.generic-mapping-tools.org/gmt-examples/

  • Is there an entry point/link in the gmt docs?

We should add one.

Esteban82 commented 5 months ago

KMZ may be slightly smaller but it will be slower to process as it will make two copies in ascii. One from kmz to kml and another from kml to .gmt. And the second conversion implies that ogr2ogr will have to parse a big xml ascii file to convert it to .gmt

Ok, I will try to update the script to use geopackage instead.

Esteban82 commented 5 months ago

I checked and I don't think that it is a good idea to download the gpkg files. All the levels are together in the same file. There are some examples of big files (e.g. IND 447 MB, GBR 412 M). To be clear, in the case of GBR you will download up to level 4 even if you want to plot only level 1.

I think it is better to use KMZ (or JSON aslo) where the data is split in levels, so you directly will download the level that you want to use.

joa-quim commented 5 months ago

OK, good to know that.

Esteban82 commented 5 months ago

Is this ready for approval? Or are there any comments?