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

Home » Public Forums » archive » Re: Google Static Maps in 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: Google Static Maps in IDL [message #80754 is a reply to message #80751] Wed, 11 July 2012 14:37 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> To this end, I built a small object that exposes quite
> a bit of the Google Static Map API:
>
> https://developers.google.com/maps/documentation/staticmaps/

I've been having a couple of problems with this today.
Does anyone have any special knowledge of firewalls?
This seems to be a firewall issue to me.

I use the IDLnetURL object to connect to the Internet.
My NASA client is having a problem connecting to the Google
static map location and retrieving a map. The command
we use looks like this:

cmd = 'http://maps.googleapis.com/maps/api/staticmap?' + $
'center=35.8271,-106.6480&zoom=12&size=640x390' + $
'&maptype=satellite&sensor=false&format=png32'
netObj = Obj_New('IDLnetURL')
void = netObj -> Get(URL=cmd, FILENAME='gmap.png')
Obj_Destroy, netObj

We get the following error message when we issue this command:

IDLNETURL::GET: CCurlException: Error: Http Get Request Failed.
Error = Failed writing body (0 != 11946), Curl Error Code = 23..

However, if we issue this command:

cmd = 'http://www.idlcoyote.com/misc/toucan.png'
netObj = Obj_New('IDLnetURL')
void = netObj -> Get(URL=cmd, FILENAME='gmap.png')
Obj_Destroy, netObj

We have no problem whatsoever.

Are the properties on the end of the Google URL giving
us problems with the NASA firewall, do you think?

I appreciate any help you can give.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: density color schemes in IDL8 scatterplots
Next Topic: Re: language change in IDL

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

Current Time: Wed Oct 08 17:58:38 PDT 2025

Total time taken to generate the page: 0.00432 seconds