shapefile - Converting coordinates from SVY21 to WGS84 -


i trying transform svy21 coordinates have wgs84 coordinate system.

i tried using gdal software , pasted following command after installing: ogr2ogr -f geojson –t_srs wgs84 <jsonfilename>.json <shapefile>.shp

it results in failure:

unable open datasource 'wgs84' following drivers

and drivers listed.

also tried use python utm package convert n48 utm coordinate wgs48, did not manage convert svy21 coordinates n48 utm reference point.

i found proposed solution in old post confusing in terms of terminology , prefer using existing solution.

is there "easy" solution makes use of previous approaches or applicable problem? happy if provide me more precise explanation of approach featured in older post.

thanks in advance.

edit: tried writing python script implements vicenty direct calculation "old post" mentioned before. help, if confirm substracting false coordinates of projection origin (28001.642me,38744.572mn) raw svy21 (e,n) , using projection origin (unmarked point) (103° 50' 00", 1° 22' 00") correct.

i compiling gdal hand , use following command wanted:

  1. you have copy *.shp (and *.shx) files beside ogr2ogr-command (source: https://gis.stackexchange.com/questions/56652/how-to-move-and-open-shapefiles-with-ogr2ogr)

  2. gdal not know "epsg:3414" - epsg name scy21, give hint, in [install location]/data (i dont know on installed version, not on windows. search file called "gcs.csv", , point gdal_location containing folder.

  3. define t_srs , s_srs eccordingly

  4. define output format ("geojson")

summa summarum:

gdal_data="../data" ./ogr2ogr -f "geojson" "lanemarking_wgs84.json" "lanemarking.shp" -t_srs wgs84 -s_srs "epsg:3414" 

have fun :)


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -