ngageoint / hootenanny

Hootenanny conflates multiple maps into a single seamless map.
GNU General Public License v3.0
353 stars 74 forks source link

Shapefile export doesn't maintain foreign characters #64

Closed jasonsurratt closed 8 years ago

jasonsurratt commented 8 years ago

To recreate:

wget -O tmp/map.osm http://overpass-api.de/api/map?bbox=37.62272,55.75319,37.62742,55.75609
hoot osm2ogr translations/TDSv61.js tmp/map.osm tmp/tds6.shp

Then open in QGis and look at the ZI005_FNA column. There are a bunch of question marks where there should by Cyrillic characters.

jasonsurratt commented 8 years ago

By setting the "ENCODING" to "UTF-8" in OGR it appears to be loading properly in QGIS. I've emailed sample Shapefiles & GDB to @mattjdnv for validation in Arc. This fix will only change the Shapefile export.

mattjdnv commented 8 years ago

I have tested the shapefiles and the FGDB in ArcGIS 10.3.1 and the Cyrillic characters are displayed correctly.

jasonsurratt commented 8 years ago

@mattjdnv and Curran verified that the output produces the expected result in Arc.

jasonsurratt commented 8 years ago

@mattjdnv,

Would you mind reviewing/merging this for me? Thanks!

mattjdnv commented 8 years ago

Will do.

mattjdnv commented 8 years ago

Reviewed and merged into develop.

jasonsurratt commented 8 years ago

Thanks!