Hi all,
I am using a 4326 WFS-T to overlay on 900913 Google. For this I initiate a WFS
instance using 'internalProjection' 'externalProjection'
var protocol = new OpenLayers.Protocol.WFS({
'internalProjection': new OpenLayers.Projection("EPSG:4326"),
'externalProjection': new OpenLayers.Projection("EPSG:900913"),
url: "http://localhost:8080/geoserver/wfs",
outputFormat: "GML2",
featureType: "incidence_occurences",
featurePrefix: "MasterThesis",
geometryName:"the_geom",
version:"1.1.0",
})
This protocol is reused for editing in an Openlayers.Layer.Vector
return new OpenLayers.Layer.Vector("Edit Incidents", {
strategies: [new OpenLayers.Strategy.Fixed()],
Visibility: true,
//projection: new OpenLayers.Projection("EPSG:4326"),
protocol: protocol,
})
The problem is that I want to enable feature adding and feature editing. With
the internal external projection, it works great transforming Google coordinates
to geographic ones.
However, the WFS does not display and I can hence not edit features because I
cannot select them in the first place. I can only display the WFS if i uncomment
the projection in the OpenLayers.Layer.Vector. But if I do so, I cannot save
either modified or added features because I get a
"PointOutsideEnvelope.Exception" error. I assume it overwrites previously set
internal, external Projection, since it wants to save Google coordinates.
Can anyone help me out how to resolve this issue? What can I do to solve this
conflict.
Any help is much appreciated
Best regards, Arne
------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages,
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users