Skip to content

Add How to guide for GADM data sets #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

Esteban82
Copy link
Member

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 Esteban82 added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 7, 2024
@Esteban82 Esteban82 requested review from joa-quim, seisman and anbj June 7, 2024 13:04
@Esteban82 Esteban82 self-assigned this Jun 7, 2024
@Esteban82
Copy link
Member Author

Related to GenericMappingTools/dcw-gmt#30 (comment)

@anbj
Copy link

anbj commented Jun 7, 2024

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

  • is it hosted somewhere, or does it have to be downloaded and built locally?
  • Is there an entry point/link in the gmt docs?

@joa-quim
Copy link
Member

joa-quim commented Jun 7, 2024

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member

joa-quim commented Jun 7, 2024

OK, good to know that.

@Esteban82
Copy link
Member Author

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

@@ -79,6 +78,15 @@ Seismology and geodesy
Basemaps
~~~~~~~~

.. cssclass:: gmtgallery
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update the gallery after #28

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am bit confused about how to do it. I will cancel this PR and make a new one.

@Esteban82 Esteban82 mentioned this pull request Jun 9, 2024
Comment on lines +81 to +88
.. cssclass:: gmtgallery

- .. image:: _images/7dd36e07258e1015a0673dea4e472db1.png
:target: gallery/maps/gadm.html
:width: 80%
:align: center

:doc:`gallery/maps/gadm`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to open a separate PR #29, just need to update the following lines:

Suggested change
.. cssclass:: gmtgallery
- .. image:: _images/7dd36e07258e1015a0673dea4e472db1.png
:target: gallery/maps/gadm.html
:width: 80%
:align: center
:doc:`gallery/maps/gadm`
.. grid:: 2 3 3 4
.. grid-item-card:: :doc:`gallery/maps/gadm`
:padding: 1
:link-type: doc
:link: gallery/maps/gadm
.. image:: _images/7dd36e07258e1015a0673dea4e472db1.png

@Esteban82 Esteban82 closed this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants