Well Known Text (WKT): Difference between revisions

From OCAD Wiki - English
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Well-known text (WKT) is a text markup language for representing vector geometry objects. (Source: Wikipedia)
==Introduction==
Well-known text (WKT) is a text markup language for representing vector geometry objects.<br>
(Source: [https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry Wikipedia])
 
==Copy Objects [[File:Space.PNG]][[File:Mas40px.PNG|This function is available in OCAD Mapping Solution.|link=https://www.ocad.com/en/products/ocad-for-cartography]][[File:Ori40px.PNG|This function is available in OCAD Orienteering.|link=https://www.ocad.com/en/products/ocad-for-orienteering]]==
Define a '''[[Options#Shortcuts|Shortcut]]''' in the Options menu to copy objects in OCAD in WKT format.
 
[[File:WKT Shortcut.png|500px]]


==Paste Objects==  
==Paste Objects==  
Create objects from WKT format.
When you have copied objects in WKT format, choose '''[[Object#Paste|Paste]]''' (Ctrl + V) from the '''Object''' menu to copy the object(s) in the clipboard to the current map.
 
Note: Line and area objects drawn with Bézier curves will be converted to polylines.


This command is enabled in the '''Object''' menu when the clipboard contains OCAD objects or text and you are writing text.
==Example==


==Copy Objects==
It is possible to copy/paste objects forth and back between two maps. A '''[[Create_a_New_Map#Set_Scale_and_Coordinate_System|Coordinate System]]''' needs to be set in both maps, but not necessarily the same one. Also, the map scales can be different.  
Define a '''[[Options#Shortcuts|Shortcut]]''' in the Options menu to copy objects in WKT format.


[[File:WKT Shortcut.png|500px]]
In our example, objects are copied between a Sprint Map (left side; Scale 1:4'000) and a Forest Map (right side; Scale 1:10'000) of the same area. The copied objects can then be '''[[Change_Symbol|changed to a symbol]]'''.
 
[[File:WKT.gif]]

Latest revision as of 08:24, 10 February 2021

Introduction

Well-known text (WKT) is a text markup language for representing vector geometry objects.
(Source: Wikipedia)

Copy Objects Space.PNGThis function is available in OCAD Mapping Solution.This function is available in OCAD Orienteering.

Define a Shortcut in the Options menu to copy objects in OCAD in WKT format.

WKT Shortcut.png

Paste Objects

When you have copied objects in WKT format, choose Paste (Ctrl + V) from the Object menu to copy the object(s) in the clipboard to the current map.

Note: Line and area objects drawn with Bézier curves will be converted to polylines.

Example

It is possible to copy/paste objects forth and back between two maps. A Coordinate System needs to be set in both maps, but not necessarily the same one. Also, the map scales can be different.

In our example, objects are copied between a Sprint Map (left side; Scale 1:4'000) and a Forest Map (right side; Scale 1:10'000) of the same area. The copied objects can then be changed to a symbol.

WKT.gif