[Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems
Alex Mandel
tech_dev at wildintellect.com
Wed Apr 20 09:05:05 PDT 2016
On 04/20/2016 09:02 AM, Even Rouault wrote:
> Le mercredi 20 avril 2016 17:37:21, Tom Chadwin a écrit :
>> 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?
>>
>>
>
> 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?
Thanks,
Alex
More information about the Qgis-developer
mailing list