C# Class FdoToolbox.Base.Services.CoordSysCatalog

A simple data access object to the Coordinate System Catalog which resides in a SQLite database.
Inheritance: ICoordinateSystemCatalog
Mostra file Open project: jumpinjackie/fdotoolbox Class Usage Examples

Public Methods

Method Description
AddProjection ( CoordinateSystemDefinition cs ) : void

Adds a new coordinate system to the database

CoordSysCatalog ( ) : System

Initializes a new instance of the CoordSysCatalog class.

DeleteProjection ( CoordinateSystemDefinition cs ) : bool

Deletes a coordinate system from the database

GetAllProjections ( ) : BindingList

Gets all the coordinate systems in the database

InitializeService ( ) : void

Initializes the service.

Load ( ) : void

Loads any persisted objects from the session directory

ProjectionExists ( string name ) : bool

Checks if a coordinate system exists

Save ( ) : void

Persists any managed objects to the session directory

UnloadService ( ) : void

Unloads the service.

UpdateProjection ( CoordinateSystemDefinition cs, string oldName ) : bool

Updates an existing coordinate system in the database

Private Methods

Method Description
CreateSqliteConnection ( ) : IConnection

Method Details

AddProjection() public method

Adds a new coordinate system to the database
public AddProjection ( CoordinateSystemDefinition cs ) : void
cs FdoToolbox.Core.CoordinateSystems.CoordinateSystemDefinition
return void

CoordSysCatalog() public method

Initializes a new instance of the CoordSysCatalog class.
public CoordSysCatalog ( ) : System
return System

DeleteProjection() public method

Deletes a coordinate system from the database
public DeleteProjection ( CoordinateSystemDefinition cs ) : bool
cs FdoToolbox.Core.CoordinateSystems.CoordinateSystemDefinition
return bool

GetAllProjections() public method

Gets all the coordinate systems in the database
public GetAllProjections ( ) : BindingList
return BindingList

InitializeService() public method

Initializes the service.
public InitializeService ( ) : void
return void

Load() public method

Loads any persisted objects from the session directory
public Load ( ) : void
return void

ProjectionExists() public method

Checks if a coordinate system exists
public ProjectionExists ( string name ) : bool
name string
return bool

Save() public method

Persists any managed objects to the session directory
public Save ( ) : void
return void

UnloadService() public method

Unloads the service.
public UnloadService ( ) : void
return void

UpdateProjection() public method

Updates an existing coordinate system in the database
public UpdateProjection ( CoordinateSystemDefinition cs, string oldName ) : bool
cs FdoToolbox.Core.CoordinateSystems.CoordinateSystemDefinition
oldName string
return bool