类 Identifier
Identifier class
表示一个标识符——对象外部描述的引用。如果您从 WKT 创建 SRS,Identifier 对应于 “AUTHORITY” 关键字。
public class Identifier : IEquatable<Identifier>
构造函数
| 名称 | 描述 |
|---|---|
| Identifier(string, string) | 创建新实例。 |
属性
| 名称 | 描述 |
|---|---|
| AuthorityName { get; } | 一个授权机构的名称,它提供了AuthorityUniqueIdentifier。 |
| AuthorityUniqueIdentifier { get; } | 一种在AuthorityName 中唯一表示对象的方式。 |
方法
| 名称 | 描述 |
|---|---|
| static Epsg(int) | 创建一个新的 Identifier,表示代码为 epsgCode 的 EPSG 标识符。 |
| Equals(Identifier) | 指示当前对象是否等于同类型的另一个对象。 |
| override Equals(object) | 确定指定对象是否等于当前对象。 |
| GetEpsgCode() | 如果此对象表示有效的 EPSG 标识符(例如——授权机构名称为 “EPSG” 且授权唯一标识符为整数),则返回它。否则返回 -1。 |
| override GetHashCode() | 作为默认的哈希函数。 |
| operator == | 实现运算符 ==。 |
| operator != | 实现运算符 !=。 |
示例
WGS 84 空间参考系统的 EPSG 代码为 4326,因此它可能包含标识符:
new { = "EPSG", = 4326 };
WGS 84 椭球体的 EPSG 代码为 7030,并且它可能包含标识符:
new { = "EPSG", = 7030 };
另见
- namespace Aspose.Gis.SpatialReferencing
- assembly Aspose.GIS