[gdal-dev] Georeference vector data with OGR

deb otrov at hush.ai
Wed Nov 28 11:33:47 PST 2012


Hi,

I asked this question on stackexchange: http://gis.stackexchange.com/questions/42421/dxf-to-georeferenced-shp but did not receive acceptable answer.
I also visited irc channel, but there is no activity.

So I thought to join this mailing list and ask my question.

Sounds desperate, right?
Well, it's not desperate, it's personal project and I'm in my way of learning GIS tools and approaches.

My problem is this: I have vector file in DXF format, which is not georefenced and I want to convert it to SHP and georeference it, without using GUI software with control points matching.

Vector file has bound box, and inside some topological lines that I traced from georefenced TIFF. I know the projection, and I know coordinates or the bound box. I guess that's enough information to do georefencing, but ogr2ogr tool does not allow it. For example with gdal_translate I can georeference TIFF with "-a_ullr" switch, but ogr2ogr does not have such function.

Can you give me some advice how to approach this problem?
I thought to use ogr2ogr and export to geojson or some xml format, then make script which will do shift and linear interpolation, but it doesn't look like good way to me, and I hope I get better advice.

Thanks



More information about the gdal-dev mailing list