[gdal-dev] Georeference vector data with OGR
Even Rouault
even.rouault at mines-paris.org
Wed Nov 28 15:07:26 PST 2012
Le mercredi 28 novembre 2012 20:33:47, deb a écrit :
> 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.
If you use GDAL trunk (latest revision r25263 from a few minutes ago that will
be reflected in the -development packages of http://www.gisinternals.com/sdk/
in a few hours), a -gcp option has been added to ogr2ogr. See
http://trac.osgeo.org/gdal/ticket/4604
>
> Thanks
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list