[Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems

Jürgen E. Fischer jef at norbit.de
Wed Apr 20 09:17:41 PDT 2016


Hi Alex,

On Wed, 20. Apr 2016 at 09:05:05 -0700, Alex Mandel wrote:
> > Answer is there :-)
> > https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorfilewriter.cpp#L364
 
> Ah so you're saying it's the GDAL version, Windows being 2.0+ and Linux
> being likely 1.11.x?

2.8 didn't have support for writing OFTInteger64 (was added in master 7de0757).
So there it's always OFTString regardless of the GDAL version. Only in master
it different depending on the GDAL version.


Jürgen

PS: except if the source file is also read by OGR and different GDAL versions
    consider the type of the input field differently.

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode                         
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160420/51f3a817/attachment.sig>


More information about the Qgis-developer mailing list