Longitude Property

General info

Label

Longitude

Description

The east-west position of a point on the Earth's surface.

Data type

Double

Min value

-180

Max value

180

Type

Regular

Code

45

Symbolic name

MODEL_PROP_LONGITUDE

Lua access code

syslib.model.properties.Longitude

Available since

1.0

Parent properties

Location

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_HAS_LOLIMIT The property has a low limit.
PROP_HAS_HILIMIT The property has a high limit.
PROP_NULLABLE This Property can have no value.

Examples

Read from or write to the Longitude property.

  • Lua

  • C#

-- Read from the Longitude
syslib.getvalue("<OBJECT FULL PATH>.Location.Longitude")

-- Write to the Longitude
syslib.setvalue("<OBJECT FULL PATH>.Location.Longitude", VALUE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the Longitude
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.Location.Longitude"));
// Write to the Longitude
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.Location.Longitude"));