Surface Length (3D Analyst)
Резюме
Calculates the surface length for each polyline or polygon feature based on a raster, triangulated irregular network (TIN), or terrain dataset surface.
The surface length information is stored as an attribute of the input feature class.
This is a deprecated tool. To learn more about how this tool works click here to view archived documentation. This functionality has been added to the Add Surface Information tool.
Использование
-
Use a smaller sampling distance to increase the accuracy of the surface length calculations.
-
Use {out_length_field} to give the length field a custom name.
-
Only polyline and polygon feature classes are valid inputs for this tool.
Синтаксис
Параметр | Объяснение | Тип данных |
in_surface |
The input raster, TIN, or terrain dataset whose values will be used for interpolation. | TIN layer; raster layer; terrain lLayer |
in_feature_class |
The input polygon or polyline feature class. | Feature layer |
out_length_field (дополнительно) |
The name of the attribute field to contain the surface length. | String |
sample_distance (дополнительно) |
The surface spacing at which the length is calculated. By default, the sampling distance is the natural densification of a TIN or the cell size of a raster. | Double |
z_factor (дополнительно) |
The factor multiplied by input surface values to store new values in the length field. The Z factor is used to convert z-units to match x,y units. | Double |
method (дополнительно) |
The interpolation method. For raster surfaces, the only option is BILINEAR. Select LINEAR or NATURAL_NEIGHBORS. | String |
pyramid_level_resolution (дополнительно) |
z-допуск или разрешение размера окна для уровня пирамидных слоев Terrain, которое будет использоваться этим инструментом. Значением по умолчанию является 0, полное разрешение. | Double |
Пример кода
В следующем примере показано использование этого инструмента в окне Python:
import arcgisscripting
gp = arcgisscripting.create()
gp.CheckOutExtension("3D")
gp.workspace = "C:/data"
gp.SurfaceLength_3d("elevation_tin", "lines.shp", "Length3D")