[postgis-devel] [PostGIS] #557: ST_Within fails at walls (upright polygons)

PostGIS trac at osgeo.org
Mon Aug 9 05:20:48 PDT 2010


#557: ST_Within fails at walls (upright polygons)
-----------------------------------+----------------------------------------
 Reporter:  weitzig                |       Owner:  pramsey      
     Type:  defect                 |      Status:  new          
 Priority:  medium                 |   Milestone:  PostGIS 1.4.3
Component:  postgis                |     Version:  1.4.X        
 Keywords:  Within, ST_Within, 3D  |  
-----------------------------------+----------------------------------------
 ST_Within doesn't find upright polygons.

 Prepare example:
 {{{
 CREATE table walltest();
 SELECT AddGeometryColumn(walltest, feature, -1, 'GEOMETRY', 3 );
 INSERT INTO walltest(feature) VALUES ('POLYGON((1 0 5,2 0 5,2 0 10,1 0
 10,1 0 5))');
 }}}


 Execute Example:
 {{{
 SELECT feature FROM walltest WHERE ST_Within(feature,'POLYGON((-5.0 -5.0
 0.0,5.0 -5.0 0.0,5.0 5.0 0.0,-5.1 5.0 0.0,-5.0 -5.0 0.0))')='T'
 }}}

 The query should find the polygon, but it doesn't.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/557>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list