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

Installation problems & Départementales archives #133

Open
docdnp opened this issue Jul 29, 2024 · 1 comment
Open

Installation problems & Départementales archives #133

docdnp opened this issue Jul 29, 2024 · 1 comment
Assignees

Comments

@docdnp
Copy link

docdnp commented Jul 29, 2024

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 Départementales archives PCI/EDIGÉO, PCI/TIFF and PCI/DXF are managed according to DGFiP (according to convention).
  • The simplified topography unit and the cadastral administrations were provided by the Eurometropolis of Strasbourg

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

@ThomasG77 ThomasG77 self-assigned this Sep 3, 2024
@Kaiohz
Copy link

Kaiohz commented Oct 6, 2024

Hello @docdnp ,

you should try install nvm and use node 16 as explained in the doc, when i switched to node 16 no more problems for me and i am able to use the cadastre-builder command now. I am also on Ubuntu 22.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants