Re: [gdal-dev] Python feature.SetField() fails with unicode strings

2017-07-24 Thread Roger André
Hi Even, Thank you for this information. I'll see about getting the latest version of GDAL installed on my system. I tried using the string.encode('utf-8') workaround and continue to get the same error. Roger On Mon, Jul 24, 2017 at 8:46 AM, Even Rouault wrote: >

Re: [gdal-dev] Python feature.SetField() fails with unicode strings

2017-07-24 Thread Even Rouault
On lundi 24 juillet 2017 08:43:02 CEST Roger André wrote: > Good morning, > > I've been working on a simple script to load GeoJSON into PostGIS. I'm > encountering an error that has me scratching my head, it seems that unicode > strings cannot be used with the feature.SetField() function in

[gdal-dev] Python feature.SetField() fails with unicode strings

2017-07-24 Thread Roger André
Good morning, I've been working on a simple script to load GeoJSON into PostGIS. I'm encountering an error that has me scratching my head, it seems that unicode strings cannot be used with the feature.SetField() function in Python. Is that really true? I've tested this by re-writing the