User Tools

Site Tools


samples:samples:selectbyshape

Table of Contents

SelectByShape sample

Documentation | Samples | SelectByShape

Summary

How to select shapes from a layer by user-defined shape (circle and rectangle in this samples).

Description

This sample illustrates use of:

Name Description
TGIS_LayerVector.DeselectAllClear selection of all shapes.
TGIS_LayerVector.RevertShapesRevert all shapes to its original state.
TGIS_LayerVector.CreateShapeCreate a new shape and make it editable.
TGIS_LayerVector.FindFirstFind first occurrence of an item which meets extent and query.
TGIS_LayerVector.FindNextFind next occurrence of item defined in FindFirst.
TGIS_Shape.AddPartAdd next part to the shape.
TGIS_Shape.AddPointAdd a point to the last part of the shape.
TGIS_Topology.MakeBufferCompute a buffer around a shape to a given distance.
TGIS_ViewerWnd.PaintExtraEventPaintExtra event.

Code

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

2019/09/27 01:18