Class Projection
public class Projection
- Inheritance
-
Projection
- Inherited Members
Constructors
Projection()
public Projection()
Projection(int)
[Obsolete("This property is obfuscated and will be removed after v14.2. Please use Projection.ConvertEpsgToProjString() to get the proj string from an srid, or use Projection.ConvertProjStringToEpsg() to get the srid from a proj string")]
public Projection(int srid)
Parameters
srid
int
Projection(string)
public Projection(string projString)
Parameters
projString
string
Properties
ProjString
public string ProjString { get; set; }
Property Value
Srid
[Obsolete("This property is obfuscated and will be removed after v14.2. Please use Projection.ConvertEpsgToProjString() to get the proj string from an srid, or use Projection.ConvertProjStringToEpsg() to get the srid from a proj string")]
public int Srid { get; set; }
Property Value
Methods
ConvertEpsgToProjString(int)
public static string ConvertEpsgToProjString(int srid)
Parameters
srid
int
Returns
ConvertEpsgToWkt(int)
This method is a static API to get a Prj string by Epsg number
public static string ConvertEpsgToWkt(int srid)
Parameters
srid
intEpsg number that reprents this projection
Returns
ConvertProjStringToEpsg(string)
public static int ConvertProjStringToEpsg(string projString)
Parameters
projString
string
Returns
ConvertProjStringToWkt(string)
public static string ConvertProjStringToWkt(string projString)
Parameters
projString
string
Returns
ConvertWktToProjString(string)
public static string ConvertWktToProjString(string wkt)
Parameters
wkt
string
Returns
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"
GetDecimalDegreesProjString()
public static string GetDecimalDegreesProjString()
Returns
GetEpsgSridByProjString(string)
public static int GetEpsgSridByProjString(string projString)
Parameters
projString
string
Returns
GetEsriSridByProjString(string)
public static int GetEsriSridByProjString(string projString)
Parameters
projString
string
Returns
GetGeographyUnit(int)
public static GeographyUnit GetGeographyUnit(int srid)
Parameters
srid
int
Returns
GetGeographyUnit(string)
public static GeographyUnit GetGeographyUnit(string projString)
Parameters
projString
string
Returns
GetGeographyUnitFromProj(string)
public static GeographyUnit GetGeographyUnitFromProj(string projString)
Parameters
projString
string
Returns
GetGeographyUnitFromWkb(string)
public static GeographyUnit GetGeographyUnitFromWkb(string wkt)
Parameters
wkt
string
Returns
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"
GetLatLongProjString()
public static string GetLatLongProjString()
Returns
GetLocalUtmZoneNumber(double, double)
public static int GetLocalUtmZoneNumber(double latitude, double longitude)
Parameters
Returns
GetLocalUtmZoneNumber(BaseShape, int)
public static int GetLocalUtmZoneNumber(BaseShape shape, int srid)
Parameters
Returns
GetLocalUtmZoneNumber(BaseShape, string)
public static int GetLocalUtmZoneNumber(BaseShape shape, string projString)
Parameters
Returns
GetLocalUtmZoneNumber(Feature, int)
public static int GetLocalUtmZoneNumber(Feature feature, int srid)
Parameters
Returns
GetLocalUtmZoneNumber(Feature, string)
public static int GetLocalUtmZoneNumber(Feature feature, string projString)
Parameters
Returns
GetLocalUtmZoneProjString(double, double)
public static string GetLocalUtmZoneProjString(double latitude, double longitude)
Parameters
Returns
GetLocalUtmZoneProjString(BaseShape, int)
public static string GetLocalUtmZoneProjString(BaseShape shape, int srid)
Parameters
Returns
GetLocalUtmZoneProjString(BaseShape, string)
public static string GetLocalUtmZoneProjString(BaseShape shape, string projString)
Parameters
Returns
GetLocalUtmZoneProjString(BaseShape, Projection)
public static string GetLocalUtmZoneProjString(BaseShape shape, Projection projection)
Parameters
shape
BaseShapeprojection
Projection
Returns
GetLocalUtmZoneProjString(Feature, int)
public static string GetLocalUtmZoneProjString(Feature feature, int srid)
Parameters
Returns
GetLocalUtmZoneProjString(Feature, string)
public static string GetLocalUtmZoneProjString(Feature feature, string projString)
Parameters
Returns
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
intThe 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.
GetProjStringByEsriSrid(int)
This method is a static API to get a projection text from ERSI.
public static string GetProjStringByEsriSrid(int srid)
Parameters
srid
intThe 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.
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"
GetUnit()
public GeographyUnit GetUnit()
Returns
GetWgs84ProjString()
This method is a static API to get a projection text from WGS84.
public static string GetWgs84ProjString()
Returns
- string
The WGS84 proj string.