Translate posts to Experimental | Feedback
Google
Official Google Earth Download Site
Page 1 of 8 1 2 3 4 5 6 7 8 >
Topic Options
Rate This Topic
Previous Topic
View All Topics Index
Next Topic
#45294 - 07/01/05 10:41 AM KML documents and tutorial now available ****
ink_polaroid Administrator Offline
Sysop

Registered: 01/01/05
Posts: 1882
Loc: SF Bay Area, CA
The KML 2.x reference document is now available at code.google.com. The companion document, the KML 2.x Tutorial is also availble there and is highly recommended reading. It carefully anticipates and answers many of the questions that KML developers will have. Within the Tutorial document is a link to a sample KML file with examples corresponding to the Tutorial's topics.

The documents, like the software itself, are in beta. Improvements, both those we know we want to make and extra ones yet to be suggested, will be made as time passes.

We know you've been waiting for a long time and we thank you for your extended patience. wink

(Edited by ink_polaroid and Seer on the occasion of public release. Enjoy!)... and Lrae to keep things current wave


Edited by Lrae (02/22/10 12:13 PM)

Top
#45295 - 07/01/05 02:52 PM Re: Availability of KML documents and tutorial [Re: ink_polaroid]
Stanley_Krute Offline
Traveler

Registered: 11/17/04
Posts: 70
Loc: Camp Creek, Siskiyou County, C...
Hi Ink

Good to hear ... 2:48 pm Pacific, just back from chinese food
friday nerd lunch, no docs yet ... maybe some googlers
are having the same, even longer ... nice to hear the docs
are imminent.

FunkyCapricorn: docs let us play cleanly in the GE sandbox.
More better toys for all.

-- stan



Top
#45296 - 07/01/05 03:39 PM Re: Availability of KML documents and tutorial [Re: ink_polaroid]
kens Offline
Traveler

Registered: 03/10/04
Posts: 246
Quote:

The reference document for KML 2.0 will be announced on code.google.com at around 12:00pm (PDT).




I'm not falling into the trap. Seer has corrected us several times about what's "said" in posts. I will just check back around 12:00pm (PDT) each and every day to see if something is announced. If you could date-bound your note, that would be great.

Top
#45297 - 07/01/05 04:02 PM Thank you ink! [Re: ink_polaroid]
seer Administrator Offline
Master Chronicler

Registered: 12/09/02
Posts: 3112
Loc: Northern California
The documents are out and will be a source of tremendous growth in the Keyhole Community.
_________________________
Be seeing you, Seer

Top
#45298 - 07/01/05 05:31 PM Re: Availability of KML documents and tutorial [Re: ink_polaroid]
Stanley_Krute Offline
Traveler

Registered: 11/17/04
Posts: 70
Loc: Camp Creek, Siskiyou County, C...
Thanks ink. Looking forward to digging in.

-- stan

Top
#45299 - 07/01/05 08:34 PM Re: Availability of KML documents and tutorial [Re: kens]
kens Offline
Traveler

Registered: 03/10/04
Posts: 246
Whew! I can stop looking. It's posted. Thanks.....

Top
#45300 - 07/01/05 10:12 PM KML DOC - questions and/or comments [Re: ink_polaroid]
kens Offline
Traveler

Registered: 03/10/04
Posts: 246
Nice job. The examples are very helpful.

1. Do you have an example of how to package a kmz file that contains images? How should those images be referenced in the icon tag?

2. north,south,east,west tags with rotation -- I'm having a hard time grasping how to do the following. I have a polygon that defines the shape and location of an image. (kind of like a DG footprint). Now I'd like to click a button to have an actual image appear within the polygon. For the polygon I know the exact corner points. (skewed a bit). How can I easily (without complex math) construct the groundoverlay tags (north, south, east, west, rotation) for the image to appear properly?


3. Screenoverlay -- still very, very confusing in the KML spec. overlayI ran the samples and nothing appeared on my screen. I've written a couple of these, but its very difficult getting things lined up. Can you give an example of a banner that will be centered at the top and bottom of the screen. Ideally, the banners may change sizes but the requirement is to always have it centers. (even in F11 full screen mode).

4. Do you have a method to verify that a kml, kmz file is valid. (other than loading it into the client).

5. simple icon rollover seem to have problems on my laptop. When I move my cursor over the icon, it will sometimes change and other times it just is turned off. When it gets turned off, google earth stops responding for about 4 seconds. The hour-glass appears and then the initial icon appears on the screen. At that point, I can continue processing. (Latest version of my normal client-- see other forum for my details


Top
#45301 - 07/02/05 02:59 PM Re: KML DOC - questions and/or comments [Re: kens]
ink_polaroid Administrator Offline
Sysop

Registered: 01/01/05
Posts: 1882
Loc: SF Bay Area, CA
1. Do you have an example of how to package a kmz file that contains images?

No, because the packaging is a part of the client, and not your KML. If, for example, you create a placemark with an icon whose image is sourced from your local machine, then when you save it as a KMZ file it is automatically zipped up by the client.

2. north,south,east,west tags with rotation -- I'm having a hard time grasping how to do the following. I have a polygon that defines the shape and location of an image. (kind of like a DG footprint). Now I'd like to click a button to have an actual image appear within the polygon. For the polygon I know the exact corner points. (skewed a bit). How can I easily (without complex math) construct the groundoverlay tags (north, south, east, west, rotation) for the image to appear properly?

The n/s/e/w tags are a part of ground overlays, and not polygons. But I know what you mean.

If you have coordinates for the bottom-left corner (say lat=15, lon=10) and top-right corner (lat=25, lon=20), then (remembering that latitude maps to north/south, longitude to east/west) the coordinates for the ground overlay would be:

Code:

<LatLonBox>
<north>25</north>
<south>15</south>
<east>10</east>
<west>20</west>
<rotation>0</rotation>
</LatLonBox>



Rotation is something you'll have to figure out yourself. If the vertical (y axis) edges of your image coincide with grid north, then you don't need any rotation.

3. Screenoverlay -- still very, very confusing in the KML spec. overlayI ran the samples and nothing appeared on my screen.

Screen overlays at this stage are more difficult than they should be because it's not yet possible to create them within the client. The example given in the tutorial doc works fine for me, so I'm not sure what's going on with you. I copied it to notepad, saved it as foo.kml, and it opened in GE just fine.

Look at the examples in the KML Tutorial File for more examples of screen positioning. (You can select each of them in Places, hit copy, and pase the code into Notepad.)

4. Do you have a method to verify that a kml, kmz file is valid. (other than loading it into the client).

We will be publishing the official KML 2.0 schemata at some point. At that point it should be possible to validate authored KML against the schema.

5. simple icon rollover seem to have problems on my laptop.

Again, the example in the linked KML file works fine for me. Try recreating the code with your own local images.

Thanks for the feedback. The next revision will benefit greatly from comments like yours.

Top
#45302 - 07/02/05 03:44 PM Re: KML DOC - questions and/or comments [Re: ink_polaroid]
Stanley_Krute Offline
Traveler

Registered: 11/17/04
Posts: 70
Loc: Camp Creek, Siskiyou County, C...
Hi ink

> We will be publishing the official KML 2.0 schemata

Just to nail this down: will this be an XML Schema, per
http://www.w3.org/XML/Schema ??

thanks for the ongoing info stream ..


-- stan

Top
#45303 - 07/02/05 08:33 PM Re: KML DOC - questions and/or comments [Re: Stanley_Krute]
ink_polaroid Administrator Offline
Sysop

Registered: 01/01/05
Posts: 1882
Loc: SF Bay Area, CA
At the time of writing, that's the plan. We would very much like to give those who want to get into things such as XSL transformations the power to do so.

As for your next question -- when, inky, when? -- no ETA for you. It'll happen when it happens.

Top
Page 1 of 8 1 2 3 4 5 6 7 8 >