blankblank blank


Archive for the 'MapWindow' Category

Assigning Attributes From A Polygon Shapefile To Another Shapefile

Here’s a recap of yesterday’s request from TD:

Wondering if you know of an easy way to create centroids (points) from polygons – I am using MapWindow and various other free tools. What I am ultimately trying to do is assign attribute data (parcel #) to a polygon shapefile representing buildings.  In other words, for each building polygon I want to assign it the correct parcel #.

Yesterday’s post went through the first part of this process, converting the building polygon shapefile  into a centroids (approximate building geometric centers) point shapefile, carrying over the building shapefile attributes to the corresponding centroid points. Now I need to assign attribute data from the parcel polygon shapefile to the centroids.

Continue reading ‘Assigning Attributes From A Polygon Shapefile To Another Shapefile’




Get DEM Elevations For A List Of Points

YP asks:

…would you know an easy (and free) way to query a DEM (Digital Elevation Model) to get elevations for a list of points (potentially as many as a few thousand)

Well, I know one way to do it with free software:

Continue reading ‘Get DEM Elevations For A List Of Points’




New Stable Release Of MapWindow GIS

The open source GIS MapWindow (Windows only) has just put out its latest Stable Release (SR), version 4.5. This is the first SR in about 8 months. New features include:

Continue reading ‘New Stable Release Of MapWindow GIS’




Importing Google Earth Imagery Into A GIS

This post has gotten a very strong reaction from many people, mostly negative. They say use of Google Earth imagery in the manner outlined here is inappropriate, an illegal violation of the Google Earth EULA/TOS. More specifically, words like “theft”, “stealing” and “dirty” have been used to describe this. I feel that this use of Google Earth imagery for personal and non-commercial uses falls under the guidelines of “fair use”, and I explain why here. “Fair use” is not theft. But I acknowledge that I could very well be wrong about this falling under the umbrella of “fair use” protection, in which case it would be illegal. I’d welcome opinions from those knowledgeable about the rights and limitations of “fair use”, and will pull the post if an expert on these issues says that using Google Earth imagery as described below doesn’t constitute “fair use”.

You can save the displayed view in Google Earth by using the File=> Save => Save Image command (Ctrl-Alt-S is the shortcut), which saves the contents of the view window as a JPG file. But in order to use this image in a GIS program, it has to be georeferenced, i.e. coordinates assigned to the pixels. There are free image georeferencing options out there, and I’ll cover some of those soon, but that’s not necessary in this case – there’s a simpler way to get the georeferencing data for an image exported from Google Earth.

You will need to have installed Google Earth (of course), the free GIS program MapWindow, and the Shape2Earth plugin for MapWindow. Shape2Earth’s main function is converting shapefiles to Google Earth KML files, and while the full version costs $29.95, it will work in unregistered demo mode for up to 500 shapefile vertices, and here for georeferencing Google Earth imagery.

1. Open Google Earth, and zoom in to the area of interest.

2. Double-click on the “N” in the compass at the upper right to orient north to the top of the screen. Also double-click on the “0 tilt” icon (the box with the “X” in it on the left in the tilt adjustor) to set the tilt angle to zero.

3. Open MapWindow; if you haven’t already activated the Shape2Earth plugin, do so from the plugins menu.

4. From the Shape2Earth menu in MapWindow, select “Get Image from GE”, and click on the “Capture Image” button. If you haven’t already oriented the image with north at the top and zero tilt, you will be prompted to do so.

5. Save the image with the desired name as a JPG file. This will save a black-and-white jpg image of the current view in the Google Earth window, along with a worldfile (*.jpgw) containing the georeferencing information.

6. Go back to Google Earth, and without moving or changing the view in any way, save the current view (File => Save => Save Image) with the same name and location as the image in step 5,. This overwrites the previous black-and-white image with a color one of exactly the same area.

You now have the Google Earth image with the georeferencing data contained in the worldfile (geographic coordinates, WGS84 datum), which most GIS programs can open and read successfully. If there’s a problem, try changing the extension of the worldfile from *.jpgw to *.jgw.

Limitations of this approach:

  • The view in Google Earth is orthographic, i.e. you’re looking at a sphere from above. For views that are zoomed to view a relatively small area, the area is essentially a flat plane, and the georeferenced image shouldn’t have a large deviation from the true coordinates. The larger the area covered, the greater the deviation between the true and georeferenced coordinates.
  • Coordinates in Google Earth can be off from the true coordinates even for small areas; see this post for more info. This process doesn’t correct for any such deviation.
  • Imagery in Google Earth is copyrighted, and using it for any other purpose than viewing in Google Earth falls under the restrictions of copyright law and fair use. In particular, you have to leave the Google logo and copyright notices unaltered to maintain proper attribution.



Updates For MapWindow And Saga GIS Programs

Two GIS programs I’ve posted about have recently released updated versions:

MapWindow: An updated version of Stable Release 4.4 is available. The only change I could spot is PostGIS import/export, but typically these updates include bug fixes as well.

SAGA: Updated to version 2.0.1. No huge changes, primarily fixes to the Linux GUI, a new tab that shows map thumbnails, and a few new modules.




MapWindow GIS Version 4.4 Is Out

Just a brief note to say that the open source GIS MapWindow has reached version 4.4, and the new version is definitely a worthwhile upgrade if you already have the program. A whole bunch of shapefile editing capabilities have been added, there’s now an Undo function in the shapefile editor you can turn on, higher-resolution raster export, plus bug fixes and a few other features. I plan to do a video in the near future demonstrating these new capabilities, similar to the ones I’ve done before on MapWindow.




High-Resolution Sea Level Rise Effects In Google Earth

Last week, I posted on how to create an animated depiction of sea level rise due to a storm surge or global warming. Here’s a movie of the flooding for the Manhattan/NYC area:

Got a note from Frank Taylor over at the Google Earth Blog saying that it looked pretty interesting, and that he would have linked to it if it were in Google Earth. That got me to thinking about how you could show the effects of coastal sea level rise in Google Earth with high spatial resolution, both static and animated. I’ll start with the easy one: static.

Continue reading ‘High-Resolution Sea Level Rise Effects In Google Earth’




Mapping Radio Coverage, And Viewing It In Google Earth

JS writes, “I am doing a very small wireless operation in Catalonia, and it would be very interesting to have the coverage map of the antennas. Do you know any free (or cheap) tools to do that and place it on Google Earth?” I know of two free Windows tools useful in analyzing radio coverage. The first one is a general purpose terrain analysis program that will give “quick and dirty” plots of line-of-sight coverage and required antenna heights fairly easily. The second, more sophisticated program is specifically designed for determining broadcast coverage and signal strengths, but is also more difficult to use. Getting the data products into Google Earth can take some work, but can be done.

Continue reading ‘Mapping Radio Coverage, And Viewing It In Google Earth’