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

Problem generating LCZ classification for BDTopo version 3.3 #891

Open
EmmanuelleKerjouan opened this issue Dec 8, 2023 · 7 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@EmmanuelleKerjouan
Copy link

The aim is to generate an LCZ classification for the Nancy Metropole area, with data from the BDTopo 3.3.
The coordinates of the zone are as follows : 6836343.6284,924280.9312,6855225.3440,944570.1370 (EPSG : 2154)
However, we obtain this error: "Caught: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "ZONE_D_ACTIVITE_OU_D_INTERET_TMP" non trouvée
Table "ZONE_D_ACTIVITE_OU_D_INTERET_TMP" not found; SQL statement:
CREATE TABLE zone_d_activite_ou_d_interet AS SELECT ID, st_setsrid(the_geom, 2154) as the_geom, CATEGORIE, NATURE, FICTIF
FROM zone_d_activite_ou_d_interet_tmp WHERE the_geom && 'SRID=0;POLYGON ((923280.9312 6835343.6284, 923280.9312 6856225.344, 945570.137 6856225.344, 945570.137 6835343.6284, 923280.9312 6835343.6284))'::GEOMETRY AND ST_INTERSECTS(the_geom, 'SRID=0;POLYGON ((923280.9312 6835343.6284, 923280.9312 6856225.344, 945570.137 6856225.344, 945570.137 6835343.6284, 923280.9312 6835343.6284))'::GEOMETRY) AND (CATEGORIE='Administratif' OR CATEGORIE='Enseignement' OR CATEGORIE='Santé') [42102-224]"

@ebocher
Copy link
Member

ebocher commented Dec 8, 2023

I'm on it

@ebocher
Copy link
Member

ebocher commented Dec 8, 2023

To be sure about the issue.
You set a bbox as input to process the Nancy area right ?
So you have
locations : [[6836343.6284,924280.9312,6855225.3440,944570.1370]]

@EmmanuelleKerjouan
Copy link
Author

Yes, exactly.

@ebocher
Copy link
Member

ebocher commented Dec 8, 2023

I'm on it

@ebocher
Copy link
Member

ebocher commented Dec 8, 2023

So I run a test case with the bbox [[6836343.6284,924280.9312,6855225.3440,944570.1370]] and the BDTopo 3.3 (version BDTOPO_3-3_TOUSTHEMES_SHP_LAMB93_D054_2023-09-15) downloaded on IGNF website and I'm not able to reproduce the issue.
See the result LCZ
geoms

@ebocher ebocher self-assigned this Dec 8, 2023
@ebocher ebocher added the invalid This doesn't seem right label Dec 8, 2023
@EmmanuelleKerjouan
Copy link
Author

The problem isn't with version 3.3 of BDTopo. The error probably stems from the number of characters in the path where it fetches the data. The test was performed with two different paths:

  • First path : /home/emmanuelle/Documents/Mission_CDD/Comparaisons_LCZ/AZERtx50 (306 characters)
  • Second path : /home/emmanuelle/Documents/Mission_CDD/Données/Nancy/BDTopo3/BDTOPO_3-3_TOUSTHEMES_SHP_LAMB93_D054_2023-09-15/BDTOPO/1_DONNEES_LIVRAISON_2023-09-00196/BDT_3-3_SHP_LAMB93_D054-ED2023-09-15 (187 characters).

In the first case, the error occurs, but not in the second.

@ebocher ebocher added this to the GeoClimate 0.0.3 milestone Jan 8, 2024
@ebocher
Copy link
Member

ebocher commented Jan 9, 2024

This issue is related to the H2GIS FILE_TABLE function

@ebocher ebocher added bug Something isn't working and removed invalid This doesn't seem right labels Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants