Page 1 of 1

KML file sample please!

Posted: Thu May 24, 2007 6:43 am
by LesliePere
Could someone please send me or just post a sample of a short KML file that works with Max?

I don't want to scroll through the enormous list of cities in 1.5 so I decided to create a quick KML file for the location I wanna use. I also don't want to install google earth for this. So I looked up the KML documentation on google's site and typed up this little KML:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Placemark>
<name>Budapest, HUNGARY</name>
<description>Budapest, HUNGARY</description>
<Point>
<coordinates>47.500000,19.083334,0</coordinates>
</Point>
</Placemark>
</kml>

However, this doesn't work. When I open the file in max, it gives me a dialog saying "No observation coordinates or eye points found."

I have no clue what is this refers to since the KML docs does list "observation coordinates" or "eye point" as a markup.

Thanks!

Posted: Thu May 24, 2007 12:53 pm
by Bogdan Coroi
You should have a <LookAt> tag
Your sample should look like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Placemark>
<name>Budapest, HUNGARY</name>
<description>Budapest, HUNGARY</description>
<LookAt>
	<longitude>19.079999</longitude>
	<latitude>47.509998</latitude>
	<altitude>0</altitude>
	<range>9490.109375</range>
	<tilt>0</tilt>
	<heading>0</heading>
</LookAt>
</Placemark>
</kml>

Posted: Thu May 24, 2007 7:06 pm
by LesliePere
Hey thanks for that sample! I will try it immediately!