[gdal-dev] gdal_translate for Lambert Conformal Conical

Paul Spencer pagameba at gmail.com
Thu Jun 26 15:38:20 EDT 2008


Gen,

is your png file already in the lcc projection and you are just trying  
to assign the projection to it?

Your first proj string looks suspicious to me, I suspect 90w should be  
-90 and 25n should be just 25

Your second proj string should use lower case 'epsg' - this is because  
epsg is actually the name of a proj dictionary and 9801 is the value  
to look up in that dictionary - the dictionary is in lower case and  
this is important on linux systems.

Cheers

Paul

On 26-Jun-08, at 1:17 PM, gen wrote:

> Hello,
>
> I'm trying to create a geotiff file from PNG map file which uses
> Lambert Conformal Conical coordinate system, and hitting a road block.
>
> $ gdal_translate -of GTiff -co INTERLEAVE=PIXEL -a_ullr 41.5569
> -121.9248 32.9250 -112.9434 -a_srs '+proj=llc +lon0=90w +lat_0=25n
> +lat_1=25n' test.png dest.tif
> Failed to process SRS definition: +proj=llc +lon0=90w +lat_0=25n
> +lat_1=25n
>
> $ gdal_translate -of GTiff -co INTERLEAVE=PIXEL -a_ullr 41.5569
> -121.9248 32.9250 -112.9434 -a_srs EPSG:9801 test.png dest.tif
> ERROR 6: EPSG PCS/GCS code 9801 not found in EPSG support files.  Is
> this a valid
> EPSG coordinate system?
> Failed to process SRS definition: EPSG:9801
>
> Any idea what I am missing?
>
> I downloaded gdal as part of FWTools package http://fwtools.maptools.org/
>
> Thanks in advance,
> -Gen
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list