I&#39;ve now added the following line to my code:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"> &lt;script type=&quot;text/javascript&quot; src=&quot;/proj4js/lib/proj4js.js&quot;&gt;&lt;/script&gt;<br>
</blockquote><div> </div><div>Is that sufficient or do I have to add someting like a reprojection-statement in my WFS-definition?<br>Cheers<br>Andreia <br></div><br><div class="gmail_quote">2010/8/16 Adam Ratcliffe <span dir="ltr">&lt;<a href="mailto:adam@prema.co.nz">adam@prema.co.nz</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;"><div>You may need to include the Proj4js library, if you&#39;re not already, as your map projection is not spherical mercator.</div>
<div><br></div><div>Cheers</div><div>Adam</div><div><div></div><div class="h5"><br><div><div>On 16/08/2010, at 10:01 PM, andreia farrér wrote:</div><br><blockquote type="cite">Hi Adam,<br>thanks a lot for the quick reply.<br>
I now activated the &#39;extent&#39;-option, but the result is still the same, no feature-rendering. I don&#39;t think it&#39;s related to the missing &quot;zoom/center&quot;-options, but as I&#39;m quite new to GeoExt/OL so I can&#39;t rule it out for sure.<br>

Cheers<br>Andreia<br><br><br><br><div class="gmail_quote">2010/8/16 Adam Ratcliffe <span dir="ltr">&lt;<a href="mailto:adam@prema.co.nz" target="_blank">adam@prema.co.nz</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

HI Andreia,<br>
<br>
I note that you&#39;ve commented out the &#39;extent&#39; option in the MapPanel<br>
configuration and you have no &#39;zoom&#39; and &#39;center&#39; options specified -<br>
could that be the problem?<br>
<br>
You could try adding the vector layer to the map and letting the<br>
MapPanel create a LayerStore for you from the map&#39;s &#39;layers&#39; array,<br>
though looking at the docs the 2 approaches look like they should be<br>
equivalent.<br>
<br>
Cheers<br>
Adam<br>
<div><div></div><div><br>
On Mon, Aug 16, 2010 at 9:24 PM, andreia farrér<br>
&lt;<a href="mailto:andreia.farrer@gmail.com" target="_blank">andreia.farrer@gmail.com</a>&gt; wrote:<br>
&gt; Dear List<br>
&gt; I am trying to build a WFS-T-application with GeoExt/Openlayers. The<br>
&gt; features are stored in a PostGIS-DB and are served by Geoserver.<br>
&gt; I managed to retrieve the features (as stated by HttpFox), but somehow they<br>
&gt; won&#39;t show up in my mappanel. The code is based on the<br>
&gt; wfs-states.html-example<br>
&gt; (<a href="http://openlayers.org/dev/examples/wfs-states.html" target="_blank">http://openlayers.org/dev/examples/wfs-states.html</a>). I simply can&#39;t figure<br>
&gt; out why the features aren&#39;t rendered.<br>
&gt; Here&#39;s my snippet:<br>
&gt;<br>
&gt;&gt; Ext.BLANK_IMAGE_URL = &quot;../ext/resources/images/default/s.gif&quot;;<br>
&gt;&gt;<br>
&gt;&gt;         Ext.onReady(function() {<br>
&gt;&gt;             OpenLayers.ProxyHost = &quot;../cgi-bin/proxy.cgi?url=&quot;;<br>
&gt;&gt;<br>
&gt;&gt; var map_options = {maxExtent: new OpenLayers.Bounds(10000, -240000,<br>
&gt;&gt; 1380000, 580000),<br>
&gt;&gt;                 numZoomLevels: 12, maxScale: 5000, minScale: 2000000,<br>
&gt;&gt; units: &#39;m&#39;,  projection: &#39;EPSG:21781&#39;};<br>
&gt;&gt;<br>
&gt;&gt;             var map = new OpenLayers.Map(map, map_options,{<br>
&gt;&gt;                 allOverlays: true<br>
&gt;&gt;                 });<br>
&gt;&gt;<br>
&gt;&gt;             var modifyControl = new<br>
&gt;&gt; OpenLayers.Control.ModifyFeature(ogmlines); //ÄNDERN!<br>
&gt;&gt;             map.addControl(modifyControl);<br>
&gt;&gt;             modifyControl.activate();<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; var saveStrategy = new OpenLayers.Strategy.Save({<br>
&gt;&gt;                 onCommit: function() {<br>
&gt;&gt;                     saveStrategy.ogm_lines.refresh();<br>
&gt;&gt;                 }<br>
&gt;&gt;             });<br>
&gt;&gt;<br>
&gt;&gt; ogmlines = new OpenLayers.Layer.Vector(&quot;lines&quot;,{<br>
&gt;&gt;                 strategies:[<br>
&gt;&gt;                 new OpenLayers.Strategy.BBOX(),<br>
&gt;&gt;                 saveStrategy<br>
&gt;&gt;                 ],<br>
&gt;&gt;                 projection: new OpenLayers.Projection(&quot;EPSG:21781&quot;),<br>
&gt;&gt;                 protocol: new OpenLayers.Protocol.WFS({<br>
&gt;&gt;                     version: &#39;1.1.0&#39;,<br>
&gt;&gt;                     srsName: &#39;EPSG:21781&#39;,<br>
&gt;&gt;                     url: &#39;<a href="http://localhost:8090/geoserver/wfs" target="_blank">http://localhost:8090/geoserver/wfs</a>&#39;,<br>
&gt;&gt; //?strict=true<br>
&gt;&gt;                     featureType: &#39;ogm_lines&#39;,<br>
&gt;&gt;                     featurePrefix: &#39;OpenGeoMap&#39;,<br>
&gt;&gt;                     geometryName: &#39;the_geom&#39;,<br>
&gt;&gt;                     extractAttribute: true<br>
&gt;&gt;                 }),<br>
&gt;&gt; });<br>
&gt;&gt;<br>
&gt;&gt; var mapPanel = new GeoExt.MapPanel({<br>
&gt;&gt;                 title: &quot;Map&quot;,<br>
&gt;&gt;                 region: &quot;west&quot;,<br>
&gt;&gt;                 width: 600,<br>
&gt;&gt;                 map: map,<br>
&gt;&gt;                 layers: [ogmlines],<br>
&gt;&gt;                 //extent: new OpenLayers.Bounds(485000, 63000, 833000,<br>
&gt;&gt; 296000),<br>
&gt;&gt;                 bbar: [<br>
&gt;&gt;                     new GeoExt.Action({<br>
&gt;&gt;                         control: new OpenLayers.Control.DrawFeature(<br>
&gt;&gt;                             ogmlines, OpenLayers.Handler.Polygon, {<br>
&gt;&gt; //ogmlines!<br>
&gt;&gt;                                 handlerOptions: {multi: true}<br>
&gt;&gt;                             }<br>
&gt;&gt;                         ),<br>
&gt;&gt;                         text: &quot;Create&quot;,<br>
&gt;&gt;                         toggleGroup: &quot;tools&quot;,<br>
&gt;&gt;                         map: map<br>
&gt;&gt;                     }), {<br>
&gt;&gt;                         text: &quot;Delete&quot;,<br>
&gt;&gt;                         handler: function() {<br>
&gt;&gt;<br>
&gt;&gt; gridPanel.getSelectionModel().each(function(rec) {<br>
&gt;&gt;                                 var feature = rec.get(&quot;feature&quot;);<br>
&gt;&gt;                                 modifyControl.unselectFeature(feature);<br>
&gt;&gt;                                 gridPanel.store.remove(rec);<br>
&gt;&gt;                                 if(feature.state !==<br>
&gt;&gt; OpenLayers.State.INSERT) {<br>
&gt;&gt;                                     feature.state =<br>
&gt;&gt; OpenLayers.State.DELETE;<br>
&gt;&gt;                                     ogm_polygons.addFeatures([feature]);<br>
&gt;&gt;                                 }<br>
&gt;&gt;                             })<br>
&gt;&gt;                         }<br>
&gt;&gt;                     }, &quot;-&gt;&quot;, {<br>
&gt;&gt;                         text: &quot;Save&quot;,<br>
&gt;&gt;                         handler: function() {<br>
&gt;&gt;                             store_polygons.commitChanges();<br>
&gt;&gt;                             saveStrategy.save();<br>
&gt;&gt;                         }<br>
&gt;&gt;                     }<br>
&gt;&gt;<br>
&gt;&gt;                 ]<br>
&gt;&gt;             });<br>
&gt;&gt; }<br>
&gt;<br>
&gt; Any help is HIGHLY appreciated.<br>
&gt; Kind regards<br>
&gt; Andreia<br>
&gt;<br>
&gt; --<br>
&gt; Andreia Farrér, Birmensdorferstr. 260, 8055 Zürich; phone: +41 78 825 44 93<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
&gt; <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br>Andreia Farrér, Birmensdorferstr. 260, 8055 Zürich; phone: +41 78 825 44 93<br>
</blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><br>-- <br>Andreia Farrér, Birmensdorferstr. 260, 8055 Zürich; phone: +41 78 825 44 93<br>