The Universal Transverse Mercator (UTM) coordinate system is a grid based system for specifying locations on the earth's surface. UTM consists of 60 zones, each with its own local Transverse Mercator projection. The Wikipedia site http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system has more information about UTM.
This Google Mapplet was created to display the UTM grid zones and labels on interactive maps. The current version allows the user to change the grid line color for better visualization over different backdrops.
Click this link http://dominoc925-pages.appspot.com/mapplets/utmgrid.html to run the mapplet.
Monday, January 30, 2012
Monday, January 23, 2012
Join a spatial table with a non-graphical table in gvSIG
It is very useful to join a geospatial feature with a related non-graphical database table for analysis. This is a common feature found in commercial GIS applications like GeoMedia. I found a similar function in the open-source software gvSIG although it seems to handle only inner type joins. An example of using the gvSIG Join command is described below.
- Start gvSIG OADE. Load and display a geospatial feature e.g. States.shp in a map view.
- Load a database table e.g. SalesByStates.dbf.
- In the Map view legend TOC, click on the geospatial feature name e.g. States.shp. Then press the right button of the mouse on the name.
A pop up menu appears. - Choose Join.
The Join tables dialog box appears. - In the Field to join on combo box, choose a common field between the graphical and non-graphical table e.g. STATE_NAME.
- In the Field prefix field, type in the prefix string to indicate the fields from the geospatial feature table e.g. States_shp. Click Next.
- In the Name field, choose the non-graphical table e.g. SalesByStates.dbf.
- In the Field to join on, choose the common field between the non-graphical table and the feature table e.g. STATE_NAME.
- In the Field prefix field, type in the prefix string to indicate the fields from the non-graphical table e.g. SalesByStates_dbf. Click Finish.
The tables are joined.
Monday, January 16, 2012
Connect to non-graphical tabular database data in gvSIG
Being used to commercial GIS software, I was looking around for the option to connect to a non-graphical database table in the gvSIG OADE 2010 application window. I failed to locate the command. Later on, I saw that the command is contained in the Project Manager window - a child form within the main gvSIG application window. Once I found it, it was quite easy to connect to the non-graphical database table as shown in the dbf example below.
- Start up gvSIG OADE 2010.
- In the Project Manager dialog box, click the Table button.
- Click the New button.
The New table dialog box appears. - Click Add.
The Open dialog box appears. - Browse and select a dbf file e.g. SalesByState.dbf. Click Open.
The selected file is added to the list of Tables. - Click OK.
The attribute table is displayed in gvSIG.
Monday, January 9, 2012
Import a CSV text file into gvSIG
Text files formatted as CSV (comma separated values) are a common data transfer method from system to system. In gvSIG, it is possible to import the CSV files into a binary DBF file through an easy to use graphical interface. Instead of calling the function as Import CSV or something to that order, gvSIG uses the term Normalize Text File.
An example of importing a CSV file into a binary .dbf file is illustrated below.
An example of importing a CSV file into a binary .dbf file is illustrated below.
- Start up gvSIG OADE. Open up a View.
- Select Table | Normalize text file.
The Load text file dialog box appears. - Browse and select a CSV file e.g. C:\temp\test.csv. Click Open.
The Normalization dialog box appears. By default, a new field entry named as NewField is listed. - Click the NewField field. In the Field name field, change the value to a suitable name e.g field1.
- In the Separators group box, toggle on Other and type in a comma: ,.
- Click the + button.
A new field NewField2 is added to the list box. - In the Field name field, change the value to a suitable name e.g. field2.
- Repeat the previous steps 4 to 7 for each field.
- Click Test run.
A preview of the normalization is displayed in the Sample output field. - If the preview shows the values have not been separated properly, trace back the previous steps and correct any errors.
- If the preview shows the values can be separated properly, click Run.
The New table dialog box appears. - Browse and type in a new file name e.g. C:\Temp\ImportTest.dbf. Click Save.
The text file is imported and displayed.
Monday, January 2, 2012
Google Gadget for creating ESRI World Files
Note: A WebApp version of this Google Gadget will be up in a short while to replace this gadget.
The ESRI World file is a text file used to georeference a corresponding image file. A detailed description of the format can be found in this Wikipedia page http://en.wikipedia.org/wiki/World_file.
Recently I had to create ESRI World files for hundreds of aerial photographs, each having different origin, resolution and orientation. As a result of that exercise, I learnt enough about the World File format to create this Google Gadget.
This gadget can help to create the world files given the following input parameters:
- X coordinate of the upper left pixel in ground units,
- Y coordinate of the upper left pixel in ground units,
- Size of the pixel in the X-axis direction in ground units,
- Size of the pixel in the Y-axis direction in ground units,
- Rotation angle in degrees of the image from North (clockwise is positive)