Lab Practical

Practical 1

GEO309 7 min read 6 practicals total

Practical 1: Designing of GIS Data Structure for Large Scale Mapping (Spatial Data and Non-Spatial Datasets)

1. Aim/Objective

To design and create a Geographic Information System (GIS) data structure for large-scale mapping by developing spatial datasets (Point, Line, and Area/Polygon symbols) and associating them with appropriate non-spatial (attribute) datasets using GIS software.

2. Apparatus/Components Required

  • Hardware: Personal Computer/Workstation (Minimum 8GB RAM, Multi-core processor), standard mouse with a scroll wheel (essential for precise digitization and panning).
  • Software: QGIS (Quantum GIS - Open Source) v3.x or ESRI ArcGIS Pro.
  • Data Inputs: High-resolution Georeferenced Satellite Imagery or scanned Topographical Map (Large Scale, e.g., 1:5,000 or 1:10,000) to serve as a base map.

3. Theory

A Geographic Information System (GIS) integrates spatial and non-spatial data to enable geographic analysis.

  • Spatial Data: Represents the absolute and relative location of geographic features. In a Vector Data Model, spatial data is represented using geometry primitives:
    • Point (0-Dimensional): Used for discrete features whose area is not relevant at the map's scale (e.g., light poles, individual trees, wells).
    • Line (1-Dimensional): Used for linear features possessing length but no significant width at the map's scale (e.g., roads, railway tracks, streams).
    • Area/Polygon (2-Dimensional): Used for enclosed features having both length and width (e.g., building footprints, lakes, forest boundaries).
  • Non-Spatial Data (Attribute Data): Tabular data detailing the characteristics of the spatial features. For a road (line spatial data), attributes might include name, surface type (asphalt/dirt), and number of lanes.

A comparative educational diagram showing real-world features translated into GIS vector spatial dat...
AI-generated image — may contain inaccuracies

4. Circuit Diagram / Setup (GIS Workflow Architecture)

In a software-based GIS practical, the "setup" refers to the system architecture and the software interface environment.

A detailed block diagram illustrating the GIS Data Structure Workflow. Top box labeled "Data Sources...
AI-generated image — may contain inaccuracies

A graphical representation of a typical GIS software interface layout. Show a large central 'Map Can...
AI-generated image — may contain inaccuracies

5. Procedure

Step 5.1: Software Initialization and Base Map Loading

  1. Launch the GIS software (e.g., QGIS).
  2. Start a New Project and set the appropriate Coordinate Reference System (CRS), preferably a projected coordinate system suitable for large-scale mapping (e.g., WGS 84 / UTM Zone corresponding to your region).
  3. Load the georeferenced base map (Raster image/Satellite imagery) via Layer > Add Layer > Add Raster Layer.

Step 5.2: Designing the Spatial Data Structure (Creating Shapefiles)

  1. Create Point Layer:
    • Navigate to Layer > Create Layer > New Shapefile Layer.
    • File name: Utility_Poles.shp.
    • Geometry type: Point.
    • Add attribute fields (Non-spatial setup): Name (Text/String), Height (Decimal/Real), Install_Date (Date). Click OK.
  2. Create Line Layer:
    • Navigate to Layer > Create Layer > New Shapefile Layer.
    • File name: Road_Network.shp.
    • Geometry type: Line.
    • Add attribute fields: Road_Name (Text/String), Road_Type (Text/String), Width_m (Decimal/Real). Click OK.
  3. Create Polygon Layer:
    • Navigate to Layer > Create Layer > New Shapefile Layer.
    • File name: Building_Footprints.shp.
    • Geometry type: Polygon.
    • Add attribute fields: Bldg_ID (Integer), Owner (Text/String), Use_Type (Text/String). Click OK.

A clear visualization of a "New Shapefile Layer" dialog box in GIS software. Show the Geometry Type ...
AI-generated image — may contain inaccuracies

Step 5.3: Spatial Data Digitization

  1. Select the Building_Footprints layer in the Layers panel.
  2. Click the Toggle Editing (Pencil icon) to start an editing session.
  3. Select the Add Polygon Feature tool.
  4. Left-click to trace the corners of a building visible on the base map. Right-click to finish the polygon.
  5. Immediately upon finishing the polygon, an attribute prompt will appear. Enter the non-spatial data (e.g., Bldg_ID: 101, Owner: "City Gov", Use_Type: "Commercial").
  6. Repeat this process for the Road_Network (tracing lines) and Utility_Poles (clicking single points on the map).
  7. Save layer edits frequently.

A map canvas showing the digitization process in action. A satellite image background showing a neig...
AI-generated image — may contain inaccuracies

Step 5.4: Managing Non-Spatial Datasets

  1. Right-click any digitized layer in the Layers panel and select Open Attribute Table.
  2. Review the tabular data matrix where each row corresponds to a single spatial feature and each column represents an attribute field.
  3. Update or correct any missing data values manually within the table.

6. Observations / Truth Tables / Readings (Attribute Data Schemas)

Once digitization is complete, the non-spatial attribute tables serve as the "Truth Tables" of our geographic entities. Below are the structural observations of the created datasets:

Table 1: Point Feature Attribute Table (Utility_Poles.shp) Feature ID (FID) Shape Pole_ID (Int) Condition (String) Height_m (Real)
0 Point 1001 Good 8.5
1 Point 1002 Requires Maintenance 8.2
2 Point 1003 Good 9.0
Table 2: Line Feature Attribute Table (Road_Network.shp) Feature ID (FID) Shape Road_Name (String) Surface (String) Lanes (Int)
0 Polyline Main St. Asphalt 2
1 Polyline Oak Lane Concrete 1
2 Polyline Pine Ave. Asphalt 4
Table 3: Polygon Feature Attribute Table (Building_Footprints.shp) Feature ID (FID) Shape Bldg_ID (Int) Use_Type (String) Floors (Int)
0 Polygon 501 Residential 2
1 Polygon 502 Commercial 5
2 Polygon 503 Educational 3

A detailed representation of a GIS Attribute Table interface. The window title reads 'Attribute Tabl...
AI-generated image — may contain inaccuracies

7. Calculations (Geometry Calculations)

In GIS, dimensional properties of digitized spatial data can be automatically calculated and added to the non-spatial dataset.

Procedure for calculating Polygon Area:

  1. Open the Attribute Table for Building_Footprints.
  2. Open the Field Calculator tool.
  3. Create a new field: Name = Area_sqm, Type = Decimal number (Real).
  4. In the expression box, type the geometry function: $area
  5. Click OK. The GIS calculates the precise area based on the map's coordinate system.

Procedure for calculating Line Length:

  1. Open Attribute Table for Road_Network.
  2. Open Field Calculator.
  3. Create a new field: Name = Length_m, Type = Decimal number (Real).
  4. Expression: $length

Sample Calculation Observation:

  • Building 501 Area = 145.23 sq meters
  • Main St. Length = 850.45 meters

A visual of the 'Field Calculator' dialog box in GIS software. Top check box 'Create a new field' is...
AI-generated image — may contain inaccuracies

8. Result

The data structure for large-scale mapping was successfully designed and implemented. Three distinct spatial data layers were created:

  1. Point spatial data representing point-based infrastructure.
  2. Line spatial data representing transport networks.
  3. Polygon spatial data representing area-based features.
    Non-spatial attribute databases were successfully linked to these spatial geometries, allowing for geometry calculations (length and area) and structured query mapping.

A final polished large-scale digital map outcome. The map features a clean, categorized display of d...
AI-generated image — may contain inaccuracies

9. Viva Questions

Q1. What is the difference between Spatial and Non-Spatial Data in GIS?
Answer: Spatial data represents the geometry and physical location of a feature on the Earth's surface (Coordinates, shapes). Non-spatial (attribute) data represents the descriptive characteristics or properties of those spatial features (Names, types, dimensions).

Q2. When should you use a Point, Line, or Polygon for spatial data?
Answer: Points are for discrete zero-dimensional objects (trees, wells). Lines are for 1-dimensional continuous objects with length but negligible width (roads, rivers). Polygons are for 2-dimensional enclosed areas having both length and width (buildings, lakes, administrative boundaries).

Q3. What is a "Shapefile"?
Answer: A shapefile is a popular geospatial vector data format for GIS software, developed by ESRI. It stores non-topological geometry and attribute information for spatial features in a data set.

Q4. Why do we need a Coordinate Reference System (CRS) before digitizing?
Answer: A CRS aligns the flat, 2D digitized data to a specific model of the 3D Earth. Without it, the map will lack real-world scale, location accuracy, and the ability to accurately calculate metrics like area and length.

Q5. What is the significance of "Large Scale Mapping" in this practical?
Answer: Large scale maps (e.g., 1:1,000) show a small geographical area in high detail. This requires precise digitization of highly granular features like individual building footprints and utility poles, which would be generalized or omitted in small scale maps.

Q6. What function is used in the Field Calculator to find the perimeter of a polygon?
Answer: In QGIS, the expression $perimeter is used to extract the perimeter length of a polygon geometry into the attribute table.