Google Groups Home
Help | Sign in
KML works KMZ fails
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
bratliff  
View profile
 More options Oct 7, 6:55 am
From: bratliff <bratl...@umich.edu>
Date: Mon, 6 Oct 2008 15:55:57 -0700 (PDT)
Local: Tues, Oct 7 2008 6:55 am
Subject: KML works KMZ fails
I am trying to build KML / KMZ files with Census Department
cartographic boundary files.

The KML file works

    http://polylibs.googlepages.com/st26.kml

The KMZ file fails

    http://polylibs.googlepages.com/st26.kmz

I zipped the KML file to produce the KMZ file.  I cannot control the
mime-type on my googlepages files.  Any suggestions ?

Thanks very much.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Grok Lobster  
View profile
 More options Oct 7, 7:18 am
From: Grok Lobster <DiscGolfM...@gmail.com>
Date: Mon, 6 Oct 2008 16:18:55 -0700 (PDT)
Local: Tues, Oct 7 2008 7:18 am
Subject: Re: KML works KMZ fails
I'm not sure why the kml works, it is missing the z value for your
coordinates. It doesn't work in Google Earth. Maybe if you fix that
your kmz will work.

On Oct 6, 3:55 pm, bratliff <bratl...@umich.edu> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance Dyas  
View profile
 More options Oct 7, 8:30 am
From: Lance Dyas <lance...@inetnebr.com>
Date: Mon, 06 Oct 2008 19:30:36 -0500
Local: Tues, Oct 7 2008 8:30 am
Subject: Re: KML works KMZ fails

LinearRing .. is not a valid direct child of polygon..

 <Polygon>
    <outerBoundaryIs>
      *<LinearRing>*
        <coordinates>
          -122.365662,37.826988,0
          -122.365202,37.826302,0
          -122.364581,37.82655,0
          -122.365038,37.827237,0
          -122.365662,37.826988,0
        </coordinates>
      *</LinearRing>*
    </outerBoundaryIs>
  </Polygon>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bratliff  
View profile
 More options Oct 7, 8:47 am
From: bratliff <bratl...@umich.edu>
Date: Mon, 6 Oct 2008 17:47:09 -0700 (PDT)
Local: Tues, Oct 7 2008 8:47 am
Subject: Re: KML works KMZ fails
Grok:

Thanks for the suggestion.  I made the change.  Unfortunately, no
improvement.

Lance / Garthan:

I will make the change but I believe it is an error in the KMZ file
not the KML content.  I just zipped it & renamed it.  I must be doing
something wrong in the conversion.

maps.google.com renders it with no complaints:

    maps.google.com/maps?q=http://polylibs.googlepages.com/st26.kml


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William  
View profile
 More options Oct 7, 9:03 am
From: William <william.g...@gmail.com>
Date: Mon, 6 Oct 2008 18:03:27 -0700 (PDT)
Local: Tues, Oct 7 2008 9:03 am
Subject: Re: KML works KMZ fails
perhaps it's because the file inside st26.kmz is ST26.KML and the
unzipping process on google is case-sensitive?

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Garthan  
View profile
 More options Oct 7, 9:09 am
From: Garthan <lance...@inetnebr.com>
Date: Mon, 6 Oct 2008 18:09:05 -0700 (PDT)
Local: Tues, Oct 7 2008 9:09 am
Subject: Re: KML works KMZ fails
did you name the kml... doc.kml?

On Oct 6, 7:47 pm, bratliff <bratl...@umich.edu> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance Dyas  
View profile
 More options Oct 7, 9:31 am
From: Lance Dyas <lance...@inetnebr.com>
Date: Mon, 06 Oct 2008 20:31:54 -0500
Local: Tues, Oct 7 2008 9:31 am
Subject: Re: KML works KMZ fails
William wrote:
> perhaps it's because the file inside st26.kmz is ST26.KML and the
> unzipping process on google is case-sensitive?

ummmm most of my kmz arent even named the same inside as out
Google Earth didnt like the kml at all till I made the change that I
mentioned.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William  
View profile
 More options Oct 7, 11:18 am
From: William <william.g...@gmail.com>
Date: Mon, 6 Oct 2008 20:18:45 -0700 (PDT)
Local: Tues, Oct 7 2008 11:18 am
Subject: Re: KML works KMZ fails
On Oct 7, 12:31 pm, Lance Dyas <lance...@inetnebr.com> wrote:

> William wrote:
> ummmm most of my kmz arent even named the same inside as out
> Google Earth didnt like the kml at all till I made the change that I
> mentioned.

yeah you are right, I wasn't testing with Google Earth, just whether
google maps site would display it.

anyway I had another look, and here's the results

1. server test

upload st26.kml and st26.kmz to another server.

st26.kml displays in google maps
st26.kmz does not display in google maps

2. file test

unzip st26.kmz and compare with st26.kml

no differences found

3. kmz creation test

zip st26.kml and upload new st26.kmz to server
st26.kmz displays in google maps

4. filename test

rename st26.kml to ST26.KML, zip and upload as st26.kmz to server

st26.kmz does not display in google maps

however I had big problems due to caching of the kmz and kml files on
servers and proxy servers so sometimes the changes did not display


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bratliff  
View profile
 More options Oct 7, 10:10 pm
From: bratliff <bratl...@umich.edu>
Date: Tue, 7 Oct 2008 07:10:47 -0700 (PDT)
Local: Tues, Oct 7 2008 10:10 pm
Subject: Re: KML works KMZ fails
Thanks very much guys.  I was using an old command line version of
"PKZIP" in batch in order to automate the conversion.  It only
recognizes DOS file names.  It forces file names to upper case.  I
guess I will have to preserve lower case file names.  It is fairly
easy to hack the ZIP file directory with DEBUG.

Slightly off topic, I would like to be able to influence styles/colors
in the URL parameters.  Something like:

    ?id=http://polylibs.googlepages.com/st26.kml&color=FF0000FF

I assume it cannot be done.  It would eliminate a lot of redundancy.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile
 More options Oct 7, 10:44 pm
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Tue, 7 Oct 2008 15:44:57 +0100
Local: Tues, Oct 7 2008 10:44 pm
Subject: Re: KML works KMZ fails
Wasn't it bratliff who wrote:

>Slightly off topic, I would like to be able to influence styles/colors
>in the URL parameters.  Something like:

>    ?id=http://polylibs.googlepages.com/st26.kml&color=FF0000FF

>I assume it cannot be done.  It would eliminate a lot of redundancy.

You can't influence what GGeoXml does, but you can detect the addOverlay
and change things to be the way you want.

 GEvent.addListener(map,"addoverlay",function(overlay) {
   if (overlay instanceof GPolyline) {
     overlay.setStrokeStyle({color:"#ff0000",opacity:1.0});
   }
 });

All polylines that get addOverlay()ed while that code is active are
immediately recoloured.

--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bratliff  
View profile
 More options Oct 7, 11:46 pm
From: bratliff <bratl...@umich.edu>
Date: Tue, 7 Oct 2008 08:46:37 -0700 (PDT)
Local: Tues, Oct 7 2008 11:46 pm
Subject: Re: KML works KMZ fails
On Oct 7, 2:44 pm, Mike Williams <nos...@econym.demon.co.uk> wrote:

Thanks Mike.  Unfortunately, "mapsdt" must be able to build real
tiles.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google