Class CMDatasetVector extends CMDataset
CMDatasetVector
This is effecitvely an abstract class that provides an API between
the layer class and the data that may be shared between muliptle layers.
The data typically contains individual spatial features with attributes
But can also contain raster data organized as tiles.
Object Functions
Object Functions
SetBounds(NewBounds)
Check if the feature is visible in the view.
This should be called by subclasses but can also be called to limit a layer's bounds after loading.
Parameters:
NewBounds - Bounds with format {XMin,XMax,YMin,YMax}
Bounds=GetBounds()
Returns the bounds of the data within the layer. Computed after loading the data.
Returns: Bounds - with format {XMin,XMax,YMin,YMax}
Bounds=GetFeatureBounds()
Returns the bounds of the specified feature.
Returns: Bounds - with format {XMin,XMax,YMin,YMax}
[FeatureIndex,AreaIndex,PolyIndex,PointIndex]=GetInChain()
Gets a chain (array of indexes) to the region, area, poly, or point that was selected
Returns: [FeatureIndex,AreaIndex,PolyIndex,PointIndex] - null
AddPoint()
Add a new point to the data
AddPoly()
Add a new polyline to the data
SetPosition()
Add a new point to the data