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 #83307] Mon, 25 February 2013 06:52 Go to previous message
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
This is wonderful! Thank you so much, Chris. I'm happy that it will be officially a part of an upcoming release.

I'm troubleshooting the ability of utilizing subdirectories. For example, I have several different types of images that the KML is referencing, and even when I use relative paths, the KMZ process (from earlier in post) zips all images and places them in the same zipped directory. Its not that big of a deal, but when implementing this into a "feature", it should be kept in mind.

Thanks again!

(And thanks for your tools, David. I used your tool to check myself. When this method fails, it just saves a binary ntuser.dat file. But hey, can't complain for an undocumented feature!)

-B

On Saturday, February 23, 2013 10:44:49 AM UTC-5, David Fanning wrote:
> 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: Wed Oct 08 15:53:49 PDT 2025

Total time taken to generate the page: 0.00393 seconds