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

Alex Mandel tech_dev at wildintellect.com
Wed Apr 20 08:59:28 PDT 2016


On 04/20/2016 08:37 AM, Tom Chadwin wrote:
> My system (QGIS 2.14.1 Win7x64):
> 
> { "type": "Feature", "properties": { "ID": "1" }, "geometry": { "type":
> "Point", "coordinates": [ -162.97528075057517, 67.562080385426 ] } }
> 
> Travis (QGIS ?2.8.?, Ubuntu Trusty):
> 
> { "type": "Feature", "properties": { "ID": 1.000000 }, "geometry": { "type":
> "Point", "coordinates": [ -162.975280750575166, 67.562080385426 ] } }
> 
> The ID field in QGIS says it is:
> 
> Type: qlonglong
> Type name: Integer64
> Length: 10
> Precision: 0
> 
> What could cause one system to export as an int delimited by quotes, and the
> other to generate 6 decimal places, but not delimit with quotes?
> 
> 
>

Seems one system (Windows) treated it as a string not a number. Could
this be locale related?

Thanks,
Alex



More information about the Qgis-developer mailing list