Identifier Class
Contents
[
Hide
]Summary: Represents an identifier - a reference to external description of an object.
If you create a SRS from WKT, Identifier corresponds to “AUTHORITY” keyword.
Module: aspose.gis.spatialreferencing
Full Name: aspose.gis.spatialreferencing.Identifier
Aspose.PSD Version: 25.9.0
Constructors
| Name | Description |
|---|---|
| Identifier(authority_name, authority_unique_identifier) | Create new instance. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| authority_name | string | r | A name of authority, which gave an Identifier.authority_unique_identifier. |
| authority_unique_identifier | string | r | A unique way to represent an object within a Identifier.authority_name. |
Methods
| Name | Description |
|---|---|
| epsg(epsg_code) | Creates new Identifier that represents EPSG identifier with code |
| get_epsg_code() | If this object represents a valid EPSG identifier (e.g. - authority name is “EPSG” and authority unique identifier is integer) - return it. Otherwise - return -1. |
Constructor: Identifier(authority_name, authority_unique_identifier)
Identifier(authority_name, authority_unique_identifier)
Create new instance.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| authority_name | string | Identifier.authority_name. |
| authority_unique_identifier | string | Identifier.authority_unique_identifier. |
Method: epsg(epsg_code) [static]
epsg(epsg_code)
Creates new Identifier that represents EPSG identifier with code
Parameters:
| Parameter | Type | Description |
|---|---|---|
| epsg_code | int | Epsg code. |
Returns
| Type | Description |
|---|---|
| Identifier | New identifier with Identifier.authority_name “EPSG” and Identifier.authority_unique_identifier If |
Method: get_epsg_code()
get_epsg_code()
If this object represents a valid EPSG identifier (e.g. - authority name is “EPSG” and authority unique identifier is integer) -
return it. Otherwise - return -1.
Returns
| Type | Description |
|---|---|
| int | EPSG identifier represented by this object. If this object doesn’t represent an EPSG identifier - return -1. |