Share
Embed
SOC 4650/5650 - Lecture-03
Slides for Lecture 03 of the Saint Louis University Course Introduction to GIS. These slides introduce the Git as well as some principles for cartographic design and working with color.
Christopher Prener
January 27, 2020
Transcript
115 slides
-
Make sure you have completed the entry ticket for today!
(https://slu-soc5650.github.io/docs/lecture-03/) Log into the desktop (unless you are using your own laptop) and make sure you know where the ArcGIS Pro icon is. If you have not already done so, sign in to ArcGIS Pro as well! WELCOME! GETTING STARTED Make sure you have the Lab-01 materials are on your Desktop! Download and install GitHub Desktop: https://desktop.github.com -
CARTOGRAPHY 101 INTRODUCTION TO GIS CHRISTOPHER PRENER, PH.D. SPRING 2020
WEEK 03 LECTURE 03 -
AGENDA INTRODUCTION TO GIS / WEEK 03 / LECTURE 03
1. Front Matter 2. Analysis Development 3. Some Basic Cartographic Concepts 4. Cartographic Design 5. Working with Color 6. Types of Maps 7. Back Matter -
Final project instructions are up for everything except the SOC
5650 written portion. This week’s goal - pick a data set and pick a topic, and submit WP-01. There will be a lab, Lab-02, due next Monday along with another check-in - eTicket-04. Lab-01 and eTicket-03 were both due today! WELCOME! GETTING STARTED -
KEY QUESTIONS ▸ How do you organize files? ▸ Do
you keep different versions of files as your assignment or project progresses? ▸ If you needed your files in 5 years, could you find them? ▸ If you needed your files in 5 years, could you open them? ▸ Do you backup files ever? ▸ If your house was robbed or burned down, would your backup also be destroyed? 4. ANALYSIS DEVELOPMENT -
KEY QUESTIONS ▸ How do you organize files? ▸ Do
you keep different versions of files as your assignment or project progresses? ▸ If you needed your files in 5 years, could you find them? ▸ If you needed your files in 5 years, could you open them? ▸ Do you backup files ever? ▸ If your house was robbed or burned down, would your backup also be destroyed? 4. ANALYSIS DEVELOPMENT Git & GitHub can help you address all of these key questions/issues! -
KEY TERM A repository is a top-level directory that has
Git version control enabled. -
GIT WORKFLOW 4. ANALYSIS DEVELOPMENT TYPICAL WORKFLOW Commits are snapshots
of files that are saved at particular points in time. -
4. ANALYSIS DEVELOPMENT TYPICAL WORKFLOW “OK, so why the $#&%
did I save a second copy?!?!?! And why the $#&% was the first copy edited after the second copy!?!?!? -
4. ANALYSIS DEVELOPMENT GIT WORKFLOW Local repos can “sync” with
a “remote” repo, making backup and sharing easy -
4. ANALYSIS DEVELOPMENT GIT WORKFLOW Copying data for the first
time from GitHub is called making a “clone” -
4. ANALYSIS DEVELOPMENT GIT WORKFLOW Copying data for the first
time from GitHub is called making a “clone” Clone make changes Commit Sync -
SOME PRINCIPLES OF ANALYSIS DEVELOPMENT 1. Use one and only
one course directory structure, saved on an external device. 2. Commit changes early and often. 3. Use ArcGIS Projects for all work requiring ArcGIS. 4. Use R Projects for all work requiring R. 5. Always use the same project directory structure. 6. Write notebooks for humans, not computers. 4. ANALYSIS DEVELOPMENT -
WHAT IS A SHAPEFILE? We often describe shapefiles in the
singular, as if they were one file on our computer. That is how ArcGIS sees them. Our computer sees things differently, however: data.shp (geometry) data.shx (shape index) data.dbf (attributes) data.sbn (spatial index) data.sbx (spatial index) data.shp.xml (metadata) data.cpg (character encoding) data.prj (projection) -
WHAT IS A GEODATABASE? Geodatabases are designed to overcome weaknesses
of shapefiles, and may contain a large number of feature classes. cityData.gdb Boundary_City Demographics_Tracts Hydro_MajorLakes Hydro_MajorRivers PublicSaftey_PoliceStations PublicSaftey_FireStations Trans_Interstates Trans_StreetCenterlines -
EVERYTHING IS RELATED TO EVERYTHING ELSE, BUT NEAR THINGS ARE
MORE RELATED THAN DISTANT THINGS Waldo Tobler “A computer movie simulating urban growth in the Detroit region” (1970) -
3. SOME BASIC CONCEPTS NEAR THINGS ARE LIKE OTHER NEAR
THINGS Geographic patterning or “clustering” is referred to as spatial autocorrelation. -
3. SOME BASIC CONCEPTS PAST BEHAVIOR IS PREDICTIVE When patterns
repeat over time, like traveling the same route for your commute, we refer to them as having temporal autocorrelation. -
KEY TERM Topographic maps are special types of reference maps
that use a basemap with contour lines describing terrain - changes in the altitude and shape of the earth’s surface. -
VISUAL CONTRAST Missouri Botanical Garden Tower Grove Park Zoning Codes
by Parcel St. Louis, MO -
VISUAL CONTRAST Missouri Botanical Garden Tower Grove Park Zoning Codes
by Parcel St. Louis, MO -
VISUAL CONTRAST Missouri Botanical Garden Tower Grove Park Zoning Codes
by Parcel St. Louis, MO -
VISUAL CONTRAST Missouri Botanical Garden Tower Grove Park Zoning Codes
by Parcel St. Louis, MO -
▸ Assign bright colors (red, orange, yellow, green, blue) to
important graphic elements (features) ▸ Important features are known as “figure” ▸ Assign drab colors to the graphic elements that provide orientation or context ▸ Contextual features known as “ground” 4. CARTOGRAPHIC DESIGN VISUAL CONTRAST All features in figure Circles in figure, squares and lines in ground -
! ( ! ( ! ( ! ( ! (
! ( ! ( ! ( ! ( ! ( ! (! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! (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( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( ! ( District 2 District 1 District 6 District 5 District 3 District 5 District 4 FIGURE-GROUND Dangerous Buildings in Kansas City, MO -
4. CARTOGRAPHIC DESIGN HIERARCHICAL ORGANIZATION ▸ What order should layers
be in? ▸ Should different layers be given greater or more limited visual emphasis? ▸ For thematic maps, the data should have the emphasis rather than the geographic features of the map itself -
5. WORKING WITH COLOR RATIONALIZED COLOR SYSTEMS PHILLIP OTTO RUNGE
ALBERT HENRY MUNSELL -
5. WORKING WITH COLOR ALBERT HENRY MUNSELL PROFESSOR, MASS. NORMAL
ART SCHOOL BORN 1858, DIED 1918 -
5. WORKING WITH COLOR MUNSELL COLOR SYSTEM - HUE Red
Blue-Green Green Blue Yellow Purple -
5. WORKING WITH COLOR MUNSELL COLOR SYSTEM - VALUE 0
1 2 3 4 5 6 7 8 9 10 -
▸ Warm colors are associated with activity, sunlight, and stimulation
• Warm colors in the foreground will stand out and draw attention ▸ Cool colors are associated with relaxation and calming • Cool colors recede into background 5. WORKING WITH COLOR TEMPERATURE Warm Cool -
5. WORKING WITH COLOR RGB COLOR MODEL Red Green Blue
Cyan Magenta Yellow ▸ Additive color model - red, green, and blue light are combined to generate various hues by producing light ▸ Secondary hues of yellow, magenta, and cyan ▸ Hues are specified by coordinates for each primary color that range from 0 to 255 ▸ Used for specifying colors to be displayed electronically -
5. WORKING WITH COLOR RGB COLOR MODEL ▸ Additive color
model - red, green, and blue light are combined to generate various hues by producing light ▸ Secondary hues of yellow, magenta, and cyan ▸ Hues are specified by coordinates for each primary color that range from 0 to 255 ▸ Used for specifying colors to be displayed electronically Red Green Blue Red Green Blue -
5. WORKING WITH COLOR RGB COLOR MODEL RGB (red coord.,
green coord., blue coord.) RED - 255, 0, 0 GREEN - 0, 255, 0 BLUE - 0, 0, 255 YELLOW - 255, 255, 0 ORANGE - 255, 147, 0 MAGENTA - 255, 0, 255 CYAN - 0, 255, 255 PURPLE - 127, 0, 127 GRAY - 127, 127, 127 -
5. WORKING WITH COLOR RGB COLOR MODEL RGB (red coord.,
green coord., blue coord.) BLACK - 0, 0, 0 WHITE - 255, 255, 255 -
5. WORKING WITH COLOR HEXDECIMALS Six digit conversion of RGB
values for use in web development and in some programming tasks. RED - 255, 0, 0 RED - #FF0000 BLUE - 0, 0, 255 BLUE - #0000FF RGB HEX -
5. WORKING WITH COLOR ACCESSIBLE COLOR CHOICES ▸ When making
reference maps and working with ground layers: • use ColorHexa’s Colorblindness simulator • use variation in weight and pattern instead of color variation ▸ When making choropleth maps: • select accessible palettes from ColorBrewer or viridis • Test maps in R using colorblindr (this is not required for class) ▸ Remember - accessible design is good design! -
6. TYPES OF MAPS REFERENCE MAPS SLU North Campus SLU
Medical Campus Shaw St. Louis Missouri Botanical Garden Shaw Market Flora Place Mullanphy Elementary -
0 1-4 5-8 9-12 13-17 p < .99 p <
.95 p < .90 no sig. p < .90 p < .95 p < .99 hot spot cold spot Hotspot Analysis (Inferential Map) Choropleth Map (Thematic Map) MAPPING MURDERS IN ST. LOUIS, ’08-‘15 -
0 1-4 5-8 9-12 13-17 Choropleth Map of Count Data
MAPPING MURDERS IN ST. LOUIS, ’08-‘15 Normalized by Area 0.00 - 0.0000035 0.0000115 - 0.0000237 0.0000035 - 0.0000115 0.0000237 - 0.0000398 0.0000398 - 0.0000572 -
0 1-4 5-8 9-12 13-17 Choropleth Map of Count Data
MAPPING MURDERS IN ST. LOUIS, ’08-‘15 Normalized by Square Miles 0-9.28 9.28-30.00 30.00-57.14 57.14-94.12 94.12-142.86 -
0 1-4 5-8 9-12 13-17 Choropleth Map of Count Data
MAPPING MURDERS IN ST. LOUIS, ’08-‘15 Graduated Symbols 0-1 2-4 5-8 9-12 12-17 -
0 1-4 5-8 9-12 13-17 Choropleth Map of Count Data
MAPPING MURDERS IN ST. LOUIS, ’08-‘15 Dot Density 0.656 murders = -
QUALITATIVE MAP Missouri Botanical Garden Tower Grove Park Zoning Codes
by Parcel St. Louis, MO -
AGENDA REVIEW 7. BACK MATTER 2. Analysis Development 3. Some
Basic Concepts 4. Cartographic Design 5. Working with Color 6. Types of Maps -
REMINDERS #. BACK MATTER Final project instructions are up for
everything except the SOC 5650 written portion. This week’s goal - pick a data set and pick a topic, and submit WP-01. There will be a lab, Lab-02, due next Monday along with another check-in - eTicket-04.