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.

Thanks, David
  _____  

From: Andrea Aime [mailto:[EMAIL PROTECTED]
To: David Robison [mailto:[EMAIL PROTECTED]
Cc: geotools-gt2-users@lists.sourceforge.net
Sent: Mon, 05 Nov 2007 15:45:28 -0500
Subject: Re: [Geotools-gt2-users] What are the distance units used by DWithin

David Robison ha scritto:
  > I am trying to use DWithin for a filter. However, I don't know what 
  > distance units it will use by default. Is there a way to tell? The data 
  > is in EPSG:4326
  
  DWithin works with euclidean distance, so you won't be able to
  use it in EPSG:4326. You can use it only in projected CRS where
  a flat world assumption can work.
  
  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