logo-header

 
 

gridset

syntax

definition

gridset(baseunit, size, offset, valuetype) defines a point domain unit with a projection to a coordinate system (e.g. Lat long or RD). The gridset function has the following arguments:

  • the baseunit in which the coordinates of the coordinate system are expressed;
  • the size of the grid in both X and Y directions, expressed in the base unit;
  • the offset, the coordinates of the top left coordinate, expressed in the base unit;
  • the value type of the resulting domain unit (in earlier versions the value type was configured as string, this will not be supported in the future).

applies to

The baseunit is a unit with value type:

  • group: Point

The size is a parameter/constant with value type:

  • group: Point

The offset is a parameter/constant with value type:

  • group: Point

The resulting valuetype:

  • group: Point

conditions

The baseunit, size and offset arguments need to match with regard to their values unit.

since version

5.15

example

unit<fpoint> rdc_m
: Label = "rijksdriehoekmeting in meters",
, Range = "[{300000, 0}, {625000, 280000})";
unit<spoint> rdc_100: expr =
"range("
"gridset("
"
rdc_m"
   ",point(float32( - 100.0), float32(  100.0), rdc_m)"
         ",point(float32(625000.0), float32(10000.0), rdc_m)"
         ",spoint"
"
)"
      ", point(int16( 0), int16( 0))"
      ", point(int16(3250), int16(2700))"
")";

OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904



Recent Wiki Changes