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:[email protected]]
> Sent: Tuesday, January 31, 2017 3:45 PM
> To: Ahmed Tolba
> Cc: [email protected]
> 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:[email protected]]
> >
> > Sent: Friday, January 27, 2017 12:22 PM
> >
> > To: Ahmed Tolba
> >
> > Cc: [email protected]<mailto:[email protected]>
> >
> > 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
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev