[gdal-dev] Transformation from WGS84 to Cape Datum

Wesley Roberts wroberts at csir.co.za
Tue Feb 3 08:54:56 EST 2009


Dear list

I have a shapefile with the following projection, see below (using 'ogrinfo -al Richmond_compartments_WGS84.shp')

I would like to perform a datum transformation from WGS84 to the Cape Datum using the clark 1880 spheroid. Is this possible using ogr? I have tried using ogr2ogr but have had no luck as I am not sure how to specify the correct projection parameters and am not sure if ogr supports the Cape Datum and clark 1880 spheroid. 

One error I receive is that the program fails to initialise PROJ.4. I have installed PROJ.4 prior to my grass instillation so it should be there.

Could someone point me towards a tutorial or help file describing the supported datums and spheroids or give an example of the syntax used.

Many thanks,
Wesley



**********************************************************************************************************************************************
INFO: Open of `Richmond_compartments_WGS84.shp'
      using driver `ESRI Shapefile' successful.

Layer name: Richmond_compartments_WGS84
Geometry: Polygon
Feature Count: 2798
Extent: (-101046.795901, -3391548.960746) - (-58458.688098, -3267168.091898)
Layer SRS WKT:
PROJCS["STMLO31",
    GEOGCS["WGS84",
        DATUM["WGS84",
            SPHEROID["WGS84",6378137.0,298.257223599998]],
        PRIMEM["Greenwich",0.0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["False_Easting",0.0],
    PARAMETER["False_Northing",0.0],
    PARAMETER["Central_Meridian",31.0],
    PARAMETER["Scale_Factor",-1.0],
    PARAMETER["Latitude_of_Origin",0.0],
    UNIT["Meter",1.0]]
**********************************************************************************************************************************************








-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.



More information about the gdal-dev mailing list