On 11-01-26 08:33 AM, morabit wrote:
Hi All, In our project we have to support the loading of tiff images that will be geo-referenced by means of external companion files containing the affine geo transformation and projection information (WKT). We have tested that GDAL supports external geo-transform using .tfw files, but we are not able to load WKT info included in companion .proj or .wkt files. Does GDAL support this kind of feature? Perhaps it supports this feature using some other format (aux.xml)? In case of positive answer, what is the right way to accomplish this?
Bruno, Yes, it should be possible to embed a coordinate system in an .aux.xml file and have GDAL utilize it transparently for GeoTIFF files. I have attached an example .aux.xml file with a coordinate system and geotransform in it. Note that the coordinate system is in WKT, but with XML encoding of special characters like quotes. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent
<PAMDataset> <SRS>PROJCS["NAD27 / UTM zone 11N",GEOGCS["NAD27",DATUM["North_American_Datum_1927",SPHEROID["Clarke 1866",6378206.4,294.9786982139006,AUTHORITY["EPSG","7008"]],AUTHORITY["EPSG","6267"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4267"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-117],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","26711"]]</SRS> <GeoTransform> 4.4072000000000000e+05, 6.0000000000000000e+01, 0.0000000000000000e+00, 3.7513200000000000e+06, 0.0000000000000000e+00, -6.0000000000000000e+01</GeoTransform> </PAMDataset>
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev