David Robison ha scritto:
> Forgive my ignorance, I am using a filter such as:
> 
>             <ogc:DWithin>
>               <ogc:PropertyName>the_geom</ogc:PropertyName>
>               
> <gml:Point><gml:coordinates>-77.46074,37.76504</gml:coordinates></gml:Point>
>               <ogc:Distance>.001</ogc:Distance>
>             </ogc:DWithin>
> 
> How do I know what units the distance is in? How would I go about 
> specifying a projection (if I need one)? Is there a default projection 
> that is used? The data is in a PostGIS database, is the information on 
> the projection available in the database? Any help would be appreciated.

Unit can be expressed but will be completely disregarded, dwithin
will be translated into a postgis query verbatim using the
ST_DWithin function 
(http://postgis.refractions.net/docs/ch06.html#id2630911)
which again is unit agnostic.

Long story short, there is no way to have coordinates expressed
in one unit and have the filter use another. Everything works fine
if and only if the distance is expressed in the same units as
the coordinates (which does not make much sense when you're playing
with geographic coordinates).

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to