GIS Tutorial
GIS Tutorial
Map digitization, Attribute data entry, Generating thematic maps, Connecting to external
databases in MS Access. Map overlays and Map layouts
Introduction to Geomedia:
Geomedia is a vector based GIS operating on Windows 95/98/2000 platforms. A GIS consists of both
data and maps (spatial representations of data). Data can be both spatial (geographic) and attribute
data. But maps are not stored within the computer, only data are stored. During vector digitization
spatial databases that identify digitized features, their properties and the topology are created. These
are used to create the map on screen when required. The distinguishing feature of Geomedia is that it
separates the map and data spaces into distinct folders. Maps are created, edited and viewed in the
Geoworkspaces folder. The related spatial data tables are created during the digitization in one MS
Access file (*.mdb) stored in the Warehouses folder. Different types of data are carried in the many
Tables created within this .mdb file. Attribute data can be a Table in the same file or in other access
files. A map is to be viewed in the Geoworkspace folder after connecting to the data files in the
warehouse folder. The attribute data can be in external data bases created in MS Access and can be
connected to the geoworkspace. This facilitates direct interfacing with MS Access databases and
querying facilities. It also allows the attribute data to be managed independently of the GIS.
Activities:
(i) Digitize the given map of AP DISTRICTS with 3 feature classes- State boundary, Raingauge
stations and Districts
(ii) Enter district attribute data and create thematic maps using Geomedia Professional GIS
software.
(iii) Connect to the MS Access database APRICE.MDB created earlier, query data of rice
production and area, and generate thematic maps for rice yield
(iv) Overlay the raingauge station and districts feature classes, and
(v) Prepare a standard map layout for the thematic map in (iii) with legend, labels, scale, etc.
Given:
(i) Map of Andhra Pradesh Districts in 1:4 million scale, with data of longitude and latitude of
several locations, including raingauge station locations.
(ii) The scanned image of the map.(Download)
(iii) MS Access database APRICE.MDB containing data of rice area and production in districts
(developed as a practical exercise in MS Access) (Download)
Creating the GIS project in Geomedia proceeds in the following main steps:
PROCEDURE
In the NEW Dialogue Box, Keep the default template Name , i.e NORMAL.GWT and Click on
NEW . A new geoworkspace with default name GeoWorkspace1 is created.
2
Select SAVE GEO WORKSPACE option from the FILE menu and enter the File Name as
APDATA. Keep the Default File Type i.e Geo Workspace and Click on SAVE button.
The Geo Workspace contains the empty legend and the map window. The map window, which is
titled MapWindow1 by default, is the window in which feature geometries and images are viewed.
The warehouse is the source of geographic data for Geo Media Professional. Access and Oracle
warehouses are the only types of data warehouses that can be created through Geo Media
Professional. (But it allows connecting to other types of data warehouses (MGE, FRAMME, MGE
Segment Manager, ARC/INFO, Arc View, MapInfo, MGDM, or CAD to view and query data.
However, each warehouse can contain only one type of geographic data). In this project an ACCESS
warehouse will be created:
During digitization, Geo Media Professional creates a default coordinate system for screen display
purposes. Specifying a new coordinate system provides a way to project the default coordinate
system to the original geographic coordinate system of the map being digitized. This will involve
specifying the map’s projection system, its coordinates and the geodetic datum. To create a new
warehouse coordinate system:
3
Click on the PROJECTION SPACE tab of the Warehouse Coordinate system Dialogue
Box. This allows selection of a projection algorithm and definition of projection parameters
that are unique to the selected algorithm.
Click on the PROJECTION ALGORITHMS. Select POLYCONIC from the displayed list
as the projection algorithm for the current project as this is the standard for maps prepared by
Survey of India.
Click on the PROJECTION PARAMETERS option to specify the parameters for the
selected projection algorithm:
Type the coordinates (long, lat) of chosen origin (say Nalgonda) (longitude=79:16:00 and
Latitude = 17:03:00 for the AP Districts map to be digitized. These represent a location
roughly the mid region of the map). Let correction factors False X and False Y remain at
default value of 0.
Click OK
Click on the GEOGRAPHIC SPACE tab in the Warehouse Coordinating System dialogue
box to select the map’s associated datum and reference ellipsoid. Click on the
Geodetic datum option to get drop-down list of available datum. (geodetic datum is a
precise location of the ellipsoid relative to the earth's surface and a network of control points .
This definition usually includes the origin point of the ellipsoid, its orientation, and the radius
and eccentricity of the ellipsoid )
Select the INDIAN 1975 as geodetic datum for the current warehouse coordinate system as
this is the standard for Indian maps..
Click on OK
Click on the Projection Space tab of the Geoworkspace Coordinate system Dialogue Box.
Type 79:16:00 as the Longitude of Origin in the Projection Parameter Dialogue Box
4
Click OK
Click on the Geographic Space tab in the Geoworkspace Coordinating System dialogue box
Click on the Geodetic datum option to get drop-down list of available datum
Select the INDIAN 1975 as geodetic datum for the current Geoworkspace coordinate system
Click on OK
Feature : A geographic entity that is represented on a map by geometry and defined by non graphic
attributes in the database. Three geographic features are identified: points, lines, areas
Feature class : The classification to which each instance of a feature is assigned. For example, a data
set generally consists of several feature classes, such as roads, bridges, schools, and churches. Each
feature class will have associated with it a data table created in Access. The names of fields of this
table (feature id, etc.) will need to be entered and primary key will also need to be identified
5
At the end of this one empty MS Access table is created in the warehouse with one field, called TICS
in the warehouse APDATA. This Table will have only one field TICID, which is filled
automatically as each tic is digitized.
6
Select the CHARACTER as the Data Type
Click on OK
Click on CLOSE
At the end of this one MS Access table is created in the Warehouse folder APDATA called
DIST_BOUND, with 3 fields, ID, DISTID, DISTNAME. DISTID is the primary key (DISTID will
be filled automatically as each district is digitized successively. The other two fields represent
attribute data of districts to be provided by the user. More fields can be added for attribute data if
required.)
• Map Registration
Digitizing tics (reference points) is done by directly entering the coordinates of 4 reference points.
The reference points are selected to be broadly at the 4 corners of the map of AP Districts. The
reference points chosen for this project are listed in the table below:
Enter the 4 pairs of Longitude and Latitude data (given in Table below) successively in the (long,lat)
window.
By Clicking FIT ALL Icon or ZOOM IN or ZOOM OUT Icons make sure that all the four points
are visible on the screen.
7
Insert Scanned Image (of Given District map of AP, Fig.1)
The image will not appear on the screen yet. Create a box for the image on the screen, that lies within
the four reference points by DRAGGING with mouse. Select a point close to the lower left tic point
as the starting point of the box. Make sure that the box is within the displayed four points (tics) only.
The scanned image of the AP Map is inserted within the box.
Image Registration
This registers the image (scanned map) with respect to the digitized reference (tic) points. (This will
ensure that when the registered map is digitized later, it will be with reference to the coordinates of
the tics so that any point in the digitized map will be automatically georeferenced.)
An image can also be re-registered by editing the registration originally used to register the image. A
saved registration can also be edited to improve the accuracy of registration.
Select the image to be registered by Clicking on the Image (obtained at end of stage H)
Click on Tools Menu
Click on Image Registration.
Click on New option On the Registrations dialog box,.
Click Add Points on the New Image Registration dialog box.
The dialog box disappears, and you are prompted to enter source control-point 1. (see text on the task
bar):
Note in the following source = scanned image and target = visible tic points. Clearly note the 4 points
on the image (source) that correspond to the 4 tics (target points)
Click in the map window at the first source control point i.e Srikakulam (on the raster image).
Next, Click in the map window at the corresponding target control point (Tic point representing
location of Srikakulam).
Similarly match the Source control-point and Target Control Points for the remaining 3 places i.e
Chittore, Adilabad and Hyderabad)
Care needs to be exercised not to click any where on the screen except at the source and target
points, as each such click will be registered as a reference point.
Finally, double click to end.
8
(Note that all four reference points may not be simultaneously visible on the screen. Then it
becomes necessary to zoom in to match successive pairs of source and control points. Each time you
zoom in press ESC key to return to registration mode. Even when all points are visible, it is preferable
to use the zoom feature to register accurately)
The New Image Registration dialog box appears with the control-point grid populated for each control
point pair that was created.
After three or more control points are added, the calculated error for the pairs is given on the New
Image Registration dialog box as RMS error. If the error is unacceptable, each pair of points can be
selected from the table and edited.
Click on Image
Click on Tools Menu
Click on Image Registration
Select Point 1
Click on EDIT SOURCE
Zoom to maximum extent and press ESC key
Then click Exactly on Target point
Similarly edit other source points to match accurately with the target points till acceptable RMS is
reached.
Click on REGISTER
Save Geo workspace
• Vector digitization of registered scanned image ( raster image) on screen for each
feature class
The registered raster image (AP Districts Map) will be digitized by tracing over the boundaries on the
screen to turn into vector data
Click on ZOOM IN
9
Click at a point to Start digitization of the State Boundary
By using ZOOM In and Pan Icons make sure that boundary is clearly visible on the screen then, with
the help of mouse start tracing from any point along with State Boundary. Click the mouse pointer on
vertex as and when needed
(Each click will be registered as a point /node. Two adjacent nodes will be joined by straight line.
Nodes will need to be placed more frequently along sharp curves. Use your judgment in deciding on
which points along the boundary to click)
After completing the digitization of the state boundary (that is, when you return to the point from
which digitization of the state boundary started.) DOUBLE CLICK. The attribute table will appear
Click on ZOOM IN
Click on one point location , say Adilabad
By using ZOOM In and Pan Icons make sure that required station , that is DOT , is clearly visible on
the screen then, with the help of mouse Click on the required Station point (DOT). Digitize the
raingauge station points by clicking on them successively (Alternately the longitude and latitude of
the stations can be entered from the following table. It is suggested that the digitization be done on-
screen and the longitude and latitude of digitized stations compared with those in the table
10
Latitude and Longitude of the stations in districts
Click on ZOOM IN
Click on one districts, say Adilabad
11
By using ZOOM In and Pan Icons make sure that district boundary is clearly visible on the screen
then, with the help of mouse start tracing from any point along with District Boundary.( Preferable a
common point between two districts) Click the mouse pointer on vertex as and when needed. While
digitizing you need not once again digitized the district boundaries for which districts having the
common boundaries of the state. In such case, hold the common pointer between state boundary and
district boundary, and show the common boundary without clicking the mouse. At last point of the
common boundary click the Mouse.
(Each click will be registered as a point /node. Two adjacent nodes will be joined by straight line.
Nodes will need to be placed more frequently along sharp curves,. Use your judgment in deciding on
which points along the boundary to click)
After completing the digitization of the District boundary (that is, when you return nto the point from
which digitization of the state boundary started.) DOUBLE CLICK. The attribute table will appear
The digitized nodes and liners of the selected district are displayed. Edit the respective and lines of the
selected district are displayed. Edit the respective nodes and lines using mouse.
After completion of editing press <ESC> key to come out from Edit Geometry Mode
12
Viewing Area, Perimeter of the District in the database
Area and Perimeter of each polygon (district) are automatically calculated while digitizing,. To view
these parameters
Click on ANALYSIS
Click on ANALYZE GEOMETRY
Select DISTRICT as the FEATURE TO ANALYZE
Click on AREA an PERIMETER as option for FIND
Click OK
Click on WINDOW
Click on NEW DATA WINDOW
Click on APDATA in the SLEECT FEATURE CLASS dialogue box
Click on DISTRICT
Click OK
The database window with area and perimeter fields are displayed
Close the data window
The attribute data of Rice Total Irrigated area in 1994 will be added to the district feature class
Click on WINDOW
Click on NEW DATA WINDOW
Click on APDATA in the SELECT FEATURE CLASS dialogue box
Click on DISTRICT
Click OK
13
DISTNAME NRIS_ID YEAR RICETAI
Srikakulam 101 1994 171.55
Vizianagaram 102 1994 117.03
Visakhapatnam 103 1994 77.46
East Godavari 104 1994 379.90
West Godavari 105 1994 458.17
Krishna 106 1994 395.80
Guntur 107 1994 300.83
Prakasam 108 1994 134.85
Nellore 109 1994 208.12
Kurnool 110 1994 58.52
Anantapur 111 1994 36.00
Cuddapah 112 1994 51.53
Chittoor 113 1994 76.61
Rangareddy 114 1994 32.44
Hyderabad 115 1994 0.08
Nizamabad 116 1994 105.97
Medak 117 1994 77.15
Mahabubnagar 118 1994 65.78
Nalgonda 119 1994 227.06
Warangal 120 1994 133.03
Khammam 121 1994 138.30
Karimnagar 122 1994 155.84
Adilabad 123 1994 43.35
A thematic display symbolizes geographic features according to non-graphic attribute data through
the use of color and other user-defined display properties. A thematic display is created from a feature
class in any open warehouse connection, or from a query in the active Geo Workspace.
From the available attributes for the selected feature class in the Available attributes list.
Select RICETAI
Click on Range in the ADD THEMATIC ENTRY Dialogue Box
Click on DEFINE
Select EQUAL RANGE as the option for Map Range Technique in the Map
By Range Dialogue Box
Select 4 for the Number of Range (if you digitize more than two districts)
Click on Color Selection Icon to pickup required color
Click on OK in the Map By Range Dialogue Box
Click on OK in the Add Thematic Entry Dialogue box
14
Then the selected RICE TAI attribute is displayed in the Map
Labels are text strings that are inserted as features in a feature class of a warehouse, or output as a
query in a Geo Workspace. To create labels, the map window must be active and a open warehouse
connection open. The content of the label may be composed of keyed – in text and one or more
attribute values derived from values stored in the warehouse. Labels can be output as a query or a
feature class.
Outputting as a query allows the labels to be automatically associated with the feature being labeled.
Thus, labels automatically update if attribute values on which they are based change and are moved,
deleted, and so forth, when their corresponding features are edited. However, labels cannot be edited
until they are output to a read / write feature class. Conversely, outputting as a feature class does not
provide the active link for attribute values, but allows the labels to be edited independently of their
corresponding features.
Click on Insert
Click on Label
Click on the Label features in drop-down list
Select the APDATA
Select DISTRICT feature class
Click on DISTNAME attributes in the Attributes list box to place them in the Layout text box
In the Layout text box, type any text to appear in the label.
Press CTRL+ENTER to create a new line
Keep the default alignment for label placement,
Click on Style to change the default text style using the Style
Definition dialog box
Click OK.
It is possible to connect to and display multiple attribute data contained in Access databases
simultaneously and map them as required.
The WAREHOUSE CONNECTION WIZARD displays the different types of warehouses to which
you can connect.
15
Select the option LET THE WIZARD OPEN THE CONNECTION AS READ-ONLY. This option
ensures that the original source database is not changed in Geomedia.
Click on FINISH.
The connection between the geoworkspace/warehouse in geomedia and the Access database is now
made. To verify this:
Click on window in main menu
Select New data window
Click on connection name APRICEDATA to display the tables in the Access database
Similarly, Double Click on RICERY and repeat above steps up to clicking the Expression box
In the description box type [RICERP/RICERA]
Click OK
Click Apply
The kahrif and rabi rice yields are calculated for all the years.
A join is a type of query that extracts selected data from two tables that have at least one common
field and combines it into a new table
CREATING A JOIN
Use Analysis > Join to perform multi-field joins on feature classes and queries. Which feature classes
or queries to join, which attributes within those feature classes or queries to join on, and what type of
join operation to perform need to be specified.
16
Note Join uses the geometry from the left feature class or query when attempting to display the join
in a map window. Therefore, when joining two feature classes or queries that are not nongraphic,
select as the left side of the join, the feature class or query whose geometry should be displayed.
Querying Rice data for the year 1997 for thematic mapping
A QUERY requests information from a database. Queries can be on feature classes and on other
queries. It is possible to define both attribute filter and spatial queries. Labels and joins can also be
stored as queries.
Three kinds of queries with the New Query command can be defined: attribute filter, spatial, and
linear network query. An attribute filter query allows request of information from the database about
one feature class or query. A spatial query requesting information from the database about two
feature classes or queries and their spatial relationships to each other.
A query can be defined on a feature class or on another query in the active GeoWorkspace. Spatial
queries can be run across different warehouses and warehouse types.
17
2 From the Select features in drop-down list, select the warehouse connection that contains
the feature class That is, APDATA
3 Select the APRICE feature class from the list.
4 Click on FILTER to select attributes of the feature class to be queried,
5 Click on YEAR from the ATTRIBUTES
6 Select “ = “ sign as the operators
7 Click on SHOW VALUES and click on OK
8 Select 1997 from the displayed years
9 Click on OK
10 Type a new name for the query say RICEYIELD97
11 On the New Query dialog box, click OK.
Thematic Map for Rice Kharif Area for the year 1997
Then it will display the available attributes in the RICE query. From the available attributes
Select RICEKY
Click on RANGE in the ADD THEMATIC ENTRY Dialogue Box
Click on DEFINE
Select EQUAL RANGE as the option for Map Range Technique in the Map
By Range Dialogue Box
Select 4 for the NUMBER OF RANGE (if you digitize more than two districts)
Click on Color Selection Icon to pickup required color
Click on OK in the Map By Range Dialogue Box
Click on OK in the Add Thematic Entry Dialogue box
• Map Overlays:
The overlay (Intersection or Difference) is a linear - network query that is used to query distributed
attributes. Overlay option is used to overlay different thematic maps, queries and different map
features, which are with in the Geo workspace. Union as well as differences between two specified map
features can be done and the data related to them is seen in the Data window.
Click on Analysis
Click on Spatial Intersection
A Spatial Intersection Dialog Box is seen
Select Station as input feature class
Select Districts as output feature class
In spatial operators Click on OVERLAP
18
Name the query Station_districts
Type Station_district as map window and Type Station_district as data window
Click OK
The result of the overlay map is seen in the Data window station_district (see fig 6)
19
Layout of Map / Geo workspace:
The layout of Geoworkspace : You will import an existing layout from a Geo Media Layout
Template(.glt file). The Template automatically defines the page setup parameters and contains four
Smart Frames (for a map, north arrow, legend and scale bar). You will use the template and delete the
default sheets that are not used.
You will work in the sheet called A Wide. The layout window provides a "working" sheet and a
"background" sheets. The default working sheet is called Sheet 1and the default background sheet
called background 1, both the default sheets are to be deleted.
Select Sheet1 by Clicking on the Sheet1 on the lower- left corner of the layout window.
Select Sheets > Delete Sheet
Click OK, Sheet1 is deleted only A Wide remains as the working sheet , which is defines as foreground
of the layout and it usually contains the graphics that are unique to a particular layout.
Select View > Background Sheets.
Select Background1 by clicking on the Background1 tab.
Delete it by selecting Select > Delete Sheet
Click OK, the background1 is deleted and A Wide Background remains. (The background sheets
typically contain the graphics that are the same for multiple layouts, whereas foreground sheets are
usually unique.)
Select View > Working Sheets.
Page setup:
Since you are using the template, the page setup of the sheet has already been defined. By using the
Page setup command you can review the paper size, orientation, and other settings of the page.
Detach the background sheet by selecting the blank field in the Background drop-down list.
Click OK, on the Layout Window page setup dialog box.
Select View > Background sheets (toview the graphics on the background sheet)
Select View > Working Sheets ( to View the graphics on the view working sheet)
20
To re-attach the A Wide-Background sheet to the A Wide working sheet, you must view the working
sheet .
Select File > page Setup
Select A Wide-Background for the background using the Background dropdown sheet.
Click OK.( the background sheet is displayed along the foreground)
By the above exercise all the features of the Graphics like map, Legend, North arrow and Scale bar
and one empty smartframe are viewed on layout window.
21
Select Fit to frame.
Make sure that no Associated marginalia options are checked.
Select Static(disables updates).
(Selecting this option means that if a change is made to the country map window, the change will not be
reflected in this smart frame on the layout sheet.
Click OK.( The map called Location is placed into its corresponding smart Frame.)
22
8. Click on Finish (see Fig.8)
1. Click on Warehouse
2. Click on Import from Warehouse
3. A Import Warehouse wizard window will appear
4. Click Next
5. Select the connection ( the folder which you want to import into mapwindow)
6. Click Next
7. Click Next
8. Select all the shapefiles
9. Click Next
10. Again Click Next
11. Click Finish
12. Click Close
1. Activate District map, Right click on it and Click Display on( which is Digitised in
the beginning)
2. Click on Select tool (arrow). Click on the District map to read the data.
3. Right Click on District Click on Display off.
4. Now highlight the imported shapefilemap agroeco_ap
5. Once two maps are brought onto map window
6. Click on Analysis menu , Select Spatial Intersection.
7. A Spatial Intersection dialog box is open, Select Districts as first input future.
8. Select agroeco_ap as Second input future
9. Select overlap command from Spatial operators.
10. Type overlay_ap as a Query name.
11. Click on Display Intersection in data window, Type overlay_ap as a Data window
name.
12. Click Ok
13. overlay_ap map and overlay_ap data window are seen on window.
14. close overlay_ap data window.(see Fig:9)
Editing of Maps to remove very small polygons:
The overlay_ap map is a Read-only map. It is not editable. In order to make it
editable, Create a new coverage.
23
7. Similarly in Second row, Type Dist_name as Attribute and character as Data type.
8. In third row Type agro_no as Attribute name and number as Data type.
9. In forth row Type agro _region as Attribute name and number as Data type.
10. Type Dist_id as Attribute name and number as Data type.
11. Click Ok.
12. Click Close.
13. Click on Insert menu and Select Feature ( a Feature box is attached to the mail
menu).
14. Select the Coverage ap_result from the Feature box. Now your cursor will change in
to editable mode.
15. Edit the coverage by re-digitizing keeping the district boundary unchanged; Remove
the arcs of agroeco_ap map which forms very small polygons with the Dist_ap map
boundary.
16. After editing the whole coverage a map ap_result is prepared.( Fig.10)
24