datagouv / cadastre

Scripts de préparation des données cadastrales diffusées par Etalab
69 stars 11 forks source link

Installation problems & Départementales archives #133

Open docdnp opened 2 months ago

docdnp commented 2 months ago

Hello there,

I am DImitri and part of a data science training program at datascientest.com. We were made aware of your cadastre tool (https://github.com/datagouv/cadastre).

At first I had difficulties installing it. But I can build it using "yarn install". Nevertheless it's a bit confusing.

The following call fails on Ubuntu 22.04, node v21.1.0, yarn v1.22.19:

npm_config_build_from_source=true yarn global add @etalab/cadastre

Output:

  CXX(target) Release/obj.target/libgdal/deps/libgdal/gdal/port/cpl_vsi_mem.o
../deps/libgdal/gdal/port/cpl_vsil_gzip.cpp: In member function 'bool VSIGZipWriteHandleMT::ProcessCompletedJobs()':
../deps/libgdal/gdal/port/cpl_vsil_gzip.cpp:1609:29: error: 'crc32_combine' was not declared in this scope; did you mean 'crc32_combine64'?
 1609 | nCRC_ = crc32_combine(nCRC_, psJob->nCRC_,
      | ^~~~~~~~~~~~~
      | crc32_combine64
  CXX(target) Release/obj.target/libgdal/deps/libgdal/gdal/port/cpl_vsi_error.o
  CXX(target) Release/obj.target/libgdal/deps/libgdal/gdal/port/cpl_virtualmem.o
make: *** [deps/libgdal/[libgdal.target.mk:746](http://libgdal.target.mk:746/): Release/obj.target/libgdal/deps/libgdal/gdal/port/cpl_vsil_gzip.o] Error 1

You also write that the source data can be obtained as follows:

To create all the files, it is necessary to obtain the following:

The according links are dead:

Currently I'm downloading from the only link alive, which seems to be working:

As far as I understand I should be able to use the following commands to create a GeoJSON file per department using the cadastre tool:

  node ./bin/cli.js import-pci --bundle edigeo sources-edigeo/ dist/
  node ./bin/cli.js extract-pci dist/
  node ./bin/cli.js extract-ems --rts chemin/vers/referentiel_topo_simplifie.zip --parcellaire chemin/vers/referentiel_parcellaire.zip dist/
  node ./bin/cli.js merge dist/
  node ./bin/cli.js generate-shp dist/

As my french isn't that good, I've translated the repo's site on github. But I'm not sure about whether I really understand everything correctly.

I also have been told by Jerome, who isn't in charge anymore, that I can find the prepared results on:

What exactly are the results. Is it the SQLite database, the GeoJSON files or anything else? While waiting on some support I'm currently downloading all the data from:

Do you mind giving me a hint, if I'm missing anything?

Thank you in advance for any inconvenience and best regards

Dimitri