comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » shifted .kml created with IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: shifted .kml created with IDL [message #81046 is a reply to message #80955] Tue, 31 July 2012 00:09 Go to previous message
titan is currently offline  titan
Messages: 59
Registered: March 2006
Member
On Monday, July 30, 2012 4:23:18 PM UTC+2, titan wrote:
> On Monday, July 30, 2012 3:13:24 PM UTC+2, David Fanning wrote:
>
>> David Fanning writes:
>
>>
>
>>
>
>>
>
>>> I haven't made KML files, but when I work with Google Maps,
>
>>
>
>>> they always come back in a Mercator projection. I presume
>
>>
>
>>> that is what they are using.
>
>>
>
>>
>
>>
>
>> To navigate the Google Static Maps that I get from Google,
>
>>
>
>> I use a Mercator projection with a WGS84 datum:
>
>>
>
>>
>
>>
>
>> mapCoord = Obj_New('cgMap', 105, Datum=8)
>
>>
>
>>
>
>>
>
>> Cheers,
>
>>
>
>>
>
>>
>
>> David
>
>>
>
>>
>
>>
>
>> --
>
>>
>
>> David Fanning, Ph.D.
>
>>
>
>> Fanning Software Consulting, Inc.
>
>>
>
>> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
>>
>
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
>
>
> Thanks a lot David,
>
> Tomorrow I will try using it as structure in the MAP_PROJ_INVERSE function and I will let you know as soon as possible
>
>
>
> cheers

Hi David,
unfortunately it does not work or probably I'm still missing something :(
Using the following code I get coordinates that are pointing to an area near Corsica!!

mapCoord_Google_earth = MAP_PROJ_INIT('Mercator', Datum=8)
lonlat_Google_Earth = MAP_PROJ_INVERSE([xLL,yLL,xUR,yUR], MAP_STRUCTURE=mapCoord_Google_earth)

lon_range_Google_Earth=[lonlat_Google_Earth[0,0],lonlat_Goog le_Earth[0,1]]
lat_range_Google_Earth=[lonlat_Google_Earth[1,0],lonlat_Goog le_Earth[1,1]]

UL_lat_Google_Earth=lonlat_Google_Earth[1,1]
UL_lon_Google_Earth=lonlat_Google_Earth[0,0]

LR_lat_Google_Earth=lonlat_Google_Earth[1,0]
LR_lon_Google_Earth=lonlat_Google_Earth[0,1]

print ,'UL_lat_Google_Earth',UL_lat_Google_Earth
print ,'UL_lon_Google_Earth',UL_lon_Google_Earth
print ,'LR_lat_Google_Earth',LR_lat_Google_Earth
print ,'LR_lon_Google_Earth',LR_lon_Google_Earth

UL_lat_Google_Earth 47.512672
UL_lon_Google_Earth 4.4728665
LR_lat_Google_Earth 45.054882
LR_lon_Google_Earth 7.7499209

What I'm doing wrong?!?

thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: max_value/min_value in the x-axis?
Next Topic: IDL User Group Meeting 2012

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 14:51:14 PDT 2025

Total time taken to generate the page: 0.71859 seconds