I know how to set projection and georeference bounds of scanned TIFF file, by using gdal
, but I don't know how to do the same for vector file.
For example I georeferenced TIFF file by using this command:
gdal_translate -of GTiff -a_ullr x1 y1 x2 y2 -a_srs "7041.prj" input.tif output.tif
where 7041.prj is Gauss Kruger projection file.
I used CorelDraw to do the tracing, and both raster and DXF output share same bounds - vector file has boundbox same as raster image used for tracing. I wanted they overlay automatically when loaded in GIS.
For vector file, with ogr2ogr
I can convert DXF to SHP and set projection, but I can't figure how to set georeference bounds as ogr2ogr
doesn't accept -a_ullr
argument, probably for some reason.
So my question is can I somehow set bounds for resulting SHP file?