Identifier Class

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

NameDescription
Identifier(authority_name, authority_unique_identifier)Create new instance.

Properties

NameTypeAccessDescription
authority_namestringrA name of authority, which gave an Identifier.authority_unique_identifier.
authority_unique_identifierstringrA unique way to represent an object within a Identifier.authority_name.

Methods

NameDescription
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:

ParameterTypeDescription
authority_namestringIdentifier.authority_name.
authority_unique_identifierstringIdentifier.authority_unique_identifier.

Method: epsg(epsg_code) [static]

 epsg(epsg_code) 

Creates new Identifier that represents EPSG identifier with code .

Parameters:

ParameterTypeDescription
epsg_codeintEpsg code.

Returns

TypeDescription
IdentifierNew identifier with Identifier.authority_name “EPSG” and Identifier.authority_unique_identifier .
If is less then 0 - return ;

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

TypeDescription
intEPSG identifier represented by this object. If this object doesn’t represent an EPSG identifier - return -1.