Alex,
In case you're using Hibernate Spatial with Oracle Spatial, you could
also use the OracleSpatialRestrictions.SDOWithinDistance method
(which has the same arguments as the SDO_WITHIN_DISTANCE operator.
Regards,
Karel
On 08 Apr 2008, at 20:12, jose garcia wrote:
> Hi
>
> Look at
http://docs.codehaus.org/display/GEOTDOC/03+How+to+Transform
> +a+Geometry
>
> You can convert the point from lat/lon (4326) to UTM (32360) with
> geotools, create the buffer with the point and the radio , and
> convert the buffer again to lat/lon to make the Spatial Query using
> it.
>
> Bye.
>
> 2008/4/8, az lists <
[hidden email]>: Hi all,
>
> I am trying to figure out how I could query for all Points that are
> within a given radius using HibernateSpatial and JTS.
>
> Let me explain :
>
> I have a many Points Of Interrest in a database. What I want to do
> is :
> Given Point A (which contains latitude longitude coordinates) and
> radius R (in meters), retrieve all the Points Of Interrest that are
> inside Circle of center A with radius R.
>
> I don't think it is possible to create a Circle geometry to do
> this ... maybe an approximation such as a Circular Polygon...
>
> Any Help would be greatly appreciated
>
> Thanks in advance.
>
> Cheers
>
> Alex
>
> _______________________________________________
> hibernatespatial-users mailing list
>
[hidden email]
>
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/
> hibernatespatial-users
>
>
> _______________________________________________
> hibernatespatial-users mailing list
>
[hidden email]
>
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/
> hibernatespatial-users
_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users