[OpenLayers-Users] Feature access from WFS

Christopher Schmidt crschmidt at metacarta.com
Tue Sep 30 07:54:03 EDT 2008


On Tue, Sep 30, 2008 at 12:50:32PM +0200, Jorge de Jesus wrote:
> Hi to all
> This is probably a newbie question....
> 
> I have a WFS service that replies with point features (inside the
> feature collection) like this:
> <gml:featureMember>
>   <ms:qeberpsceu79rpjiade43099p6 fid="0">
>   <ms:msGeometry>
>         <gml:Point srsName="EPSG:4326">
>         <gml:coordinates>5.759029,50.993000</gml:coordinates>
>         </gml:Point>
>    </ms:msGeometry>
> <ms:cat>0</ms:cat>
> <ms:z>1022</ms:z>
> </ms:qeberpsceu79rpjiade43099p6>
> </gml:featureMember>
> 
> Assuming a normal WFS layer script like this
> 
>   test_wfs = new OpenLayers.Layer.WFS( "test_data",
>                 "http://localhost/aci2/ows.php?",
>                 {typename: "qeberpsceu79rpjiade43099p6"},
>                 { extractAttributes: true, featureClass:
> OpenLayers.Feature.WFS});
>     map.addLayer(test_wfs);

http://faq.openlayers.org/wfs/im-trying-to-use-wfs-why-wont-my-vector-data-show-up/



> For what I understood from the documentation  the features (which I
> understand as <ms:cat> and <ms:z>) 

These are your attributes on your feature, which is
ms:qeberpsceu79rpjiade43099p6 .

-- Chris

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list