Skip to content
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

Import data from IGN DB Topo in shapefiles format #173

Closed
yhilem opened this issue Feb 16, 2021 · 2 comments
Closed

Import data from IGN DB Topo in shapefiles format #173

yhilem opened this issue Feb 16, 2021 · 2 comments
Labels
question Further information is requested

Comments

@yhilem
Copy link

yhilem commented Feb 16, 2021

Hi,
Thanks for this very good and interresting project.
I want import data in shapefile format from IGN DB Topo (https://geoservices.ign.fr/documentation/diffusion/telechargement-donnees-libres.html#bd-topo).
Since 1 January 2021, all public data (vector and ortho-images) from the National Institute of Geographic and Forest Information (IGN) are free and accessible free of charge (https://www.actuia.com/english/the-igns-public-data-relating-to-topography-relief-and-visualization-of-the-territory-are-free-and-open-to-the-public/)

Cdt
Youcef HILEM

@bchapuis
Copy link
Member

Interesting, thank you for the pointer. The ftp server seems momentanely down (I get the following message: There was a problem connecting to the server "ftp3.ign.fr"). I will try again later.

I guess that the best way to proceed would be to use a tool like ogr2ogr to import the shapefiles from IGN into postgis in a webmercator projection (EPSG:3857). I added an exemple to import the shapefiles from naturalearth in postgis in the documentation.

https://github.com/baremaps/baremaps/blob/main/docs/examples/naturalearth/index.md#working-with-shapefiles

Once the data is imported in postgis, it should be possible to write a configuration file for baremaps that query the table containing the imported data. Something like:

id: myconfig
layers:
  - id: mylayer
    type: geometry
    queries:
      - minZoom: 0
        maxZoom: 5
        sql: SELECT id, hstore(mytable.*) as tags, geom FROM mytable

@bchapuis bchapuis added the question Further information is requested label Feb 16, 2021
@yhilem
Copy link
Author

yhilem commented Feb 16, 2021

Good news. I will not be long in testing all this.

@yhilem yhilem closed this as completed Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants