Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2434 closed defect (fixed)

geography ST_Intersection regress with 2.0.3 failure

Reported by: robe Owned by: pramsey
Priority: critical Milestone: PostGIS 2.1.1
Component: postgis Version: 2.1.x
Keywords: Cc:

Description

SELECT ST_Intersection('LINESTRING M (-10 50 1,50 -10 1)'::geography, 'GEOMETRYCOLLECTION EMPTY'::geography)

In PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 32-bit POSTGIS="2.1.0rc3 r11766" GEOS="3.5.0dev-CAPI-1.9.0 r0" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER

yields error:

ERROR:  Error in geography_bestsrid calling gserialized_get_gbox_p(g2, &gbox2)
CONTEXT:  SQL function "st_intersection" statement 1
********** Error **********

In PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 32-bit POSTGIS="2.0.3 r11132" GEOS="3.5.0dev-CAPI-1.9.0 r0" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER

Yields

0107000020E610000000000000

--AsTExt
GEOMETRYCOLLECTION EMPTY

Change History (4)

comment:1 Changed 6 years ago by robe

Milestone: PostGIS 2.1.0PostGIS 2.1.1
Priority: blockercritical

comment:2 Changed 6 years ago by kashif

typo in file geography_measeurement.c line 710:

if ( ! empty1 && gserialized_get_gbox_p(g2, &gbox2) == LW_FAILURE )

should be:

if ( ! empty2 && gserialized_get_gbox_p(g2, &gbox2) == LW_FAILURE )

comment:3 Changed 6 years ago by pramsey

Resolution: fixed
Status: newclosed

Fixed at r11909 and r11910, this was introduced in 2.1 dev, 2.0 is fine.

comment:4 Changed 6 years ago by pramsey

Version: 2.0.x2.1.x
Note: See TracTickets for help on using tickets.