Select to view content in your preferred language

Arcade help

113
1
Jump to solution
a week ago
MichaelFettkether
Emerging Contributor

I need some help with an arcade code. I have this:

var geom = Geometry($feature)
if (IsEmpty(geom)) {
  return null
  } else {
    return geom.Z
    }
 
This returns a value in meters. Can a conversion be added to the code that converts it to feet?
I'm using a Leica Zeno FLX100 Plus and loading data directly into Field Maps.
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

You can convert it like this

var geom = Geometry($feature);
if (IsEmpty(geom)) {
  return null;
} else {
  return geom.Z * 3.28084;
}

An even simpler expression would be

var geom = Geometry($feature);
IIf(IsEmpty(geom), null, geom.Z * 3.28084);

View solution in original post

1 Reply
KenBuja
MVP Esteemed Contributor

You can convert it like this

var geom = Geometry($feature);
if (IsEmpty(geom)) {
  return null;
} else {
  return geom.Z * 3.28084;
}

An even simpler expression would be

var geom = Geometry($feature);
IIf(IsEmpty(geom), null, geom.Z * 3.28084);