Vector layer
Raster layer
Delimited text layer
When you save a map file, it will save as a .qgs. This file is a configuration file. It basically just references the files that you load into QGIS. IT DOES NOT HOLD ANY OF YOUR DATA. This means if you move the shapefiles you load into your map after you save it, your map will break.
So dedicate a folder to each map you work on. Put your shapefiles and your map file in there and don't move them around.
QGIS isn't perfect. Sometimes it exhibits behavior that neither you nor the message forums can explain. So your only recourse is to shut 'er down and reopen the program.
And sometimes, that doesn't work either. So you need to scrap your map file.
Now, if all of your work depended on that one .qgs file, that would suck hardcore. But since your shapefiles and data are separate files, and since you've taken crazy good process notes, you're totally fine.
A shapefile is the most common vector feature type. It is comprised of a series of other files including:
There are going to be projects you work on that will require you to slice and dice a shapefile in many different ways. You need to be careful what you name each file so you aren't analyzing old shapefiles.
I would strongly recommend taking detailed notes about how you change shapefiles so you can return to the notes in case you lose track of which file is which, or if something goes wrong and you need to diagnose a problem.
So the earth is round, right? Turns out it's not the easiest thing to make something round and three-dimensional look flat. But to hell if we don't try.
That's basically what projections are, flat representations of our round world. Lots of people have taken a stab at making the best projection, but not all projections are created equal.
Depending on the scope and span of your data, you may want to stick to a more local, granular projection. But if you're trying to show the whole world things are going to get a little wonky at some point.
In this demo, we're going to be creating a map that overlays Pennsylvania hospitals and nursing homes with abandoned mine data.
This is a blank map.
A working directory is a place on your computer where you house all of your map shapefiles. Once a shapefile is added to the working directory, it should not be moved around because that can break the file path and therefore your map.
In the example above, abandoned-pa-mines-data
is the working directory.
We're going to be focusing on VECTOR LAYERS and DELIMITED TEXT LAYERS. These are the layers you will use most often.
tl_2014_42_county
--> tl_2014_42_county.shp
aml_inve
--> aml_inve.shp
pa-nursing-homes-20150220
--> pa-nursing-homes-20150220-shp
--> pa-nursing-homes-20150220.shp
pa-hospitals-20150220
folder --> pa-hospitals-20150220-source.csv
Write this down:
Latitude = Y
Longitude = X
On-the-fly projecting is a way of setting the project-level projection so that subsequent shapefiles added to the project assume that specified projection.
NOTE: On-the-fly projecting does NOT actually change your shapefile's projection. So next time you use this shapefile in a new map, it will revert back to whatever projection it had before you added it to your on-the-fly map. If you want to actually change a shapefile's projection see this section.
Now we want to take a look at only those hospitals or nursing homes that sit on top of abandoned mines.
There are a couple of ways to analyze a selection once you've created and saved it.