Differences

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

Link to this comparison view

Next revision
Previous revision
calc_distance_to_feature_map [2011/07/25 15:04]
hermann created
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|Categorical Map  ​]] | 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 "​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. ​ |
  
-===== Optionsl ​Inputs =====+===== Optional ​Inputs =====
  
-^ Name                        ^ Type                                       ​^ Description ​                                                                                                                                                                    ​^ Default Value         ^                                                                                                                                                                                                                                                                  ​+^ Name  ^ Type  ^ Description ​ ^ Default Value  
-| Mask                        | [[Categorical ​Map Type|Categorical Map ]] | A map used to mask the distance ​calculation on its null cell areasData 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|Cell ​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                  | [[Int Type|Int ]]                         ​| Null value of the distance map.                                                                                                                                                  | -2147483648 ​          ​+| Null Value  | [[Null Value Type]] ​ | Null value of the distance map.  | -2147483648 ​ 
-| Truncate Distance ​          ​| [[Bool Type|Bool ]]                       ​| 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  ​|
-| Ignore Unreachable Sources ​ | [[Bool Type|Bool ]]                       | If true, feature cells completely surrounded by other feature cells are ignored. ​                                                                                                | True                  | +
-| Ignore Cross Inside Sources | [[Bool Type|Bool ]]                       | If true, feature cells surrounded by other feature cells on the horizontal and vertical axis will be ignored. To have an effect, "​Ignore Unreachable Sources"​ must also be true. | True                  ​|+
  
-===== Output ​=====+===== Outputs ​=====
  
-^ Name     ​^ Type              ^ Description ​                                                                                                     +^ Name  ^ Type  ^ Description ​ 
-| Distance | [[Map Type|Map ]] | 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 31: Line 29:
 ===== Notes ===== ===== Notes =====
  
-The calculated distance ​is the 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. 
 + 
 +Reports a warning if Cell Type could degrade performance.
  
 ===== Internal Name ===== ===== Internal Name =====