KB10593 - Please list the DK samples provided by TatukGIS with a brief description of the functionality demonstrated by each sample?
The DK samples are organized by sets as listed below. All of samples in the list are provided as DK-VCL samples (in Delphi and C++Builder) and as DK.NET samples (in C# and VB.NET). Sample sets 1-5 are provided as DK-ActiveX samples (in VB6, VB.NET, and C#). Three samples are also provided in Visual C++, e.g., the InMemory sample in set #1, Locate sample in set #3, and SQLLayer sample in set #3. Sample sets 1 - 3 have been ported to the DK-CF (Compact Framework) edition in C# code (and more samples will be ported to the DK-CF as time permits).
These samples are created to work with the DK-VCL, DK.NET, DK-ActiveX, DK-CF trial versions and are typically updated when the DK trial versions are updated. Because the DK trial versions are updated much less frequently than the DK retail versions, there is no guarantee that all DK samples will run perfectly under the latest available DK retail version.
The DK samples are packaged with the DK trial version download. Refer to the DK trial read-me file for the location of the samples (and help files) when the DK trial version in installed. The location reflect the Microsoft requirements for Vista/Win2008 compatibility.
DK Sample Set 1
AddLayer
- open a vector file layer in the viewer
- zoom-in, zoom-out, use drag mode
- set some layer properties in runtime
BitmapFill
- Fill shapes with bitmaps
- refer a vector layer based on attributes
- turn labels on/off in runtime
CGMViewer
- display *.CGM files (graphic symbols)
- rotate symbols
DragLabel
- drag label with mouse
- mouse move support programming
- mouse down, mouse up events handle
- animate labels; set layer parameters for vector layers
InMemory
- create an in-memory layer process
- add points to the layer on-the-fly
- move (animate) objects
- lock/unlock shape objects
Languages
- support multiple languages in labels
- charset changes method
Locate
- mouse click support
- highlight based on mouse click
- display 'name' attribute from shape
- use shape.GetField function
mif2shp
- create a vector shape layer
- import vector layer
- support for four type of shapes: arc, polygon, line, multipoint
- conversion between file formats
PaintLabel
- show three vector attributes fields in one label using shape.GetField
- label display possibilities
Pixel
- auto loading ttkgp files
- basic pixel support
- use Pixel.Histogram in a project file
Projections
- Use TGIS_ProjectionAbstract class
- set vector layer projection properties
Renderer
- render vector layers
- all render options loaded from the renderer.ttkgp project file
SimpleEdit
- access editing functionality
- snapping for vector vertice placement
- use Editor.CanUndo/Editor/CanRedo
- use Editor.CreatePart/Editor.DeletePart
- edit points
Statistics
- render vector shapes based on attribute query
- two rendering modes
- turn labels on/off
- set shape display attributes on-the-fly using shape.Params
TwoWindows
- synchronize two viewer windows;
- use Center method
- use GisIsSamePoint
Zooming
- use standard zoom mode
- support for MouseWheelDown event and MouseWheelUp event
DK Sample Set 2
Buffers1
- map buffers for shapes
- set buffer size
- use TGIS_Topology class MakeBuffer function
Buffers2
- use buffers to create shapes
- set buffer size
- use FindFirst and FindNext to search for shapes on a layer
- TGIS_Topology.Create
- topology MakeBuffer functionality
Geocoding (Uses .Parse method which was superseded by .ParseEx method demonstrated in TigerGeocoding sample in set #6)
- use TGIS_Geocoding class
- use TGIS_ShortestPath class
- address querying
- optimal routing using Start Pos, StopPos functionalities
- cost based routing
JoinAndChart
- join a vector map to an external database
- use ADODB.Connection; use ADODB.Recordset
- use QueryInterface; render by attributes
Topology
- perform topology operations
- use topology.Combine
- use modes of relations: Union, Intersection, Difference
WKT
- build geometry from WKT
- use GisCreateShapeFromWKT method
- use POINT(), MULTIPOINT(), LINESTRING(), MULTILINESTRING(), and POLYGON()
DK Sample Set 3
Legend
- make a map legend using layer properties
- use the WriteConfig method for layers
Multi-select
- select multiple vector shapes
- display attributes
- calculate sum, avg, min, max of attribute values from multiple selected shapes
Reproject
- use TGIS_ProjectionsAbstract to convert vector layers between geographic coordinate systems
- build a projection list; use ProjectionList
SQLLayer
- add a SQL Geodabase file (file type *.ttkls) layer
- create connection strings
Viewer
- a big sample, containing a demo Viewer application
- prepare a small coverage previewer
- add layers; read vector/image formats
- convert vector files between formats (with some limitations)
- make print preview using TGIS_ControlPrintPreview
- save to image; simply query/search
- show attributes using TGIS_ContolAttriubtes
DK Sample Set 4
Join&Render
- use JoinADO to join a vector map to an SQL database and render the map based on database information
- use transparency
PixelLocate
- set up a pixel layer using TGIS_LayerJPG
- control the brightness
- locate using TGIS_LayerJPG.Locate
PrintPreview
- Print and PrintPreview functionality by using TGIS_ControlPrintPreview and TGIS_ControlPrintPreviewSimple
Relations
- perform operations based on relations between shapes: EQUALITY, DISJOINT, INTERSECT, WITHIN, CROSS, TOUCH, CONTAINS, OVERLAP
- use TGIS_Shape.Relate
Rotation
- rotate map layers using GIS.RotationAngle
- autocenter by mouse click using GIS.Center sample
DK Sample Set 5
Anaglyph
- use Red-Green-Blue colors to set up two pixel images for 3D stereo viewing using anaglyph glasses
Any2SQL
- use GISCreateLayer to convert any supported vector format file (SHP, E00, MIF, DXF, DGN, etc.) into a SQL based geodatabase (*.ttkls) file.
- Any2SQL sample as a demo application. (Until the DK 8 final release, this is a DK-VCL sample only.)
Circle
- make a circle and select by a circle using TGIS_Topology, TGIS_Topoology.MakeBuffer
GPSSimple
- display real-time GPS point data using simple TGIS_Nmea
- display GPS data: GPS.Longitude, GPS.Latitude
GPSTracker
- display real-time GPS positioning data from any NMEA standard GPS receiver using TGIS_GpsNmea
- display GPS data: Time, Longitude, Latitude, Precision, Altitude, Speed, Course, Satellites
MiniMap
- build a mini map feature to a DK application
- create shape for minimap
- move shape in minimap using TGIS_Shape.SetPosition
ShowHint
- show an attribute data field as a pop-up 'map hint', when cursor is placed over a map object, using TGIS_Shape.GetField
Snap
- snap and snap without moving the map view using TGIS_Shape.SetPosition
SplitbyArc
- split a shape into two shapes with a line, using CreateShape, TGIS_Topology.Create, and TGIS_Topology.SplitByArc
TrackingTest
- lock/unlock a layer using TGIS_Shape.SetPosition and CashedPaint
DK Sample Set 6
ClientServer
- an example client-server configuration using Indy component
Grid
- shows the rendering of grid data (use color to show altitude)
TemplatePrint
- printing with use of predefined templates
TigerGeocoding (Uses .ParseEx method)
-Geocoding using a template based geocoder (address generalization via template formula)
Encoding
-SHP file encryption feature to protect data distributed with a DK based application
DataSet
- Use of the TGIS_DataSet component to present shapefile attributes in a table
Created: 2005-09-14, Modified: 2008-09-02