[mapserver-users] GeoJSON OGR output with WFS data type issue
Kralidis,Tom [Ontario]
Tom.Kralidis at ec.gc.ca
Thu Apr 11 14:49:00 PDT 2013
> -----Original Message-----
> From: Even Rouault [mailto:even.rouault at mines-paris.org]
> Sent: Thursday, April 11, 2013 15:33
> To: mapserver-users at lists.osgeo.org
> Cc: Kralidis,Tom [Ontario]
> Subject: Re: [mapserver-users] GeoJSON OGR output with WFS data type
> issue
>
>
> > Any suggestions are valued.
>
> Try the attached patch (only compile tested by me).
>
> I'm unsure if null values are well represented by empty strings by
MapServer
> in the shape->values array, but I think so from my quick inspection of
the
> code (that's maybe unfortunate that there's no distinction between
> unset/null
> fields and empty strings)
>
> Ultimately OGR_F_SetFieldString could ignore empty string passed for
> setting
> numeric fields, but that's probably the job of the client to *not*
call
> SetFieldString when it doesn't intent to set a value.
>
Even: thanks for this. Works as expected.
Thanks
..Tom
More information about the MapServer-users
mailing list