Knowledge Base Article
KB10583 - Can DK render data in a time series animated fashion using a temporary modeling layer? We need the ability to quickly (perhaps every second or two) change the properties (color, size, etc.) of 50,000 or more objects, so our requirements are too demanding from most GIS components.
Yes. Use what we call an 'In-memory' layer (TGIS_LayerVector) to perform the animation. Lines, points, and polygon shapes may be created on this layer using your own logic or you can import data from existing sources using the built-in DK ImportLayer method. Every shape in an in-memory layer is editable.
The DK writes data to an in-memory very, very quickly. We have been told that the speed of the DK in writing data to in-memory layers can be 100 times faster than some competing products. We have tested the DK with the writing even millions of vector objects to an in-memory layer with very good performance.
Follow this procedure:
- Screen caching turned on
- The layer(s) containing the in-memory temporary animated representation must be the top-most layer.
- Cashing for the in-memory layer(s) holding the floating (moving) points turned off
Be careful that your map project file does not override the viewer settings.
Refer to the DK In-memory sample (located in DK sample set #1) for guidance. This sample shows the animated representation of moving objects in the in-memory layer, but the logic is similar to animating using colors and sizes.
Created: 2004-12-17, Modified: 2005-09-14
|