[gdal-dev] WFS-T using OGR

Ahmed Tolba Ahmed.Tolba at schiebel.net
Fri Jan 27 03:59:05 PST 2017


Here is the schema for insertion, deletion


<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 http://www.tinyows.org/ http://127.0.0.1/cgi-bin/tinyows.exe?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:poi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <wfs:Insert>
    <tows:poi xmlns:tows="http://www.tinyows.org/">
      <tows:global>XXX</tows:global>
      <tows:mission>XXX</tows:mission>
      <tows:type>XXX</tows:type>
      <tows:name>XXX</tows:name>
      <tows:description>XXX</tows:description>
      <tows:geom>
        <gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326">
          <gml:pos>LAT LNG</gml:pos>
        </gml:Point>
      </tows:geom>
      <tows:lat>LAT</tows:lat>
      <tows:lon>LNG</tows:lon>
      <tows:alt></tows:alt>
      <tows:times>XXX</tows:times>
      <tows:category>XXX</tows:category>
      <tows:cog>XXX</tows:cog>
      <tows:decoration>XXX</tows:decoration>
      <tows:distance>XXX</tows:distance>
      <tows:eta>XXX</tows:eta>
      <tows:heading>XXX</tows:heading>
      <tows:icon>XXX</tows:icon>
      <tows:mmsi>XXX</tows:mmsi>
      <tows:slength>XXX</tows:slength>
      <tows:swith>XXX</tows:swith>
      <tows:speed>XXX</tows:speed>
      <tows:tcargo>XXX</tows:tcargo>
      <tows:tship>XXX</tows:tship>
    </tows:poi>
  </wfs:Insert>



From: Even Rouault [mailto:even.rouault at spatialys.com]
Sent: Friday, January 27, 2017 12:22 PM
To: Ahmed Tolba
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] WFS-T using OGR


On vendredi 27 janvier 2017 10:59:21 CET Ahmed Tolba wrote:

> Hi

> Thanks for your answer.

>

> I tried to do what you suggested, but I get " Can not insert the feature,

> because we didn't manage to parse the .XSD schema "



As the message suggests, the OGR WFS client didn't manage to get or correctly parse the schema for the layer. This is a bit surprising as TinyOWS should generate simple enough schemas for OGR to understand them. Difficult to know what happens without being able to reproduce on my side.



Even





--

Spatialys - Geospatial professional services

http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170127/0a37cacb/attachment-0001.html>


More information about the gdal-dev mailing list