Tag Info

Hot answers tagged

3

You'll need to enable Transactional in the global WFS settings in the Services section of the side menu. Be careful with the workspace-specific service settings because they don't usually do what people think they do. Those settings only come into effect when you use the virtual endpoints such as http://localhost:8080/geoserver/myworkspace/wfs, but they have ...


3

You need to use WFS-T, the T standing for transactional, which is what's required to be able to write-back. Both Openlayers and GeoServer support this. This question may help on the script side - WFS-T: changes not saved on an OpenLayers map There's also a sample tutorial here: ...


3

This looks like a bug in GeoServer. GeoServer needs to identify when a schemaLocation references the GeoServer's own WFS service and does this by looking at the hostname of the URL and comparing it to a list of known hostnames it generates at start up by looking at the network interfaces. If it fails to recognize itself it will make an HTTP request to ...


2

when you add a point with new OpenLayers.Control.DrawFeature(wfs, OpenLayers.Handler.Point), by default feature state set to "Insert" but when you add a point with vectorLayer.addFeatures() command, the feature state is null. when OpenLayers wants to save change, it see to the state of the feature, and you have to set the added feature state to ...


2

I use GeoServer in OpenGeo Suite 4.1. In this package, the "Service access rules list" page has a rule that only "ADMIN" roles have permission for WFS-Transaction. wfs.Transation --> ADMIN You must delete this rule.


2

From the WFS 1.1.0 specification which is freely available in the net: Individual exception messages are contained within the element. The mandatory code attribute may be used to associate an exception code with the accompanying message. The optional locator attribute may be used to indicate where an exception was encountered in the request that ...


2

Why are creating your own WFS implementation? Can't you just use geoserver? WFS is a complex type of service, this won't be easy. Anyway the response for WFS-GetFeature should include GML and optionally any other format you want. Geotools can provide you with the right JAVA API's to do this. Just look at the documentation of geoserver for WFS if you want ...


2

At the moment I still prefer OpenLayers2. You can find a nice tutorial here: http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-using-a-geoserver-hosted-postgis-layer.html or even have a look at the "official" openlayers-example: http://dev.openlayers.org/releases/OpenLayers-2.13/examples/wfs-protocol-transactions.html ...


1

as user stuporglue already mentioned the style is not a specific wfs-t issue, but you can just have a look at a nice website with Information about the Feature-Style and Stylemaps: http://www.peterrobins.co.uk/it/olstyle.html For your Vector-/WFS-T-Layer you could use something like that: var defStyle = { fillColor: "#ff0000", strokeColor: "green", ...


1

This works: <wfs:Update typeName="av_dev:PointModel" > <wfs:Property> <wfs:ValueReference>orientation</wfs:ValueReference> <wfs:Value>2</wfs:Value> </wfs:Property> <fes:Filter> <fes:ResourceId rid="7" /> </fes:Filter> </wfs:Update> </wfs:Transaction> ...


1

I've been trying against a Geoserver / Windows server 2003 installation, and it works. Doesn't work when it's a Geoserver / Centos Installation. With Udig WFS-T updates against a Geoserver / Centos are commited. Please also refer to: QGIS WFS Error - Could not commit changes to layer


1

I've stumbled upon a very similar situation, so I'll add the information I have here with the hopes of contributing to a solution. My setup: On a Debian linux server: PostGIS 2.0/PostgreSQL 8.4 GeoServer 2.4.0 On Windows 7 x64: QGIS 2.6.0-Brighton For testing purposes I'm trying to edit (tried both insert and delete) the demo layer tiger:poi in ...


1

Just testes with a recent Geoserver 2.5 snapshot - update request with a fid that does not exist does not create a new feature - default fid handling in Geoserver is that server is creating the fid; it is taken from a sequence or if sequence is not defined the new fid will be Max(fid)+1. Conclusion: Update does not behave as Insert, not Insert as Update. If ...


1

WFS locking is so seldom used that the best documentation about the usage can be found from the WFS standards. Locks are only released after successful transaction or after the expiry period is passed. In WFS standard 1.1.0 default expiry time for locks is 5 minutes <xsd:attribute name="expiry" type="xsd:positiveInteger" use="optional" default="5"/> ...


1

I know that this question is 3 years old, but I think it will help future people reading this subject. You can find an OpenLayers implementation of topology here: http://dev.openlayers.org/sandbox/bjornharrtell/eventbasedtopology2/examples/topology.html



Only top voted, non community-wiki answers of a minimum length are eligible