Tag Info

New answers tagged

1

Since you have the Python tag, the following example is how you would accomplish this task using raster algebra in Python. Here I am assuming you have a variety of rasters in one GDB with a unique ID for each pair. The output is written to a separate folder in .tif format. import arcpy, os from arcpy.sa import * arcpy.CheckOutExtension = "Spatial" ...


2

You can automate this using Python and the Con (Spatial Analyst) function. import arcpy from arcpy.sa import * arcpy.CheckOutExtension = "Spatial" arcpy.env.workspace = "C:/temp/data" outws = "C:/temp/out" rasters = arcpy.ListRasters() for r in rasters: inras = Raster(r) outCon = Con(IsNull(inRas), -1, inRas) outCon.save(os.path.join(outws, ...


0

This might be a bit late. But if your are running into similar problems this can be useful: If you are using Dropbox, try stopping its syncing and then quit it. Then close and reopen your ArcMap project. This worked for me.


1

Totally crazy how easy the answer is. One doesn't even need to use model builder to iterate through all possible routes. In my case, I have a feature class (points) that represents every doorway at the archaeological site (N=448 doorways). I simply pointed Network Analyst to that feature class for both Facilities and Incidents, while indicating in the ...


2

In line variable substitution is what your looking for. You can use the 'Value' output from the iterate feature selection to uniquely label the output. In the Output Feature class in the Copy Features, use the %Value% to assign a different name for each iteration. For example, set the output to [your output location]\%Value%' See ESRI's help page for more ...


0

Iterate Features is meant to iterate features (i.e. feature class) within a geodatabase or a feature dataset. You need to change the iterator and use iterate rows instead. If it still fails, please provide a better image of your model, since it is too small. Yet your work flow sounds solid, except the iterator.


0

It looks like you should be using "Iterate Datasets" instead of "Iterate Files". I can't tell if "Iterate Datasets" requires GDB feature classes or if it will work on your current shapefiles. From esri help: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00400000001n000000.htm "Iterate Files" specifically skips datasets that are ...


1

@mr.adam covers a lot. One more suggestion; while coordinate systems are no longer in folders, they don't need to be actual files now. See: Geographic coordinate systems Projected coordinate systems You can then create your spatial reference object as such: For NAD 83 UTM Zone 10: By name: SRbyName = arcpy.SpatialReference ("NAD 1983 UTM Zone 10N") ...


1

Well, your questions seem to mostly be about user input. I would recommend using a dropdown menu in the tool dialog with coded values, and then a dictionary in the script itself that links each coded value with the full text string that you need. For example, in your dropdown for "Convert to Coord System" list "NAD 1983" and "WGS 1984". Set this in the ...


3

You could use the Append tool to add your intersect_result to a feature class. First, I would create an empty feature class to store your outputs in, then just add the append tool to your model after your Intersect completes. Make the empty feature class the Target dataset and the intersect_result the input dataset. You can save yourself some trouble ...



Top 50 recent answers are included