Hi Aritz,

you can check
http://subversion.gvsig.org/gvSIG/trunk/libraries/libTopology/src/org/gvsig/jts/LineStringSelfIntersectionChecker.java

To do what you want, you must:

LIneStringSelfIntersectionChecker checker = new
LineStringSelfIntersectionChecker(linestring, snapTolerance);

Geometry[] rings = checker.clean();


Best regards

2009/10/8 Aritz Dávila <aritz.dav...@axios.es>

> Hi list,
>
> I would like to know, if there is any way to do the next:
> I got a list of Coordinates. Those coordinates form a closed lineString
> like
> it is shown on Image1.png
> I want to obtain the rings that are formed by this lineString (Image2.png).
> Is
> there any way to get it, for example using PlanarGraph or other object?
>
> Thx in advance,
> --
> Aritz Dávila
> www.axios.es
>
>
>
>
> _______________________________________________
> jts-devel mailing list
> jts-devel@lists.jump-project.org
> http://lists.refractions.net/mailman/listinfo/jts-devel
>
>


-- 
Alvaro Zabala Ordóñez
azabala[en]gmail[punto]com
alvaro.zabala[en]juntadeandalucia[punto]es
Tlf: 954 995 572
Gabinete de Normalización y Calidad
Servicio de Coordinación y Desarrollo de Sistemas Horizontales.
D.G. de Innovación y Administraciones Públicas.
Consejería de Innovación, Ciencia y Empresa, Junta de Andalucía
_______________________________________________
jts-devel mailing list
jts-devel@lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to