Units problem

Miguel Gonçalves mgoncalves at DSI.UMINHO.PT
Wed Sep 14 08:27:09 PDT 2005


Hello list,

I am using mapserver 4.6 for windows
I am using the following  DWidth request

http://localhost/cgi-bin/mapserv.exe?VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&MAP=../MAPS/tutorial/europe_1.map&Filter=
<Filter>
    <DWithin>
        <PropertyName>Geometry</PropertyName>
        <gml:Point>
            <gml:coordinates>-8.418000,41.539600</gml:coordinates>
        </gml:Point>
        <Distance units='m'>1000</Distance>
    </DWithin>
</Filter>


and I am having some problems with the units.
I specified units='m' but, in the results that I obtain, the distance 
between the geographical features is in degrees (I checked with ArcMap).
Can you help me to solve this problem?
Thanks.
Best regards.

Miguel

P.S. If it helps, here is my map object

MAP
  EXTENT    -36.133725 5.7104918367 66.0633 71.1839
  SHAPEPATH    "europe_1_data"

  WEB
    METADATA
    WFS_TITLE    "Mapa da Europa"
    WFS_SRS        "http://localhost/cgi-bin/mapserv.exe?"
    END
  END 

############## LAYER cities
  LAYER
    NAME    cities
    DATA    cities
    TYPE    line
    DUMP    TRUE                                  
    TOLERANCEUNITS METERS
    METADATA
    WFS_TITLE    "cities layer"
     GML_INCLUDE_ITEMS "all"
    END
  END

############## LAYER mjroads
  LAYER
    NAME    mjroads
    DATA    mjroads
    TYPE    line
    DUMP    TRUE
    TOLERANCEUNITS METERS
    METADATA
    WFS_TITLE    "mjroads layer"
    GML_INCLUDE_ITEMS "all"
    END
  END

##############LAYER country
  LAYER
    NAME    countries
    DATA    countries
    TYPE    polygon
    DUMP    TRUE
    TOLERANCEUNITS METERS
    METADATA
    WFS_TITLE    "country layer"
    GML_INCLUDE_ITEMS "all"
    END
  END

END



More information about the MapServer-users mailing list