Talk:Keyhole Markup Language

Latest comment: 1 year ago by GeoVenturing in topic Notable? NOAA use?

how to achieve compression

edit

Any idea how to achieve compression with PHP?

I tried



//....creation of file, everything in $kml....

//works fine
if ($filetype=="kml"){
	header("Content-type: application/vnd.google-earth.kml+xml");
	echo $kml;
}

//gives parse error
if ($filetype=="kmz"){
	header("Content-type: application/vnd.google-earth.kmz");
	$kmz=gzencode ( $kml );
	echo $kmz;
}

Tobias Conradi (Talk) 5 July 2005 14:15 (UTC)

HTML tags allowed in KML

edit

Which HTML TAGS ARE ALLOWED IN KML? —The preceding Bunch of goofy code — Preceding unsigned comment added by 24.88.33.145 (talk) 03:18, 22 April 2007 (UTC)Reply

change first line?

edit

is KML an XML-based markup language or is it really an XML schema or something different? Emcaulay (talk) 23:59, 27 November 2007 (UTC)Reply

Tilt??

edit

The list of optional elements includes tilt, which is a hot link to a disambiguation page. That in itself is lame. But none of the entries on that disambiguation page even seems relevant to KML. That makes this reference to tilt practically indefensible. If there's anybody who does know what is intended by the reference, I encourage them to fix this problem.—PaulTanenbaum (talk) 14:33, 14 November 2008 (UTC)Reply

Looks like someone has fixed the specific problem mentioned.
From [ https://developers.google.com/kml/documentation/kmlreference ]:
Elements Specific to LookAt:
<longitude>
Longitude of the point the camera is looking at. Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from −180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.
<latitude>
Latitude of the point the camera is looking at. Degrees north or south of the Equator (0 degrees). Values range from −90 degrees to 90 degrees.
<altitude>
Distance from the earth's surface, in meters. Interpreted according to the LookAt's altitude mode.
<heading>
Direction (that is, North, South, East, West), in degrees. Default=0 (North). (See diagram below.) Values range from 0 to 360 degrees.
<tilt>
Angle between the direction of the LookAt position and the normal to the surface of the earth. (See diagram below.) Values range from 0 to 90 degrees. Values for <tilt> cannot be negative. A <tilt> value of 0 degrees indicates viewing from directly above. A <tilt> value of 90 degrees indicates viewing along the horizon.
<range> (required)
Distance in meters from the point specified by <longitude>, <latitude>, and <altitude> to the LookAt position. (See diagram below.)
<altitudeMode>
Specifies how the <altitude> specified for the LookAt point is interpreted. Possible values are as follows:
clampToGround - (default) Indicates to ignore the <altitude> specification and place the LookAt position on the ground.
relativeToGround - Interprets the <altitude> as a value in meters above the ground.
absolute - Interprets the <altitude> as a value in meters above sea level.
<gx:altitudeMode>
A KML extension in the Google extension namespace, allowing altitudes relative to the sea floor. Values are:
relativeToSeaFloor - Interprets the <altitude> as a value in meters above the sea floor. If the point is above land rather than sea, the <altitude> will be interpreted as being above the ground.
clampToSeaFloor - The <altitude> specification is ignored, and the LookAt will be positioned on the sea floor. If the point is on land rather than at sea, the LookAt will be positioned on the ground.

--Guy Macon (talk) 09:03, 16 September 2012 (UTC)Reply

Notable? NOAA use?

edit

NOAA now has a link to KML on their weather radar pages. This seems notable to me but I don't see where to fit it into the article. Hints, anyone? thanks Tzf (talk) 18:36, 23 December 2012 (UTC)Reply

Adding NOAA Article to See also topic. GeoVenturing (talk) 15:00, 30 May 2023 (UTC)Reply