planetfederal / qgis-webappbuilder-plugin

GNU General Public License v3.0
18 stars 20 forks source link

wfs-t editing broken #367

Closed gioman closed 7 years ago

gioman commented 7 years ago

Used the same endpoint that weeks ago allowed me to successfully test wfs-t editing.

Possibly related to

https://github.com/boundlessgeo/qgis-webappbuilder-plugin/issues/366

the behavior with a WFS-T in the webapp is similar (WFS-T rowks just fine in QGIS as client).

bartvde commented 7 years ago

I can reproduce, no clue though as yet why

bartvde commented 7 years ago

argh now I remember what causes this, a recent change actually

https://github.com/boundlessgeo/sdk/pull/497

bartvde commented 7 years ago

Reverted that one, so fixed now in SDK master

gioman commented 7 years ago

after finishing the edit of a wfs-T layer in the webapp the new feature does not show. It seems that is really not saved as also on QGIS (as client) does not show. Editing in QGIS works fine.

bartvde commented 7 years ago

ok I will check again I was looking with a read-only WFS only in my case

bartvde commented 7 years ago

okay I'm having issues as well even though the transaction comes back with success

bartvde commented 7 years ago

seems the geometry is null, wonder if this is because I'm inserting a Polygon instead of a MultiPolygon

bartvde commented 7 years ago

``{"type":"Feature","id":"states.51","geometry":null,"geometry_name":"the_geom","properties":{"STATE_NAME":"foo","STATE_FIPS":null,"SUB_REGION":null,"STATE_ABBR":"FO","LAND_KM":null,"WATER_KM":null,"PERSONS":null,"FAMILIES":null,"HOUSHOLD":null,"MALE":null,"FEMALE":null,"WORKERS":null,"DRVALONE":null,"CARPOOL":null,"PUBTRANS":null,"EMPLOYED":null,"UNEMPLOY":null,"SERVICE":null,"MANUAL":null,"P_MALE":null,"P_FEMALE":null,"SAMP_POP":null}}]```

bartvde commented 7 years ago

no it seems the geometry name is not correct:


<Transaction xmlns="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"><Insert><states xmlns="http://www.openplans.org/topp"><geometry><Polygon xmlns="http://www.opengis.net/gml" srsName="EPSG:3857"><exterior><LinearRing srsName="EPSG:3857"><posList>-10175297.205322662 3248267.9540068507 -10097025.688358642 3013453.403114789 -9744803.86202055 2974317.644632779 -9470853.552646479 3600489.7803449426 -10175297.205322662 3248267.9540068507</posList></LinearRing></exterior></Polygon></geometry><STATE_NAME>foo</STATE_NAME><STATE_ABBR>FOO</STATE_ABBR></states></Insert></Transaction>```
bartvde commented 7 years ago

two issues here:

gioman commented 7 years ago

@bartvde confirmed. Thanks!