Hot answers tagged

3

You can use the Get Count tool from the Data Management toolbox, which Returns the total number of rows for a feature class, table, or layer


3

You could use the Summary Statistics tool. The input table would be that which you want to count the records of. The statistics could be any field, but let's say ObjectID/OID. The statistic type would be COUNT. The output table could be whatever you like, possibly even stored in_memory. Once the tool is run, the output table will have one record, and the ...


3

A simple model can achieve this as shown below. Note the output of the get raster property was connected to the Buffer tool using the Connect tool. Usually you would do an in-line substitution but that does not seem to work for some reason, but a manual connect does...


3

Depends on the machine specs and dataset size and number of points. One way to speed things up is to set the environment processing extent of the snap pour point tool. So if you are snapping a few points in a sub-catchment onto a flow accumulation for the whole of America then may be thats why... Try setting the extent to the extent of your study region. ...


2

Ok, if the parcels are all rectangles with one road frontage you could use a python script at a very low level to generate the setback lines and create a new polygon. To do this you need to use geometry objects which give you the ability to manipulate parts of a feature and do various spatial operations between the parts. I don't like recommending a loop ...


2

I have not used 9.3 for many years now. An alternative way to run your model is to right click on it and run in batch mode. You may be able to drag and drop multiple datasets in to the batch grid interface? I remember looping was awkward in 9.3 and the usual way of resolving things was to write a simple loop in python.


2

When you run Polygon to Raster, under Value field you need to specify "distance" (if you haven't changed the default of Multiple Ring Buffer). Then, the new raster will have as many unique values as there were unique distances, specified under field Value. This Value field is the one to reclassify, but until you run Polygon to Raster, ArcMap won't be able ...


2

You don't need a script to do get your input's basename and reuse it in parameters' names. Add the 'Parse Path' tool to your model and connect it to your input raster. Chose 'NAME' for the 'Parse Type' parameter: Then, in the parameters of the Extract by Mask tool, reuse this name variable (here called by its default name, 'Value') in the path of the mask ...


2

Indeed, marking intermediate parameters as Managed can cause issues. Below is an example of using the Raster Calculator and then Raster to Polygon. When using in_memory the model fails; when marking the intermediate outputs as Managed, the in_memory - even though exists in the output path - is ignored and the data is written to %temp%, as the Scratch folder. ...


2

Check the options in the drop-down against a Text field rather than a Number field. They differ and may be why you don't see what you're expecting. Text field merge options: Number field merge options:


2

What you will need to use is Iterate Row Selection instead. See the ArcGIS help page for more information. If you then use Get Field Value you will be able to use the Name/Expression in other tools.


2

When automating a process you will need to take it one step at a time. I'll answer your first question: Do you know if there is a way for ModelBuilder to see in an Excel file Yes - as long as you are using an ArcGIS for Desktop version (10.2.1 or later, I think) you will be able to do this using the Excel To Table tool: Converts Microsoft Excel ...


1

The answer in Use Get Field Value tool to calculate field? shows how you can accomplish this. In short, use the Get Field Value help (modelbuilder only tool) on the featureclass in question. Using its output variable name, supply that as an inline variable in your output featureclass parameter. If the GFV param name was called fieldValue, your output FC ...


1

This can most certainly be done in ModelBuilder. The TestFilter is essentially doing the same thing that SelectByAttributes would do in ArcGIS. What you need to determine is what attributes you want to select by and the values they should have. For example, when you say "series of test filters" I'm imagining you're filtering on a particular value of an ...


1

Reading the output message of the geoprocessing tool in batch, I realized the batch is not looping as I expected. It seems it loops at each tool in the model for each line in the batch, rather than performing the entire model once and then passing the next line and so on. So, it was sufficient to append an "%n%" to the first output variable ("judete_100_L" ...


1

I haven't attempted to run any of my models in batch mode before, but it sounds like something is being held over from the first step. ArcGIS likes to hold on to layers and selections made when tools are run. It is possible that either the feature layer created in step one, or one of the selections created (step two or four) may still be held in memory and ...


1

An out-of-the-box ArcMap tool that can do this is Data Management Tools > Features > Minimum Bounding Geometry. This will create a polygon feature class containing one polygon that depicts the extent of your features. You can do different things with this tool. To create a polygon feature class containing a single feature depicting the extent of all ...


1

You might attempt to set a "precondition" by linking the mosaicmb variable to the Add Raster To Mosaic Dataset a second time, and choosing "precondition" when the connect tool of ModelBuilder shows it's context menu. A pre-condition will ensure the File Geodatabase and Mosaic Dataset will be created in advance of the Add Raster To Mosaic Dataset being run. ...


1

If you want to be able to assign arbitrary values to your scores, I'd use a python dictionary in your calculate field portion of your model. Here's an example code block... def find_val(x): return {1 : 10, 2 : 10, 3 : 10, 4 : 9, 5 : 9, 6 : 9, 7 : 9 }[x] On the left of the colon is your ranking value, and on the right is your score for that ranking. ...



Only top voted, non community-wiki answers of a minimum length are eligible