Make WCS Layer (Data Management)


Creates a temporary raster layer from a WCS service.



MakeWCSLayer_management (in_wcs_coverage, out_wcs_layer, {template}, {band_index})
ParameterExplanationData Type

The name of the input WCS service, or the URL that references the WCS service.

If a WCS server URL is used, the URL should include the coverage name and version information. If only URL is entered, the tool will automatically take the first coverage and use default version (1.0.0) to create the WCS layer.

An example of a URL that includes the coverage name and version is below:


In this example, "http://ServerName/arcgis/services/serviceName/ImageServer/WCSServer?" is the URL. The coverage specified is "coverage=rasterDRGs", and the version is "&version=1.1.1".

To get the coverage names on a WCS server, use the WCS GetCapabilities request. An example of WCS request is http://ServerName/arcgis/services/serviceName/ImageServer/WCSServer?request=getcapabilities&service=wcs

WCS Coverage; String

The name of the output WCS layer.

Raster Layer

The output extent of the WCS layer.

The output extent can either be specified by defining the area to be clipped (X-Minimum, Y-Minimum, X-Maximum, and Y-Maximum) or by using the extent of an existing layer.


Choose which bands to export for the layer. If no bands are specified, then all the bands will be used in the output.

Value Table

Code Sample

MakeWCSLayer example 1 (Python window)

This is a Python sample for MakeWCSLayer.

import arcpy
from arcpy import env
env.workspace = "C:/Workspace"
input1 = "GIS Servers/File_TIFF_Amberg on server3/090160_1"
arcpy.MakeWCSLayer_management(input1, "wcslayer1", "11.844983 49.445367 11.858321 49.453887",
MakeWCSLayer example 2 (stand-alone script)

This is a Python script sample for MakeWCSLayer.

##Make WCS Layer
##Usage: MakeWCSLayer_management in_wcs_coverage out_wcs_layer {template} {ID;ID...}
    import arcpy
    arcpy.env.workspace = r"C:/Workspace"
    input1 = r"GIS Servers\File_TIFF_Amberg on server3\090160_1"
    input2 = "http://server3/arcgis/services/File_TIFF_Amberg/ImageServer/WCSServer"
    ##Create WCS layer from WCS connection file
    arcpy.MakeWCSLayer_management(input1, "wcslayer1", "11.844983 49.445367 11.858321 49.453887",
    ##Create WCS layer from URL with clipping feature
    arcpy.MakeWCSLayer_management(input2, "wcslayer2", "clip.shp", "1;2;3")
    print arcpy.GetMessages()
    print "Make WCS Layer example failed."
    print arcpy.GetMessages()


This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes