gridset
- Details
- Last Updated on Wednesday, 30 January 2013 12:23
syntax
-
gridset(baseunit, size, offset, valuetype)
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))"
")";