User Tools

Site Tools


samples:samples:udflayervector

Table of Contents

UDFLayerVector sample

Documentation | Samples | UDFLayerVector

Summary

How to add support to a new layer vector file format using User Defined Layer.

Description

This sample illustrates use of:

Name Description
TGIS_LayerVectorUDF.GetShapeGeometryEventGetShapeGeometry event.
TGIS_LayerVectorUDF.GetLayerExtentEventGetLayerExtent event.
TGIS_LayerVectorUDF.GetShapeFieldEventGetShapeField event.
TGIS_LayerVectorUDF.GetLayerStructureEventEvent fired to get layer structure.
TGIS_LayerVectorUDF.LayerMoveFirstEventLayerMoveFirst event.
TGIS_LayerVectorUDF.LayerMoveNextEventLayerMoveNext event.
TGIS_LayerVectorUDF.LayerEofEventLayerEof event.
TGIS_LayerVectorUDF.InMemoryIf True, all shapes will be kept in memory, otherwise will disc-based.
TGIS_BufferedFileStreamBuffered file stream.
TGIS_Stream.ReadLineRead line from text file up to CR.
TGIS_TokenizerA simple tokenizer for parameters line splitting.

Code

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

2017/09/04 12:11