[OpenLayers-Users] Why is my WFS layer not showing up?
Gregor at HostGIS
gregor at hostgis.com
Fri Aug 20 18:26:06 EDT 2010
Why is my WFS layer not showing up? I cribbed off the current WFS demos
from the OL examples, but for some reason it's just not appearing.
The URL of my app. Of course, view the source as needed.
http://eixos.planol.info/cluster/example.html
Firebug is showing what loooks to be correct WFS activity. It is POSTing
to the correct URL (yes, DATE is required for our purposes):
http://eixos.planol.info/cgi-bin/mapserv?map=/maps/eixos/wms/mapfile.map&DATE=2010-08-15
It is getting back GML, including plenty of <gml:featureMember> blocks
like this one. The coords are correct for this area in EPSG:900913.
<gml:featureMember>
<ms:cloud2 fid="cloud2.2103">
<gml:boundedBy>
<gml:Box srsName="EPSG:900913">
<gml:coordinates>434243.810000,4586616.630000
434243.810000,4586616.630000</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<ms:msGeometry>
<gml:Point srsName="EPSG:900913">
<gml:coordinates>434243.810000,4586616.630000</gml:coordinates>
</gml:Point>
</ms:msGeometry>
<ms:ID>2103</ms:ID>
<ms:TITLE>Restaurant La Deliciosa</ms:TITLE>
<ms:ADDRESS> CR MATARO</ms:ADDRESS>
<ms:LAST_VISIT>2009-03-05</ms:LAST_VISIT>
<ms:NEXT_VISIT>2009-06-05</ms:NEXT_VISIT>
<ms:STARTDATE>2008-07-24</ms:STARTDATE>
<ms:ENDDATE></ms:ENDDATE>
<ms:LATITUDE>41.4276977467</ms:LATITUDE>
<ms:LONGITUDE>2.2130631058</ms:LONGITUDE>
</ms:cloud2>
</gml:featureMember>
And yet, no features (points) are drawn. I'm not sure what I'm missing
on this one. I'll be specifying a Style later, but I know that WFS has a
default Style which would be fine for these first steps.
--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+ Server+ A+ Security+ Linux+
PHP PostgreSQL MySQL DHTML/JavaScript/AJAX
"No one cares if you can back up — only if you can recover."
More information about the Users
mailing list