Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Coordinate belongs to polygon

Hello,

Seba Alzaradel said:
> Hi again,
> I need to know if a point or coordinate belongs to a polygon in particular
> or is inside it. Is there any function that resolve this in uDig API?

grab the geometry of you poly (as in feature.getDeafultGeometry()) and try
poly.contains( somePoint );

This is the JTS API. Have a look the the javadoc for other methods.

Cheers,

Ugo
>
> Thanks
> SEBA
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>



Back to the top