GoogleEarth: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
 
Brian Wilson (talk | contribs)
mNo edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
I looked at GoogleEarth and yawned, I must be jaded. Sinc then many people have told me it's the neatest thing since sliced bread so I must have missed something. Maybe it was the 300 hours I have already spent working with ESRI 3D Analyst; been there done that.
''First impression, written shortly after GE release''
 
I looked at GoogleEarth and yawned, I must be jaded. Since then many people have told me how great it is, did I miss something? Maybe it was the 300 hours I have already spent working with ESRI 3D Analyst?


Okay, so it was the only session at NWGIS that was packed. Okay, so I will look at it again. The presenter there from [http://www.co.pierce.wa.us/PC/abtus/ourorg/is/gis.htm Pierce County] has managed to have fun with it so maybe I can too.
Okay, so it was the only session at NWGIS that was packed. Okay, so I will look at it again. The presenter there from [http://www.co.pierce.wa.us/PC/abtus/ourorg/is/gis.htm Pierce County] has managed to have fun with it so maybe I can too.
Line 6: Line 8:
I wish that Hawaii would break down and have some high res photos done. I am getting tired of these LandSat images.
I wish that Hawaii would break down and have some high res photos done. I am getting tired of these LandSat images.


What the Pierce county guy did was overlay his own data on the GoogleEarth maps. He did that by writing his own KML files.  
What the Pierce county guy did was overlay his own data on the GoogleEarth maps. He did that by writing his own KML files. GoogleEarth used to be Keyhole so the language it's based on is called KML which is (what else) an XML variant.
GoogleEarth used to be Keyhole so the language it's based on
is called KML which is (what else) an XML variant.


[http://www.keyhole.com/kml/kml_doc.html KML documentation]
Link to [http://www.keyhole.com/kml/kml_doc.html KML documentation] at Keyhole site


== What can I do with it ==
== What can I do with it ==
Line 26: Line 26:
I am thinking that I should be able to insert the locations of all
I am thinking that I should be able to insert the locations of all
the CDS Wireless GPS receivers onto a GoogleEarth map...
the CDS Wireless GPS receivers onto a GoogleEarth map...
Coordinates have to be in lat-lon-alt format. They can't be
in projected coords. Drat.
SOOOOOOOOOO
I want to take a shapefile from the Corvallis collection, convert it to unprojected WGS1984 UTM zone 10 data using the ArcToolbox, extract vertices from it, and convert them to a KML file. As [http://oregonstate.edu/dept/hort/faculty/RighettiNewFormat.htm Dr. Tim Righetti] would say, "What are you waiting for?! You know what to do."
I found a VB script in [http://arcscripts.esri.com Arcscripts] called
"Export to KML". It works great. It is an ArcMap extension that does the shapefile to KML conversion. The datum for our NAD27 files is wrong, so output is wrong for GoogleEarth -- you have to convert first to WGS84. But wait!
There are more scripts. "KML Home Companion" purports to handle re-projection.
Well, it does not do any better than "Export to KML". It does have color and transparency controls, but generating a KML polygon from a circle makes a lumpy thing where as the proper shape is retained in "Export to KML" so I think I will stick with it for now.
The ultimate cool tool is allegedly in beta testing: Brian Flood's [http://www.spatialdatalogic.com/cs/blogs/brian_flood/archive/2005/09/12/98.aspx Arc2Earth] I like how  [http://www.spatialdatalogic.com/sdl/public/downloads/MXD_GE_NJ_NonPublicSchools.kmz his example] puts the attributes into a pop up.


== Sample of KML ==
== Sample of KML ==
Line 42: Line 56:
  </kml>
  </kml>


== Links to other Google Earth places ==
== Links to Google Earth places ==
 
'''The''' place to learn about the software formerly known as Keyhole is at the [http://bbs.keyhole.com Google Earth Community] forums. It's also accessible directly from GoogleEarth...


[http://www.cs.cmu.edu/~globalconn/index.html Global Connection] is a project to tie National Geographic data to GoogleEarth.
[http://www.cs.cmu.edu/~globalconn/index.html Global Connection] is a project to tie National Geographic data to GoogleEarth.

Latest revision as of 16:12, 2 June 2008

First impression, written shortly after GE release

I looked at GoogleEarth and yawned, I must be jaded. Since then many people have told me how great it is, did I miss something? Maybe it was the 300 hours I have already spent working with ESRI 3D Analyst?

Okay, so it was the only session at NWGIS that was packed. Okay, so I will look at it again. The presenter there from Pierce County has managed to have fun with it so maybe I can too.

To me what's cool about it is that it streams both the DEM and raster photo data from a server so that everything appears seamless; I don't have to locate and download the layers and then load them into my own ArcScene project. I wish that Hawaii would break down and have some high res photos done. I am getting tired of these LandSat images.

What the Pierce county guy did was overlay his own data on the GoogleEarth maps. He did that by writing his own KML files. GoogleEarth used to be Keyhole so the language it's based on is called KML which is (what else) an XML variant.

Link to KML documentation at Keyhole site

What can I do with it

I can add a raster layer to the map using GroundOverlay. The raster is referenced with an href tag; it can be anywhere (URI) or it can be a file on the local network.

I can add PlaceMarks to the map.

I can draw points, lines, and polygons onto the map.

I can put a text overlay layer onto the map

I am thinking that I should be able to insert the locations of all the CDS Wireless GPS receivers onto a GoogleEarth map...

Coordinates have to be in lat-lon-alt format. They can't be in projected coords. Drat.

SOOOOOOOOOO

I want to take a shapefile from the Corvallis collection, convert it to unprojected WGS1984 UTM zone 10 data using the ArcToolbox, extract vertices from it, and convert them to a KML file. As Dr. Tim Righetti would say, "What are you waiting for?! You know what to do."

I found a VB script in Arcscripts called "Export to KML". It works great. It is an ArcMap extension that does the shapefile to KML conversion. The datum for our NAD27 files is wrong, so output is wrong for GoogleEarth -- you have to convert first to WGS84. But wait! There are more scripts. "KML Home Companion" purports to handle re-projection. Well, it does not do any better than "Export to KML". It does have color and transparency controls, but generating a KML polygon from a circle makes a lumpy thing where as the proper shape is retained in "Export to KML" so I think I will stick with it for now.

The ultimate cool tool is allegedly in beta testing: Brian Flood's Arc2Earth I like how his example puts the attributes into a pop up.

Sample of KML

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Placemark>
 <name>725 Farmers Lane, Santa Rosa, CA</name>
 <open>1</open>
 <address>725 Farmers Ln, Santa Rosa, CA 95405, USA</address>
 <styleUrl>root://styleMaps#default+nicon=0x304+hicon=0x314</styleUrl>
 <Point>
   <coordinates>-122.687567,38.442873,0</coordinates>
 </Point>
</Placemark>
</kml>

Links to Google Earth places

The place to learn about the software formerly known as Keyhole is at the Google Earth Community forums. It's also accessible directly from GoogleEarth...

Global Connection is a project to tie National Geographic data to GoogleEarth.