[OpenLayers-Users] Why is my WFS layer not showing up?

Arnd Wippermann arnd.wippermann at web.de
Sat Aug 21 07:07:26 EDT 2010


Hi,

First: 
the point in the snippet you have posted, lies if the projection is right,
south-east of Mallorca. If you take the projection EPSG:23031, then it
should be in Barcelona.

Second:
When I use your wfs server with EPSG:23031, then the points will display in
Barcelona. But only for the layer "cloud2". The gml for the layers named by
numbers are not valid. <ms:4> seems to be no correct tag.

You can test this by saving the response from firebug as xml and then you
should be able by doubleclick to load it in your Internet browser. It will
raise an error.

Arnd

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Gregor at HostGIS
Gesendet: Samstag, 21. August 2010 00:26
An: users at openlayers.org
Betreff: [OpenLayers-Users] Why is my WFS layer not showing up?

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&DAT
E=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."
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list