Opened 11 years ago
Closed 5 years ago
#5006 closed defect (wontfix)
IsValid() or IsRing() returns for LinearRing always False
Reported by: | martinl | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | OGR_SF | Version: | svn-trunk |
Severity: | normal | Keywords: | ogr, linearing |
Cc: |
Description
Methods like IsValid()
or IsRing()
returns for OGRLinearRing
always False even when OGR is compiled with GEOS support.
Both methods export geometry to Geos, eg. source:trunk/gdal/ogr/ogrgeometry.cpp#L1355
Method exportToGeos()
returns always NULL for OGRLinearRing
(because exportToWkb()
is not defined) source:trunk/gdal/ogr/ogrlinearring.cpp#L120
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.
Technically, a linearring is a linestring that is simple and closed. If that's the case, then WkbSize() and exportToWkb() can fall back to OGRLineString calls. Just deleting the implementations in OGRLinearRing() should solve it technically, but it should check if it's closed and simple as well. It's vague as to what is 'right'.