New answers tagged

0

Open Catalog, expand "Home - Documents\ArcGIS", then expand "Toolbox.tbx", models you made will be listed there. Right-click the model (tool) you made and choose "Edit", do not choose "Open", now your model will be in ModelBuilder that you can make changes and save.


0

Add new conditions to ensure a single option when the same term exists in more than one category. ِand to force arcpy to deal with arabic fonts import arcpy import sys reload(sys) sys.setdefaultencoding('utf-8') ') class ToolValidator(object): """Class for validating a tool's parameter values and controlling the behavior of the ...


0

The If Value Is tool is part of the ModelBuilder toolbox of ArcGIS Pro. To confirm that see An overview of ModelBuilder tools for ArcGIS Pro. If you cannot find it then I suspect that you are using ArcMap instead. As you can see in An overview of the ModelBuilder toolbox for ArcMap that tool, and none of the Logical tools are present in that earlier ...


0

I have a set of points in a table that are grouped, in fact I have a feature named group in which the number of the group of each point is written (groups from 1 to 8). All my groups have a size of 6 except one, I want to find this group. If Value (of the size of my group) is (not) 6 then ... But I can't find this tool, it's not that I can't use it, it is ...


1

I did it in an other way: using database consist of fivel levels, without choosing the shapefile or fields just by selecting items from first level the validation script generates the values for the second level according to your choice in first level, her the script: import arcpy class ToolValidator(object): """Class for validating a tool's parameter ...


2

Use the Cell Statistics tool : Calculates a per-cell statistic from multiple rasters. The available statistics are Majority, Maximum, Mean, Median, Minimum, Minority, Range, Standard deviation, Sum, and Variety. Use the SUM statistic and ensure Ignore NoData is ticked and set the output extent environment to Union of inputs


2

The ISG_Template and VC_Template values are not Boolean values anymore, since you brought those parameters in as text using the arcpy.GetParameterAsText() function. So your conditions should most likely need to be If ISG_Template == 'true': and If VC_Template == 'true':. Add a print method after assigning the text to the variable to determine if it is ...


0

To do this I would investigate the Model Only tool named Iterate Row Selection which: Iterates over rows in a table. The table you iterate would be the lookup table of your question.


2

You should look into Inline variable substitution.. Also check out this page for iterator use. For example, with the following feature iterator, you'd input all of your point sets: Let's say you are iterating through Point1, Point2, and Point3. If you name your output "Output_%Selected Features%", then your outputs will be called Output_Point1, ...


0

Here is a video on nesting models. I encountered the same situation recently. The video goes into the problem of iterating the entire model; then breaks it down step by step to fix it with submodels. This is not my video, but it is very informative: https://www.youtube.com/watch?v=gpKXve4NxqU


1

As @Hornbydd mentioned in the a comment to my original post, submodels are the way to go. Once I understood exactly how to nest submodel, it worked like a charm. I am not sure how I didn't learn this before... Anyway, a step by step workaround on how to fix this with submodels can be found here: https://www.youtube.com/watch?v=gpKXve4NxqU This is not my ...


1

It's slightly roundabout, but I've done this in ModelBuilder with success (although I am using the same method to create a constant raster): First, create an empty .dbf (table) in your directory (using ArcCatalog). Next, add a new column and call it 'value' (or whatever metric you are using). Enter however many values you need. The OID column will auto-...


5

You can use Select By Location in Modelbuilder but not the one in Selection menu. Instead go to ArcToolBox - Data Management Tools - Layers and Table Views - Select Layer By Location. Or menu Geoproccessing - Search for Tools and type Select Layer by Location


1

Your main model running once makes sense as I think the logic is flawed. For Sub mod 5, 4 and 10 - They iterate over a directory looking for B4, B5 and B10 rasters. As a Landsat scene only has 1 B4, B5 and B10 raster you get 1 raster feeding out of these sub-models. Hence the whole main model runs once. I suspect you have a conflict in your sub-models ...


Top 50 recent answers are included