DataSourceComponent Class

Uses

System.ComponentModel.Component

 

Description

The DataSourceComponentClass provides properties and methods that allow the user to interact with the data source.  A description of how to use the data source can be found here.  A description of the contents of the data source can be found here.  

 

Public Constructors

Constructor

Description

DataSourceComponent

Creates a new instance of the DataSourceComponent class

 

Public Properties

Property

Description

CalculatedSignature

The CalculatedSignature Property returns the signature calculated from the current contents of the base data source file.

CustomFileName

The CustomFileName property returns the path and name of the custom data source file that is currently loaded into the DataSourceComponenet.

DefaultIssuer

Gets or sets the default issuer value for use with Get/Put/Remove methods

Editable

A boolean value that indicates if the data source can be modified

FailOnInvalidSig

The FailOnInvalidSig property indicates or sets whether we should throw an exception during the LoadFile call if the base data source file has been manually edited

FileName

The path and file name of the data source currently loaded into this object

HasExpiry

Indicates if the license used for GeoCalcNET has an expiration data

IgnoreEnvelope

Indicates if all Envelopes should always return true for InBounds

IsLoaded

A boolean value that indicates if a data source is currently loaded

IsSignatureValid

The IsSignatureValid Property indicates if the base data source file has been manually edited since the last time it was saved.

IsTrial

Indicates if this is an evaluation version of GeoCalcNET

Licensed

Indicates if this is a licensed version of GeoCalcNET

SignatureFromFile

The SignatureFromFile property returns the signature stored in the base data source file.

TimeToNag

Indicates if it is time to remind the user that this is an evaluation version of GeoCalcNET

WKTForceMatch

Indicates if GeoCalc should try to find an existing CoordSys that matches the WKT when importing a CoordSys from WKT

 

Public Methods

Method

Description

CommitToFile

Saves the data source to a file

CoordSysFromGML

Imports a CoordSys from the specified GML

EstablishDatumShift

Gets DatumShifts for a CoordTransform

ExportCoordSysToFile

Saves a WKT definition of the specified CoordSys to a file

ExportCoordSysToString

Gets a WKT definition of the specified CoordSys

ExportCoordSysToStrings

Gets the GeoCalc 5.x keys that identify the specified CoordSys

GetAngularUnit

Gets an AngularUnit from the DataSourceComponent

GetCartesianPoint

Gets a CartesianPoint from the DataSourceComponent

GetCoordTransform

Gets a CoordTransform from the DataSourceComponent

GetDatumShift

Gets a DatumShift from the DataSourceComponent

GetDSInstancePtr

This function is used for cross Library development. It returns a pointer to the current datasource.

GetEllipsoid

Gets an Ellipsoid from the DataSourceComponent

GetEnvelope

Gets an Envelope from the DataSourceComponent

GetFittedCoordSys

Gets a FittedCoordSys from the DataSourceComponent

GetGeocentricCoordSys

Gets a GeocentricCoordSys from the DataSourceComponent

GetGeodeticCoordSys

Gets a GeodeticCoordSys from the DataSourceComponent

GetGeodeticPoint

Gets a GeodeticPoint from the DataSourceComponent

GetGMLObjectListFromIndicio

Populates a collection with GML object names and their URN strings from data in the OGP's Indicio server, given an object type.

GetHeightModel

Gets a HeightModel from the DataSourceComponent

GetHorizontalDatum

Gets a HorizontalDatum from the DataSourceComponent

GetLinearUnit

Gets a LinearUnit from the DataSourceComponent

GetPrimeMeridian

Gets a PrimeMeridian from the DataSourceComponent

GetProjectedCoordSys

Gets a ProjectedCoordSys from the DataSourceComponent

GetProjectedPoint

Gets a ProjectedPoint from the DataSourceComponent

GetSerializable

Gets a Serializable from the DataSourceComponent

GetValidDatumShifts

Finds all valid DatumShifts for the specified source and target CoordSys

GetVerticalDatum

Gets a VerticalDatum from the DataSourceComponent

GetVerticalReference

Gets a VerticalReference from the DataSourceComponent

ImportCoordSysFromFile

Loads a CoordSys from a file

ImportCoordSysFromString

Loads a CoordSys from a WKT string

ImportCoordSysFromStrings

Returns a CoordSys that matches the GeoCalc 5.x keys

ImportFile

Loads a CoordSys into the DataSourceComponent

ImportGMLObjectsFromIndicio

Composes GeoCalc objects for all URNs in the specified collection.

LoadFile

Loads a data source file into this DataSourceComponent

PutAngularUnit

Adds an AngularUnit to the DataSourceComponent

PutCartesianPoint

Adds a CartesianPoint to the DataSourceComponent

PutCoordTransform

Adds a CoordTransform to the DataSourceComponent

PutDatumShift

Adds a DatumShift to the DataSourceComponent

PutEllipsoid

Adds an Ellipsoid to the DataSourceComponent

PutEnvelope

Adds an Envelope to the DataSourceComponent

PutFittedCoordSys

Adds a FittedCoordSys to the DataSourceComponent

PutGeocentricCoordSys

Adds a GeocentricCoordSys to the DataSourceComponent

PutGeodeticCoordSys

Adds a GeodeticCoordSys to the DataSourceComponent

PutGeodeticPoint

Adds a GeodeticPoint to the DataSourceComponent

PutHeightModel

Adds a HeightModel to the DataSourceComponent

PutHorizontalDatum

Adds a HorizontalDatum to the DataSourceComponent

PutLinearUnit

Adds a LinearUnit to the DataSourceComponent

PutPrimeMeridian

Adds a PrimeMeridian to the DataSourceComponent

PutProjectedCoordSys

Adds a ProjectedCoordSys to the DataSourceComponent

PutProjectedPoint

Adds a ProjectedPoint to the DataSourceComponent

PutSerializable

Adds a Serializable to the DataSourceComponent

PutVerticalDatum

Adds a VerticalDatum to the DataSourceComponent

PutVerticalReference

Adds a VerticalReference to the DataSourceComponent

RemoveAngularUnit

Removes an AngularUnit from the DataSourceComponent

RemoveCartesianPoint

Removes a CartesianPoint from the DataSourceComponent

RemoveCoordTransform

Removes a CoordTransform from the DataSourceComponent

RemoveDatumShift

Removes a DatumShift from the DataSourceComponent

RemoveEllipsoid

Removes an Ellipsoid from the DataSourceComponent

RemoveEnvelope

Removes an Envelope from the DataSourceComponent

RemoveFittedCoordSys

Removes a FittedCoordSys from the DataSourceComponent

RemoveGeocentricCoordSys

Removes a GeocentricCoordSys from the DataSourceComponent

RemoveGeodeticCoordSys

Removes a GeodeticCoordSys from the DataSourceComponent

RemoveGeodeticPoint

Removes a GeodeticPoint from the DataSourceComponent

RemoveHeightModel

Removes a HeightModel from the DataSourceComponent

RemoveHorizontalDatum

Removes a HorizontalDatum from the DataSourceComponent

RemoveLinearUnit

Removes a LinearUnit from the DataSourceComponent

RemovePrimeMeridian

Removes a PrimeMeridian from the DataSourceComponent

RemoveProjectedCoordSys

Removes a ProjectedCoordSys from the DataSourceComponent

RemoveProjectedPoint

Removes a ProjectedPoint from the DataSourceComponent

RemoveSerializable

Removes a Serializable from the DataSourceComponent

RemoveVerticalDatum

Removes a VerticalDatum from the DataSourceComponent

RemoveVerticalReference

Removes a VerticalReference from the DataSourceComponent

SetDSInstancePtr

This function is used for cross Library development. It takes a pointer to an already created Datasource object.