Hi,
I tried to make it work, but my wfs layer won´t be displayed.
I got a respone at firebug (if I use projection: EPSG:900913 but even if I
use no projection, only with EPSG: 31467 I got no features back).
If I use these lines:
var ddBounds = new OpenLayers.Bounds(
Hi list,
I want to display a wfs layer but I get only a firebug response.
My code:
var wfs2 = new OpenLayers.Layer.Vector(WFS_,
{strategies: [new OpenLayers.Strategy.BBOX()],
projection: new OpenLayers.Projection(EPSG:4326),
protocol: new
Hello,
What is the name of your layer in the Server? You don't seem to be passing
that to the layer constructor. Do 2 things:
. confirm in the server the layer's name and that there's nothing wrong with
it (accessing the demos at Geoserver);
. try a simpler layer setup like the following in a
Hi,
thanks for your suggestion!
Name of the layer is correct. I use featureType: mylayer (without prefix)
and/or typename: gn:mylayer but neither worked.
Firebug gave me:
gml:boundedby gml:nullunknown/gml:null
I think because of different EPSG/coordinates. But don´t know how to manage
best
HI again,
Indeed it seems that the request is for a region that doesn't exist in the
server (due to the wrong SRS). Try to add the EPSG to the layer constructor:
var wfs2 = new OpenLayers.Layer.WFS(
myLayer,
http://myserver:81/geoserver/wfs;,
{
HI again,
Indeed it seems that the request is for a region that doesn't exist in the
server (due to the wrong SRS). Assuming that there's nothign wrong with the
layer in the server you could try to add the EPSG to the layer constructor:
var wfs2 = new OpenLayers.Layer.WFS(
Hi,
I tried to alter srs code at geoserver from 31467 to 4326. If I use option
reproject at geoserver gui I can see my layer from geoserver demo page (if I
use force declared or keep native I could not even see my layer). But if I
want to make a getfeature request I get an exception:
error
Hi,
I think the best way to do this is by performing the reprojection
client-side (if I lead you otherwise it wasn't my intention - sorry). Just
config the layer at Geoserver with its native EPSG without any
modifications. This way you should get the layer with no problems at the
demo page.
Then