Adsquare Polygons Guide with QGIS

Guide on How to Draw Polygons with QGIS

Gabriela Reyes avatar
Written by Gabriela Reyes
Updated over a week ago

The steps below will guide you through the creation of polygons using QGIS.

If you already have a shape file or geojson you want to extract, please refer to our guide here.

Introduction

QGIS is a free and open-source cross-platform desktop geographic information system application that supports viewing, editing, and analysis of geospatial data

You can download it here: https://www.qgis.org/en/site/


Alternatively, you can book this service with Adsquare at an extra cost per POI, we invite you to consult your Adsquare Account Manager for further details.

What is a polygon?

In geometry, a polygon is a plane figure that is described by a finite number of straight line segments connected to form a closed polygonal chain or polygonal circuit. The solid plane region, the bounding circuit, or the two together, may be called a polygon.

Output File Specs

- Coordinates reference system to use: WGS 84 - EPSG: 4326

- CSV with the geometry: AS_WKT
- For Polygons delivery: CSV UTF-8

- Optional - for Shapefiles delivery only: We require an archive compressed into a single file as a zip, which must contain the following files (Feature Collection):1 x Main File (.shp)1 x Index file (.shx)1 x dBASE File (.dbf)

Step 1: Load the Background Map

We advise you to install the QuickMapServices plugin.

Once installed, go to Web → QuickMapServices → Google → Google Road or Google Satellite

Step 2: Add a new Delimited Text Layer

a. Got to Layer → Add Layer → Add Delimited Text Layer

b. Choose the file containing the coordinates you wish to transform into polygons.

The CSV file should contain at least one pair of latitude/longitude in two separated columns.

Please note that the coordinates fields X and Y (Longitude/Latitude) will be recognised automatically according to the CSV file values loaded.

c. Click to Add and then Close the window.

d. On the left-hand panel: Right click on the layer → Open Attribute Table

e. Right click on the POI and select "Zoom to Feature". Zoom in and out accordingly

Step 3: Add a New Shapefile Layer

a. Go to Layer → Create Layer → New Shapefile Layer

b. File name: choose the local folder and the name of the layer

c. File encoding: UTF-8

d. Geometry type: Polygon

e. Coordinate Reference System: EPSG: 4326 - WGS: 84

f. You can add as many fields as you want. We recommend to add a "geo_id" field

f. Click OK

Step 4: Start Drawing the polygons

a. Click on the icon Toggle Editing:

b. Click on the icon Add Polygon Feature:

c. Draw the Polygon and when adding the last point to the shape, right click to close shape and fill in the attribute features accordingly.

Step 5: Exporting Polygons

Once all polygons have been drawn, the file needs to be exported in CSV.

a. Right click on the layer → Export → Save Feature As

Format: Comma Separated Value (CSV)

File name → choose local folder and name

Layer name (leave blank)

CRS: WGS 84 - EPSG: 4326

Encoding: UTF-8
Under Geometry -> Geometry type: Polygon

Under Layer Options -> GEOMETRY: AS_WKT

b. Click OK

The generated CSV file must look like below after the export:

Step 6: Upload on the AMP

You can use the output to upload a proximity dataset on the AMP following our guide here.

Did this answer your question?