SpatialReferenceSystem Class

Spatial reference system maps coordinates to places on Earth. There are different types of SRS, see Type. What's more, if type of SRS is Geographic or Projected, SRS can be compound or single, see IsCompound.
Inheritance Hierarchy
SystemObject
  Aspose.Gis.SpatialReferencingIdentifiableObject
    Aspose.Gis.SpatialReferencingSpatialReferenceSystem
      More...

Namespace:  Aspose.Gis.SpatialReferencing
Assembly:  Aspose.GIS (in Aspose.GIS.dll) Version: 20.3.0.0 (20.03)
Syntax
public abstract class SpatialReferenceSystem : IdentifiableObject

The SpatialReferenceSystem type exposes the following members.

Properties
  NameDescription
Public propertyAsCompound
Returns this SRS converted to CompoundSpatialReferenceSystem. Use IsCompound to find out if conversion is possible.
Public propertyAsGeocentric
Returns this SRS converted to GeocentricSpatialReferenceSystem. Use Type to find out if conversion is possible.
Public propertyAsGeographic
Returns this SRS converted to GeographicSpatialReferenceSystem. Use Type to find out if conversion is possible.
Public propertyAsLocal
Returns this SRS converted to LocalSpatialReferenceSystem. Use Type to find out if conversion is possible.
Public propertyAsProjected
Returns this SRS converted to ProjectedSpatialReferenceSystem. Use Type to find out if conversion is possible.
Public propertyAsVertical
Returns this SRS converted to VerticalSpatialReferenceSystem. Use Type to find out if conversion is possible.
Public propertyDimensionsCount
Returns number of dimensions in this SRS.
Public propertyEpsgCode
If this objects identifier is EPSG identifier - return its code. Otherwise - return -1.
(Inherited from IdentifiableObject.)
Public propertyStatic memberEtrs89
ETRS 89 (EPSG:4258) spatial reference system.
Public propertyStatic memberEtrs89LambertAzimuthalEqualArea
ETRS 89 / ETRS Lambert Azimuthal Equal Area (EPSG:3035) spatial reference system.
Public propertyStatic memberEtrs89LambertConformalConic
ETRS 89 / Lambert Conformal Conic (EPSG:3034) spatial reference system.
Public propertyGeographicDatum
Returns geographic datum of this SRS.
Public propertyHasGeographicDatum
Determines whether this SRS has geographic datum. This is true for every geographic, projected and geocentric SRS.
Public propertyHasPrimeMeridian
Returns whether this SRS has prime meridian. This is true for every geographic, projected and geocentric SRS.
Public propertyIdentifier
Identifier of this identifiable object.
(Inherited from IdentifiableObject.)
Public propertyIsCompound
Returns whether this SRS is compound (a union of two SRS). Following combinations of SRS in compound SRS are considered valid: Geographic SRS + Vertical SRS, in this case type of compound SRS will be Geographic. Projected SRS + Vertical SRS, in this case type of compound SRS will be Projected. If combination of SRSs differs, type of compound SRS will be Unknown.
Public propertyIsSingle
Returns whether this SRS is single (not a union of two SRS).
Public propertyIsValid
Public propertyStatic memberNad83
NAD 83 (EPSG:4269) spatial reference system.
Public propertyName
Name of this object.
(Inherited from IdentifiableObject.)
Public propertyStatic memberOsgb36
OSGB 36 (EPSG:4277) spatial reference system.
Public propertyStatic memberOsgb36BritishNationalGrid
OSGB 36 / British National Grid (EPSG:27700) spatial reference system.
Public propertyPrimeMeridian
Returns prime meridian of this SRS.
Public propertyType
Gets type of this SRS, see SpatialReferenceSystemType.
Public propertyStatic memberWebMercator
Web Mercator (EPSG:3857) spatial reference system.
Public propertyStatic memberWgs72
WGS 72 (EPSG:4322) spatial reference system.
Public propertyStatic memberWgs84
WGS 84 (EPSG:4326) spatial reference system.
Methods
  NameDescription
Public methodStatic memberCreateCompound
Create compound SRS.
Public methodStatic memberCreateFromEpsg
Create a spatial reference system based the specified EPSG code.
Public methodStatic memberCreateFromWkt
Creates a new SpatialReferenceSystem based on WKT (Well-Known Text) string.
Public methodStatic memberCreateGeocentric
Create geocentric SRS from custom parameters.
Public methodStatic memberCreateGeographic
Create geographic SRS from custom parameters.
Public methodStatic memberCreateLocal
Create local SRS.
Public methodStatic memberCreateProjected
Create projected SRS from custom parameters.
Public methodCreateTransformationTo
Creates transformation from this SpatialReferenceSystem to another SpatialReferenceSystem.
Public methodStatic memberCreateVertical
Create vertical SRS.
Public methodEquals (Inherited from Object.)
Public methodExportToWkt
Returns representation of this SRS as WKT string. The result WKT string will match OGC 01-009 specification, usually named "WKT1".
Protected methodFinalize (Inherited from Object.)
Public methodGetAxis
Get Axis that describes dimension.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetUnit
Get Unit of dimension.
Public methodIsEquivalent(SpatialReferenceSystem)
Detects whether this SRS is equivalent to other SRS. .
Public methodStatic memberIsEquivalent(SpatialReferenceSystem, SpatialReferenceSystem)
Determines if two SRS are equivalent. Same coordinates of equivalent SRS match same place on Earth. Some parameters of equivalent SRS can be different, for example Name.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodStatic memberTryCreateFromEpsg
Create a spatial reference system based the specified EPSG code.
Public methodStatic memberTryCreateFromWkt
Creates a new SpatialReferenceSystem based on WKT (Well-Known Text) string.
Public methodTryCreateTransformationTo
Creates transformation from this SpatialReferenceSystem to another SpatialReferenceSystem.
Public methodValidate
Determine if this SRS is valid.
See Also
Inheritance Hierarchy