[OSGeo-Discuss] PROJCS vs LOCAL_CS

Frank Warmerdam warmerdam at pobox.com
Sat Jun 16 11:31:27 PDT 2012


On 12-06-16 09:13 AM, Alexander Drozdov wrote:
> Hi  all!
>
> I have png map file, .pwg World file and .prj file with projection in
> WKT format.
> I try to create GeoTIFF with next command:
>    gdal_translate -of GTiff -a_srs O-50-103-D.prj O-50-103-D.png
> O-50-103-D.tif
>
> but, gdalinfo printf LOCAL_CS coordinate system instead PROJCS, so
> different applications like QLandkarteGT can't open result GeoTiff.
>
> Why coordinate system is LOCAL_CS, but not PROJCS?
>
> My example files in archive:
> http://htrd.su/~hatred/maps/O-50-103-D.tar.gz
>
> testepsg tool say that prj file is correct.

Alexander,

The .prj file looks ok.  When I run your command with gdal trunk
I get a TIFF file with the following gdalinfo report:

Coordinate System is:
PROJCS["unnamed",
     GEOGCS["Krassovsky, 1942",
         DATUM["unknown",
             SPHEROID["krass",6378245,298.3],
             TOWGS84[23.9,-141.3,-80.9,0,-0.37,-0.85,-0.12]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433]],
     PROJECTION["Transverse_Mercator"],
     PARAMETER["latitude_of_origin",0],
     PARAMETER["central_meridian",117],
     PARAMETER["scale_factor",1],
     PARAMETER["false_easting",20500000],
     PARAMETER["false_northing",0],
     UNIT["metre",1,
         AUTHORITY["EPSG","9001"]]]
GeoTransform =
   20513343.29170791, 4.59598418645, -9.994925266010001e-13
   6338767.084816154, 1.43747239781e-12, -4.58751230964

I'm not clear on why you are running into problems.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush    | Geospatial Software Developer




More information about the Discuss mailing list