James, On clumsy alternative is to modify and use the "spatial transformer" script which allows you to apply an arbitrary spatial transformation expressed in Python:
http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/vec_tr.py There is no trivial mechanism for this in GDAL/OGR that I am aware of. Best regards, On Thu, Sep 22, 2011 at 11:20 AM, JamesFinkle <[email protected]> wrote: > Hello, > > Hopefully someone can help me with the issue I'm trying to solve here. I was > given a non-georeferenced scanned map as a raster and told to make > shapefiles for certain features of the map. It was not until I had finished > doing so that I realized that it was not georeferenced. I was able to > georeference the map raster itself through setting an affine transformation > with GDALDataset::SetGeoTransform(...). However, after searching fairly > exhaustively, I cannot find a way to do the same to the shapefiles. > GDALDataset::GetProjectionRef() is supposed to give a wkt that corresponds > to this affine transformation, which I would be able to create a > SpatialReference with to transform the shapefiles, but when invoked, it > gives me an empty string. > > Thanks, > James > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Affine-Transforming-an-OGR-Shape-tp6821393p6821393.html > Sent from the GDAL - Dev mailing list archive at Nabble.com. > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, [email protected] light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Software Developer _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
