[Talk-ca] ogr2osm problems

Sam Dyck samueldyck at gmail.com
Tue Feb 7 01:35:59 GMT 2012


That works, thanks.

It does leave me with french names like "Rserve de parc du
Lac-Chitek," but that's easy to fix.

Sam

On 2/6/12, Tyler Gunn <tyler at egunn.com> wrote:
> I haven't run into this before myself, but I suspect that the
> character encoding for the boundaries files you're dealing with must
> be something other than UTF-8.  The french characters are likely
> causing issues.  Try opening up the file in Quantum GIS as a vector
> layer, and then do a "Save as" for that layer.  Ensure you choose
> UTF-8 when you save the layer.
>
> Tyler
>
> On Mon, Feb 6, 2012 at 11:50 AM, Sam Dyck <samueldyck at gmail.com> wrote:
>> Hi
>>
>> I've been working with ogr2osm to convert shapefiles from MLI to
>> replace Sam Vekemans' Geobase imports of out of date provincial park
>> boundaries. Running the script gives me this error.
>> "Traceback (most recent call last):
>>  File "ogr2osm/ogr2osm.py", line 783, in <module>
>>    w.element("tag", k=tagKey.decode("utf-8"), v=tagValue.decode("utf-8"))
>>  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
>>    return codecs.utf_8_decode(input, errors, True)
>> UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 1:
>> invalid continuation byte"
>>
>> JOSM gave me an error when I tried to open the file, I opened the file
>> in nano and found some tags not closed. Attempted to clean up the
>> file, but JOSM told me that file had no data. The shapefile itself is
>> fine, any ideas?
>>
>> _______________________________________________
>> Talk-ca mailing list
>> Talk-ca at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk-ca
>



More information about the Talk-ca mailing list