[postgis-users] GEOS Problems

Rene Neidt r.neidt at idu.de
Tue Apr 11 11:24:25 PDT 2006

Hello Postgis Users,
we are building a complex application with many gis operations.
The most problems occured within the geomUnion, intersection and difference functions.
We have some different problems using GEOS operations. We think that is a 
problem with tolerances while processing the geometries.
We have tried "SnapToGrid","Buffer" with zero distance and so on ... , but we can't find a
solution that will work in all cases.
Either we get an Error from Geos (eg. "No outgoing edge found" and many more), or we dont get the 
expected result.
The following example creates two different results for the same operation with the
"same" geometries, but different geometrie casts.
----- import with psql -----------------------------------------------

    geom public.geometry
COPY t1 (geom) FROM stdin;
-- the statement below will produce a single-polygon with 10 Points, 
-- this is the expected result ...
select asText(geomUnion(asText(geom))) from t1

-- but this statement produces a multipolygon with 13 points 
select asText(geomUnion(geom)) from t1 
-- Postgres Version : "PostgreSQL 8.1.2 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special)"
-- Postgis Version  : "POSTGIS="1.1.1" GEOS="2.2.1-CAPI-1.0.1" PROJ="Rel. 4.4.9, 29 Oct 2004" USE_STATS (procs 1.1.0 upgrade)" 
-- OS: Windows Server 2003
-- Best regards 


Rene Neidt
Projektleiter Software
IDU Ingenieurgesellschaft für Datenverarbeitung und Umweltschutz mbH
Theodor-Körner-Allee 16
02763 Zittau

Tel ++49 3583 61-15-37
Fax ++49 3583 61-12-10

Internet http://www.idu.de/, http://www.webmapserver.de/
Anfahrt: http://www.stadtplan-zittau.de/?alias=idu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060411/dc4114b5/attachment.html>

More information about the postgis-users mailing list