[gdal-dev] WFS-T using OGR
Even Rouault
even.rouault at spatialys.com
Tue Jan 31 07:34:54 PST 2017
On mardi 31 janvier 2017 15:29:53 CET Ahmed Tolba wrote:
> Hi Evan,
>
> I have tried to debug,
> poFeatureDefn->GetFieldIndex("gml_id") == 0;
> This returns -1
>
> What does this mean ?
That there's no gml_id field found. Which is expected if you indeed use JSON ouput.
Only GML output can generate a fid / gml_id. And this fid / gml_id is required for WFS-T.
Bottom line: remove &outputFormat=JSON
>
>
> From: Even Rouault [mailto:even.rouault at spatialys.com]
> Sent: Tuesday, January 31, 2017 3:45 PM
> To: Ahmed Tolba
> Cc: gdal-dev at lists.osgeo.org
> Subject: Re: [gdal-dev] WFS-T using OGR
>
> On mardi 31 janvier 2017 14:15:38 CET Ahmed Tolba wrote:
> > Can you please try with that server ?
> >
> > WFS:http://192.168.139.128/cgi-bin/tinyows.exe?SERVICE=WFS&VERSION=1.1.0&o
> > ut
> >
> > putFormat=JSON
>
> This is a non public URL. And outputFormat=JSON could actually be the cause
> for issues. You should try with default GML output.
> > 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<mailto: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
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170131/2ea6088a/attachment.html>
More information about the gdal-dev
mailing list