CompoundSpatialReferenceSystem Class
Summary: Compound SRS unites two underlying SRS, none of which can be compound.
Module: aspose.gis.spatialreferencing
Full Name: aspose.gis.spatialreferencing.CompoundSpatialReferenceSystem
Inheritance: SpatialReferenceSystem
Aspose.PSD Version: 25.9.0
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| as_compound | CompoundSpatialReferenceSystem | r | Return this. |
| as_geocentric | GeocentricSpatialReferenceSystem | r | Returns this SRS converted to GeocentricSpatialReferenceSystem. Use SpatialReferenceSystem.type to find out if conversion is possible. |
| as_geographic | GeographicSpatialReferenceSystem | r | Return geographic representation of this SRS. If this compound SRS indeed represents a geographic SRS, the result will be three dimensional geographic SRS (with longitude, latitude, height dimensions). Otherwise an exception will be thrown. |
| as_local | LocalSpatialReferenceSystem | r | Returns this SRS converted to LocalSpatialReferenceSystem. Use SpatialReferenceSystem.type to find out if conversion is possible. |
| as_projected | ProjectedSpatialReferenceSystem | r | Return projected representation of this SRS. If this compound SRS indeed represents a projected SRS, the result will be three dimensional projected SRS (with X, Y, height dimensions). Otherwise an exception will be thrown. |
| as_vertical | VerticalSpatialReferenceSystem | r | Returns this SRS converted to VerticalSpatialReferenceSystem. Use SpatialReferenceSystem.type to find out if conversion is possible. |
| dimensions_count | int | r | Number of dimensions. For compound SRS this is sum of number of dimensions of underlying SRS. |
| epsg_code | int | r | If this objects identifier is EPSG identifier - return its code. Otherwise - return -1. |
| etrs89 [static] | GeographicSpatialReferenceSystem | r | ETRS 89 (EPSG:4258) spatial reference system. |
| etrs_89_lambert_azimuthal_equal_area [static] | ProjectedSpatialReferenceSystem | r | ETRS 89 / ETRS Lambert Azimuthal Equal Area (EPSG:3035) spatial reference system. |
| etrs_89_lambert_conformal_conic [static] | ProjectedSpatialReferenceSystem | r | ETRS 89 / Lambert Conformal Conic (EPSG:3034) spatial reference system. |
| geographic_datum | GeographicDatum | r | Return geographic datum of this SRS. If both CompoundSpatialReferenceSystem.head and CompoundSpatialReferenceSystem.tail have geographic datum - return geographic datum of head. |
| has_geographic_datum | bool | r | Compound SRS have geographic datum if any of underlying SRS have geographic datum. |
| has_prime_meridian | bool | r | Compound SRS has prime meridian if any of underlying SRS have prime meridian. |
| head | SpatialReferenceSystem | r | First underlying SRS. |
| identifier | Identifier | r | Identifier of this identifiable object. |
| is_compound | bool | r | Returns |
| is_single | bool | r | Returns whether this SRS is single (not a union of two SRS). |
| is_valid | bool | r | Same as |
| nad83 [static] | GeographicSpatialReferenceSystem | r | NAD 83 (EPSG:4269) spatial reference system. |
| name | string | r | Name of this object. |
| osgb36 [static] | GeographicSpatialReferenceSystem | r | OSGB 36 (EPSG:4277) spatial reference system. |
| osgb_36_british_national_grid [static] | ProjectedSpatialReferenceSystem | r | OSGB 36 / British National Grid (EPSG:27700) spatial reference system. |
| prime_meridian | PrimeMeridian | r | Return prime meridian of this SRS. If both CompoundSpatialReferenceSystem.head and CompoundSpatialReferenceSystem.tail have prime meridian - return prime meridian of head. |
| tail | SpatialReferenceSystem | r | Second underlying SRS. |
| type | SpatialReferenceSystemType | r | Type of this Compound SRS. Can be SpatialReferenceSystemType.GEOGRAPHIC if this Compound SRS is combination of geographic and vertical SRS, or SpatialReferenceSystemType.PROJECTED if this Compound SRS is combination of projected and vertical SRS. |
| web_mercator [static] | ProjectedSpatialReferenceSystem | r | Web Mercator (EPSG:3857) spatial reference system. |
| wgs72 [static] | GeographicSpatialReferenceSystem | r | WGS 72 (EPSG:4322) spatial reference system. |
| wgs84 [static] | GeographicSpatialReferenceSystem | r | WGS 84 (EPSG:4326) spatial reference system. |
Methods
| Name | Description |
|---|---|
| create_compound(name, head, tail, identifier) | Create compound SRS. |
| create_from_epsg(epsg) | Create a spatial reference system based the specified EPSG code. |
| create_from_wkt(wkt) | Creates a new |
| create_geocentric(parameters, identifier) | Create geocentric SRS from custom parameters. |
| create_geographic(parameters, identifier) | Create geographic SRS from custom parameters. |
| create_local(name, datum, unit, axises, identifier) | Create local Spatial Reference System. |
| create_projected(parameters, identifier) | Create projected SRS from custom parameters. |
| create_transformation_to(target_srs) | Creates transformation from this |
| create_vertical(name, vertical_datum, vertical_unit, vertical_axis, identifier) | Create vertical SRS. |
| export_to_wkt() | Returns representation of this SRS as WKT string. The result WKT string will match OGC 01-009 specification, usually named “WKT1”. |
| get_axis(dimension) | Get Axis that describes dimension. |
| get_unit(dimension) | Get Unit of dimension. |
| is_equivalent(other) | Detects whether this SRS is equivalent to other SRS. SpatialReferenceSystem.is_equivalent(srs1, srs2). |
| is_equivalent(srs1, srs2) | 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 IdentifiableObject.name. |
| try_create_from_epsg(epsg, value) | Create a spatial reference system based the specified EPSG code. |
| try_create_from_wkt(wkt, value) | Creates a new |
| try_create_transformation_to(target_srs, value) | Creates transformation from this |
| validate(error_message) | Determine if this SRS is valid. See |
Method: create_compound(name, head, tail, identifier) [static]
create_compound(name, head, tail, identifier)
Create compound SRS.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of new SRS. |
| head | SpatialReferenceSystem | Head SRS of new SRS. |
| tail | SpatialReferenceSystem | Tail SRS of new SRS. |
| identifier | Identifier | Identifier, that will be attached to SRS. Attaching an Identifier will not modify other SRS parameters. Its up to you to ensure consistency of identifier and SRS parameters. |
Returns
| Type | Description |
|---|---|
| CompoundSpatialReferenceSystem | New Compound SRS. |
Method: create_from_epsg(epsg) [static]
create_from_epsg(epsg)
Create a spatial reference system based the specified EPSG code.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| epsg | int | EPSG code of the spatial reference system. |
Returns
| Type | Description |
|---|---|
| SpatialReferenceSystem | A new spatial reference system with the specified EPSG code. |
Method: create_from_wkt(wkt) [static]
create_from_wkt(wkt)
Creates a new
Parameters:
| Parameter | Type | Description |
|---|---|---|
| wkt | string | WKT string. |
Returns
| Type | Description |
|---|---|
| SpatialReferenceSystem | New |
Method: create_geocentric(parameters, identifier) [static]
create_geocentric(parameters, identifier)
Create geocentric SRS from custom parameters.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parameters | GeocentricSpatialReferenceSystemParameters | Parameters to create from. |
| identifier | Identifier | Identifier, that will be attached to SRS. Attaching an Identifier will not modify other SRS parameters. Its up to you to ensure consistency of identifier and SRS parameters. |
Returns
| Type | Description |
|---|---|
| GeocentricSpatialReferenceSystem | New Geocentric SRS. |
Method: create_geographic(parameters, identifier) [static]
create_geographic(parameters, identifier)
Create geographic SRS from custom parameters.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parameters | GeographicSpatialReferenceSystemParameters | Parameters to create from. |
| identifier | Identifier | Identifier, that will be attached to SRS. Attaching an Identifier will not modify other SRS parameters. Its up to you to ensure consistency of identifier and SRS parameters. |
Returns
| Type | Description |
|---|---|
| GeographicSpatialReferenceSystem | New Geographic SRS. |
Method: create_local(name, datum, unit, axises, identifier) [static]
create_local(name, datum, unit, axises, identifier)
Create local Spatial Reference System.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of Spatial Reference System. |
| datum | LocalDatum | Datum to be used in SRS. |
| unit | Unit | Unit to be used in SRS. |
| axises | System.Collections.Generic.ICollection | Axises to be used in SRS. Must be non empty |
| identifier | Identifier | Identifier, that will be attached to SRS. Attaching an Identifier will not modify other SRS parameters. Its up to you to ensure consistency of identifier and SRS parameters. |
Returns
| Type | Description |
|---|---|
| LocalSpatialReferenceSystem | New Local Spatial Reference System. |
Method: create_projected(parameters, identifier) [static]
create_projected(parameters, identifier)
Create projected SRS from custom parameters.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parameters | ProjectedSpatialReferenceSystemParameters | Parameters to create from. |
| identifier | Identifier | Identifier, that will be attached to SRS. Attaching an Identifier will not modify other SRS parameters. Its up to you to ensure consistency of identifier and SRS parameters. |
Returns
| Type | Description |
|---|---|
| ProjectedSpatialReferenceSystem | New Projected SRS. |
Method: create_transformation_to(target_srs)
create_transformation_to(target_srs)
Creates transformation from this
Parameters:
| Parameter | Type | Description |
|---|---|---|
| target_srs | SpatialReferenceSystem | Another |
Returns
| Type | Description |
|---|---|
| SpatialReferenceSystemTransformation | Transformation from this |
Method: create_vertical(name, vertical_datum, vertical_unit, vertical_axis, identifier) [static]
create_vertical(name, vertical_datum, vertical_unit, vertical_axis, identifier)
Create vertical SRS.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of SRS. If |
| vertical_datum | VerticalDatum | Datum to be used in SRS. |
| vertical_unit | Unit | Unit to be used in SRS. If |
| vertical_axis | Axis | Axis with “up” or “down” direction, to be used in SRS. If |
| identifier | Identifier | Identifier, that will be attached to SRS. Attaching an Identifier will not modify other SRS parameters. Its up to you to ensure consistency of identifier and SRS parameters. |
Returns
| Type | Description |
|---|---|
| VerticalSpatialReferenceSystem | New Vertical SRS. |
Method: export_to_wkt()
export_to_wkt()
Returns representation of this SRS as WKT string.
The result WKT string will match OGC 01-009 specification, usually named “WKT1”.
Returns
| Type | Description |
|---|---|
| string | WKT representation of this SRS. |
Method: get_axis(dimension)
get_axis(dimension)
Get Axis that describes dimension.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dimension | int | Number of dimension. |
Returns
| Type | Description |
|---|---|
| Axis | Axis that describes dimension. |
Method: get_unit(dimension)
get_unit(dimension)
Get Unit of dimension.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dimension | int | Number of dimension. |
Returns
| Type | Description |
|---|---|
| Unit | Unit of dimension. |
Method: is_equivalent(other)
is_equivalent(other)
Detects whether this SRS is equivalent to other SRS. SpatialReferenceSystem.is_equivalent(srs1, srs2).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | SpatialReferenceSystem | Other SRS. |
Returns
| Type | Description |
|---|---|
| bool | bool value, indicating whether this SRS is equivalent to other SRS. |
Method: is_equivalent(srs1, srs2) [static]
is_equivalent(srs1, srs2)
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 IdentifiableObject.name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| srs1 | SpatialReferenceSystem | First SRS. |
| srs2 | SpatialReferenceSystem | Second SRS. |
Returns
| Type | Description |
|---|---|
| bool | bool value, indicating whether two SRS are equivalent. |
Method: try_create_from_epsg(epsg, value) [static]
try_create_from_epsg(epsg, value)
Create a spatial reference system based the specified EPSG code.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| epsg | int | EPSG code of the spatial reference system. |
| value | SpatialReferenceSystem[] | When this methods returns contains |
Returns
| Type | Description |
|---|---|
| bool |
Method: try_create_from_wkt(wkt, value) [static]
try_create_from_wkt(wkt, value)
Creates a new
Parameters:
| Parameter | Type | Description |
|---|---|---|
| wkt | string | WKT string. |
| value | SpatialReferenceSystem[] | When this methods returns contains |
Returns
| Type | Description |
|---|---|
| bool |
Method: try_create_transformation_to(target_srs, value)
try_create_transformation_to(target_srs, value)
Creates transformation from this
Parameters:
| Parameter | Type | Description |
|---|---|---|
| target_srs | SpatialReferenceSystem | Another |
| value | SpatialReferenceSystemTransformation[] | When this methods returns |
Returns
| Type | Description |
|---|---|
| bool | Transformation from this |
Method: validate(error_message)
validate(error_message)
Determine if this SRS is valid. See
Parameters:
| Parameter | Type | Description |
|---|---|---|
| error_message | String | Description of invalidity (if result is |
Returns
| Type | Description |
|---|---|
| bool | If this SRS is valid - |