The DataTableLayer class provides access to spatial data stored in a DataTable.


Namespace: AspMap.Data
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Class DataTableLayer
    Inherits SpatialDatabaseLayer
C#
public class DataTableLayer : SpatialDatabaseLayer
C++
ref class DataTableLayer : SpatialDatabaseLayer
J#
public class DataTableLayer extends SpatialDatabaseLayer
JScript
public class DataTableLayer extends SpatialDatabaseLayer

Remarks

This class can be used to visualize the result of a custom spatial/attribute query against a spatial database.

The DataTable should contain a column that stores feature geometry that conforms to the Shapefile or OpenGIS WKB format.

The extent of database layers is not calculated automatically for performance reasons. If you use only database layers in your application, you should set the Extent property before adding the layer to the map.

By default, the extent of database layers is set to (-180,90,180,-90) (units are decimal degrees). The coordinate system is set to WGS 1984 (EPSG/SRID code is 4326).

Inheritance Hierarchy

System.Object
   AspMap.Data.SpatialDatabaseLayer
      AspMap.Data.DataTableLayer

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also