Skip to main content
Adsquare Shapes Extract Guide with QGIS

Guide on How to Extract Polygons with QGIS

Gabriela Reyes avatar
Written by Gabriela Reyes
Updated over 3 years ago

The steps below will guide you through the extraction of polygons from a shape file or geojson using QGIS.

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.

Please be aware that the upload of polygons to a measurement configuration can only be executed via Managed Service by the adsquare team.

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 shape files 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: Load the shape/ geojson file

a. Got to Layer → Add Layer → Add Vector Layer

b. Choose the file containing the shapes (usually .shp or .geojson) you wish to extract.

c. Click Add and then close the window.

Step 3: Exporting the shapes to polygons

Now 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 4: Upload the polygons on the AMP

You can refer to our guide on how to upload custom proximity datasets using the extract here.

Did this answer your question?