GetProjectionFactor - ObjectVision/GeoDMS GitHub Wiki
Unit functions GetProjectionFactor
- GetProjectionFactor(gridunit)
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.
To calculate grid relations for a set of points, use the value function rather than GetProjectionFactor in combination with the GetProjectionOffset function; see Configuration examples Grid.
- unit gridunit with Point value type of the group CanBeDomainUnit
5.44
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> projFactor := GetProjectionFactor(rdc_100);
result: projFactor = xy(100; -100).