Tag Info

Hot answers tagged

4

Use the Calculate Value tool in model builder to drop the last 4 four characters of your Count_Field variable. Set the tool to be a precondition to the alter field tool to ensure it executes first. Set your expression as shown below


3

Error 010246 from ESRI support describe either a state that all input points have the same location, or that one or none point were selected. I believe that the second one applies to your model. I suggest you manually check whethear some polygons don't contain points at all, or contain one point - you might use spatial join to get the counts. After that ...


3

Wouldn't it be more straight forward to: create a list ordered by distance between sales point and closest dealer Iterate that list until you have collected the 40% of sales volume The distance to the last one is the buffer value you are seeking. btw, it can be done with one sql-query (with or without the final buffering)


2

Your model fails because your input shape files have names that contain spaces. As feature class names cannot contain spaces, you need to use add the Calculate Value tool to your model to remove spaces from your inline variable "Name" and replace them with underscores. In the model below, the Name variable is precondition to the Calculate Value tool. ...


2

EDIT: I realized my first answer was incorrect, this is an update (I forgot that the function needs a Layer object, not a dataset path). I think the issue is that the you are passing "Tioga\Tioga" (which is a technically a string) but the Apply Symbology function needs a Layer object. You can create the layer object like this: mxd = ...


2

Would you consider a Python solution, especially if you have to do a lot of separate calculations in your model? The problem with the field calculator for a script process is that it is slow and not expanding your thinking beyond a manual process. Why process every row in your table every time you do a field calculation when a cursor can process all of ...


2

As suggested, the 'clip feature' in your model is going to be of 'feature set' data type. First, create an empty feature class that will hold the schema of your feature set. This can be simply a polygon feature class with nothing else than a name: Now in your model, right-click the Clip tool > Make Variable > From Parameter > Clip Features. Once the ...


2

Try to use ead of cell statistics instead of raster calculator and use the sum operator. Also mark ignore no data. That is under the assumption that there are no "NoData" cells you wish to retain. Before running the tool, set the processing extent to UNION of both inputs under tool's environment setting.


2

Create a Model Parameter. Here is a tutorial.


1

Using Python would open up some more elegant solutions, but you can do this entirely in ModelBuilder with the use of a couple of temporary tables. The model would look something like this: The Add Field operation adds a new column called [Normalized_Value] to your existing polygon table. A pair of Sort operations create two new tables, one with your ...


1

I think you might use Add Join as mentioned above. Yet I belive that Join Field will be of a better use. It simple works as Add join, but adds flexibility to the process, enabling to add only some fields, or all of them. Otherwise, "regular join" will join all fields, which can make quite a mess with big datasets. To elaborate on the "conversion" to ...


1

Check to see that you have the following file: C:\Python27\ArcGIS10.2\Lib\site-packages\desktop10.2.pth If you don't, open notepad as administrator and add these lines: C:\Program Files (x86)\ArcGIS\Desktop10.2\bin C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Scripts saving the file like you see ...


1

Actually, it turns out that I had made an error with my preconditions. The code works and it deletes the empty feature classes. The only thing that now bothers me is that i don't recieve any warning messages arcpy.AddWarninng( 'Error in + 'inFC) . I'll try and look into that now and if you have any ideas you are welcome to share them:-) Thank you for all ...


1

While setting the properties for the input polygon, set the data type as a Feature set, and import a layer file created from a temp polygon layer for the schema and symbology input. Make it a parameter and this will allow users to draw in a polygon when the model runs.


1

This page is pretty helpful explaining the various inline model substitution variables: Examples of inline model variable substitution %Data Workspace% should resolve to the geodatabase name.


1

As both your add fields are adding fields to JoinedPermits you don't have to split it in the manner that you have. Simply link the output Formation Field Calculated as the input into Add Well Status Field. You can then connect your Featureclass to Featureclass to the Well status field calculated.


1

Assuming you want to split any field with an underscore you can use ListFileds (which returns Field Objects) with a wildcard to get the fields to split then string.split("_") to break it up into parts then calculate with quotes to populate the string: import arcpy, os, sys InFolder = sys.argv[1] # folder for shapefiles, or database for feature classes ...


1

It isn't possible to use more than one iterator in a ModelBuilder model. (Ref. A quick tour of using iterators for iteration, the first "Note" towards the end.) There are some ideas for getting around this limitation in Answers to this Question: Issue nesting two iterators for cost distance calculation (Model Builder)


1

It sounds like you want to do something like this: for SubFolder in MainFolder: for raster in SubFolder: run Model This is the sort of thing that is possible with model builder, specifically with the Iterate Rasters tool. Put that into your model, set Recursive to TRUE and your input to your parent folder. You might have to modify your model with ...


1

I believe this is the solution to the issue of "stacking" layers or raster bands for multiple images. This model is set up using standard NAIP imagery so red=1, green=2, blue=3, NIR=4. In this example, I am taking only the three color bands from the original image--combining them--then converting the format to PNG. My model uses the same concept as the first ...


1

I figured out a simple way to do this in model builder. Lets say you're are iterating over a few files to do a clip to all of them. 1) Create an interator for feature classes. Right click on it and make a variable for the workspace. 2) Rename the workspace bubble to "Workspace", and also right click on it and select "make parameter". This will prompt you ...



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