<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br><br>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:<br><span>error occured getting features Had troubles handling filter reprojection..could not decode srs '<a target="_blank" href="http://www.opengis.net/gml/srs/epsg.xml#4326">http://www.opengis.net/gml/srs/epsg.xml#4326</a>' null ... </span><br>I thought I could force geoserver to use epsg 4326 at my request with my OL code, but as you said I have to manage it geoserver side...?<br>Any further hints about that?<br></div><div style="font-family: times new roman,new york,times,serif; font-size:
 12pt;"><br>Thanks.<br>best regards<br>Sarah<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;"></span></b><br></font><br>HI again,<br><br>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:<br><br>var wfs2 = new OpenLayers.Layer.WFS(
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "myLayer",&nbsp;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "<span><a rel="nofollow" target="_blank"  href="http://myserver:81/geoserver/wfs">http://myserver:81/geoserver/wfs</a></span>",
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;typename: 'myLayersNameInTheServer',
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srsName: "EPSG:4326"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );<br><br>If it still doesn't show up then there must be some problem re-projecting the layer to the map's SRS.<br><br>Good luck,<br><br>Luís<br><br><br><br> <br><br><div class="gmail_quote"><span dir="ltr"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote">2010/3/8 Sarah Schuessler <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:sarah_flip@yahoo.de" target="_blank" href="mailto:sarah_flip@yahoo.de">sarah_flip@yahoo.de</a>&gt;</span><div class="im"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br><br>thanks for your suggestion!<br>Name of the layer is correct. I use featureType: "mylayer" (without prefix) and/or <span>typename: "gn:mylayer" but neither worked.</span><br>

Firebug gave me:<br>&nbsp;gml:boundedby &gt;&lt;gml:null&gt;unknown&lt;/gml:null&gt;<br>I think because of different EPSG/coordinates. But don´t know how to manage best way.<br><br>best regards<br>Sarah<br></div></div></div></blockquote>

</div></div>
</blockquote></div><br>
</div></div>
</div><br>__________________________________________________<br>Do You Yahoo!?<br>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <br>http://mail.yahoo.com </body></html>