I've got an ArcGIS 9.3 script that is also to be used in ArcGIS 10 (but not exclusively).Under ArcGIS 9.3, this script runs quite fast (<1min per raster), but in ArcGIS 10, running time is dramatically longer (>10min per raster). This is, obviously, not acceptable. The resulting raster has 7349 columns and 6110 rows.Can anyone tell the reason behind this huge differnce in processing-time (is it because I'm using arcgisscriping instead of arcpy?). import os, sys, arcgisscripting
gp = arcgisscripting.create(9.3)
inShape = gp.GetParameterAsText(0)
outRas = gp.GetParameterAsText(1)
field = gp.GetParameterAsText(2)
cellSize = gp.GetParameterAsText(3)
snapRaster = gp.getParameter(4)
#Storing old snapping parameter
oldSnap = gp.snapRaster
#Define snap raster
#define extent
gp.SnapRaster = snapRaster
oldExt = gp.extent
rasDesc = gp.Describe(snapRaster)
newExt = rasDesc.extent
gp.extent = newExt
#Conversion
gp.FeatureToRaster_conversion(inShape, field, outRas, cellSize)
gp.snapRaster = oldSnap
gp.extent = oldExt
del oldSnap, oldExt