GetProjectionOffset - ObjectVision/GeoDMS GitHub Wiki

Unit functions GetProjectionOffset

syntax

  • GetProjectionOffset(gridunit)

definition

GetProjectionOffset(gridunit) results in a parameter with a dpoint value type, indicating the coordinate of the top left grid cell in the coordinate system.

description

The GetProjectionOffset function can be combined with GetProjectionFactor to calculate grid relations for a point vector domain, but the value function does that directly, see Configuration examples Grid.

applies to

  • unit gridunit with Point value type of the group CanBeDomainUnit

since version

5.44

example

unit<fpoint> rdc_meter: range = "[xy(0; 300000), xy(280000; 625000))";
unit<spoint> rdc_100 :=
   range(
      gridset(
          rdc_meter
         ,point_yx(  -100f,   100f, rdc_meter)
         ,point_yx(625000f, 10000f, rdc_meter)
         ,spoint
      )
      ,point_yx(   0s,    0s)
      ,point_yx(3250s, 2700s)
   );

parameter<dpoint> projOffset := GetProjectionOffset(rdc_100);

result: projOffset = xy(10000; 625000).

see also

⚠️ **GitHub.com Fallback** ⚠️