ua-snap / geospatial-vector-veracity

Veracious geospatial vector data for use in SNAP tools.
MIT License
2 stars 0 forks source link

Convert yt_protected_areas to UTF-8 and fix YTPA10 character issue #122

Closed cstephen closed 1 week ago

cstephen commented 1 week ago

While working on inclusion of the additional Yukon Territory polygons into the Data API & NCR, I noticed that the first character of YTPA10 had a character encoding issue:

?útsäw Wetland Habitat Protection Area

I tried to fix the first character, but it got mangled again when I saved & reopened the shapefile. I converted the shapefile to use UTF-8 character encoding, then fixed the first character and saved the file again, and that fixed it:

Łútsäw Wetland Habitat Protection Area

To see the difference, open yt_protected_areas.shp in QGIS, right click the layer name on the left and select "Open Attribute Table" to verify that the YTPA10 place name looks correct.

I also verified that the corrected place name survives when I use create_updated_ncr_shapefiles.py to bundle all of the areas into all_areas.shp and use this file with the API.