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

Crash lors de la génération du bâti si bbox en dehors de la commune #26

Open
bagage opened this issue Feb 5, 2018 · 2 comments
Open

Comments

@bagage
Copy link
Contributor

bagage commented Feb 5, 2018

Pour la bbox suivante ici :

image

Teléchargement des PDFs de la commune E0189 : NIMES (30900)
Découpe la bbox en 3 * 2 [6 pdfs]
E0189-0-0.pdf
Parse les exports PDF du cadastre:
E0189-0-0.pdf: 0 buildings, 0 light buildings, 0 water, 0 riverbank, 1 limit
Traceback (most recent call last):
  File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/bin/osm_houses_simplify.py", line 78, in 
    sys.exit(main(sys.argv))
  File "/data/project/cadastre.openstreetmap.fr/bin/cadastre-housenumber/bin/osm_houses_simplify.py", line 72, in main
    simplify(osm_data, merge_distance, join_distance, simplify_threshold)
  File "/data/project/cadastre.openstreetmap.fr/export-cadastre/bin/cadastre-housenumber/cadastre_fr/simplify.py", line 45, in simplify
    inputTransform, outputTransform = get_centered_metric_equirectangular_transformation_from_osm(osm_data)
  File "/data/project/cadastre.openstreetmap.fr/export-cadastre/bin/cadastre-housenumber/cadastre_fr/transform.py", line 124, in get_centered_metric_equirectangular_transformation_from_osm
    bbox = BoundingBox(*osm_data.bbox())
TypeError: type object argument after * must be a sequence, not NoneType

@bagage
Copy link
Contributor Author

bagage commented Feb 5, 2018

Use ./bin/import-ville2.sh 030 E0189 NIMES 4.43093,43.85996,4.44778,43.85348 to reproduce.

@bagage
Copy link
Contributor Author

bagage commented Feb 5, 2018

edit: en fait c'est dû au fait que la bounding box ne fait pas partie de Nîmes 🤦‍♂️ .
Bon au lieu du crash, un message d'erreur serait plus sympa ;)

@bagage bagage changed the title Crash lors de la génération du bâti pour une petite zone Crash lors de la génération du bâti si bbox en dehors de la commune Feb 5, 2018
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

1 participant