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 a detection method of the geometry types actually in a file for a "Geometry" geometrycolumn #104

Open
1 of 3 tasks
theroggy opened this issue Apr 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@theroggy
Copy link
Collaborator

theroggy commented Apr 23, 2022

Some files have a column defined as "Geometry", but actually have only one primitive type in them (e.g. multi + single polygons) in them and so could still get proper automatic treatment in geo operations.

For this type of files an automatic detection would be useful...

  • make a function to determine all geometry types in a layer (geofileops.get_layer_geometrytypes)
  • use function to automatically deal with this if possible in all geo operations
  • A special case of this is geofiles that don't contain any rows and have a geometry column of type "Geometry". For this situation the geometrytype is not important at all for any spatial operations.
@theroggy theroggy added the enhancement New feature or request label May 9, 2022
@theroggy theroggy added this to the 0.7.0 milestone Mar 1, 2023
@theroggy
Copy link
Collaborator Author

theroggy commented Mar 14, 2023

A distinct ST_GeometryType(geom) should do the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant