Rasterization: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The rasterization model is a part of Overlay models, that is tasked with converting attributes from features, from various layers, to values in rasters.
[[File:Rasterizer.gif|thumb|right|300px|Polygon to grid raster]]
The rasterization model is a part of the [[Simulation Core]], that is tasked with converting attributes and polygons from features of various layers into raster values.


=Layers=
* Most geospatial data is represented as polygons, such as the 2D layout of a building or woodlands. When you select [[Calculation panel|Update]], the {{software}} automatically begins rasterizing this data into the required raster grid at the resolution you specify.
The layer rasterization sequence of the features is:
 
* The internal Rasterizer is specifically designed for small [[Grid cell size|grid cells]] (<1m), leveraging the power of [[Cloud Computing]] to enable multiple cores to work on the conversions simultaneously. In many cases, you may have multiple simulations running, which are also processed in parallel in real-time.
 
* Internal caching further optimizes this process, ensuring that when you hit [[Calculation Cloud|recalculate]], the rasterization occurs even more quickly.
{{clear}}
 
==Layers==
The layer rasterization sequence of the polygon features is:
# [[Net Line]]s
# [[Net Line]]s
# [[Address]]es
# [[Address]]es
Line 10: Line 18:
# [[Neighborhood]]s
# [[Neighborhood]]s


=Methods=
==Methods==
Converting polygons to grid cells can be done in different ways. A common approach is by checking the intersection between the polygon outline and the cell. As displayed below:  
Converting polygons to grid cells can be done in different ways. A common approach is by checking the intersection between the polygon outline and the cell. As displayed below:  


[[File:Raster outline.jpg|thumb|none|300px]]
[[File:Raster outline.jpg|thumb|none|300px|Outline rasterization method]]
 
However this will create a small overshoot resulting in larger cell area than the original polygon. To correct for this one could also rasterize based on the center point. As displayed below:


However this will create a small overshoot resulting in larger cell area then the original polygon. To correct for this one could also rasterize based on the center point. As displayed below:
[[File:Raster center.jpg|thumb|none|300px|Center rasterization method]]


[[File:Raster center.jpg|thumb|none|300px]]
While more accurate, this method may fail for objects smaller than the grid cell area. If the cell center point misses a small object, it won't be rasterized and remains as traversable space in the simulation.


Although this provides a fairly accurate area this can lead to unwanted results for very small objects that are smaller then the grid cell area. When the cells center point does not intersect the small object it will not be rasterized and thus be part of the simulation.
To compensate for this situation the default option is '''combined''' center + outline. This method uses center-point rasterization for most objects and outline rasterization for small ones to ensure coverage.


To compensate for this situation the default option is ''combined'' center + outline. Where most objects are rasterized via the optimal area solution (center point) and small objects are rasterized with the outline to prevent falling of the grid.
Via the editor [[Calculation panel]] the rasterization method can be selected.


Via the the editor [[Calculation panel]] the rasterization method can be selected.
* '''Combined''' Center for large and Outline for small polygons (default).
* '''Outline''' Overshoot results in more cells than polygon area.
* '''Center''' Fastest but missing small polygons.


* Combined: Center for large and Outline for small polygons (default).
[[File:rasterization.jpg|thumb|none|500px|Select rasterization method in calculation panel]]
* Outline: Overshoot results in more cells then polygon area.
* Center: WARNING: fastest but missing small polygons.


Note: Since version 2025 'combined' is the default, before that Outline was used.
{{article end
|notes=
* Before 2025, the {{software}} used the "Outline" rasterization. Since then, the "Combined" rasterization has become the default.
|seealso=*[[Grid Overlay]]
* [[Rasterization (Average Overlay)]]
* [[Rasterization (Combo Overlay)]]
* [[Rasterization (Distance Overlay)]]
* [[Rasterization (Sight Distance Overlay)]]
|api=* [[Api session event editor setting set rasterization]]
}}

Latest revision as of 06:28, 12 August 2026

Polygon to grid raster

The rasterization model is a part of the Simulation Core, that is tasked with converting attributes and polygons from features of various layers into raster values.

  • Most geospatial data is represented as polygons, such as the 2D layout of a building or woodlands. When you select Update, the Tygron Platform automatically begins rasterizing this data into the required raster grid at the resolution you specify.
  • The internal Rasterizer is specifically designed for small grid cells (<1m), leveraging the power of Cloud Computing to enable multiple cores to work on the conversions simultaneously. In many cases, you may have multiple simulations running, which are also processed in parallel in real-time.
  • Internal caching further optimizes this process, ensuring that when you hit recalculate, the rasterization occurs even more quickly.

Layers

The layer rasterization sequence of the polygon features is:

  1. Net Lines
  2. Addresses
  3. Buildings
  4. Terrains
  5. Areas
  6. Neighborhoods

Methods

Converting polygons to grid cells can be done in different ways. A common approach is by checking the intersection between the polygon outline and the cell. As displayed below:

Outline rasterization method

However this will create a small overshoot resulting in larger cell area than the original polygon. To correct for this one could also rasterize based on the center point. As displayed below:

Center rasterization method

While more accurate, this method may fail for objects smaller than the grid cell area. If the cell center point misses a small object, it won't be rasterized and remains as traversable space in the simulation.

To compensate for this situation the default option is combined center + outline. This method uses center-point rasterization for most objects and outline rasterization for small ones to ensure coverage.

Via the editor Calculation panel the rasterization method can be selected.

  • Combined Center for large and Outline for small polygons (default).
  • Outline Overshoot results in more cells than polygon area.
  • Center Fastest but missing small polygons.
Select rasterization method in calculation panel

Notes

  • Before 2025, the Tygron Platform used the "Outline" rasterization. Since then, the "Combined" rasterization has become the default.

See also

API Endpoints