Re: Get Latitude and Longitude from Tiff files [message #54541] |
Tue, 26 June 2007 20:33  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Lucia writes:
> I wonder how to get latitude and longitude of each point of the files
> (such as tiff format) that have already included detailed projection
> parameters.
I presume you mean a GEOTiff file, not just a TIFF file.
You can presumably pull the information you need out of
the GeoTiff file itself. Here is an example written for
a slightly different reason that will give you some idea
of how to go about this:
http://www.dfanning.com/map_tips/geotiffreg.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Get Latitude and Longitude from Tiff files [message #54781 is a reply to message #54541] |
Tue, 03 July 2007 01:08  |
titan
Messages: 59 Registered: March 2006
|
Member |
|
|
On Jun 27, 5:33 am, David Fanning <n...@dfanning.com> wrote:
> Lucia writes:
>> I wonder how to get latitude and longitude of each point of the files
>> (such as tiff format) that have already included detailed projection
>> parameters.
>
> I presume you mean a GEOTiff file, not just a TIFF file.
> You can presumably pull the information you need out of
> the GeoTiff file itself. Here is an example written for
> a slightly different reason that will give you some idea
> of how to go about this:
>
> http://www.dfanning.com/map_tips/geotiffreg.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
I have the same problem and I tried to follow the example mentioned
before but unfortunately the informations I have are different:
GeoTiff image Structure
** Structure <9d0b28c>, 6 tags, length=140, data length=138, refs=1:
MODELTRANSFORMATIONTAG
DOUBLE Array[4, 4]
GTMODELTYPEGEOKEY
INT 2
GTRASTERTYPEGEOKEY
INT 1
GEOGRAPHICTYPEGEOKEY
INT 4326
GEOGLINEARUNITSGEOKEY
INT 9001
GEOGANGULARUNITSGEOKEY
INT 9102
In this case are there any possibilities to obtain latitude and
longitude of each point of the GEOtiff image??
Thank you
|
|
|