Method | Description | |
---|---|---|
ConvertToLonLat ( double northing, double easting ) : TDPG.GeoCoordConversion.PolarGeoCoordinate |
Converts northing and easting coordinates into Longitude/Latitude coordinates in the WGS84 coordinate system.
|
|
CreateSpatialIndex ( |
Creates a spatial index on the GeoLocation column.
|
|
LoadRowsToDatabase ( |
Loads the supplied data to the newly created table in the database.
|
|
SetForeignKey ( |
Adds a foreign key constraint.
|
|
SetGeoColumn ( |
Set the GeoLocation column in the supplied table, to a GEOGRAPHY point based on the Latitude and Longitude columns
|
|
SetPrimaryKey ( |
Sets the primary key on the supplied table
|
Method | Description | |
---|---|---|
ExecCommand ( |
Executes the supplied SQL.
|
protected ConvertToLonLat ( double northing, double easting ) : TDPG.GeoCoordConversion.PolarGeoCoordinate | ||
northing | double | northing coordinate |
easting | double | easting coordinate |
return | TDPG.GeoCoordConversion.PolarGeoCoordinate |
protected CreateSpatialIndex ( |
||
connection | db conneciton to run the command against | |
schemaName | string | schema name |
tableName | string | table name |
return | void |
protected LoadRowsToDatabase ( |
||
connection | SQL Server database connection | |
data | DataTable containing the data to load | |
schemaName | string | name of schema the table belongs to |
tableName | string | table to load the data to |
return | int |
protected SetForeignKey ( |
||
connection | db connection to run the command against | |
schemaName | string | schema name |
primaryKeyTableName | string | name of the primary key table |
primaryKeyColumnName | string | name of the primary key column |
foreignKeyTableName | string | name of the foreign key table |
foreignKeyColumnName | string | name of the foreign key column |
return | void |
protected SetGeoColumn ( |
||
connection | db connection to use | |
schemaName | string | name of schema the table belongs to |
tableName | string | name of table to update |
return | void |
protected SetPrimaryKey ( |
||
connection | db connection to use | |
schemaName | string | name of schema the table belongs to |
tableName | string | name of the table to add the PK constraint on |
pkColumnNames | string | column or columns that form the PK |
return | void |