[Qgis-user] [QGIS-Server] WFS-T

Bernhard Ströbl bernhard.stroebl at jena.de
Mon Feb 4 23:54:45 PST 2019


Hi Jonathan,

thank you for looking into this. Basically I want to run a WFS-T Server 
(QGIS-Server), with any client, but to test the server I used QGIS desktop.
In QGIS desktop I specified the version to be 1.1, no idea why the 
transaction request is sent with version 1.0.0

extract from GetCapabilities:
<ows:ServiceType>WFS</ows:ServiceType><ows:ServiceTypeVersion>1.1.0</ows:ServiceTypeVersion>
...
<ows:Operation name="Transaction">
...
<FeatureType>
   <Name>projekt_pt</Name>
   <Title>projekt_pt</Title>
   <DefaultSRS>EPSG:25832</DefaultSRS>
   <OtherSRS>EPSG:3857</OtherSRS>
   <Operations>
     <Operation>Query</Operation>
     <Operation>Insert</Operation>
   </Operations>

So for me the question is: Does the client (QGIS desktop) generally work 
with a QGIS WFS-T Server? If yes why is it not working with my QGIS 
WFS-T Server?

Bernhard

Am 04.02.2019 um 18:36 schrieb Jonathan Moules:
> Hi,
> 
> Well, taking the error at face value, it seems to be complaining that 
> you have:
> /REQUEST=Transaction/
> 
> in the URL. Which is odd because that's exactly what it should be 
> (looking at the 1.0.0 spec).
> 
> But at the bottom of your error, it says:
> 
> 10:15:17 WARNING [9148]: Service WFS 1.0.0 not found, returning default
> 
> So I'd suggest that QGIS Server doesn't support transactions for WFS 
> 1.0.0 (Transactions support is Optional). Except the QGIS docs say they 
> do support Transaction: 
> https://docs.qgis.org/2.8/en/docs/user_manual/working_with_ogc/ogc_server_support.html 
> - and WFS 1.0.0 seems to be the only version supported by QGIS so... are 
> the errors misleading? (I can't seem to readily find that page for QGIS 
> 3.4).
> 
> The GetCapabilities of the server will tell you if it supports Transaction.
> 
> Maybe someone who knows QGIS Server (I'm just basing this reply off the 
> spec and your error) can comment.
> 
> Cheers,
> 
> Jonathan
> 
> 
> On 2019-02-01 09:57, Bernhard Ströbl wrote:
>> Hi all,
>>
>> I try to make an INSERT to QGIS-Server using WFS-T. But every insert 
>> fails with the server returning "Please check the value of the REQUEST 
>> parameter"
>>
>> This is the QGIS-server log output (anonymised):
>>
>> 10:15:17 INFO Server[9148]: ******************** New request 
>> ***************
>> 10:15:17 INFO Server[9148]: SERVER_NAME***
>> 10:15:17 INFO Server[9148]: REQUEST_URI/wms/pmt?SERVICE=WFS
>> 10:15:17 INFO Server[9148]: REMOTE_ADDR10.***.***.**
>> 10:15:17 INFO Server[9148]: CONTENT_TYPEtext/xml
>> 10:15:17 INFO Server[9148]: HTTP_USER_AGENTMozilla/5.0 QGIS/3.4.3-Madeira
>> 10:15:17 INFO Server[9148]: MAP:/var/www/wms/karten/pmt.qgs
>> 10:15:17 INFO Server[9148]: REQUEST:Transaction
>> 10:15:17 INFO Server[9148]: REQUEST_BODY:<Transaction 
>> xmlns="http://www.opengis.net/wfs" version="1.0.0" service="WFS" 
>> xsi:schemaLocation="http://www.qgis.org/gml 
>> https://pmt-map.jena.de:443/wms/pmt?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=1.0.0&TYPENAME=projekt_pt" 
>> xmlns:gml="http://www.opengis.net/gml" 
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Insert 
>> xmlns="http://www.opengis.net/wfs"><projekt_pt 
>> xmlns="http://www.qgis.org/gml"><geometry 
>> xmlns="http://www.qgis.org/gml"><gml:Point 
>> srsName="EPSG:25832"><gml:coordinates ts=" " 
>> cs=",">681077.95823665894567966,5643649.18793503474444151</gml:coordinates></gml:Point></geometry></projekt_pt></Insert></Transaction>
>> 10:15:17 INFO Server[9148]: SCHEMALOCATION:http://www.qgis.org/gml 
>> https://pmt-map.jena.de:443/wms/pmt?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=1.0.0&TYPENAME=projekt_pt 
>>
>> 10:15:17 INFO Server[9148]: SERVICE:WFS
>> 10:15:17 INFO Server[9148]: VERSION:1.0.0
>> 10:15:17 WARNING [9148]: Service WFS 1.0.0 not found, returning default
>> 10:15:17 INFO Server[9148]: Request finished in 1 ms
>>
>> the apache error log says:
>> QNetworkDiskCache::prepare() unable to open temporary file
>>
>> any help appreciated
>>
>> System: QGIS-Server 3.4.4 on Ubuntu/Apache, WFS-Client QGIS Desktop 3.4.3
>>
>> Bernhard
>>
>>
>> __________ Information from ESET Mail Security, version of virus 
>> signature database 18802 (20190201) __________
>>
>> The message was checked by ESET Mail Security.
>> http://www.eset.com
>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> 
> 
> __________ Information from ESET Mail Security, version of virus 
> signature database 18819 (20190204) __________
> 
> The message was checked by ESET Mail Security.
> http://www.eset.com
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 


__________ Information from ESET Mail Security, version of virus signature database 18822 (20190205) __________

The message was checked by ESET Mail Security.
http://www.eset.com




More information about the Qgis-user mailing list