3

How can I transform .gml file from EPSG 2178 to EPSG 4326?

I used the following without success:

gdaltransform -s_srs EPSG:2178 -t_srs EPSG:4326 "file1.gml"
  • 2
    did you try ogr2ogr which is known to work on vector files instead of rasters? – Ian Turton Feb 28 '16 at 14:22
2

As the comment suggests above, you should use ogr2ogr as follows:

ogr2ogr -f 'GML' -s_srs epsg:2178 -t_srs epsg:4326 output.gml input.gml 
  • But when I do it , I see this error : Unable to find driver 'GeoJSON''. The following drivers are available: -> FileGDB' -> OCI' -> SOSI' -> ESRI Shapefile' -> MapInfo File' -> UK .NTF' -> SDTS' -> TIGER' -> S57' -> `DGN' – Agnieszka Feb 29 '16 at 22:14
  • When you do ogrinfo --formats do you see: -> "GML" (read/write) (or GeoJSON if that is what you need) ? – dmci Feb 29 '16 at 23:01
  • Yes I see but many others too. – Agnieszka Mar 1 '16 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.