[postgis-devel] [PostGIS] #2038: Exception of topogeo_AddLineString() of a line string with a part colinear with an existing one.

PostGIS trac at osgeo.org
Thu Oct 11 01:33:44 PDT 2012


#2038: Exception of topogeo_AddLineString() of a line string with a part colinear
with an existing one.
----------------------+-----------------------------------------------------
 Reporter:  wimned    |       Owner:  strk         
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.1.0
Component:  topology  |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------
 version: POSTGIS="2.1.0SVN r10365" GEOS="3.3.4-CAPI-1.7.3" PROJ="Rel.
 4.7.1, 23 September 2009" LIBXML="2.7.8" TOPOLOGY

 the message:

 {{{
 ERROR:  SQL/MM Spatial exception - geometry crosses edge 2
 CONTEXT:  PL/pgSQL function "topogeo_addlinestring" line 124 at assignment
 SQL statement "SELECT topogeo_AddLineString('wimpy', line1)
 }}}

 The code:
 {{{
 CREATE OR REPLACE FUNCTION test_AddLineString2()
  returns void as
 $$
     declare line0 geometry;
     declare line1 geometry;
 BEGIN
     raise notice 'version: %', postgis_full_version();

     perform CreateTopology('wimpy', 4326);
     line0 = ST_GeometryFromText(
         'LINESTRING( 72.91981 20.95009,72.91082 20.95759)',4326);

     line1 = ST_GeometryFromText(
         'LINESTRING(72.9123215921439 20.9563372813038,72.9122229474764
 20.9564195766326,
             72.9130010661966 20.9562352183313,72.9123215921439
 20.9563372813038)', 4326);

     perform topogeo_AddLineString('wimpy', line0);
     perform topogeo_AddLineString('wimpy', line1);
 END
 $$
 LANGUAGE plpgsql;
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2038>
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