Assignment 1 Reportmapinfo
Assignment 1 Reportmapinfo
Assignment 1
MapInfo GISY 6026
Bronwyn Fleet-Pardy
1/28/2014
This report entails the processes and procedures for making several different maps. The maps
were created by accomplishing geocoding, demographics and habitat protection analyses. Not
all steps are documented because they were not required, only the necessary applications were
documented within the report. The study area for the geocoding and demographics analyses
was Halifax, Nova Scotia. The study area for the habitat protection analyses was North West
Lunenburg County, Nova Scotia.
Assignment 1
January 28, 2014
Table of Contents
Table of Figures ............................................................................................................................................. ii
Using the SQL Select dialogue box ................................................................................................................ 1
Distance Query and Resulting Table ......................................................................................................... 1
Businesses per Dissemination Area .......................................................................................................... 3
Dissemination Areas containing more Businesses than the Study Area average..................................... 6
Calculating Demographic Data.................................................................................................................. 8
Query One ............................................................................................................................................. 8
The SQL Select Results Table ................................................................................................................ 9
Query Summarizing the 2001 Census Data......................................................................................... 10
Population Density Query ................................................................................................................... 11
Habitat Resource Analysis ....................................................................................................................... 12
Small Lakes Query and Calculate Statistics ......................................................................................... 12
Small Wetlands Query and Calculate Statistics .................................................................................. 15
Small Streams Query and Calculate Statistics ..................................................................................... 18
Protection Zone Analysis......................................................................................................................... 20
Zone 1 and Region Object ................................................................................................................... 20
Zone 2 and Region Object ................................................................................................................... 21
Zone 3 and Region Object ................................................................................................................... 22
Disaggregation of Zone 1 .................................................................................................................... 23
Results and Statistics for Zone 1 ......................................................................................................... 24
Disaggregation of Zone 2 .................................................................................................................... 25
Results and Statistics for Zone 2 ......................................................................................................... 26
Disaggregation of Zone 3 .................................................................................................................... 27
Results and Statistics for Zone 3 ......................................................................................................... 28
Conclusion ........................................................................................................................................... 28
Page i
Assignment 1
January 28, 2014
Table of Figures
Figure 1 ......................................................................................................................................................... 1
Figure 2 ......................................................................................................................................................... 2
Figure 3 ......................................................................................................................................................... 3
Figure 4 ......................................................................................................................................................... 4
Figure 5 ......................................................................................................................................................... 5
Figure 6 ......................................................................................................................................................... 6
Figure 7 ......................................................................................................................................................... 7
Figure 8 ......................................................................................................................................................... 8
Figure 9 ......................................................................................................................................................... 9
Figure 10 ..................................................................................................................................................... 10
Figure 11 ..................................................................................................................................................... 10
Figure 12 ..................................................................................................................................................... 11
Figure 13 ..................................................................................................................................................... 11
Figure 14 ..................................................................................................................................................... 12
Figure 15 ..................................................................................................................................................... 13
Figure 16 ..................................................................................................................................................... 14
Figure 17 ..................................................................................................................................................... 14
Figure 18 ..................................................................................................................................................... 15
Figure 19 ..................................................................................................................................................... 16
Figure 20 ..................................................................................................................................................... 17
Figure 21 ..................................................................................................................................................... 17
Figure 22 ..................................................................................................................................................... 18
Figure 23 ..................................................................................................................................................... 19
Figure 24 ..................................................................................................................................................... 19
Figure 25 ..................................................................................................................................................... 20
Figure 26 ..................................................................................................................................................... 21
Figure 27 ..................................................................................................................................................... 22
Figure 28 ..................................................................................................................................................... 22
Figure 29 ..................................................................................................................................................... 23
Figure 30 ..................................................................................................................................................... 24
Figure 31 ..................................................................................................................................................... 25
Figure 32 ..................................................................................................................................................... 26
Figure 33 ..................................................................................................................................................... 26
Figure 34 ..................................................................................................................................................... 27
Figure 35 ..................................................................................................................................................... 28
Page ii
Assignment 1
January 28, 2014
Figure 1
The SQL dialogue box displays the distance query performed with the X and Y coordinates from the
specified Street Geocoded business table chosen by the analyst. This particular business was Darrells
Restaurant on Fenwick Street in Halifax, Nova Scotia. The distances to the remaining Street Geocoded
businesses were calculated in metres using the CentroidX and CentroidY functions. Several fields were
allocated for the table in the expression by stating after each particular section what the columns name
would be in double quotation marks. Address was not given a defined name in quotes because it clearly
represents the columns contents.
Page 1
Assignment 1
January 28, 2014
Figure 2
Displayed in Figure 2, are the distances from the SQL Select query for the Street Geocoded businesses,
the businesses name and the street address. The columns were ordered in descending order based on
distances to make it more decipherable. The final record with the 0 in the Distance column was the
chosen business.
Page 2
Assignment 1
January 28, 2014
Figure 3
Displayed in Figure 3 is the SQL Select dialogue box for the selection of the number of Street Geocoded
businesses within the study area. The PRCDDA column from the Study Area table was used to determine
and count the number of businesses from the Street Geocoded businesses table. A where clause is
implemented using the Street Geocoded businesses table as the first object and stating to only select
the businesses that fell within the Study Area as the second object. The results were grouped by the
PRCDDA column and the count is given in the specified number of businesses (NumBus) column.
Page 3
Assignment 1
January 28, 2014
Figure 4
The results of the SQL Select are displayed in Figure 4. All of the PRCDDA numbers are unique and
identify a dissemination area. The NumBus column displays the number of businesses in each
dissemination area. Most of the dissemination areas have only one business but two of the
dissemination areas have two businesses in each polygon and a third dissemination area had three
businesses. A Calculate Statistics was performed to determine the exact characteristics. It is shown
below in Figure 5.
Page 4
Assignment 1
January 28, 2014
Figure 5
The Column Statistics dialogue window displays the dissemination areas with businesses. There were 15
total businesses selected from the study area. Out of those businesses, most fall into one dissemination
area. The maximum businesses per dissemination area polygon were three with a minimum of one
being standard. This indicates that the average mean for the dissemination areas is 1.3. These statistics
are taken from the aggregation table created from the SQL Select in Figure 3 and displayed in Figure 4.
Page 5
Assignment 1
January 28, 2014
Dissemination Areas containing more Businesses than the Study Area average
Figure 6
The SQL Select was performed to query the dissemination area unique polygons with greater than
average businesses contained within the Study Area. This was based on the Street Geocoded businesses
within Halifaxs metro area. The table used for the query was the disseminated areas with Businesses
(DAwithBusiness). The selected columns to obtain the attributes were the PRCDDA and the Number of
Businesses (NumBus). A where clause was used to state that within the NumBus table, the businesses
with a greater than average population were to be selected from the dissemination areas table. This is
called a subquery within a query.
Page 6
Assignment 1
January 28, 2014
Figure 7
The resulting table from the SQL Select is displayed in Figure 7. The columns show that there were only
three dissemination areas in the 15 with more than one business in each polygon. As displayed in Figure
4 and 5, there were two dissemination areas with two businesses within the polygons. The third had
three businesses within its dissemination area.
Page 7
Assignment 1
January 28, 2014
Figure 8
This query displays the population data for the study area. The query selects the columns required from
the 2001 Census datasets (food expenditure comes from the CANEX_P1_DA_NS.CEX003 table and the
population data is extracted from the c01popwd_ns table). The where clause joins the two Census
tables to the study area table so that the selected columns can be amalgamated together using the
PRCDDA field as well as the code fields found within the other two tables.
Page 8
Assignment 1
January 28, 2014
The SQL Select Results Table
Figure 9
Presented in Figure 9 is the resulting table from the SQL Select in Figure 8. This is an example of the
combined dataset and not the full table. In total, there were 414 records present. The PRCDDA field
represents a unique number for each polygon dissemination area. The C01totpop column contains the
attributes corresponding to each unique number for the total population each dissemination area
polygon. The C01totdwlg presents the total dwellings for each dissemination area polygon. The
C01totarea displays the attributes for the total amount of area for each polygon. The CEX003 column
exhibits the expenditure spent on food for each dissemination area. The CEX010 column presents the
amount of expenditure spent at restaurants for each dissemination area.
Page 9
Assignment 1
January 28, 2014
Query Summarizing the 2001 Census Data
Figure 10
From the StudyAreaData table, the SQL Select extracts the attributes for the total population, the total
households, the total dwellings, the total area, the total expenditure spent on food and the total
expenditure spent at restaurants. Each of the columns are given a different name that condenses the
attributes titles more clearly. To do this, the alias is written in double quotes after the specified column.
Figure 11
Figure 11 exhibits the previous SQL Select querys table and the resulting attributes. The TotFood and
TotRest columns results are in dollar amounts. This table condenses the table in Figure 9 from 414
records to just one record with six attributes.
Page
10
Assignment 1
January 28, 2014
Population Density Query
Figure 12
The SQL Select query in Figure 12 shows another summarized description of the Census dataset
previously used. The population density was derived from dividing the total population and total area
columns. The population dwellings column was derived from dividing the total population and the total
dwelling columns. The total expenditure spent at restaurants and total expenditure spent on food was
divided and then multiplied by 100 to create a per restaurant column. To rename the newly generated
columns, again the title for each one was written after the equation in double quotes.
Figure 13
The resulting table is exhibited in Figure 13, displaying the calculated attributes for each column.
Page
11
Assignment 1
January 28, 2014
Figure 14
The SQL Select was performed to extract the Area and the Perimeter objects attributes of the Small
Lakes dataset in square kilometres for the study area. The attributes were given alias names using the
double quotes method.
Page
12
Assignment 1
January 28, 2014
Figure 15
In Figure 15, the results from the previous query are displayed. The lakes that appear in the study area
are relatively small and are mostly less than one square kilometre.
Page
13
Assignment 1
January 28, 2014
Figure 16
The Calculate Statistics tool was performed twice on the Small Lakes dataset. The first was to determine
the Area statistics. The Sum calculated for the lakes in the study area based on the Area field was 3.9,
with a total Count of 16 and the mean was 0.2.
Figure 17
The second was to calculate the perimeter statistics. They were both calculated in kilometres. The
attributes of the Perimeter statistics reveal that the mean is 0.2.
Page
14
Assignment 1
January 28, 2014
Small Wetlands Query and Calculate Statistics
Figure 18
The SQL Select was performed to extract the Area and the Perimeter objects attributes of the Small
Wetlands dataset in square kilometres for the study area. The attributes were given alias names using
the double quotes method.
Page
15
Assignment 1
January 28, 2014
Figure 19
In Figure 19, the results from the previous query are displayed. The wetlands that appear in the study
area are quite petite. They are all less than one square kilometre in Area and most less than a kilometre
when based on Perimeter.
Page
16
Assignment 1
January 28, 2014
Figure 20
The Calculate Statistics dialogue window displays the statistics for the small wetlands based on
Perimeter. The total Count for the study area is 15 and the Mean is 0.9.
Figure 21
The second Calculate Statistics dialogue window exhibits the attributes for the small wetlands when
based on the Area field.
Page
17
Assignment 1
January 28, 2014
Small Streams Query and Calculate Statistics
Figure 22
Another SQL Select was performed to attain the length (in kilometres) of all the streams in the study
area. It was given the alias Length to clearly label the column.
Page
18
Assignment 1
January 28, 2014
Figure 23
The resulting table displayed in Figure 23 shows the calculated length for each segment of stream in the
study area corresponding to its unique identifying code.
Figure 24
The Calculate Statistics were performed on the small streams dataset to obtain the attributes shown in
Figure 24. The average for all 21 sections of the streams is 0.6.
Page
19
Assignment 1
January 28, 2014
Figure 25
Displayed in Figure 25, is the first habitat protection zone created, named Zone 1. The Region Object
dialogue window is also displayed in Figure 25. In the dialogue box is presented the total square
kilometres of Area and Perimeter for the study area. There are six polygons and 2109 line segments for
the habitat zone. There is only one habitat in the protection zone, based on a 250 metre buffer on the
lakes, wetlands and streams. The Total Area in Zone 1 for all habitats is 20.74 square kilometres.
Page
20
Assignment 1
January 28, 2014
Zone 2 and Region Object
Figure 26
The Zone 2 habitat protection area has a total of 14 polygons and 1575 line segments. The total Area
and Perimeter are calculated above in Figure 26 and displayed in kilometres. Zone 2 exhibits two
protection areas based on the 250 metre buffer that was utilized on the lakes, wetlands and streams in
the study area. The Total Area in Zone 2 for all habitats is 7.0 square kilometres.
Page
21
Assignment 1
January 28, 2014
Zone 3 and Region Object
Figure 27
The third protection zone contains 9 polygons and 397 line segments. To create the zone, the lakes,
wetlands and streams had a 250 metre buffered utilized as with the previous protection zones. This
habitat contains three separate habitats. The Total Area in Zone 3 for all habitats is 1.1 square
kilometres.
Figure 28
Figure 28 displays the Buffer Object dialogue box for the creation of the buffered lakes, wetlands and
streams. Although this was implemented before the creation of the zones, the analyst decided to exhibit
it in this section of the report since it is relative to all three habitat protection zones.
Page
22
Assignment 1
January 28, 2014
Disaggregation of Zone 1
Figure 29
The disaggregation of Zone 1 was performed by using an SQL Select based on the ID field and
determined the Area in square kilometres.
Page
23
Assignment 1
January 28, 2014
Results and Statistics for Zone 1
Figure 30
The table that resulted from the query is displayed in Figure 30 to the left. To the right is the Calculate
Statistics dialogue box for the disaggregated Zone 1. This was based on the Area field. The average in
square kilometres for Zone 1 was 4.1.
Page
24
Assignment 1
January 28, 2014
Disaggregation of Zone 2
Figure 31
The disaggregation of Zone 2 was performed by using an SQL Select based on the ID field and
determined the Area in square kilometres.
Page
25
Assignment 1
January 28, 2014
Results and Statistics for Zone 2
Figure 32
Figure 33
The Calculate Statistics were applied on the table based on the Area field to determine the attributes in
square kilometres for the disaggregated Zone 2. The average in square kilometres for Zone 2 was 0.5.
Page
26
Assignment 1
January 28, 2014
Disaggregation of Zone 3
Figure 34
The disaggregation of Zone 3 was performed by using an SQL Select based on the ID field and
determined the Area in square kilometres.
Page
27
Assignment 1
January 28, 2014
Results and Statistics for Zone 3
Figure 35
The table that resulted from the query is displayed in Figure 35 to the left. To the right is the Calculate
Statistics dialogue box for the disaggregated Zone 3 based on the Area field. The average in square
kilometres for Zone 3 was 0.12. The third record down has an integer that has an exponent to the power
of minus 005. The analyst was unable to determine why the full integer path was not displayed.
Conclusion
All required processes and procedures were accomplished for this assignment. Attached with this
document are 8 maps produced from the resulting datasets.
Page
28