This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::DatasetSpatialReference Class

Header: #include <UnigineDataset.h>

The DatasetSpatialReference class represents an OpenGIS Spatial Reference System (SRS). The class uses GDAL API to retrieve data from strings in WKT (Well-known text) format.

DatasetSpatialReference Class

Members


static DatasetSpatialReferencePtr create ( const char * wkt_string = 0 ) #

Constructor. Takes a string argument which should be a WKT representation of an SRS.

Arguments

  • const char * wkt_string - Well known text definition to which the object should be initialized.

int importFromWkt ( const char * wkt_string ) #

Imports the SRS definition from WKT string, wipes the existing one and reassigns it based on the contents of the passed WKT string.

Arguments

  • const char * wkt_string - WKT string.

Return value

0 if import succeeds; otherwise, 1.

int setWellKnownGeogCS ( const char * str ) #

Sets a GeogCS based on a well-known name.

Arguments

  • const char * str - Name of a well-known geodetics coordinate system.

    The following well-known text values are supported:

    • WGS84 — same as EPSG:4326, but has no dependence on EPSG data files.
    • WGS72 — same as EPSG:4322, but has no dependence on EPSG data files.
    • NAD27 — same as EPSG:4267, but has no dependence on EPSG data files.
    • NAD83 — same as EPSG:4269, but has no dependence on EPSG data files.
    • EPSG:nn is a GCS code from the horizontal coordinate system table.

Return value

1 on success; otherwise, 0.

int isValid ( ) #

Returns a value indicating if the instance contains valid reference system.

Return value

1 if the instance contains valid SRS; otherwise, 0.
Last update: 2019-12-25
Build: ()