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

Implement a GeoFeatureLayer.get_feature_class() method #73

Open
MathiasBaumgartinger opened this issue Mar 22, 2023 · 0 comments
Open

Comments

@MathiasBaumgartinger
Copy link
Collaborator

Currently getting the type can be done via: geo_feature_layer.create_feature().get_class(). Apart from it always creating a feature it is rather inconvenient.

OGR offers a way to get a geometry type as described in https://gdal.org/api/python/osgeo.ogr.html#osgeo.ogr.FeatureDefn.GetGeomType. Exposing this (e.g. via GeoFeatureLayer.get_feature_class()) would be helpful for distinguishing different types of features.

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