[Geomoose-users] Vector editing with WFS-T
Jeff McKenna
jmckenna at gatewaygeomatics.com
Sun Mar 13 11:25:24 PDT 2016
Hi Brent,
In my debugging while setting up this demo, I made sure to examine the
full WFS request sent (the example request you gave wasn't the full
request, I think you clicked on the wrong tab in developer tools, likely
the "Preview" tab by mistake; instead, in your network tab, click on the
'tinyows.exe' request, which you already did, but look at the bottom of
the 'Headers' tab, there you can see the full request sent, such as:
<wfs:Transaction xmlns:wfs="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 http://www.tinyows.org/
http://127.0.0.1/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:frida"><wfs:Insert><feature:frida
xmlns:feature="http://www.tinyows.org/"><feature:geom><gml:MultiSurface
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:31467"><gml:surfaceMember><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>3442019.5
5793338.125 3443987.5 5793362.125 3443147.5 5792762.125 3442475.5
5792978.125 3441323.5 5792570.125 3441155.5 5793386.125 3442019.5
5793338.125</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></feature:geom></feature:frida></wfs:Insert></wfs:Transaction>
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2016-03-11 5:30 PM, Brent Fraser wrote:
> Jim,
>
> Yes I found that as I worked though the demo (don't mix "localhost"
> and "127.0.0.1" in the URLs!).
>
> I found some code commented out in Geomoose's Vector.js (line 95) and
> un-commented it:
>
> /** call save after any changes have occured **/
> this._ol_layer.events.register('featureadded', this, this.save);
> this._ol_layer.events.register('featureremoved', this, this.save);
> this._ol_layer.events.register('afterfeaturemodified', this, this.save);
>
> Now in the network traffic I see a bunch of :
>
> Parameter:
> <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
> version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
>
> Response:
> <ows:ExceptionReport
> xmlns='http://www.opengis.net/ows'
> xmlns:ows='http://www.opengis.net/ows'
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
> xsi:schemaLocation='http://www.opengis.net/ows
> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'
> version='1.1.0' language='en'>
> <ows:Exception exceptionCode='InvalidParameterValue'
> locator='Transaction'>
> <ows:ExceptionText>Operation parameter must be set</ows:ExceptionText>
> </ows:Exception>
> </ows:ExceptionReport>
>
> on the load of the layer.
>
> But if I do some attribute editing, and click "Save Changes", there
> is no network traffic (I'd expect OpenLayers to do a TinyOSW URL with an
> Update or something).
>
>
> Best Regards,
> Brent Fraser
>
More information about the Geomoose-users
mailing list