[geos-devel] Re: TopologyException: found non-noded intersection

G. Allegri giohappy at gmail.com
Tue Jun 22 16:53:40 EDT 2010


> In both JTS and GEOS CascadedUnion is limited to operating in main memory

I supposed it, that's why...

> implement your own "GriddedUnion" in PostGIS (and maybe involving
> JTS).  I can provided details if you like.

...would be of great help! I've been considering that but I haven't
given it the needed time yet. Now I have to!
My customer would prefere to work entirely on Postgis, without
involving external tools/dependencies, but I prefer to the job well
and use jts (or something else) then to risk unexpected topology
exceptions. I've never combined Postgis and JTS (I just set up a basic
test through geotools time ago)...
If you can share hints on this and griddedunion, it would be really useful.

thanks,
giovanni



2010/6/22 G. Allegri <giohappy at gmail.com>:
> Thanks Martin.
> I see that jts 1.11 works fine on a subset of my dataset. I have
> hundreds of thousands od polygons to merge... I have to find the way
> to read them to pass the collection to JTS without receiving
> java.lang.OutOfMemoryError (just happened!).
> What do you suggest to build the collection needed by CascadedUnion
> without havind to create a huge Collection of geometries?
>
> I will take a look at JEQL. Thanks for the hint, I didn't know it...
>
> Giovanni
>
> 2010/6/22 G. Allegri <giohappy at gmail.com>:
>> I'm using Postgis 1.5.1 to compute a Union on a quite large
>> multipolygons dataset (some hundreds of thousands of features), but
>> I'm facing the following error:
>>
>> NOTICE:  TopologyException: found non-noded intersection between
>> LINESTRING (1.7318e+006 4.77959e+006, 1.7318e+006 4.77958e+006) and
>> LINESTRING (1.7318e+006 4.77958e+006, 1.73174e+006 4.77954e+006) at
>> 1.7318e+006 4.77958e+006
>>
>> ERROR:  GEOS union() threw an error!
>>
>> I know it's a known issue, but I haven't been able to find a good,
>> replicable, solution. The input geometries result valid (in simple
>> feature meaning).
>> What is causing this? I have overlapping polygons, but I thought the
>> cascaded union algorithm computed the necessary noding on the
>> linestrings.
>> I've supposed it depends on tolerances/precision model, but I don't if
>> it makes sense and how, eventually, tune it.
>>
>> Thanks a lot,
>> Giovanni
>>
>


More information about the geos-devel mailing list