[TinyOWS-users] A WFS 1.1.0 issue ?
Thomas Gratier
osgeo.mailinglist at gmail.com
Wed Jul 14 13:22:10 EST 2010
Hello,
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.
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.
So more info :
select postgis_full_version() give me
"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"
My sample is the same you gave in the link
Things who change (reusing the link example):
*in the config.xml
server="http://localhost/"
*in the database
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
*in the html, no change
*in the js file,
change projection to 4326, units to degrees, bounds to
(-5.34,41.92,10.84,51.59), set url to localhost when encounter
tinyows.organd change featureNS to
http://localhost
map = new OpenLayers.Map('map', {
projection: new OpenLayers.Projection("EPSG:4326"),
units: "degrees",
maxResolution: "auto",
maxExtent: new OpenLayers.Bounds(-5.34,41.92,10.84,51.59),
controls: [
new OpenLayers.Control.PanZoom()
]
});
var osm = new OpenLayers.Layer.WMS(
"OSM by Omniscale WMS",
"http://osm.omniscale.net/proxy/service",
{layers: 'osm', format: 'image/jpeg'},
{projection:"EPSG:4326", units: "degrees", maxResolution: "auto",
maxExtent: new OpenLayers.Bounds(-5.34,41.92,10.84,51.59)}
);
var saveStrategy = new OpenLayers.Strategy.Save();
saveStrategy.events.register("success", '', showSuccessMsg);
saveStrategy.events.register("failure", '', showFailureMsg);
wfs = new OpenLayers.Layer.Vector("Editable Features", {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
projection: new OpenLayers.Projection("EPSG:4326"),
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
srsName: "EPSG:4326",
url: "http://localhost/cgi-bin/tinyows",
featureNS : "http://localhost/",
featureType: "frida",
geometryName: "the_geom",
schema: "
http://localhost/cgi-bin/tinyows?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:frida
"
})
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?)
Regards
ThomasG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/tinyows-users/attachments/20100714/c7511ac4/attachment.htm
More information about the TinyOWS-users
mailing list