Hi,
I investigated the issue further and I think ist probably not necessary to post
my very large geometries.
The problem is that my geometries are multipolygons consisting of polygons
which are sometimes not adjacent.
I think the problem is similar to the one described here:
http://gis.stackexchange.com/questions/71605/combine-several-polygon-objects-in-one-polygon-object-with-geotools-is-it-possi
However, the problem remains: How do I form a union of multipolygons where the
polygons are sometimes not adjacent.
The only solution that I can think of is looping over each polygon of the
multipolygons and check if they are adjacent to another polygon. If yes, form a
union. Repeat this step until no more unions of adjacent polygons can be formed.
Than combine the remaining polygons to a multipolygon.
However, this approachs seems to be computationally demanding.
Best
Julian
>>>
Von: Ian Turton <ijtur...@gmail.com>
An:Julian Hagenauer <j.hagena...@ioer.de>
CC:"GeoTools-GT2-Users@lists.sourceforge.net"
<GeoTools-GT2-Users@lists.sourceforge.net>
Datum: 18.10.2016 16:39
Betreff: Re: [Geotools-gt2-users] Polygon with Artifacts when building union
(JTS)
Can you share the geometries your are trying?
Ian
On 18 October 2016 at 14:25, Julian Hagenauer <j.hagena...@ioer.de> wrote:
Hi,
I am building a Union of multiple Geometries the following:
List<Geometry> ggs = ...
Geometry union = UnaryUnionOp.union(ggs);
Unfortunately, the resuling polygon appears corrupted. Some points appear to be
shifted to rather different locations and some strange intersections appear.
Reducing the precision using the GeometryPrecisionReducer did not help. I tried
every reasonable scale.
What can I do about this problem?
Thanks
Julian Hagenauer
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
--
Ian Turton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users