[gdal-dev] gdal_translate for Lambert Conformal Conical

Gen Shibayama gshibaya at gmail.com
Thu Jun 26 15:59:35 EDT 2008


Hi Paul,

Thanks for the info. I also found much more stupid mistake (I typo'ed
lcc as llc).

Lowercase epsg didn't work either, but I think that's ok as long as I
have one way to accomplish what I need to do.

Yes, my png file is in the lcc projection, and I just need to add
geotiff information for now. Untimately, I'll further process the file
with gdalwarp and convert it into EPSG 4326 coordinate system, and
overlay the image on Google Earth.

Here is the png file.

http://www.soaringsearch.com/files/test.png

Now I realized another problem. My current command line is as follows.
As you can see from the image, all four corners are on different lats
and longs, but I can specify only Upper Left and Lower Right with
-a_ullr option.

$ gdal_translate -of GTiff -co INTERLEAVE=PIXEL  -a_ullr 41.5569
-121.9248 32.9250 -112.9434 -a_srs '+proj=lcc +lon_0=-95 +lat_1=25
+lat_2=25' test.png dest.tif

Am I doomed?

-Gen

On Thu, Jun 26, 2008 at 12:38 PM, Paul Spencer <pagameba at gmail.com> wrote:
> 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