Ticket #1949 (closed defect: fixed)

Opened 10 months ago

Last modified 9 months ago

Error in ST_Intersects: lwgeom_covers_lwgeom_sphere: only POLYGON and POINT types are currently supported

Reported by: realityexists Owned by: pramsey
Priority: medium Milestone: PostGIS 2.1.0
Component: postgis Version: trunk
Keywords: Cc:

Description

When I run the attached query I get

ERROR:  lwgeom_covers_lwgeom_sphere: only POLYGON and POINT types are currently supported

The interesting thing is that running it on either one of the polygons works (ST_Intersects returns false). It's only when running on both in the same query that the error occurs.

PostgreSQL 9.1.4, compiled by Visual C++ build 1500, 64-bit (Windows 7) POSTGIS="2.1.0SVN r10170" GEOS="3.4.0dev-CAPI-1.8.0 r0" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.9.1, released 2012/05/15" LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER

Attachments

1949-repro.sql Download (115.8 KB) - added by realityexists 10 months ago.

Change History

Changed 10 months ago by realityexists

Changed 9 months ago by pramsey

This is just a poor error message. What it should perhaps say is "only POINT-IN-POLYGON tests area supported". Basically one argument has to be a point, the other argument a polygon. Or, wait a sec, this isn't on ST_Covers, but on ST_Intersects? I'll look closer.

Changed 9 months ago by pramsey

  • status changed from new to closed
  • resolution set to fixed

Should be happy at r10190

Note: See TracTickets for help on using tickets.