How to add vector data to QGIS
A predominant spatial data format is the shapefile. This is a format created for storing vector data.
Vector data consists of:
- points (e.g. landmarks)
- lines (e.g. roads, rivers)
- polygons (e.g. towns, bodies of water)
Since the advent of geospatial technology, shapefiles have been the most common format for storing vector information. Today, other file formats exist for storing vector information, such as the geopackage (.gpkg), or geoJSON (.geoJSON), but shapefiles are still widely used, and many of the datasets you will encounter will come in this format.
Adding vector data to QGIS
-
Open QGIS. You can download the free program here.
-
In QGIS, open a
New empty project
. -
From your computer file directory, drag the vector data file (shapefile, geojson, geopackage) into the map browser. If your data is in shapefile format, drag the file that ends in the
.shp
extension.You can click through any warning messages about the data projection at this point.
Menu add
If the quick add approach is not cooperating, you can add data through the menu add.
-
In the menu, select
Layer → Add Layer → Add Vector Layer
. -
Under
Source → Vector Dataset(s)
click the browse ellipses. -
Navigate to the file you want to add. If it is a shapefile, select the file with the
.shp
extension. -
Select
Open
. -
Select
Close
.