If all your data is in the same CRS then you can generally ignore
transformations. We only talk about transformations as mixing and matching
data from different sources requires you to check if the data lines up (and
then only transform if needed).
There are two ways to check your point is in a polygon:
1) JTS has a Polygon within method:
http://stackoverflow.com/questions/5175216/calculate-if-an-object-is-inside-a-set-of-coordinates
2) GeoTools has a within filter (which can be used to select all the
features that contain your point)
See http://docs.geotools.org/stable/tutorials/filter/query.html for an
example.
Jody Garnett
On Wed, May 28, 2014 at 5:35 PM, Anuruddha Premalal <
anuruddhaprema...@gmail.com> wrote:
> Hi,
>
> I want to check whether a particular location coordinate(in lat,long) is
> inside a defined polygon(also in lat,long coordinate system).
>
> I went through the geometry reference
> guide<http://docs.geotools.org/stable/userguide/library/jts/geometry.html>,
> but confused about the coordinate system used there.
> can I use lat,long coordinates without any transformation to perform these
> geometric operations.
>
> If not how to perform geometric operations in lat,long coordinate system,
> do I need to transform coordinates by considering earths curvature?
>
>
> Thanks & Best Regards,
> --
> *Anuruddha Premalala(STMIEEE,STMACM)Mobile : +94710461070 <%2B94710461070>
> E-mail : anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>Sri
> Lanka.*
>
>
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users