Edit Extract Data script to work with mosaic layer

1524
0
01-21-2014 11:03 PM
DeirdreRaftery
Esri Contributor
Hi

I've edited the attached script so that the Server tool Extract Data accepts mosaic layer as an input raster.The script works at version 10.2.1 but will not work at version 10.1 SP1. I need it to work at the latter.

When I run the tool it clips the raster data but the output is wrong. For example if I choose File Geodatabase as the raster format then the output is returned as black and white.

Can anyone suggest where I am going wrong?

I made two changes in the script:

Original : if dataType in ["featurelayer", "rasterlayer"]
Change: if dataType in ["featurelayer", "mosaiclayer", "rasterlayer"]:


Second Change I made was on line 273:

Original: if dataType == �??rasterlayer":
Change: if dataType in ["rasterlayer", "mosaiclayer"]:

[ATTACH=CONFIG]30694[/ATTACH]
Tags (2)
0 Kudos
0 Replies