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

Add analyser for eclExt data format in France #1862

Closed
wants to merge 5 commits into from

Conversation

flacombe
Copy link
Contributor

@flacombe flacombe commented May 13, 2023

EclExt is a French national standard for street lighting data
http://cnig.gouv.fr/eclairage-exterieur-a25020.html

Starting with a file over Haute-Savoie published by Syane.

@frodrigo
Copy link
Member

Please can you rename files:

  • analyser_merge_eclext_FR.py to Analyser_Merge_Lit_FR_eclext.py
  • analyser_merge_eclext_FR_Syane.py to analyser_merge_lit_FR_haute-savoie_syane.py

Comment on lines 31 to 35
self.def_class_missing_official(item = 8090, id = 11, level = 3, tags = ['merge', 'eclairage', 'eclext', 'fix:chair', 'fix:survey'],
title = T_('Street light not integrated'))
self.def_class_possible_merge(item = 8091, id = 13, level = 3, tags = ['merge', 'eclairage', 'eclext', 'fix:chair', 'fix:picture'],
title = T_('Street light integration suggestion'))
self.def_class_update_official(item = 8092, id = 14, level = 3, tags = ['merge', 'eclairage', 'eclext', 'fix:chair', 'fix:survey'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ids should go to Analyser_Merge_Eclext_FR_Syane

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary?

I was inspired by analyser_merge_hydrants_FR.py

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You split into two file to make reusable. So yes.

I was inspired by analyser_merge_hydrants_FR.py

That bad. But in this case it works anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we create an issue for that?

@frodrigo
Copy link
Member

You also nee to add your new analyser to the configuration.

@flacombe
Copy link
Contributor Author

@frodrigo could you give me proper ids and classes for that please?

frodrigo pushed a commit to frodrigo/osmose-backend that referenced this pull request May 18, 2023
@frodrigo
Copy link
Member

Thank you. Fixed and merged manually.

@frodrigo
Copy link
Member

@flacombe it is deployed, but it fails with

'light:method': lambda res: self.extract_light_method[res['typeSource']] if self.extract_light_method[res.get('typeSource')] else None,
KeyError: 'AU'

@flacombe flacombe deleted the analysis/eclext branch March 31, 2024 14:32
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

Successfully merging this pull request may close these issues.

2 participants