PDA

View Full Version : Compass Tool



thanhbdt
2011-08-16, 11:42 AM
Hi

Attached file is compass tool. It is useful in Google earth for optimization and checking performance cells.

_lisi4king
2011-08-16, 02:09 PM
Very good. Did you create it or you've got from somebody. For me very interesting, how it is posible to create something like that :)

Stantheman
2011-08-16, 06:30 PM
in the later versions of Google Earth the ruler tool gives you the bearing in degrees + distance of a line you draw between two points.

lisi4king, you can display any image fixed as a "screenoverlay" in Google Earth. If you open thanhbdt's kmz archive in 7zip, you can extract the .kml file and associated image file (.kmz is basically a zipped format of .kml). If you open the .kml file in notepad you will get the following .kml code:-

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<ScreenOverlay xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<name>Compass Tool</name>
<description><![CDATA[This tool can be used to obtain a fairly accurate compass bearing from one location to another. To use:
<ol>
<li>Click <b>N</b> on the navigation tool to orient the Google Earth view to north, and return the view to straight down. (Unless hot keys have been modified, pressing the <b>R</b> on the keyboard will accomplish both.)</li>
<br><br>
<li>Go to close-in view of the point of origin and activate the <b>Ruler</b> tool.</li>
<br><br>
<li>Extend the <b>Ruler</b> line to the second point.</li>
<br><br>
<li>If necessary, zoom in or out until the <b>Ruler</b> line crosses the compass scale.</li>
</ol>
<br>]]></description>
<drawOrder>99</drawOrder>
<Icon>
<href>files/rosa02.gif</href>
</Icon>
<overlayXY x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
<screenXY x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
<rotationXY x="0.5" y="1" xunits="fraction" yunits="fraction"/>
<size x="-1" y="-1" xunits="pixels" yunits="pixels"/>
</ScreenOverlay>
</kml>


In this case the image to be displayed as a "screenoverlay" is "rosa02.gif", a gif image of a compass with transparency. You could replace this image with any other raster image and it should get displayed fixed in the middle of your Google Earth screen.


If you wanted an image displayed as a fixed overlay on the top left of your screen, then you would use the following kml code, where your_screenoverlay.gif is the image to be displayed. This could be a jpg, bmp, png or any raster image that Google Earth can open. gif and .png can of course have part of the image transparent (like the compass example above).

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<ScreenOverlay>
<name>your_screenoverlay.kml</name>
<drawOrder>99</drawOrder>
<Icon>
<href>your_screenoverlay.gif</href>
</Icon>
<overlayXY x="0" y="1" xunits="fraction" yunits="fraction"/>
<screenXY x="0" y="1" xunits="fraction" yunits="fraction"/>
<rotationXY x="0.5" y="0.5" xunits="fraction" yunits="fraction"/>
<size x="-1" y="-1" xunits="fraction" yunits="fraction"/>
</ScreenOverlay>
</kml>


Hope that helps, Stan.

thanhbdt
2011-08-16, 11:18 PM
Thanks Stantheman

It is clearly

plrodrigues
2011-08-16, 11:30 PM
I use the attached tool, its very easy to use and you can fine-tune the position and define "allways-on-top".

Regards,

badpid
2011-08-17, 12:10 PM
I use the attached tool, its very easy to use and you can fine-tune the position and define "allways-on-top".

Regards,


anyone pls give desription for this tools, please :(

ninoy_122184
2011-08-17, 02:32 PM
try this one


Screen Protractor with Key.zip (http://www.mediafire.com/?wcb98a9b92h5krj)

seedweb
2011-08-17, 04:10 PM
try this one


Screen Protractor with Key.zip (http://www.mediafire.com/?wcb98a9b92h5krj)

Hey,where is the password for this tool?
You should do read the forum's rules!
http://www.finetopix.com/announcements/8251-forum-rules-must-read-everyone.html

ninoy_122184
2011-08-17, 04:18 PM
Hey,where is the password for this tool?
You should do read the forum's rules!
http://www.finetopix.com/announcements/8251-forum-rules-must-read-everyone.html


password is onepiece

thanhbdt
2011-08-18, 12:12 AM
Hi,

I did not use password,
If who can not download, pls send out your email to me:)



Hey,where is the password for this tool?
You should do read the forum's rules!
http://www.finetopix.com/announcements/8251-forum-rules-must-read-everyone.html

plrodrigues
2011-08-18, 12:22 AM
anyone pls give desription for this tools, please :(
These are compasses, which are very usefull for planning sector orientations/azimuths or for optimization purposes.


Regards