[postgis-devel] [PostGIS] #1706: TopoGeo_AddPolygon not adding polygons
PostGIS
trac at osgeo.org
Fri Mar 23 11:55:37 PDT 2012
#1706: TopoGeo_AddPolygon not adding polygons
----------------------+-----------------------------------------------------
Reporter: pramsey | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: topology | Version: trunk
Keywords: |
----------------------+-----------------------------------------------------
Comment(by strk):
{{{
with inp as (SELECT
'01020000000300000000000000000034400000000000002440000000000000244000000000000024400000000000002240FFFFFFFFFFFF2740'::geometry
as e,
'01020000000400000000000000000022400000000000002840000000000000244000000000000024400000000000002E40000000000000244000000000000034400000000000002440'::geometry
as n ) select st_astext(e) as e, st_astext(n) as n, st_equals(e,n),
st_hausdorffdistance(e,n), st_astext(st_symdifference(e,n)) as sd,
st_equals(st_snap(n,e,1e-14), e) as snapequals, st_equals(st_endpoint(n),
st_startpoint(e)) as new_end_equals_exs_start, st_equals(st_startpoint(n),
st_endpoint(e)) as new_start_equals_exs_end,
st_equals(st_snap(n,st_endpoint(e),5), e) as snap_to_lastpoint_equals from
inp;
}}}
The above shows that altough the problem is vertex (9,12) not being
exactly the same, snapping the new edge to the existing edge makes them
equal but snapping the new edge to _only_ the (9,12) vertex of the old
edge does _not_ make them equal.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1706#comment:16>
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