C# Класс SharpMap.Data.Providers.OleDbPoint

The OleDbPoint provider is used for rendering point data from an OleDb compatible datasource.

The data source will need to have two double-type columns, xColumn and yColumn that contains the coordinates of the point, and an integer-type column containing a unique identifier for each row.

To get good performance, make sure you have applied indexes on ID, xColumn and yColumns in your datasource table.

Наследование: IProvider, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Close ( ) : void

Closes the datasource

Dispose ( ) : void

Disposes the object

ExecuteIntersectionQuery ( SharpMap geom, FeatureDataSet ds ) : void

Throws NotSupportedException.

GetExtents ( ) : SharpMap.Geometries.BoundingBox

Boundingbox of dataset

GetFeature ( uint RowID ) : FeatureDataRow

Returns a datarow based on a RowID

GetFeatureCount ( ) : int

Returns the number of features in the dataset

GetGeometriesInView ( SharpMap bbox ) : List

Returns geometries within the specified bounding box

GetGeometryByID ( uint oid ) : SharpMap.Geometries.Geometry

Returns the geometry corresponding to the Object ID

GetObjectIDsInView ( SharpMap bbox ) : List

Returns geometry Object IDs whose bounding box intersects 'bbox'

GetXYTolerance ( ) : double?
OleDbPoint ( string ConnectionStr, string tablename, string OID_ColumnName, string xColumn, string yColumn ) : System

Initializes a new instance of the OleDbPoint provider

Open ( ) : void

Opens the datasource

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void

Описание методов

Close() публичный Метод

Closes the datasource
public Close ( ) : void
Результат void

Dispose() публичный Метод

Disposes the object
public Dispose ( ) : void
Результат void

ExecuteIntersectionQuery() публичный Метод

Throws NotSupportedException.
public ExecuteIntersectionQuery ( SharpMap geom, FeatureDataSet ds ) : void
geom SharpMap
ds FeatureDataSet FeatureDataSet to fill data into
Результат void

GetExtents() публичный Метод

Boundingbox of dataset
public GetExtents ( ) : SharpMap.Geometries.BoundingBox
Результат SharpMap.Geometries.BoundingBox

GetFeature() публичный Метод

Returns a datarow based on a RowID
public GetFeature ( uint RowID ) : FeatureDataRow
RowID uint
Результат FeatureDataRow

GetFeatureCount() публичный Метод

Returns the number of features in the dataset
public GetFeatureCount ( ) : int
Результат int

GetGeometriesInView() публичный Метод

Returns geometries within the specified bounding box
public GetGeometriesInView ( SharpMap bbox ) : List
bbox SharpMap
Результат List

GetGeometryByID() публичный Метод

Returns the geometry corresponding to the Object ID
public GetGeometryByID ( uint oid ) : SharpMap.Geometries.Geometry
oid uint Object ID
Результат SharpMap.Geometries.Geometry

GetObjectIDsInView() публичный Метод

Returns geometry Object IDs whose bounding box intersects 'bbox'
public GetObjectIDsInView ( SharpMap bbox ) : List
bbox SharpMap
Результат List

GetXYTolerance() публичный Метод

public GetXYTolerance ( ) : double?
Результат double?

OleDbPoint() публичный Метод

Initializes a new instance of the OleDbPoint provider
public OleDbPoint ( string ConnectionStr, string tablename, string OID_ColumnName, string xColumn, string yColumn ) : System
ConnectionStr string
tablename string
OID_ColumnName string
xColumn string
yColumn string
Результат System

Open() публичный Метод

Opens the datasource
public Open ( ) : void
Результат void