[mapserver-users] WFS Not Returning Coordinates

Blake Crosby me at blakecrosby.com
Thu May 27 11:53:57 EDT 2010


Hello,

I'm using WFS Protocol to fetch data to display on a map (using openlayers)

This works fine, however, the returned GML from the WFS does not contain 
any coordinates, just the metadata. Is this something wrong with my 
Mapserver configuration?

Here is a copy of my map file:

MAP
SIZE 480 480
UNITS METERS
EXTENT -14017015.015137 5129003.146585 -5680315.786294 7737943.062393
PROJECTION
   "init=epsg:4326"
END
IMAGETYPE PNG
WEB
METADATA
"ows_http_max_age" "300"
"wms_srs" "EPSG:4326 EPSG:900913"
"wms_timeformat" "THH:MM:SS"
"wfs_title"     "World Flight Planner"
"wfs_onlineresource"   "http://mapserver.worldflightplanner.com/radar/"
END
END

#Define the circle style for flight rules overlay

LAYER
  STATUS ON
  NAME "flightrules"
METADATA
"gml_featureid" "ident" ## REQUIRED
"wfs_title"     "Flight Rules"
"wfs_srs"       "EPSG:4326"
"gml_include_items" "all"
END
DUMP TRUE

TYPE POINT

DATA "location from navaid using unique id"

CONNECTION "<connection info>"
CONNECTIONTYPE postgis

END


You can see the request, and the returned data here:

http://pastebin.org/284683

Thanks,
Blake


More information about the mapserver-users mailing list