Opened 12 years ago

Closed 12 years ago

#1949 closed defect (fixed)

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: master
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 (1)

1949-repro.sql (115.8 KB ) - added by realityexists 12 years ago.

Download all attachments as: .zip

Change History (3)

by realityexists, 12 years ago

Attachment: 1949-repro.sql added

comment:1 by pramsey, 12 years ago

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.

comment:2 by pramsey, 12 years ago

Resolution: fixed
Status: newclosed

Should be happy at r10190

Note: See TracTickets for help on using tickets.