[OpenLayers-Users] WFS Not Returning Coordinates

Arnd Wippermann arnd.wippermann at web.de
Thu May 27 13:26:31 EDT 2010


Hi,

If you use Mapserver 5.6.x, then it's a bug.

WFS Server - GetFeature POST request does not return geometry
http://trac.osgeo.org/mapserver/ticket/3235

Arnd

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Blake Crosby
Gesendet: Donnerstag, 27. Mai 2010 16:36
An: users at openlayers.org
Betreff: [OpenLayers-Users] WFS Not Returning Coordinates

Hello,

I'm using WFS Protocol on a vector layer (as per the example) to plot data
on the map from a wfs server:

	var geographic = new OpenLayers.Projection("EPSG:4326");
              var layer = new OpenLayers.Layer.Vector("WFS", {
                 strategies: [new OpenLayers.Strategy.BBOX()],
                 protocol: new OpenLayers.Protocol.WFS({
                 url:  "http://mapserver.worldflightplanner.com/radar/",
                 featureType: "flightrules",
		featureNS: "http://mapserver.gis.umn.edu/mapserver",	
		featurePrefix: "ms",
		version: "1.1.0",
		geometryName: "location",
		srsName: "EPSG:4326",
		extractAttribute: true
         	}),projection: geographic
            });

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, or my OL call?

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

http://pastebin.org/284683

Thanks,
Blake
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list