GetProjectionFactor

Unit functions GetProjectionFactor

syntax

  • GetProjectionFactor(gridunit)

definition

GetProjectionFactor(gridunit) results in a Parameter with a dpoint Value type, indicating the gridsize in both X and Y directions.

The grid size is expressed in the Unit of the coordinate system.

description

The GetProjectionFactor function in combination with the GetProjectionOffset function was used to calculate Grid relations for a set of points.

Since GeoDMS version 7.015 this is done with the Value function, 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(  -100f,   100f, rdc_meter)
         ,point(625000f, 10000f, rdc_meter)
         ,spoint
      )
      ,point(   0s,    0s)
      ,point(3250s, 2700s)
   );

parameter<dpoint> projFactor := GetProjectionFactor(rdc_100);

result: projFactor = [(-100.0, 100.0)].

see also