[OpenLayers-Users] WFS, what EPSG use???

Andreas Hocevar ahocevar at opengeo.org
Thu Oct 29 12:35:49 EDT 2009


Arturo Juárez Lima wrote:
> Thanks Andreas,
>
> I was change the code with your suggestion, and change the url for the 
> ip, only my local examples.

But you made one fatal modification of my suggestion:

/
/
> /var layer = new OpenLayers.Layer.Vector("WFS", {/
> /        strategies: [new OpenLayers.Strategy.BBOX()],/
> /        protocol: new OpenLayers.Protocol.WFS({/
> /            url:  "http://172.16.23.21:8080/geoserver/wfs",/
> /            featureType: "sde:DTYT.SSC_RUTAS_2009",/

/featureType: "DTYT.SSC_RUTAS_2009",

/
> /            featureNS: "http://geoserver.sf.net",/
> /            version: "1.1.0",/
> /            srsName: "EPSG:4326"/
> /        })   });/

Do not use a prefix in featureType -- featureNS takes care of that, by 
using the namespace URI, not the prefix.


Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list