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

Home » Public Forums » archive » Re: How to Zip cross-platform from 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: How to Zip cross-platform from IDL? [message #83313 is a reply to message #83307] Sat, 23 February 2013 07:44 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chris Torrence writes:

> We are planning on exposing ZIP functionality in an upcoming release. In the meantime, there is an undocumented way to create zipped files from IDL, using the KMZ functionality built into new graphics.
>
> Try the following:
>
> void = {IDLitWriteKML} ; just get the code compiled
> void = IDLKML_SaveKMZ(outputfile, inputfileArray)
>
> For example:
> void = IDLKML_SaveKMZ('myfile.kmz', $
> ['myfile.kml','myimage1.png','myimage2.png'])
>
> I would not recommend putting this code into a shipping product, as it is certainly not documented or supported. But regardless, it should work on all platforms.

I understand your recommendation, but this works so nicely I couldn't
resist adding the functionality to my own programs that create KML
files. In the process I discovered I was using absolute URLs to the
image files instead of relative URLs. This has been fixed, and you can
find all the updated files (e.g., cgImage2KML, cgCBar2KML, cgKML_File)
in today's Coyote Library:

http://www.idlcoyote.com/programs/zip_files/coyoteprograms.z ip

I've also updated the Google Earth Image code in the Coyote Plot Gallery
to create a KMZ file:

http://www.idlcoyote.com/gallery/index.html#GE_IMAGE

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: setting widget " EVENT_PRO='myClass::myCallback' " ???? Is it possible?
Next Topic: How can I export a few million geocoded points from IDL to ArcMap?

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

Current Time: Sat Oct 11 12:15:57 PDT 2025

Total time taken to generate the page: 1.12069 seconds