[mapserver-users] creating new feature via tinyows and WFS-T
Rahkonen Jukka (Tike)
jukka.rahkonen at mmmtike.fi
Sun Aug 3 14:39:36 PDT 2014
Hi,
For comparison, here is a full successful request which is created by Kosmo GIS (for my mind the best open source GIS client for WFS that exists).
POST /cgi-bin/tinyows HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/3.0-beta1
Host: hip.latuviitta.org
Connection: Keep-Alive
Content-Length: 956
Content-Type: text/xml; charset=utf-8
<?xml version='1.0' encoding='UTF-8'?><wfs:Transaction version="1.0.0" service="WFS" xmlns:lv="http://latuviitta.fi/" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd http://hip.latuviitta.org/cgi-bin/tinyows?SERVICE=WFS&REQUEST=DescribeFeatureType&version=1.0.0&TYPENAME=lv:editable_points&NAMESPACE=xmlns(lv=http://latuviitta.fi/) http://latuviitta.fi/"><wfs:Insert handle="insert1" idgen="GenerateNew"><lv:editable_points xmlns:lv="http://latuviitta.fi/"><lv:geom><gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:3067"> <gml:coordinates>247061.006,7090329.492 </gml:coordinates></gml:Point></lv:geom></lv:editable_points></wfs:Insert></wfs:Transaction>
-Jukka Rahkonen-
________________________________________
Lähettäjä: Jachym Cepicky [jachym.cepicky at gmail.com]
Lähetetty: 3. elokuuta 2014 18:15
Vastaanottaja: Rahkonen Jukka (Tike)
Kopio: mapserver-users at lists.osgeo.org
Aihe: Re: [mapserver-users] creating new feature via tinyows and WFS-T
IMHO, it's ok (at first sight): "feature:" is namespace (refering to
http://tinyows.org/), the first element is refering to layer name
("stavebniobjekty"), the second one to attribute which holds the
geometry (aka "originalnihranice")
j
2014-08-03 16:37 GMT+02:00 Rahkonen Jukka (Tike) <jukka.rahkonen at mmmtike.fi>:
> I wonder if it is OK to have two "feature" elements nested in Insert.
>
> -Jukka Rahkonen-
> ________________________________
> Lähettäjä: Jachym Cepicky
> Lähetetty: 3.8.2014 16:24
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] creating new feature via tinyows and WFS-T
>
> Hi,
>
> I would like to create new feature (using OpenLayers 2, WFS-T) client,
> but tinyows is refusing:
>
> The request can be seen at http://pastebin.com/eaXSjfgd
>
> The response is
>
> <ows:Exception exceptionCode='MissingParameterValue' locator='request'>
> <ows:ExceptionText>QUERY_STRING contains forbidden
> characters</ows:ExceptionText>
> </ows:Exception>
>
>
> Any hint, what could possible go wrong?
>
> Maybe missing attributes? I'm dealing just with geometry, but still ...
>
> Thanks
>
> Jachym
>
> --
> Jachym Cepicky
> e-mail: jachym.cepicky gmail com
> URL: http://les-ejk.cz
> GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
>
> Give your code freedom with PyWPS - http://pywps.wald.intevation.org
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
Give your code freedom with PyWPS - http://pywps.wald.intevation.org
More information about the MapServer-users
mailing list