Turning the LineStrings into a MiultiPolygon seems like the easiest
approach to me.  You would do this by noding the linework (probably the
easiest way to do this is to union the linestrings), and then polygonizing
the result.  As long as the topology of the lines isn't too funky (e.g. no
holes are created) you should wind up with a MP representing the area
between them, which you can then take the area of.

Please post some pictures and feedback if you try this!


On Wed, Jul 9, 2014 at 8:01 AM, Jan Torben Heuer <[email protected]> wrote:

> Hi,
> I have two (not self-intersecting) linestrings. They have equal start
> nodes and equal end nodes. The two linestrings may intersect (multiple
> times). How can I calculate the absolute area between them?
>
> I thought about first creating a (Multi-)Polygon and then calculating its
> area. How could I do this? Is there another (faster) approach maybe?
>
> Thanks,
>
> Jan
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> Jts-topo-suite-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>
>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to