Multipatch to Raster (Conversion)

License Level:BasicStandardAdvanced

Summary

Converts multipatch features to a raster dataset.

Illustration

Multipatch to Raster illustration

Usage

Syntax

MultipatchToRaster_conversion (in_multipatch_features, out_raster, {cell_size})
ParameterExplanationData Type
in_multipatch_features

The input multipatch features to be converted to a raster.

Feature Layer
out_raster

The output raster dataset to be created.

When not saving to a geodatabase, specify .tif for a TIFF file format, .img for an ERDAS IMAGINE file format, or no extension for an Esri Grid raster format.

Raster Dataset
cell_size
(Optional)

The cell size for the output raster dataset.

The default cell size is the shortest of the width or height of the extent of the input feature dataset, in the output spatial reference, divided by 250.

Analysis Cell Size

Code Sample

MultipatchToRaster example 1 (Python window)

This example converts a multipatch shapefile into a raster and saves the output raster in IMG format.

import arcpy
from arcpy import env
env.workspace = "c:/data"
arcpy.MultipatchToRaster_conversion("buildings.shp",
                                    "c:/output/outbuildings.img", 0.25)
MultipatchToRaster example 2 (stand-alone script)

This example converts a multipatch shapefile into a raster and saves the output raster in TIFF format.

# Name: MultipatchToRaster_Ex_02.py
# Description: Converts multipatch features to a raster dataset.

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inFeatures = "buildings.shp"
outRaster = "c:/output/outbuildings.tif"
cellSize = 0.5

# Execute MultipatchToRaster
arcpy.MultipatchToRaster_conversion(inFeatures, outRaster, cellSize)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
3/3/2014