Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
calc_distance_to_feature_map [2020/02/13 15:25]
danilo
calc_distance_to_feature_map [2026/08/28 03:09] (current)
hermann Sync from local documentation review
Line 1: Line 1:
-====== Calc Distance To Feature Map ====== ​+====== Calc Distance To Feature Map ======
  
 ===== Description ===== ===== Description =====
  
-This functor calculates ​a map representing the frontage ​distance ​(in meters) between a cell and the closest ​cell representing a feature.+Calculates ​a map representing the Euclidean ​distancein meters, from every cell to the nearest ​cell representing a feature.
  
 ===== Inputs ===== ===== Inputs =====
  
 ^ Name  ^ Type  ^ Description ​ ^ ^ Name  ^ Type  ^ Description ​ ^
-| Source ​ | [[Categorical Map Type]] ​ | Map containing the features to which distances ​will be calculated. A feature is represented by non-null value. Data cell type of this map must be compatible with "​Signed 32 Bit Integer"​ or an error will be reported.  |+| Source ​ | [[Categorical Map Type]] ​ | Map for which distances ​are calculated. A feature is represented by any non-null value. ​ | 
 + 
 +===== Optional Inputs =====
  
 ^ Name  ^ Type  ^ Description ​ ^ Default Value  ^ ^ Name  ^ Type  ^ Description ​ ^ Default Value  ^
-| Mask  | [[Categorical ​Map Type]] ​ | A map used to mask the distance ​calculation on its null cell areas. Data cell type of this map must be compatible with "​Signed 32 Bit Integer"​ or an error will be reported.  | None  | +| Mask  | [[Map Type]] ​ | Map restricting which cells have their distance ​calculated: only cells whose corresponding cell in Mask is non-null have a distance calculated.  | None  | 
-| Cell type  | [[Cell Type Type]] ​ | Data cell type.  | Signed 32 Bit Integer ​ | +| Cell Type  | [[Cell Type Type]] ​ | Cell type of the distance map.  | Signed 32 Bit Integer ​ | 
-| Null Value  | [[Null Value Type]] ​ | Null value of the distance map.  | Default((Based on the given Cell Type input)) ​ | +| Null Value  | [[Null Value Type]] ​ | Null value of the distance map.  | -2147483648 ​ | 
-| Truncate Distance ​ | [[Boolean Value Type]] ​ | If true, distance ​values that exceed ​the greatest ​value of the output map will be truncatedinstead of reporting an error. ​ | False  |+| Truncate Distance ​ | [[Boolean Value Type]] ​ | If true, distance ​exceeding ​the largest ​value representable in the output map is truncated ​to that largest value instead of reporting an error. This is an advanced port.  | No  |
  
-===== Output ​=====+===== Outputs ​=====
  
 ^ Name  ^ Type  ^ Description ​ ^ ^ Name  ^ Type  ^ Description ​ ^
-| Distance ​ | [[Map Type]] ​ | The distance map. The distances ​are represented ​in meters. Map format has the same dimensions ​of the source map.  |+| Distance ​ | [[Map Type]] ​ | Map of distancesin meters, with the same dimensions ​as Source.  |
  
 ===== Group ===== ===== Group =====
Line 27: Line 29:
 ===== Notes ===== ===== Notes =====
  
-The calculated distance ​is the [[wp>​Euclidean_distance|Euclidean distance]] and the unit used is the meter.+Mask only restricts which cells receive a calculated distance ​in the output; it has no effect on which cells of Source are collected as features, so a feature located outside ​the area defined by Mask still influences ​the result.
  
-The mask does not interfere ​with distance calculations to cells located beyond null cells.+Raises an error if Null Value is not compatible ​with Cell Type.
  
-The resulting output map has one layer named "​layer_0"​. This is the default name for layers of map when an explicit name is not specified.+Reports ​warning if Cell Type could degrade performance.
  
 ===== Internal Name ===== ===== Internal Name =====
  
 CalcDistanceToFeatureMap CalcDistanceToFeatureMap
 +