opcua-client-nodeset · v4.3.x
Docs · Spec · GPOS

GPOS — Global Positioning

Global Positioning — geographic and geodetic coordinates over OPC UA. Four structured types (3-D point, 2-D point, ECEF, geodetic), no enums. Depends on RSL.

OPC UA companion specification for geographic and geodetic positioning data — anywhere a server needs to report a point on or near Earth's surface. Common in mobile equipment (cranes, agricultural machines), survey instruments, geographic-asset inventories.

What's in the package

Artefact Count
Enums
DTOs 4
Codecs 4
Registrars 1 (GPOSRegistrar)

Loading

php examples/gpos/load.php
use PhpOpcua\Client\ClientBuilder;
use PhpOpcua\Nodeset\GPOS\GPOSRegistrar;

$client = ClientBuilder::create()
    ->loadGeneratedTypes(new GPOSRegistrar())   // pulls RSL
    ->connect('opc.tcp://gps-asset.local:4840');

Direct dependencies

  • RSL — Result Standard Library.

Notable types

The four DTOs encode coordinate systems:

  • _3DGeographicCoordinateDataType — latitude, longitude, height in a geographic CRS
  • _2DGeographicCoordinateDataType — same minus height
  • EcefCoordinateDataType — Earth-Centered, Earth-Fixed Cartesian
  • GeodeticCoordinateDataType — geodetic latitude / longitude

The leading-underscore class names (_3D..., _2D...) reflect the spec's own naming — PHP class names cannot start with a digit, the underscore is the workaround.