GeoTools passes this sort of function off to JTS which provides a variety
of "equality" methods - see
http://docs.geotools.org/stable/userguide/library/jts/equals.html for the
full list.
In your case I would read in the shapefiles and normalize each polygon then
you can do a Geometry.equalsExact( Geometry g, double tolerance ) for any
polygons that overlap.
Remember that tolerance will be in the units of the projection you are
using.
Ian
On 30 August 2017 at 12:49, Mihaja raji <mihaja.r...@gmail.com> wrote:
> Hi all, how to compare feautre polygon only in 2 shapefile with tolerance
> using
> geotools. Thanks
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
--
Ian Turton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users