User Tools

Site Tools


samples:samples:simpleedit

Table of Contents

SimpleEdit sample

Documentation | Samples | SimpleEdit

Summary

How to create a basic editor: edit existing or create a new shape and edit its vertices.

Description

This sample illustrates use of:

Name Description
TGIS_Viewer.EditorEditor context.
TGIS_Editor.CreateShapeCreate and activate editing of a new shape.
TGIS_Editor.SnapLayerLayer containing geometry to which edited points will be snapped.
TGIS_Editor.CurrentShapeCurrently edited shape.
TGIS_Editor.DeleteShapeDelete currently edited shape and end editing.
TGIS_Utils.GisPoint3DFrom2DConvert 2D point into 3D point.

Code

This sample is available on following platforms (click to see source code):

2020/09/22 01:17

Page Tools