getting GeoTiff Information

  • Follow


Hello all!

I am aware of the 'geotiffinfo' command in Matlab.
http://www.mathworks.de/access/helpdesk/help/toolbox/map/ref/geotiffinfo.html

Do you know of equivalent way of converting geotiff structure to a
readable format using IDL only (without ENVI)?

Thanks a lot for help!

Steve
0
Reply s.mcalister8 (2) 8/16/2010 4:41:05 PM

On Aug 16, 1:41=A0pm, Steve McAlister <s.mcalist...@gmail.com> wrote:
> Hello all!
>
> I am aware of the 'geotiffinfo' command in Matlab.http://www.mathworks.de=
/access/helpdesk/help/toolbox/map/ref/geotiffi...
>
> Do you know of equivalent way of converting geotiff structure to a
> readable format using IDL only (without ENVI)?
>
> Thanks a lot for help!
>
> Steve

Sounds like the geotiff keyword to read_tiff().
0
Reply Paulo 8/16/2010 4:47:34 PM


On Aug 16, 10:47=A0am, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Aug 16, 1:41=A0pm, Steve McAlister <s.mcalist...@gmail.com> wrote:
>
> > Hello all!
>
> > I am aware of the 'geotiffinfo' command in Matlab.http://www.mathworks.=
de/access/helpdesk/help/toolbox/map/ref/geotiffi...
>
> > Do you know of equivalent way of converting geotiff structure to a
> > readable format using IDL only (without ENVI)?
>
> > Thanks a lot for help!
>
> > Steve
>
> Sounds like the geotiff keyword to read_tiff().

Hi Paulo,
geotiff keyword from read_tiff will give me projection information in
structure of GeoTiff like:

   MODELPIXELSCALETAG
                   DOUBLE    Array[3]
   MODELTIEPOINTTAG
                   DOUBLE    Array[6, 1]
   GTMODELTYPEGEOKEY
                   INT              1
   GTRASTERTYPEGEOKEY
                   INT              1
   GEOGLINEARUNITSGEOKEY
                   INT           9001
   GEOGANGULARUNITSGEOKEY
                   INT           9102
   PROJECTEDCSTYPEGEOKEY
                   INT          26713

But, I want something more sensible for users to read like:

                  PCS: 'NAD83 / Massachusetts Mainland'
           Projection: 'SPCS83 Massachusetts Mainland zone (m)'
               MapSys: 'STATE_PLANE_83'
                 Zone: 2001
         CTProjection: 'CT_LambertConfConic_2SP'
             ProjParm: [7x1 double]
           ProjParmId: {7x1 cell}
                  GCS: 'NAD83'
                Datum: 'North American Datum 1983'
            Ellipsoid: 'GRS 1980'
0
Reply Steve 8/16/2010 5:04:04 PM

On Aug 16, 2:04=A0pm, Steve McAlister <s.mcalist...@gmail.com> wrote:
> geotiff keyword from read_tiff will give me projection information in
> structure of GeoTiff like:
>
> =A0 =A0MODELPIXELSCALETAG
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0DOUBLE =A0 =A0Array[3]
> =A0 =A0MODELTIEPOINTTAG
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0DOUBLE =A0 =A0Array[6, 1]
> =A0 =A0GTMODELTYPEGEOKEY
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A0 =A0 =A01
> =A0 =A0GTRASTERTYPEGEOKEY
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A0 =A0 =A01
> =A0 =A0GEOGLINEARUNITSGEOKEY
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A0 9001
> =A0 =A0GEOGANGULARUNITSGEOKEY
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A0 9102
> =A0 =A0PROJECTEDCSTYPEGEOKEY
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A026713
>
> But, I want something more sensible for users to read like:
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PCS: 'NAD83 / Massachusetts Mainland'
> =A0 =A0 =A0 =A0 =A0 =A0Projection: 'SPCS83 Massachusetts Mainland zone (m=
)'
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0MapSys: 'STATE_PLANE_83'
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Zone: 2001
> =A0 =A0 =A0 =A0 =A0CTProjection: 'CT_LambertConfConic_2SP'
> =A0 =A0 =A0 =A0 =A0 =A0 =A0ProjParm: [7x1 double]
> =A0 =A0 =A0 =A0 =A0 =A0ProjParmId: {7x1 cell}
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 GCS: 'NAD83'
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Datum: 'North American Datum 1983'
> =A0 =A0 =A0 =A0 =A0 =A0 Ellipsoid: 'GRS 1980'

Yes, the structure uses the numeric codes. Maybe David's geocoord
(http://www.dfanning.com/documents/programs.html#GEOCOORD) can be
useful in translating them into names.

Also, see

http://www.dfanning.com/map_tips/tiffoverlay.html

0
Reply pp.penteado (366) 8/16/2010 5:22:21 PM

On Aug 16, 11:22=A0am, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Aug 16, 2:04=A0pm, Steve McAlister <s.mcalist...@gmail.com> wrote:
>
>
>
>
>
> > geotiff keyword from read_tiff will give me projection information in
> > structure of GeoTiff like:
>
> > =A0 =A0MODELPIXELSCALETAG
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0DOUBLE =A0 =A0Array[3]
> > =A0 =A0MODELTIEPOINTTAG
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0DOUBLE =A0 =A0Array[6, 1]
> > =A0 =A0GTMODELTYPEGEOKEY
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A0 =A0 =A01
> > =A0 =A0GTRASTERTYPEGEOKEY
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A0 =A0 =A01
> > =A0 =A0GEOGLINEARUNITSGEOKEY
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A0 9001
> > =A0 =A0GEOGANGULARUNITSGEOKEY
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A0 9102
> > =A0 =A0PROJECTEDCSTYPEGEOKEY
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0INT =A0 =A0 =A0 =A0 =A026713
>
> > But, I want something more sensible for users to read like:
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PCS: 'NAD83 / Massachusetts Mainlan=
d'
> > =A0 =A0 =A0 =A0 =A0 =A0Projection: 'SPCS83 Massachusetts Mainland zone =
(m)'
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0MapSys: 'STATE_PLANE_83'
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Zone: 2001
> > =A0 =A0 =A0 =A0 =A0CTProjection: 'CT_LambertConfConic_2SP'
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0ProjParm: [7x1 double]
> > =A0 =A0 =A0 =A0 =A0 =A0ProjParmId: {7x1 cell}
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 GCS: 'NAD83'
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Datum: 'North American Datum 1983'
> > =A0 =A0 =A0 =A0 =A0 =A0 Ellipsoid: 'GRS 1980'
>
> Yes, the structure uses the numeric codes. Maybe David's geocoord
> (http://www.dfanning.com/documents/programs.html#GEOCOORD) can be
> useful in translating them into names.
>
> Also, see
>
> http://www.dfanning.com/map_tips/tiffoverlay.html

Thank you Paul! David's code was very helpful.
0
Reply s.mcalister8 (2) 8/16/2010 8:01:11 PM

4 Replies
388 Views

(page loaded in 0.118 seconds)

Similiar Articles:













7/23/2012 6:48:14 AM


Reply: