-
Notifications
You must be signed in to change notification settings - Fork 11
Converters: Source geometries or "improved" versions? #119
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
Comments
I'd say for source coop deployment we should indeed run the improve command, because otherwise files may be invalid actually. For me converters and the actual deployment are two different topics. I'm thinking about FTW, if they may struggle to correctly judge/select examples if we modified some of the geometries. It would give them the option to themselves create original geometries fiboa compliant, but we can still run improve for deployment. Edit, I have second thoughts: Maybe we should actually guide users more and provide valid polygons by default. Returning invalid fiboa after conversion is also less ideal for tests. Alternative is an option in the convert command to run both options with a default to run them, but then we can probably remove the option in the improve command. I tend towards running make_valid and explode_polygon by default in the converters with an option to disable it, I think. |
I do generally now lean towards keeping the converters as minimal as possible - don't do anything except get into fiboa, so then all the potential 'improve' and 'filter' are up to the user. But I can definitely get behind make_valid and explode_polygon by default. I think ideally we'd include in the core spec that polygons should be valid. And potentially also that it's just single polygons - but we should probably make an issue and discuss the reasoning. I do also think it could be interesting to have a way for a converter author to include the 'improve' / 'filter' commands they recommend, and even make that the 'default'. Like |
Okay, cool, I'll add an option for the converters to run make_valid and explode_multipolygons by default. |
I made the changes in #114 @ivorbosloper Do you know whether gdf.explode has the side-effect that the IDs will not be unique any longer? That seems not ideal and would actually be invalid according to the spec... |
@m-mohr Yes, you're right. The geodataframe.explode function has flags |
Yes, I agree. |
Originally posted by @m-mohr in #117 (comment)
@ivorbosloper wrote:
@m-mohr wrote:
@ivorbosloper wrote:
The text was updated successfully, but these errors were encountered: