How to use WKT to draw polygon in qgis?

Viewed 8266

I have a CSV file with a data field which contains data like bellow

POLYGON ((79.87749999947846 6.997500000409782, 79.88249999947845 6.997500000409782, 79.88249999947845 7.002500000409782, 79.87749999947846 7.002500000409782, 79.87749999947846 6.997500000409782))

I want to draw a polygon by using this data field in qgis. How can i do this?

3 Answers

Creating new layers from the clipboard using well-known text (WKT)

Features that are on the clipboard can be pasted into a new layer. To do this, Select some features, copy them to the clipboard, and then paste them into a new layer using Edit ‣ Paste Features as ‣ and choosing:

New Vector Layer…: the Save vector layer as… dialog appears (see Creating new layers from an existing layer for parameters)

or Temporary Scratch Layer…: you need to provide a name for the layer

A new layer, filled with selected features and their attributes is created (and added to map canvas).

Note

Creating layers from the clipboard is possible with features selected and copied within QGIS as well as features from another application, as long as their geometries are defined using well-known text (WKT).

Reference: https://docs.qgis.org/3.10/en/docs/user_manual/managing_data_source/create_layers.html#creating-new-layers-from-the-clipboard

Related