[Live-demo] [OSGeo] #1233: TinyOWS quickstart failure
OSGeo
trac_osgeo at osgeo.org
Thu Feb 25 05:36:41 PST 2016
#1233: TinyOWS quickstart failure
--------------------------------------+---------------------------
Reporter: hamish | Owner: live-demo@…
Type: defect | Status: new
Priority: critical | Milestone: OSGeoLive9.5
Component: LiveDVD | Resolution:
Keywords: tinyows, pgrouting, qgis |
--------------------------------------+---------------------------
Changes (by kalxas):
* keywords: tinyows, pgrouting => tinyows, pgrouting, qgis
Comment:
Had the chance to look deeper in this issue today with help from Olivier,
Even and Bruno, from both TinyOWS and QGIS sides.
There seem to be different issues with creating new features and modifying
existing ones:
1. Modifying an existing feature on pgrouting "ways" table leads to an
empty WFS-T request from the QGIS side:
{{{
(apache error log)
[Thu Feb 25 11:41:24 2016] [QUERY] <Transaction
xmlns="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001
/XMLSchema-instance" version="1.0.0" service="WFS"
xsi:schemaLocation="http://www.tinyows.org/ http://localhost/cgi-
bin/tinyows?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=tows:ways&SRSNAME=EPSG:4326"
xmlns:gml="http://www.opengis.net/gml"
xmlns:tows="http://www.tinyows.org/"/>
}}}
2. Creating a new feature on "ways" table leads to a non-empty request
that fails to validate properly:
{{{
[Thu Feb 25 11:43:43 2016] [QUERY] <Transaction
xmlns="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001
/XMLSchema-instance" version="1.0.0" service="WFS"
xsi:schemaLocation="http://www.tinyows.org/ http://localhost/cgi-
bin/tinyows?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=tows:ways&SRSNAME=EPSG:4326"
xmlns:gml="http://www.opengis.net/gml"
xmlns:tows="http://www.tinyows.org/"><Insert
xmlns="http://www.opengis.net/wfs"><ways
xmlns="http://www.tinyows.org/"><gid
xmlns="http://www.tinyows.org/">767867</gid><the_geom
xmlns="http://www.tinyows.org/"><gml:LineString
srsName="EPSG:4326"><gml:coordinates cs="," ts="
">-122.32138113889824638,37.55778686663296639
-122.32125577770811731,37.55769052423684684
-122.32140203242992982,37.55756748455024763</gml:coordinates></gml:LineString></the_geom></ways></Insert></Transaction>
}}}
and the following validation error:
{{{
[Thu Feb 25 11:43:43 2016] [EVENT] == TINYOWS STARTUP ==
[Thu Feb 25 11:43:43 2016] [EVENT] == Connection PostGIS ==
[Thu Feb 25 11:43:44 2016] [EVENT] == Filling Storage ==
[Thu Feb 25 11:43:44 2016] [EVENT] == FCGI START ==
[Thu Feb 25 11:43:44 2016] [QUERY]
service=WFS&request=DescribeFeatureType&version=1.0.0
[Thu Feb 25 11:43:44 2016] [EVENT] == FCGI SHUTDOWN ==
[Thu Feb 25 11:43:44 2016] [EVENT] == TINYOWS SHUTDOWN ==
[Thu Feb 25 11:43:44 2016] [ERROR] Element
'{http://www.w3.org/2001/XMLSchema}import': Skipping import of schema
located at 'http://schemas.opengis.net/gml/2.1.2/feature.xsd' for the
namespace 'http://www.opengis.net/gml', since this namespace was already
imported with the schema located at
'/usr/share/tinyows/schema/gml/2.1.2/feature.xsd'.
[Thu Feb 25 11:43:44 2016] [ERROR] Element
'{http://www.tinyows.org/}the_geom': This element is not expected.
Expected is ( {http://www.tinyows.org/}class_id ).
[Thu Feb 25 11:43:44 2016] [ERROR] XML request isn't valid
}}}
We might need to consider using another WFS client (OpenLayers?) to
demonstrate WFS-T until the above issues are addressed.
--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/1233#comment:18>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.
More information about the Osgeolive
mailing list