Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

FAS 12.A40 November 17th, 2008

Today we will be taking the Estabrook Woods data that we have been manipulating with ArcGIS over the past several weeks and exporting selected features and data to be Web accessible. We will also look at exporting the same data to free consumer grade tools.

Programs and resources that we will be using today:
ArcGIS
Google Earth
Google Maps

Optionally:
Word Pad (for ediing HTML files)
Kerberos and OpenAFS

Web resources: (steal this code) http://web.mit.edu/dsheehan/www/planes.html

Location for Estabrook Woods:
map.setCenter(new GLatLng(42.4867,-71.3522), 14)

First we will do a simple export of an existing Layer
After opening up the map and dataset that we have been working with you want to do the following 5 steps
(1) Select the button for 'Export to KML' (NOTE: It looks like the Google Earth Icon, just to the left of the 'Spatial Analyst' pop-up menu)

In the resulting dialog box:
(2) Select the layer in the pop-up window that you wish to export to a KML file (Note: we are doing this not only for Google Earth but also for web access)

(3) Give the exported file a name, then click 'OK'

This will probably ask you to Save the file or launch Google Earth. Launching Google Earth works in rare instances. To be on the safe side, save the file in a convenient location.

(4) Launch Google Earth

(5) Inside of Gogle Earth, goto the File menu

File/Open/filename.kml

This will import the KML file that you have created from ArcGIS. It is that simple! 5 simple steps to take real data, that you have collected, preprocessed and mangled and manipulated with a robust research grade tool and now made accesible to Google Earth and eventually the Web! Sweet!

Now, go back and do this for a selected portion of data.
How do we accomlpish this? If we can extract all of the data into a single layer, then we can use the steps above to accomplish the export to KML. So, how do we get this data into a layer?
Magic happens here....

How do we get this same data Web accessible?
The easy way, we are going to steal someone else's code.

(1) We can steal Daniel's code from the URL given above.
(2) Place this 'html' file in our Athena locker at \username\www\filename.html
(3) Place the exported 'kml' file in the same location in your Athena locker
(4) modify the resulting 'html' file in five places
-change the map center (see the web resource above)
-delete the reference to plane2.kml in two locations (note this is a reference to the file and the associated function call to overlay this on the map)
geoXml = new GGeoXml("http://web.mit.edu/dsheehan/www/plane2.kml");
map.addOverlay(geoXml);

-change the reference to plane.kml to point to your KML file in your Athena locker.

That's it! 4 easy steps to making easy money on the web with ArcGIS.