要素转栅格 (FeatureToRaster) 示例 2(独立脚本) 将要素转换为栅格数据集。 # Name: FeatureToRaster_Ex_02.py # Description: Converts features to a raster dataset. # Import system modules import arcpy from arcpy import env # Set environment settings env.workspace = "C:/data" # Set local varia...
If more control is needed over how different types of input feature geometries are to be converted, refer to the respective specific conversion tools: Point to Raster, Polyline to Raster, and Polygon to Raster. This tool is a complement to the Raster to Point, Raster to Polyline, and Raster...
|Raster to ASCII |栅格转ASCII| |Raster to Float |栅格转浮点型| |Raster to Point |栅格转点| |Raster to Polygon |栅格转面| |Raster to Polyline | 栅格转线| |Raster To Video |栅格转视频| From WFS(由WPS转出)From WFS(由WPS转出)|WFS To Feature Class |wPs转至要素类| JSON(JSON)JSON(...
菜单Geoprocessing->ArcToolbox->Conversion Tools->To Raster->Feature to Raster.
展开Conversion Tools 工具箱,打开To Raster 工具集,双击 Feature to Raster打开 Feature to Raster对话框。 在Input features 文本框中选择输入需要转换的矢量数据。 在Field窗口选择数据转换时所依据的属性值。 在Output raster 文本框键入输出的栅格数据的路径与名称。 在Output raster文本框键入输出栅格的大小,或者浏...
2.“转为栅格”工具集(to raster) 这个里面是从矢量转栅格的工具集。 这个工具集里面我觉得比较常用有4个:要素转栅格、点转栅格、线转栅格以及面转栅格。同样,工具的使用我放在视频里,代码如下: #Python window#要素转栅格importarcpyfromarcpyimportenvenv.workspace="c:/data"arcpy.FeatureToRaster_conversion("...
Polyline feature to raster data When you convert polylines, cells are usually given the value of the line that intersects each cell. Cells that are not intersected by a line are given the value of NoData. If more than one line is found in a cell, the cell is given the value of the...
Convert Feature to Raster includes configurations for input features, analysis settings, and the result layer. Input features TheInput featuresgroup includes theInput feature layerparameter, which identifies the features to be converted to raster. This tool uses the cell center to determine the value ...
Feature Outline Masks要素轮廓线掩模 Intersecting Layers Masks相交图层掩模 ④Conversion Tool:转换工具 From Raster从删格到... Raster to ASCII删格到ASCII Raster to Float删格到浮点 Raster to Point删格到点 Raster to Polygon删格到面 Raster to Polyline删格到线 To CAD到CAD Add CAD Fields添加CAD字段 ...
gp.FeatureToRaster_conversion(InFeatures, InField, OutRaster, InCellSize) except: # Print error message if an error occurs print gp.GetMessages() ===分割线=== 以上代码是把infeatures中的shp格式的文件用函数featuretoraster_conversion转换为raster文件 F5运行后,可以在对应的储存文件夹下面去找,当然...