Monday, April 2, 2012

Georereference a raster file in gvSIG

There is a function in gvSIG that you can use to georeference any raster images such as scanned images, or photos. The gvSIG georeference function will create world files and other georeferencing metadata information that can be used only with gvSIG apparently. The georeference function has a field to specify the output georeference file but the file is never created. If you want to register raster images for use in gvSIG, then the example below demonstrates the procedure.

Load reference layers and setup the georeferencing views

  1. Start gvSIG. Load and display any geographic features that can be used to aid the georeferencing.

  2. Select Tools | Georeferencing.

    The Georeferencing dialog box appears.

  3. If necessary, toggle on With reference map. Choose a Map view e.g. Untitled - 0.
  4. In the File to georeference field, click Select.

    The Open dialog box appears.

  5. Browse to the raster file e.g. C:\Temp\georef\spiritlakegeology.sid. Click Open.
  6. If necessary, toggle on Affine transformation.
  7. Click Accept.

    The Georeferencing views, Zoomed views, and Ground control points (GCP) windows appear.
 Add Ground Control Points

  1. In the Ground control points (GCP) window, click the New * icon.

    A new row is added to the GCP list.

  2. Use the Zoom icons on the right side of the right Georeferencing view to manipulate the corner of the raster image into the central red box.



    Note: I used the Zoom to select area to zoom in closer to the corner; then the Move image icon to move the corner into the red box.

  3. In the right Zoomed view, click on the raster image corner.

    A numbered GCP cross is displayed at the clicked location.

  4. Use the Zoom icons on the right side of the left Georeferencing view to manipulate the corresponding point of the referencing layers to the central red box.

     
  5. In the left Zoomed view, click on the corresponding corner point.

    A numbered GCP cross is displayed at the clicked point.
  6. Repeat the previous steps 1 to 5 to add in at least 3 GCP points for (Affine transformation).



    Note: If the RMS values in the Ground control points (GCP) window is very large, it may be necessary to edit the control points
Applying the transformation
  1. In the Ground control points (GCP) window, click the Apply icon.

    The raster image is warped into the left Georeferencing view.


  2. In the Ground control points (GCP) window, click the Exit (and save) icon. Click Yes to the prompts.

    The following prompts appear.




    The raster image is warped and displayed in the map view.

No comments: