As long as the set of ways is well-formed (specifically, has no overlaps),
then you should be able to use *either* union() or LineMerger.  LineMerger
should work, and will perhaps be a bit more efficient for large sets of
ways (since it does not try to node them first, but assumes they form a
fully-noded graph already).

The union() semantics have not changed, and they are explained in the
Javadoc:

http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html#union()

If you find anything that does not accord with the above, then let me know.



On Fri, Jul 12, 2013 at 2:41 PM, Stefan Steiniger <[email protected]> wrote:

> Hi Martin et al,
>
> I am wanting to create (multi-)polygons from *.osm data. Problem is that
> several "ways" (read: LineStrings) can make up a polygons outershell.
>
> see here: http://wiki.openstreetmap.org/wiki/Relation:multipolygon
> (in particular the image on the right side)
>
> Now, after reading the JTS doc I am still unsure if geometry.union() -
> looped over all (outer)ways does what I want. That is, if should use
> LineMerger instead?
>
> Any advise?
>
> cheers from the southern hemisphere,
> stefan
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Jts-topo-suite-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to