[Gdal-dev] Old style ESRI prj files

Ari Jolma ari.jolma at tkk.fi
Wed Nov 14 15:59:54 EST 2007


Frank Warmerdam kirjoitti:
> This is an example of old style .prj:
> Projection    TRANSVERSE
> Datum         GDA94
> Spheroid      GRS80
> Units         METERS
> Zunits        NO
> Xshift        0.0
> Yshift        0.0
> Parameters
> 0.9996 /* scale factor at central meridian
>  147  0  0.0 /* longitude of central meridian
>    0  0  0.0 /* latitude of origin
> 500000.0 /* false easting (meters)
> 10000000.0 /* false northing (meters)

ok, this works:

use Geo::GDAL;

@proj = (
     'Projection    TRANSVERSE',
     'Datum         GDA94',
     'Spheroid      GRS80',
     'Units         METERS',
     'Zunits        NO',
     'Xshift        0.0',
     'Yshift        0.0',
     'Parameters',
     '0.9996 /* scale factor at central meridian',
     ' 147  0  0.0 /* longitude of central meridian',
     '   0  0  0.0 /* latitude of origin',
     '500000.0 /* false easting (meters)',
     '10000000.0 /* false northing (meters)');

$a = Geo::OSR::SpatialReference->new();
$a->ImportFromESRI(\@proj);

Ari





More information about the gdal-dev mailing list