Projection¶
Namespace: ThinkGeo.Core
Represents the Projection class.
public class Projection
Inheritance object → Projection
Properties¶
Srid¶
Gets or sets the Srid.
public int Srid { get; set; }
Property Value¶
ProjString¶
Gets or sets the ProjString.
public string ProjString { get; set; }
Property Value¶
Constructors¶
Projection()¶
Initializes a new instance of the Projection class.
public Projection()
Projection(int)¶
Initializes a new instance of the Projection class.
public Projection(int srid)
Parameters¶
srid int
Projection(string)¶
Initializes a new instance of the Projection class.
public Projection(string projString)
Parameters¶
projString string
Methods¶
GetUnit()¶
Returns unit.
public GeographyUnit GetUnit()
Returns¶
GeographyUnit
The result of the operation.
GetProjStringByEpsgSrid(int)¶
This method is a static API to get a projection text from EPSG(European Petroleum Survey Group).
public static string GetProjStringByEpsgSrid(int srid)
Parameters¶
srid int
The target Srid information to get the projection text from.
Returns¶
string
The project text corresponding to the srid.
Remarks:
More information about it can reference to EPSG.rtf in the documentation.
GetEpsgSridByProjString(string)¶
Returns EPSG srid by proj string for .
public static int GetEpsgSridByProjString(string projString)
Parameters¶
projString string
The proj string.
Returns¶
int
The result of the operation.
GetProjStringByEsriSrid(int)¶
This method is a static API to get a projection text from ERSI.
public static string GetProjStringByEsriSrid(int srid)
Parameters¶
srid int
The target Srid infromation to get the projection text from.
Returns¶
string
The project text corresponding to the srid.
Remarks:
More information about it can reference to ERSI.rtf in the documentation.
GetEsriSridByProjString(string)¶
Returns ESRI srid by proj string for .
public static int GetEsriSridByProjString(string projString)
Parameters¶
projString string
The proj string.
Returns¶
int
The result of the operation.
GetWgs84ProjString()¶
This method is a static API to get a projection text from WGS84.
public static string GetWgs84ProjString()
Returns¶
string
The WGS84 proj string.
GetLatLongProjString()¶
Returns lat long proj string.
public static string GetLatLongProjString()
Returns¶
string
A string result.
GetDecimalDegreesProjString()¶
Returns decimal degrees proj string.
public static string GetDecimalDegreesProjString()
Returns¶
string
A string result.
GetGoogleMapProjString()¶
This method is a static API to get a projection used by GoogleMap.
public static string GetGoogleMapProjString()
Returns¶
string
A text for a projection used by GoogleMap , it should like this "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"
GetBingMapProjString()¶
This method is a static API to get a projection used by BingMaps.
public static string GetBingMapProjString()
Returns¶
string
A text for a projection used by BingMaps , it should like this "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"
GetSphericalMercatorProjString()¶
This method is a static API to get a projection of SphericalMercator.
public static string GetSphericalMercatorProjString()
Returns¶
string
A text for a SphericalMercator projection, it should like this "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"
GetLocalUtmZoneProjString(double, double)¶
Returns local UTM zone proj string for the specified parameters.
public static string GetLocalUtmZoneProjString(double latitude, double longitude)
Parameters¶
latitude double
The latitude.
longitude double
The longitude.
Returns¶
string
A string result.
GetLocalUtmZoneProjString(Feature, string)¶
Returns local UTM zone proj string for the specified parameters.
public static string GetLocalUtmZoneProjString(Feature feature, string projString)
Parameters¶
feature Feature
The feature.
projString string
The proj string.
Returns¶
string
A string result.
GetLocalUtmZoneProjString(Feature, int)¶
Returns local UTM zone proj string for the specified parameters.
public static string GetLocalUtmZoneProjString(Feature feature, int srid)
Parameters¶
feature Feature
The feature.
srid int
The srid.
Returns¶
string
A string result.
GetLocalUtmZoneProjString(BaseShape, Projection)¶
Returns local UTM zone proj string for the specified parameters.
public static string GetLocalUtmZoneProjString(BaseShape shape, Projection projection)
Parameters¶
shape BaseShape
The shape.
projection Projection
The projection.
Returns¶
string
A string result.
GetLocalUtmZoneProjString(BaseShape, string)¶
Returns local UTM zone proj string for the specified parameters.
public static string GetLocalUtmZoneProjString(BaseShape shape, string projString)
Parameters¶
shape BaseShape
The shape.
projString string
The proj string.
Returns¶
string
A string result.
GetLocalUtmZoneProjString(BaseShape, int)¶
Returns local UTM zone proj string for the specified parameters.
public static string GetLocalUtmZoneProjString(BaseShape shape, int srid)
Parameters¶
shape BaseShape
The shape.
srid int
The srid.
Returns¶
string
A string result.
GetLocalUtmZoneNumber(double, double)¶
Returns local UTM zone number for the specified parameters.
public static int GetLocalUtmZoneNumber(double latitude, double longitude)
Parameters¶
latitude double
The latitude.
longitude double
The longitude.
Returns¶
int
The result of the operation.
GetLocalUtmZoneNumber(Feature, string)¶
Returns local UTM zone number for the specified parameters.
public static int GetLocalUtmZoneNumber(Feature feature, string projString)
Parameters¶
feature Feature
The feature.
projString string
The proj string.
Returns¶
int
The result of the operation.
GetLocalUtmZoneNumber(Feature, int)¶
Returns local UTM zone number for the specified parameters.
public static int GetLocalUtmZoneNumber(Feature feature, int srid)
Parameters¶
feature Feature
The feature.
srid int
The srid.
Returns¶
int
The result of the operation.
GetLocalUtmZoneNumber(BaseShape, string)¶
Returns local UTM zone number for the specified parameters.
public static int GetLocalUtmZoneNumber(BaseShape shape, string projString)
Parameters¶
shape BaseShape
The shape.
projString string
The proj string.
Returns¶
int
The result of the operation.
GetLocalUtmZoneNumber(BaseShape, int)¶
Returns local UTM zone number for the specified parameters.
public static int GetLocalUtmZoneNumber(BaseShape shape, int srid)
Parameters¶
shape BaseShape
The shape.
srid int
The srid.
Returns¶
int
The result of the operation.
GetGeographyUnitFromWkb(string)¶
Returns geography unit from wkb for .
public static GeographyUnit GetGeographyUnitFromWkb(string wkt)
Parameters¶
wkt string
The WKT.
Returns¶
GeographyUnit
The result of the operation.
GetGeographyUnitFromProj(string)¶
Returns geography unit from proj for .
public static GeographyUnit GetGeographyUnitFromProj(string projString)
Parameters¶
projString string
The proj string.
Returns¶
GeographyUnit
The result of the operation.
ConvertEpsgToWkt(int)¶
This method is a static API to get a Prj string by Epsg number
public static string ConvertEpsgToWkt(int srid)
Parameters¶
srid int
Epsg number that reprents this projection
Returns¶
ConvertProjStringToWkt(string)¶
Converts proj string to WKT.
public static string ConvertProjStringToWkt(string projString)
Parameters¶
projString string
The proj string.
Returns¶
string
A string result.
ConvertWktToProjString(string)¶
Converts WKT to proj string.
public static string ConvertWktToProjString(string wkt)
Parameters¶
wkt string
The WKT.
Returns¶
string
A string result.
ConvertEpsgToProjString(int)¶
Converts EPSG to proj string.
public static string ConvertEpsgToProjString(int srid)
Parameters¶
srid int
The srid.
Returns¶
string
A string result.
ConvertProjStringToEpsg(string)¶
Converts proj string to EPSG.
public static int ConvertProjStringToEpsg(string projString)
Parameters¶
projString string
The proj string.
Returns¶
int
The result of the operation.
GetGeographyUnit(int)¶
Returns geography unit for .
public static GeographyUnit GetGeographyUnit(int srid)
Parameters¶
srid int
The srid.
Returns¶
GeographyUnit
The result of the operation.
GetGeographyUnit(string)¶
Returns geography unit for .
public static GeographyUnit GetGeographyUnit(string projString)
Parameters¶
projString string
The proj string.
Returns¶
GeographyUnit
The result of the operation.