Ticket #3621 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

spatialite crashes on IsValid on empty polygon 'POLYGON()' created by Buffer(Geometry,0)

Reported by: JaapDekker Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: spatialite buffer isvalid polygon
Cc:

Description

When cleaning up results of an Intersect I got a crash in spatialite to reproduce in version 2.3.1 on Windows type:

SELECT IsValid?(Buffer(MlineFromText?('MULTILINESTRING((-120.733 39.8884, -120.616 39.9049), (-120.616 39.9049, -120.697 39.9266), (-120.697 39.9266, -120.733 39.9393))'),0));

The buffer method returned 'POLYGON()'

SpatiaLite? version ..: 2.3.1 PROJ.4 version ......: Rel. 4.6.1, 21 August 2008 GEOS version ........: 3.1.1-CAPI-1.6.0 SQLite version ......: 3.6.16

Change History

Changed 3 years ago by warmerdam

  • status changed from new to closed
  • resolution set to invalid
  • component changed from default to OGR_SF

I imagine this is a spatialite/geos integration issue. Does the same thing happen if you execute the above SQL from the sqlite client? I'm going to close the ticket assuming it is a spatialite issue. If you feel it is really a GDAL problem then please reopen with details.

Thanks!

Note: See TracTickets for help on using tickets.