Dear all,

I have a geometry object and a envelope. I want to test if this geometry 
somehow touches the envelope in that way that at least one coordinate of 
this geometry is inside the envelope.
My straight ahead implementation is:

Coordinate[] coordinates = geometry.getCoordinates();
for (Coordinate coordinate:coordinates){
   if (bbox.contains(coordinate)){
     return true;
   }
}
return false;

Is such a convenience method already existing? (Where?) Or should I use 
the filter?

Thanks,
Jürgen

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to