Hello,<br><br>I know it pretty well and it works perfectly this way with the 31467 code, with 2154 EPSG code but with EPSG 4326, I have a problem.<br>
The problem is after I draw, I commit the geometry and it works (success indication, database with one line). I reload the page with Ctrl+F5 and the previous drawing don't display.<br><br>So more info :<br>select postgis_full_version() give me<br>
"POSTGIS="1.5.1" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.6" USE_STATS"<br>
My sample is the same you gave in the link<br><br>Things who change (reusing the link example):<br>*in the config.xml<br> server="<a href="http://localhost/" target="_blank">http://localhost/</a>"<br>*in the database<br>
I drop the frida content, keep only structure, change table enforce_geotype_the_geom to EPSG 4326 and change EPSG code to 4326 in the geometry_columns<br><br>*in the html, no change<br>*in the js file,<br>change projection to 4326, units to degrees, bounds to (-5.34,41.92,10.84,51.59), set url to localhost when encounter <a href="http://tinyows.org" target="_blank">tinyows.org</a> and change featureNS to <a href="http://localhost" target="_blank">http://localhost</a><br>
<br>map = new OpenLayers.Map('map', {<br> projection: new OpenLayers.Projection("EPSG:4326"),<br> units: "degrees",<br> maxResolution: "auto",<br> maxExtent: new OpenLayers.Bounds(-5.34,41.92,10.84,51.59),<br>
controls: [<br> new OpenLayers.Control.PanZoom()<br> ]<br> });<br><br> var osm = new OpenLayers.Layer.WMS(<br> "OSM by Omniscale WMS",<br> "<a href="http://osm.omniscale.net/proxy/service" target="_blank">http://osm.omniscale.net/proxy/service</a>",<br>
{layers: 'osm', format: 'image/jpeg'},<br> {projection:"EPSG:4326", units: "degrees", maxResolution: "auto", maxExtent: new OpenLayers.Bounds(-5.34,41.92,10.84,51.59)}<br>
);<br><br> var saveStrategy = new OpenLayers.Strategy.Save();<br> saveStrategy.events.register("success", '', showSuccessMsg);<br> saveStrategy.events.register("failure", '', showFailureMsg);<br>
<br> wfs = new OpenLayers.Layer.Vector("Editable Features", {<br> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],<br> projection: new OpenLayers.Projection("EPSG:4326"),<br>
protocol: new OpenLayers.Protocol.WFS({<br> version: "1.1.0",<br> srsName: "EPSG:4326",<br> url: "<a href="http://localhost/cgi-bin/tinyows" target="_blank">http://localhost/cgi-bin/tinyows</a>",<br>
featureNS : "<a href="http://localhost/" target="_blank">http://localhost/</a>",<br> featureType: "frida",<br> geometryName: "the_geom",<br> schema: "<a href="http://localhost/cgi-bin/tinyows?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:frida" target="_blank">http://localhost/cgi-bin/tinyows?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:frida</a>"<br>
})<br><br>Previously said, the same thing with WFS 1.0.0 works perfect. If possible, I want to understand where the problem on WFS 1.1.0 comes from (OL, tinyows or myself?)<br><br>Regards<br><br>ThomasG<br><div style="display: inline;">
</div>
<div style="display: inline;"></div>
<div style="display: inline;"></div>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>