The plan now is to link GIS data with KML. KML will act as the layer file that does nothing more than render my GIS data. to get the GIS data into Google Earth, I used a modified form of Shape2Earth. Shape2Earth converts the shapefiles to KML, and then writes an XML file that links the two files together.
Basic colors for the output KML are selected
A Unique ID is selected from the Attribute field. This will be used to attach to databases through Google Earth
The same method can be used to select multiple features, as is shown below.
A Unique ID is selected from the Attribute field. This will be used to attach to databases through Google Earth
The steps above walk through loading a shapefile into the Google Earth GIS application. Now, we use our trickery to click on Google Earth and grab a coordinate. This is done using the method described here.
The great thing about this method is that it does not matter what the orientation of Google Earth is. It will always return the coordinate that you clicked.
The great thing about this method is that it does not matter what the orientation of Google Earth is. It will always return the coordinate that you clicked.
In the graphic below, I have selected the ID button, and then clicked on a building. The application uses geoprocessing capabilities provided by the open source GIS application MapWindow. It loads the selected shapefile, and uses the coordinate to determine what has been selected. The result is the ability to directly access geospatial attribute data by clicking directly in Google Earth.
The same method can be used to select multiple features, as is shown below.
Now that we can do some basic GIS type functions directly in Google Earth, we can start doing more sophisticated workflows. The next step is to actually create GIS data directly in Google Earth. That has already been done, and will be posted here shortly.
thanks for the tip. I do however have a problem with GEplugin. I get an EIdCouldNotBindSocket (could not bind socket) exception everytime i launch my app. How did you get around this one? thanks
ReplyDeleteI have never encountered that error. You might want to download the sampe code put out by the author of Google Earth Airlines at http://www.googleearthairlines.com/ look under the apps tab).
ReplyDeleteNice article. How 'bout posting some key pieces of code? The pieces that tie things together.
ReplyDeleteCan u please give the code to import custom toolbar in goole earth.
ReplyDeleteThanks in advance...