Gis Error In Executing Grid Expression
Contents |
without it enabled. Please turn JavaScript back on and reload this page.All Places > GIS > Analysis > Spatial Analyst > DiscussionsLog in to create and rate content, and to follow, bookmark, and share content with other members.Error in executing grid expression -
Error 010067: Error In Executing Grid Expression. Failed To Execute (fill).
ReclassifyDiscussion created by eoinokeeffe on Feb 8, 2011Latest reply on Nov 13, 2011 error 010429 arcgis by eoinokeeffe Like • Show 0 Likes0 Comment • 2Hi,FIrst of all i'm a novice to ArcGIS and i'm attempting to get shortest paths between ports over the ocean (globall located ports). The easiest way i can see of doing this is to 1: COnvert ocean feature dataset to raster2: Reclassify so the whole ocean has a value of 13: Run cost distance against all ports4: Run cost path against all portHOwever, i'm hitting a problem at point and getting the following error when i try to reclassify:Executing (Reclassify (2)): Reclassify D:\PHD\Modelling\GIS_Modelling\NetworkModelling\ocean_raster Value "57211527168 11152826302464 1" C:\tmp DATAStart Time: Wed Feb 09 09:09:32 2011ERROR 010067: Error in executing grid expression. Failed to execute (Reclassify (2)).End Time: Wed Feb 09 09:09:33 2011 (Elapsed Time: 1.00 seconds)Incidentally, I'm doing this through model builder (i've tried running each function separately as well as running the entire model). I've looked up what typically causes this and found it's spaces or if the raster file name output is greater than 13. But neither seem to be the case for the above. Is there some issue that the values are too large to reclassify?Apologies if this has been answered somewhere, i haven't been able to find it.Thanks for any help/adviceEOinOutcomesVisibility: Spatial Analyst2149 ViewsLast modified on Feb 8, 2011 11:13 PMTags:analysisContent tagged with analysisspatial_analystContent tagged with spatial_analystThis content has been marked as final. Show 2 comments2 RepliesNameEmail AddressWebsite AddressName(Required)Email Address(Required, will not be published)Website Addresshokhanh.hk Nov 12, 2011 9:49 PMHi,FIrst of all i'm a novice to ArcGIS and i'm attempting to get shortest paths between ports over the ocean (globall located ports). The easiest way i can see of doing this is to 1: COnvert ocean feature dataset to raster2: Reclassify so the whole ocean has a value of 13: Run cost distance against all ports4: Run cost path against all portHOwever, i'm hitting a problem at point and getting the following error when i try to reclassify:Executing (Reclassify (2)): Reclassify D:\PHD\Modelling\GIS_Modelling\NetworkModelling\ocean_raster Value "57211527168 11152826302464 1" C:\tmp DATAStart Time:
Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Geographic Information Systems Questions Tags Users Badges Unanswered Ask Question _ Geographic Information Systems Stack Exchange is a question and https://geonet.esri.com/thread/21770 answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Cause of ExecuteError: ERROR 010067 from arcpy.sa.CostPath? up vote 3 down vote favorite By using http://gis.stackexchange.com/questions/110709/cause-of-executeerror-error-010067-from-arcpy-sa-costpath the code below that creates least-cost paths between several polygons, I obtain this error message: ExecuteError: ERROR 010067: Error in executing grid expression. Initalization failed when I execute this code line: outCostPath = CostPath("Selected_patch_end", "outCostDist.tif", "outCostLink.tif", "EACH_ZONE","FID") Sometimes, when I re-execute my script, it works. However, when the code works, I always obtain strange files and folders every time that I execute the same code line above: Here is an insight of my dataset: Here is my code: import arcpy from arcpy import env from arcpy.sa import * arcpy.CheckOutExtension("Spatial") arcpy.env.overwriteOutput = True arcpy.env.workspace = r"C:\Users\LCP" arcpy.env.extent = "costsn.tif" with arcpy.da.SearchCursor("selected_polygons.shp",("*")) as rowsInPatches_start: for rowStart in rowsInPatches_start: ID_patch_start = int(rowStart[3]) ## Define SQL expression for the fonction Select Layer By Attribute expressionForSelectInPatches_start = "GRIDCODE=%s" % (ID_patch_start) ## Process: Select Layer By Attribute arcpy.MakeFeatureLayer_management("selected_polygons.shp", "Selected_patch_start", expressionForSelectInPatches_start) ## Process: Cost Distance outCostDist=CostDistance("Selected_patch_start", "costsn.tif", "", "outCostLink.tif") ## Save the output outCostDist.save("outCostDist.tif") with arcpy.da.SearchCursor("selected_polygons.shp",("*")) as rowsInSelectedPatches_end: for rowEnd in rowsInSelectedPatches_end: ID_patch_end = int(rowEnd[3]) ## Define SQ
Badges sign up log in tour help Tour Start here for a quick overview http://gis.stackexchange.com/questions/111548/how-to-resolve-error-010271-raster-does-not-have-an-attribute-table of the site Help Center Detailed answers to any questions http://gis.stackexchange.com/questions/91104/fill-sinks-error-in-archydro you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Geographic Information Systems Questions Tags error in Users Badges Unanswered Ask Question _ Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best error in executing answers are voted up and rise to the top How to resolve ERROR 010271: Raster does not have an attribute table? up vote 0 down vote favorite From my code which builds least-cost paths between several polygons by using the functions "CostDistance" and "CostPath" of ArcGIS , I obtain this error message: ExecuteError: ERROR 010271: Raster Selected_patch_2 does not have an attribute table ERROR 010067: Error in executing grid expression. Failed to execute (CostPath). This error appears when I execute this code line: outCostPath = CostPath("Selected_patch_2", "outCostDist.tif", "outCostLink.tif", "EACH_ZONE","FID") Here my piece of code: rowsInPatches_2 = arcpy.SearchCursor("Select_transitions_from_patch_1") for rowPatches_2 in rowsInPatches_2: ID_patch_2 = rowPatches_2.getValue("ID_patch_2") expressionForSelectInPatches_2 = "ID_patch_2=%s" % (ID_patch_2) arcpy.MakeFeatureLayer_management("Patches_2_day.shp", "Selected_patch_2", expressionForSelectInPatches_2) rowsSelectedPatch_2 = arcpy.SearchCursor("Selected_patch_2") shapeNameSelectedPatch_2 = arcpy.Describe("Selected_patch_2").shapeFieldName for rowSelectedPatch_2 in rowsSelectedPatch_2: featSelectedPatch_2 = rowSelectedPatch_2.getValue(shapeNameSelectedPatch_2) extentSelectedPatch_2 = featSelectedPatch_2.extent outCostDist = CostDistance("Selected_patch_1", "DayCost.tif", "", "outCostLink.tif") outCostDist.save("outCostDist.tif") outCostPath = CostPa
Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Geographic Information Systems Questions Tags Users Badges Unanswered Ask Question _ Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Fill sinks error in arcHydro up vote 1 down vote favorite 1 I am working on a project that is modeling runoff at a county level. The DEM used is lidar derived and has a 5 ft resolution. The general workflow I am flowing is Sink evaluation Sink Selection (to give a minimum drainage area) Fill sinks (using the deranged polygon from the sink evaluation and the 'Use IsSink field' option). When I run the fill sinks tool I receive the following error: System.Runtime.InteropServices.COMException (0x80041098): ERROR 010429: Error in GRID IO: MtVatBldNew: Value range for c:\users\user\appdata\local\temp\arcc79c\ah2014~4\tmp2675 exceeds 100000 . ERROR 010429: Error in GRID IO: and number of unique values exceeds 500 .. ERROR 010236: Error in building VAT. ERROR 010067: Error in executing grid expression. at ESRI.ArcGIS.GeoAnalyst.RasterConversionOpClass.ToRasterDataset(IGeoDataset dataset, String rasterFormat, IWorkspace pWorkspace, String name) at ESRI.APWR.ApHydro.ArcHydroOp.FillSinks(ApLayers& aplayers, Boolean useIsSink, Boolean fillAll, Double fillLimit, ITrackCancel trackCancel, IGPMessage messages, String& exMessage) in C:\Builds\HydroSolutions\10.1_ArcHydro\Sources\ArcHydroTools\src\ApHydro\ArcHydroOp.vb:line 57592 Failed to execute (FillSinks). I thought this was telling me that the DEM was too large in size, so I tried running the tool again with several subsets by using a polygon to determine the processing extent. This results in the same error and I am not sure why. I have tried the usual fixes (deleting temp files, checking output locations, using the toolbox vs. the toolbar) and the error still occurs. In order to get the DEM to a smaller size, it was converted from float to integer so I thought the VAT error pertained to that. I reran the tools using the float based DEM and received the same error. I have also tried