Opened 10 years ago
Last modified 10 years ago
#24207 closed Cleanup/optimization
contrib gis change ogrinspect multi_geom default to True — at Version 1
Reported by: | Michael Diener | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Normal | Keywords: | gis, multi_geom |
Cc: | mdiener21@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I would recommend changing the /contrib/gis/util/ogrinspect.py default to use "Multi" geometry because this will eliminate ERROR when trying to import a data set that could contain both linestring and multilinestring for example.
The reason is that gdal cannot always guess the correct geometry type for example in a Shapefile.
link to my GIT Branch https://github.com/mdiener21/django/blob/master/django/contrib/gis/utils/ogrinspect.py
# TODO: Autodetection of multigeometry types (see #7218).
Change History (2)
by , 10 years ago
Attachment: | ogrinspect.py added |
---|
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
forgot the link to my GIT branch https://github.com/mdiener21/django/blob/master/django/contrib/gis/utils/ogrinspect.py
Pull Request was already sent off :)
new ogrinspect.py code