On Sat, 26 Jan 2019 at 05:50, Adrien André <[email protected]> wrote: > If GDAL cannot read the .emf file, try using ImageMagick: > convert image.emf my_raster.png
This is a good approach, however you will also need to pay attention to convert's -density and -units options [1] to maintain some sort of meaningful scale between projected meters and whatever resolution is used with the original vector image. Also, you can directly write a .tif file instead of .png to start making a GeoTIFF. > Then, you might try to create a worldfile my_raster.wld (See [0]). > The attached example is for a resolution of 10x10m and if > (Easting,Northing) is for your image upper-left corner. Be aware that a wordfile references the center of the upper-left cell, not the corner. An alternative tool that can directly modify a raster is gdal_edit.py [2], e.g. spatial extent, resolution and CRS. This tool (as well as GDAL) references the corners of cells, as expected. After making a georeferenced raster in a projected CRS (e.g. UTM), then you can create a second raster reprojected in WGS84 using gdalwarp [3], or just allow GIS software to reproject on-the-fly (e.g. QGIS does this nicely). [1] https://imagemagick.org/script/command-line-options.php#density [2] https://www.gdal.org/gdal_edit.html [3] https://www.gdal.org/gdalwarp.html _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
