Tag Info

Hot answers tagged

7

I wouldn't do this, especially not with some home-brewed license "server". If you're certain your IP is valuable enough to protect by licensing, you should purchase a commercial licensing solution. But I don't think this is necessarily the best solution as any form of DRM only inconveniences legitimate users and will not stop determined people reverse ...


5

Do you need parentheses around part of the expression? Either of the following could be correct, but I assume it is the latter. (PopDenZone = 'CPSE URBAN' AND Priority_Description = 'Life Threat') OR Priority_Description = 'Urgent Medical' PopDenZone = 'CPSE URBAN' AND (Priority_Description = 'Life Threat' OR Priority_Description = 'Urgent Medical')


4

Keep using the 'Iterate Feature Classes' iterator as this is the correct one to use. Ensure you use in-line variable substitution when naming the output from the IDW tool. If you don't, each time the tool is ran it will use the same output path/name and overwrite the previous output. See my example below:


3

Perhaps try parentheses around the expressions. I think what you're trying to say is: PopDenZone = 'CPSE URBAN' AND (Priority_Description = 'Life Threat' OR Priority_Description = 'Urgent Medical') It's worth noting that: (x AND y) OR z is different to: x AND (y OR z)


3

This works for me. Are you trying to drag it from the Project Pane (either Folder or toolbox node) into Modelbuilder? Either make a connection to the folder the TBX lives in, or from the Toolbox node, right click and add toolbox pointing to your existing tool. If you're trying to drag from ArcMap to Pro, this wont work.


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 ...


3

Network Analyst solvers only produce temporary results files/layers. If you are running this from the model builder, you need to make sure the results are added to the display. If you are running this from a tool dialog box you need to expose it as a model parameter. See this tutorial and particularly the notes. If you are looking to generate a feature ...


3

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 (note that you can right-click on any process step and rename it): The Add Field operation adds a new column called [Normalized_Value] to your existing polygon table. A ...


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

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.


2

You could use the Python parser in the Field Calculator and construct this function. This part goes in the pre-logic. Make sure to replace the feature classes with the one from your system. The feature class table called "Temp_Table" is a temporary table and must reside in a geodatabase. It will be deleted as the script completes. def normNum(num): ...


2

Think you have to modify the model environment variable for fields not to use qualified field names...I don't remember doing that in a model but in principle it is the equivalent of turning 'off' (setting to false) with arcpy.env.qualifiedFieldNames = False, see this: http://desktop.arcgis.com/en/desktop/latest/tools/environments/qualified-field-names.htm ...


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 ...


2

Suggesting a workflow: Starting point is after the creation of Buffer B. For Buffer A use the multiple ring buffer creating two buffers. The original one and another one which is 1.5 times the distance. E.g 12 meters and 8 meters. For buffer B open a new field (float, named "expand"), and feed it with [BUFF_Distance]/2 Use intersect to create an ...


2

It is possible to stop/start a map service with a Python code that can be built into a Python script tool in toolbox. You can then drag this tool into the ModelBuilder and embed it into the model. You can also just run the tool as is. The toolbox is called ArcGIS Server Administration Toolkit - 10.1+ which you can download. There is already a model which ...


2

The best way to handle this in ModelBuilder is to use the Iterate Feature Classes tool. It will find all the feature classes in the specified workspace (such as SDE geodatabase) and create an iterable list which you can then process with the Copy Features GP tool. The Copy Features will all the feature classes one by one, and you shouldn't care if any ...


2

Model builder, to my knowledge, does not expose the data driven pages functionality that you access on the toolbar. If you want to automate map output with data driven pages then you must use python and arcpy. Search help for DataDrivenPages (arcpy.mapping). From this page there is also a link to building map books.


1

The problem with this statement is the parenthesis.. Compound statements need to be enclosed in a 'block': Con((Condition1) | (Condition2),True_value,False_value) The correct syntax for the field calculation is: Con(("%DEM_Aspect%" <= 90) | ("%DEM_Aspect%" >= 270),1,0)


1

The easiest way is to use "Iterate Feature Classes" tool in Model Builder. You can access it from: Insert > Iterators > Feature Classes If you want to copy all feature classes, leave WildCard and Feature Type parameters empty, and just set the Workspace.


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 ...


1

I am not certain of the exact problem, but I have a few suggestions of things you can try: Try setting the output into a folder instead of default gdb. Double check to make sure the spatial reference files were not lost when copying form the source. Check which version of HDF file you are trying to use. According to this it may not supported, or may be a ...


1

If you look at the help file for any tool, there is a section called Environments and this lists the environment settings that particular tool honours. Add Join honours "Qualified Field Names". So if you un-tick this then the table name should be dropped from the field name. I know that the Copy Features tool also honours this setting. You should get into ...


1

The Calculate Field tool works for only one field at a time. You'll need to connect another Calculate Field at the end of that model. Repeat for every field you need to calculate.


1

You could do something like this... [Field2] = (( [Field1] - 0.24 ) / ( 2546 - 0.24 )) Basically you have to find the difference between the [Field1] value and the minimum value and then divide it by the entire range of data. normalized = (value - minimum) / (maximum - minimum)


1

I suggest few modification to your model and it should work, but in general you are on the right way. My data (hopefully as yours) include: Dealers point feature class and Sales point feature class. Each sale row has a dealer ID which relates the sale to its dealer. My modifications are: I used the Iterate by Row. Iterate by feature iterates through ...


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

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 ...



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