Google
Official Google Earth Download Site

Google Earth Community System Reliability: MEDIUM

Earth >> Dynamic Data Layers

pseabury
Tourist


Reged: 04/14/05
Posts: 241
Re: fboweb.com/LAX Inbound Flights
      12/31/06 01:33 PM

For KMZ - If you're using ASP.NET or anything .NET for that matter, you should be able to use the VisualJ# libraries to compress the kml output....that's what I do for everything that I output into KMZ from C#. First add a reference in your project to the vjslib dll. Here's a simple example of adding a single kml file into a KMZ.....there's a little more work if you have to add more files/images:

Code:

// Create the ZipOutputStream that will write the kmz
ZipOutputStream zo = new ZipOutputStream(new java.io.FileOutputStream(safeFileName + ".kmz"));

// Open a FileInputStream to read the already written kml
java.io.FileInputStream fis = new java.io.FileInputStream(safeFileName + ".kml");

// Create a ZipEntry object for every file you plan to add to the zip.
ZipEntry ze = new ZipEntry(safeFileName + ".kml");
ze.setMethod(ZipEntry.DEFLATED);
zo.putNextEntry(ze);

// Add the bytes for that ZipEntry
sbyte[] buffer = new sbyte[1024];
int len = 0;
while ((len = fis.read(buffer)) >= 0)
{
zo.write(buffer, 0, len);
}

// Clean up
zo.closeEntry();
fis.close();
zo.close();



--------------------
There are 10 kinds of people in this world...

those that understand binary, and those that don't.

Post Extras Print Post   Remind Me!     Report this Post


Entire topic
Subject Posted by Posted on
* fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights adsaero 11/29/05 11:28 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights stxer   02/05/06 01:23 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Fli PenguinOpusAdministrator   02/05/06 01:30 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Fli bowman13   12/20/06 10:49 AM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights stpeterc   01/26/06 03:09 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights rmpjje   12/24/06 12:17 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights ItsAllInYourHead   12/25/06 06:20 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Fli Forkboy2   01/27/06 11:16 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights giladal   12/27/05 08:16 AM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights adsaero   12/27/05 02:31 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Fli Forkboy2   12/30/05 07:49 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights phillyaj   12/16/05 05:31 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights Lon   12/22/05 01:05 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Flights adsaero   12/18/05 08:36 AM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Fli PenguinOpusAdministrator   12/18/05 09:14 AM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Fli phillyaj   12/18/05 02:21 PM
. * * Re: fboweb.com/LAX, ORD, BOS, ATL, JFK Inbound Fli echodawg   12/16/05 09:24 PM
. * * Re: fboweb.com/LAX Inbound Flights adsaero   12/14/05 06:09 AM
. * * Re: fboweb.com/LAX Inbound Flights FrankB   12/06/05 03:10 AM
. * * Logo WernerG   12/06/05 05:14 AM
. * * Re: Logo FrankB   12/06/05 05:46 AM
. * * Re: Logo WernerG   12/06/05 08:39 AM
. * * Re: Logo adsaero   12/06/05 06:38 AM
. * * Re: Logo BThomsen   12/11/05 08:39 PM
. * * Re: Logo adsaero   12/13/05 02:10 PM
. * * Re: Logo PenguinOpusAdministrator   12/06/05 06:46 AM
. * * Re: fboweb.com/LAX Inbound Flights ziggyfly   12/04/05 08:53 PM
. * * Re: fboweb.com/GE Track any commercial flight adsaero   12/03/05 07:33 PM
. * * Re: fboweb.com/GE Track any commercial flight Forkboy2   12/05/05 02:07 AM
. * * Re: fboweb.com/GE Track any commercial flight adsaero   12/08/05 06:51 AM
. * * Re: fboweb.com/LAX Inbound Flights: stereos pmaxfield2   12/02/05 08:58 AM
. * * Re: fboweb.com/LAX Inbound Flights: stereos adsaero   12/02/05 10:27 AM
. * * Re: fboweb.com/LAX Inbound Flights: stereos pmaxfield2   12/03/05 08:19 AM
. * * Re: fboweb.com/LAX Inbound Flights Forkboy2   11/30/05 10:53 PM
. * * Re: fboweb.com/LAX Inbound Flights adsaero   11/30/05 11:10 PM
. * * Re: fboweb.com/LAX Inbound Flights AnimAlu   11/30/05 06:30 PM
. * * Re: fboweb.com/LAX Inbound Flights HillModerator   11/30/05 02:27 PM
. * * Re: fboweb.com/LAX Inbound Flights HillModerator   12/02/05 01:42 PM
. * * Re: fboweb.com/LAX Inbound Flights adsaero   12/02/05 05:59 PM
. * * Re: fboweb.com/LAX Inbound Flights BThomsen   12/02/05 09:47 PM
. * * Re: fboweb.com/LAX Inbound Flights adsaero   12/02/05 09:56 PM
. * * Re: fboweb.com/LAX Inbound Flights adsaero   11/30/05 03:30 PM
. * * Re: fboweb.com/LAX Inbound Flights PenguinOpusAdministrator   11/30/05 07:59 PM
. * * Re: fboweb.com/LAX Inbound Flights adsaero   11/30/05 10:21 PM
. * * Re: fboweb.com/LAX Inbound Flights PenguinOpusAdministrator   12/01/05 12:45 AM
. * * Re: fboweb.com/LAX Inbound Flights Frank4   12/01/05 05:42 AM
. * * Re: fboweb.com/LAX Inbound Flights adsaero   12/01/05 09:27 PM
. * * Re: fboweb.com/LAX Inbound Flights pseabury   12/31/06 01:33 PM
. * * Re: fboweb.com/Inbound Flights with 3D planes svens   01/06/06 03:47 PM
. * * Re: fboweb.com/Inbound Flights with 3D planes Forkboy2   01/07/06 08:41 AM
. * * Re: fboweb.com/Inbound Flights with 3D planes svens   01/07/06 12:40 PM
. * * Re: fboweb.com/Inbound Flights with 3D planes adsaero   01/08/06 01:54 PM
. * * Re: fboweb.com/Inbound Flights with 3D planes anubis679   07/12/08 03:18 AM
. * * Re: fboweb.com/Inbound Flights with 3D planes PenguinOpusAdministrator   01/08/06 05:44 PM
. * * Re: fboweb.com/Inbound Flights with 3D planes svens   01/09/06 01:04 AM
. * * Re: fboweb.com/Inbound Flights with 3D planes svens   01/08/06 02:17 PM
. * * Re: fboweb.com/LAX Inbound Flights Frank4   12/02/05 05:24 AM
. * * Re: fboweb.com/LAX Inbound Flights bigpete87   11/30/05 04:02 PM
. * * Re: fboweb.com/LAX Inbound Flights BThomsen   11/30/05 05:45 PM
. * * Re: fboweb.com/LAX Inbound Flights BThomsen   11/30/05 02:46 PM
. * * Re: fboweb.com/LAX Inbound Flights MGN   11/30/05 06:24 AM
. * * Re: fboweb.com/LAX Inbound Flights PenguinOpusAdministrator   11/30/05 07:47 AM
. * * ... and listen in real time to SoCal approach cheejit   12/02/05 12:37 PM
. * * Re:fboweb.com/LAX Inbound Flights : LAX Map pmaxfield2   12/03/05 08:16 AM


Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  Hill, Jumble, Kempster, mcshea98, jeffryv, dulce, esterrett, NormB, Frank_McVey, BeadieJay, TheLedge, Cyclonic, no_stranger, LuciaM, tekgergedan, Noisette, danescombe, Michal_Drewniak, mutex, marinerfan, Delta102, bebop, MarkAubin 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating: *****
Thread views: 83240

Rate this thread

Jump to

earth.google.com    bbs.keyhole.com

*
UBB.threads™ 6.5.1.1