| 952 | | These have come originally from [http://gadm.org GADM] but with their L1 removed (so we use their L2 as our L1, etc) |
| 953 | | * GADM file has terrible problems with place names: at least 3 different encodings! |
| 954 | | * These have mostly been resolved & the file contains place names with no diacritics (to make it easier for non-Vietnamese to search for such places) as well as Vi name_l10n |
| 955 | | * Many updated boundaries from http://gis.chinhphu.vn by selecting the place & then using this JS: |
| 956 | | {{{ |
| 957 | | points = plHighlight[0].latlngs[0]; |
| 958 | | output = 'POLYGON (('; |
| 959 | | for (var i=0; i < points.length; i++) { |
| 960 | | p = points[i]; |
| 961 | | output += p.longitude; |
| 962 | | output += ' '; |
| 963 | | output += p.latitude; |
| 964 | | output += ','; |
| 965 | | } |
| 966 | | output = output.slice(0, -1); |
| 967 | | output += '))'; |
| 968 | | }}} |
| 969 | | or |
| 970 | | {{{ |
| 971 | | output = 'MULTIPOLYGON ((('; |
| 972 | | points = plHighlight[0].latlngs[0]; |
| 973 | | for (var i=0; i < points.length; i++) { |
| 974 | | p = points[i]; |
| 975 | | output += p.longitude; |
| 976 | | output += ' '; |
| 977 | | output += p.latitude; |
| 978 | | output += ','; |
| 979 | | } |
| 980 | | output = output.slice(0, -1); // Strip comma |
| 981 | | output += ')),(('; |
| 982 | | points = plHighlight[1].latlngs[0]; |
| 983 | | for (var i=0; i < points.length; i++) { |
| 984 | | p = points[i]; |
| 985 | | output += p.longitude; |
| 986 | | output += ' '; |
| 987 | | output += p.latitude; |
| 988 | | output += ','; |
| 989 | | } |
| 990 | | output = output.slice(0, -1); // Strip comma |
| 991 | | output += ')))'; |
| 992 | | }}} |
| 993 | | & then converted to WGS84 using: |
| 994 | | {{{ |
| 995 | | ogr2ogr -f CSV CSV VN2000 Polygons.csv -s_srs EPSG:3405 -t_srs EPSG:4326 -lco GEOMETRY=AS_WKT |
| 996 | | }}} |
| | 952 | These have come from Viet Nam Red Cross. |