User Tools

Site Tools


samples:samples:windanimation

Table of Contents

WindAnimation sample

Documentation | Samples | WindAnimation

Summary

WindAnimation — demonstrates real-time animated wind visualization.

Description

What the sample shows:

  • Main application window hosting the wind visualization layer
  • Loading base map imagery (satellite/raster data) as background
  • Creating and configuring the custom wind animation layer
  • Loading meteorological wind data from JSON files
  • Real-time particle animation using OnTimer callbacks
  • Integration of custom layers with standard GIS viewers
  • Disabling layer caching for smooth real-time rendering
  • Viewport synchronization (FullExtent zooming)

This sample illustrates use of:

Name Description
TGIS_VIewerWnd main map visualization control
TGIS_LayerJPG raster/image layer for base map
TGIS_LayerWind custom animated wind particle layer

Initializes the wind visualization sample. Loads satellite imagery as base map, creates the wind animation layer with JSON meteorological data, and starts the animation timer for real-time particle updates.

Algorithm:

  1. Load world satellite imagery (VisibleEarth 8km base map).
  2. Create a wind animation layer and set the meteorological JSON data path.
  3. Disable layer caching to ensure smooth real-time rendering.
  4. Add a wind layer to the viewer and zoom to the full extent.
  5. Enable timer for frame-by-frame animation. }

This sample illustrates use of:

Name Description
TGIS_ViewerWndMain FireMonkey visual control for displaying and interacting with maps in a window.
TGIS_LayerJPGRaster layer for reading and writing JPEG (Joint Photographic Experts Group) image files georeferenced via world files (.jgw, .jfw, .jpgw, .piw), with decoding, line access, scaling, and save/build support.

Code

This sample is available on the following platforms (click to view the source code on GitHub):

2026/10/31 23:31

Page Tools