Hot answers tagged

10 votes

'Read Only' Exception - WFS

For anyone who is having the same issue, this worked for me: In Geoserver, Go to "Data Security" section. Check if writing is allowed to anonymous user for all the workspace (..w), or create a new ...
user avatar
8 votes
Accepted

Getting Transaction Support enabled in WFS on GeoServer (Boundless OpenGeoSuite)?

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 ...
user avatar
  • 1,522
7 votes
Accepted

PostGIS View, WFS-T and Geoserver

While it's possible and common to publish views in GeoServer WFS, the access is limited to read-only usage, you won't be able to edit them. GeoServer normally marks views as read only because it ...
user avatar
  • 15.7k
6 votes

QGIS WFS Error - Could not commit changes to layer

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 ...
user avatar
  • 2,120
6 votes
Accepted

OpenLayers 3.5 WFS-T update to GeoServer 2.7 raises StringIndexOutOfBoundsException

This is because boundedBy / bbox is a property that OpenLayers creates when parsing the GML, it is not a real feature property. So when you update, you should clone the feature and get rid of it. Some ...
user avatar
  • 2,384
6 votes
Accepted

Using wfs-t in OpenLayers 3?

Have a look at my blog for a bit on WFS-T. This uses the OL 3.5 library. https://medium.com/@goldrydigital/wfs-t-with-openlayers-3-16-6fb6a820ac58
user avatar
6 votes
Accepted

Openlayers-3 wfs-t save coordinates displacement?

GeoServer indeed tends to swap coordinates on several occasions when using WFS. I couldn't backtrack this phenomenon to its exact origin, only to this post, where it is assumed, this confusion is ...
user avatar
  • 4,428
6 votes

The layer is not a valid layer and can not be added to the map - QGIS WFS

For debugging going to Menu -> View -> Panels -> Log Messages Panel worked for me. In the error log panel showing up, go to WFS-Tab and check for any error messages. It's not very verbose but ...
user avatar
  • 1,083
6 votes
Accepted

Why would I need to use GeoServer's WFS-T capability while I can directly alter the PostGIS data directly?

when/where and why do I need to use the WFS-T capability of GeoServer? I think the answer to this question of need is of course: never If you think you have a better way of handling edits to ...
user avatar
  • 11.9k
5 votes

How to preserve topology while editing polygons in OpenLayers?

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/...
user avatar
5 votes
Accepted

Make a WFS-T Insert request to geoserver and add non spatial values to the layer

The best place to look for details like this is in the standard. Inserting non spatial attributes is done in exactly the same way as adding spatial attributes. First check the schema of the feature ...
user avatar
  • 75.1k
4 votes

Save Polygons as new Features in geoserver

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-...
user avatar
  • 6,591
4 votes
Accepted

Why don't set Geometry column in OpenLayers wfs-t request to geoserver?

Your Insert request contains an feature that doesn't match your Schema which is expecting the Point attribute to be called the_geom. You don't get an error because you have marked that feature as ...
user avatar
  • 75.1k
4 votes

Available Python client libraries for WFS transactions?

You don't really need any geospatial Python libraries. WFS-T is simply based on http requests. OGR does not support all WFS-T operations e.g no lock support according to official OGR WFS documentation....
user avatar
  • 28.7k
4 votes
Accepted

Inverted lat lon on drawn polygons in Openlayers 3

Make sure that you are using an EPSG code of http://www.opengis.net/gml/srs/epsg.xml#4326 instead of epsg:4326 so that the X/Y lat/Lon mapping is fixed rather than variable as it is with epsg:4326. ...
user avatar
  • 75.1k
4 votes
Accepted

Problem with insert WFS-T for multi polygon layer

Your column is called the_geom, and your WFS request uses geometry. Make sure they match so it needs to be the_geom in your POST XML as well.
user avatar
  • 2,384
4 votes
Accepted

Error on geoserver :{localhost:8080}layername is read only

Here are three general causes of read only layers (cannot remember any other): Lack of primary key (seems you already checked it's not the case) Security (just authenticate as the admin user while ...
user avatar
  • 15.7k
4 votes
Accepted

Leaflet + GeoServer WFST - Inserting Polygons to PostGIS database

When you store geometry in 'Multi' postgis types, geoserver also expects this 'Multi' in transaction query. Leaflet-WFST plugin can create Multi-geometry requests on simple geometries by option '...
user avatar
  • 426
4 votes

Feature Identifiers in WFS

After a bit of digging I found that gml:id is of type xml:ID: For both attributes and simple element content, the lexical domain of these datatypes is the lexical domain of XML nonqualified names (xs:...
user avatar
  • 75.1k
4 votes

Feature Identifiers in WFS

Rules for gml:id come from the GML standard. This is about GML 3.2 7.2.4.5 id The attribute gml:id supports provision of a handle for the XML element representing a GML object. Its use is mandatory ...
user avatar
  • 52.4k
4 votes

Correct WFS transaction response

It's hard to be sure but it looks like QGIS is sending a version 1.0.0 request and you are responding with a version 2.0 response. I would expect QGIS to become confused when you do that. You need to ...
user avatar
  • 75.1k
3 votes

QGIS WFS Error - Could not commit changes to layer

I have the latest Geoserver 2.7.2 and latest Qgis at the time of my writing 2.10.1-Pisa After lot of trial and error and googling this worked for me in geoserver admin global settings add a proxy ...
user avatar
3 votes

GeoServer, OpenLayers and updatable views: unable to edit data of WFS-T feature layer

I know this is kind of an OLD thread, but I have looked for two days for an answer to this same error message about output dimensions needing to be 2 or 3. I think i have found a solution that could ...
user avatar
3 votes
Accepted

Prevent some layers being modified via WFS? - Geoserver

You can use the security subsystem to disallow writes on a specific set of layers: http://geoserver.geo-solutions.it/edu/en/security/layer_level.html http://docs.geoserver.org/stable/en/user/security/...
user avatar
  • 15.7k
3 votes

Failed to update feature through WFS with QGIS

WFS-T and shape is a no: Shapefiles are a very common format for geospatial data. But if you are running GeoServer in a production environment, it is better to use a spatial database such as ...
user avatar
  • 3,511
3 votes
Accepted

Unable to draw in WFS-T

Yay, I solved the problem: I just needed to shorten the namespace at var formatGML = new ol.format.GML({ featureNS: 'http://localhost:8080/geoserver/geolytix', featureType: '...
user avatar
3 votes

Geoserver Error: No Such Feature Type in WFS-T

(Did you allow WFS-t on the geoserver side at first?) Can you try set type name parameter with workspace of wfs feature. $.ajax('http://localhost:8080/geoserver/my_workspace/ows?', { ...
user avatar
3 votes
Accepted

Geoserver WFS Feature Schema Enumeration of Strings

As far as I know, what you're attempting to do is not possible, it would require new code to be written to either: Make the schema configurable via UI (the xml schema snippets are a semi-working ...
user avatar
  • 15.7k
3 votes

How can i use Multiple filter in wfst leaflet?

You should combine using the logic operator AND like below var condition1 = new L.Filter.EQ('city', 'Perm'); var condition2 = new L.Filter.EQ('city', 'Quest'); var combinedCondition = new L.Filter.And(...
user avatar
  • 28.7k
3 votes
Accepted

Manually install WFS-T plugin to implement with Leaflet

Simply use the build version "leaflet-wfst.src.min.js" (I call it from CDN here but you can download it locally. As stated in comment, you must load Leaflet before this script as it requires ...
user avatar
  • 28.7k

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