The PointDataLayer class provides access to points stored as X/Y (or longitude/latitude) columns in a database.


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

Syntax

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

Remarks

The database table must contain two columns with X and Y coordinates of points (data type is Double). For example, the points may be stored as longitude/latitude coordinates.

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.PointDataLayer

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