-
Notifications
You must be signed in to change notification settings - Fork 1
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
Merge XYZ into master #4
Conversation
Creation of the script for WMTS and adaptation of generate_tilesets.py
Renamed WMTS.py for WMTS_xyz.py, made some corrections on this script and the related adaptations to generate_tilesets.py
Changed the denomination WMTS_xyz to XYZ. Tried to ensure that the download file from the request get saved in the right format(s)
Made some minor corrections to the function check_aoi_tiles in the script generate_tilesets.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il faut corriger le nom des tuiles pour l'AOI dans config_GE.yaml
, sinon, le détecteur d'objets ne peut pas tourner.
Les autres commentaires concernent plutôt des détails
aoi_tiles_gdf['id']='('+aoi_tiles_gdf['id'] | ||
if not aoi_tiles_gdf['id'].str.endswith(')').all(): | ||
aoi_tiles_gdf['id']=aoi_tiles_gdf['id']+')' | ||
|
||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puisque j'ai modifié le code pour que l'id soit corrigé si des parenthèses manquent, faudrait-il mettre return aoi_tiles_gdf
? Est-ce que cela risquerait de déranger les raise Exceptions
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well... should the id
be badly formatted, an exception would be raised and your code wouldn't be executed.
- Do we want the code to support IDs formatted as either "(<x>, <y>, <z>)" or "<x>, <y>, <z>"?
- In which case the ID would be formatted as "<x>, <y>, <z>"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the current configuration, the script does not raise an exception when the id is formatted without the parenthesis. That why we should change the function to raise an error or add the parenthesis
Merge XYZ into master Former-commit-id: 162c0ac
Main changes:
MIL.py
,WMS.py
andXYZ.py
were moved tomisc.py
.