blankblank blank


Archive for the 'KML' Category Page 2 of 11



Converting Shapefiles To KML With The gSpatial Toolbar (In Theory)

The gSpatial Toolbar is supposedly another free option for converting shapefiles to KML format. I say supposedly because I’ve been unable to get it to work - I keep getting an ODBC driver manager error every time I try to do a conversion. I suspect you need to have Microsoft Office installed for this to work correctly; I’ve had the same error message pop up on three different computers, none with MS Office installed. But it certainly works on some computers, so you may have better luck - if so, let me know. It also requires a free registration code, which was a pain to get.

From what little I was able to see, the free version has limitations - no attribute-based KML features, and no ability to select a sub-region. Since I couldn’t get it to work, I can’t fully compare the gSpatial Toolbar to another free converter like shp2kml, but the latter definitely does work, and work well.

ht to Tim Beerman, author of the excellent (albeit not free) shapefile to KML converter, Shape2Earth.



Thematic Mapping In Google Earth

On his excellent Thematic Mapping blog (now part of my blog roll), Bjorn Sandvik has been running a series on thematic mapping techniques in Google Earth. Examples have included choropleth maps, bar charts, prism charts, Collada objects, map legends, including examples of animated time series. If you’re into the techy part of this stuff, the series is well worth a look for the ideas you’ll get from it, and the downloadable example files. But for non-techy types, the prospect of learning how to do this might have been a bit intimidating. Heck, I find it intimidating, and I know at least a litlle about this stuff.

But Bjorn has taken his examples to the next level, by creating an online tool that can convert datasets to thematic Google Earth maps on the fly, the Thematic Mapping Engine:

Thematic Mapping Engine

Only Prism maps are supported in this initial release, with other types (Choropleth, Proportional Symbol and Chart) coming in the future. You’re also currently limited in the datasets to 15 worldwide datasets from the UN, but the ability to import your own data is also coming. You can select data for one year, for a time series, or create a time map with a slider that lets you view the chart in animated format as the years roll by. The “colour” scale sets the endpoint colors for the chart, and these colors will be used to generate a legend for the chart. Click on Make KML, and you can download the KMZ file to your computer / open it in Google Earth directly:

globe

In Google Earth, use the slider at the upper right to change the data year, or click on the play button to see it animated.

I did find one minor quirk, but it’s likely a Google Earth bug. On my system, the first time I load one of these Thematic Mapping Engine KMZ files into Google Earth, I often see something like this:

dark

By turning the “sun” on (the View => Sun menu), and then turning the sun back off again, I get the correct view (i.e. the first picture). Resizing the Google Earth view can also create this effect, but the solution is the same.



Converting 3D Objects Into Google Earth Format

OgleEarth posts on SOLA G2, a free program (PC/Mac; free for non-commercial uses) for converting 3D objections in a number of standard formats into Google Earth KML files:

  • Autodesk *.FBX (2006.11)
  • 3D Studio *.3DS
  • Wavefront *.OBJ
  • Autodesk *.DXF
  • Collada *.DAE
  • Should also work with objects created with the free open source 3D program Blender, as long as you export them in a compatible format.

Select a filetype, choose the location, units and orientation, and SOLA G2 supposedly does the rest. I say supposedly only because I don’t have any files to test it out with; feel free to post your results in the comments below. You can also download the legacy version 1.0 of SOLA in case you have problems getting good results with version 2.0.



New GeoPDF Features

I’ve covered the free GeoPDF plugin for Adobe Acrobat and Reader before, but the latest version adds a lot of new features:

  • Create a point on the map, then open and view the corresponding point on Google Maps
  • A lot more coordinate systems supported, including MGRS, Lambert Conformal Conic, Mercator, etc.
  • Import and display shapefiles, re-projecting them on-the-fly
  • Import Google Earth KML/KMZ data; also CSV and GPX files
  • Annotate points with “sticky notes”, or with a GeoStamp symbol in various categories (incidents, infrastructure, operations)
  • Draw rectangles, polylines and polygons, and annotate them
  • Export annotated and imported data in shapefile format (automatically split into points, lines (arcs) and polygons)
  • Export annotated and imported data in KML format for use in Google Earth (another way to convert shapefiles to KML format)

One capability that’s still missing is the ability to export the view in georeferenced raster format, like GeoTiff; hope that’s coming soon.

The TerraGo Technologies tutorials page has a video tutorial on GeoPDF, and brief written tutorial with sample data for you to play around with. You can also download free USGS topo maps in GeoPDF format from the USGS Store’s Map Locater and Downloader. While these are still mostly in raster format, the next generation of USGS topo maps will come in vector GeoPDF format, letting you select from up to 37 different data layers.

Via Directions Magazine.



Using Google Earth Ground Overlays To Display Shapefile Data

The best way to display shapefile data in Google Earth is to convert it directly into vector KML format, and I’ve covered several ways to do that for free or cheaply, including stand-alone programs and online converters. Of all these options, I prefer using either shp2kml or Shape2Earth because of the flexibility they offer in setting display attributes like color and shape. But there’s another option: convert shapefile data into a raster image, and then display it in Google Earth as a ground overlay. This has a few advantages over vector KML format:

Continue reading ‘Using Google Earth Ground Overlays To Display Shapefile Data’



Creating "Transparent" Topo Map Overlays For Google Earth

In a previous post, I used MicroDEM’s ability to create GIF Google Earth overlays with transparency to create selective overlays of MicroDEM terrain analysis products. But you can use this ability with any georeferenced raster image, including topo maps, as long as the areas of the graphic you want to have transparent are white. One example would be USGS 24K topo maps, but these often have large areas that aren’t white, as in this case:

Continue reading ‘Creating "Transparent" Topo Map Overlays For Google Earth’



Google Earth Ground Overlays With GIF Transparency

In a previous post, I talked about using MicroDEM to easily create Google Earth ground overlays, images draped over Google Earth terrain in the correct position, like this terrain-shaded topo map (viewed in Google Earth):

Terrain shaded topo map in Google Earth

But you can also create a Google Earth ground overlay in MicroDEM as a GIF with transparency, where any part of the image that’s white will be invisible in the Google Earth overlay. There are a number of MicroDEM analysis functions that can produce a graphic product with the data product in color and the background in white. One example would be the terrain category function, where you can select parts of terrain based on parameters like slope, elevation, aspect ratio, and relief. Suppose I have a DEM displayed in reflectance mode:

Continue reading ‘Google Earth Ground Overlays With GIF Transparency’



Creating Google Earth Ground Overlays From Georeferenced Images

In Google Earth, a ground overlay is an image that’s been imported into the program and “draped” over terrain as a substitute for the default imagery. In the Free and Plus versions of Google Earth, you have to position the overlay manually to put it in the right geographical context, stretching and rotating it until it’s properly positioned. Google Earth Pro is able to open some kinds of georeferenced images (like GeoTiffs), and automatically drape them in the correct geographic position, but at $400 it’s not for everyone. The free GIS program MicroDEM has recently added the ability to automatically create a Google Earth overlay from any georeferenced image it can open, including GeoTiffs, and formats like JPEG and BMP if they have worldfiles associated with them

Continue reading ‘Creating Google Earth Ground Overlays From Georeferenced Images’