Closed Esteban82 closed 5 months ago
Could you give me a quick intro on the gmt-examples repo;
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
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.
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.
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.
OK, good to know that.
Is this ready for approval? Or are there any comments?
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).