Skip to content

poly2grid_untiled

mtbeek32 edited this page Jul 7, 2023 · 7 revisions

Geometric functions poly2grid_untiled

syntax

  • poly2grid_untiled(polygon_data_item, gridunit)

definition

The poly2grid function results in grid data item with a relation to the domain unit of the polygon_data_item

The resulting data item has:

description

This function is the same as poly2grid, but directly on shadow_tile. It will take longer to calculate and use more memory, but uses less CPU time and the results are independent from the actual tiling.

applies to

  • data item polygon_data_item with a wpoint, spoint, upoint, ipoint, fpoint or dpoint value type
  • unit gridunit with a wpoint, spoint upoint, ipoint, fpoint, dpoint value type

conditions

  1. The composition type type of the polygon_data_item needs to be polygon.
  2. The domain unit of the polygon_data_item must be of value type uint32.

since version

8.7.0

example

attribute<source/district> DistrictGrid (gridunit/gridcel_10m) := 
   poly2grid_untiled(Source/District/border, gridunit/gridcel_10m);

see also

Clone this wiki locally