An application of ArcGIS for Desktop that is used to create, edit and manage models within its Geoprocessing Framework

learn more… | top users | synonyms (1)

2
votes
2answers
2k views

how to get ALL FIELD NAMES from table? (using arcpy.ListFields)

I have a table: , Script at ModelBuilder's "calculate values": Expression: a("%path%") Code BLOCK: def a(path): fields = arcpy.ListFields(path,"FID_*") for field in fields: return ...
0
votes
0answers
152 views

How to iterate throught fields names in a table and change row values?

I got table like that one (Example). I need to change 0 to 1 and -1 to 0 in each field except first and second. The problem is that every time i have different number of fields and field name is ...
3
votes
1answer
406 views

How to prevent running part of a model when iterator is used?

My process is to run Buffer on two feature layers, intersect the buffers and then Clip intersected buffers with polygon object from Iterate Feature Selection iterator. Here's my model: The model runs ...
3
votes
2answers
757 views

Check if field value for selected features is null

My feature class contains two fields: an identifying field U_ID, and a descriptive text field DESC. This field currently has <Null> for all features. I would like to select all the features with ...
3
votes
2answers
707 views

Creating dynamic GIS charts in ArcGIS 10.1

I have generated a table which has road segments which get inundated during different flood events. I want to be able to add a pie chart to the map which shows that during each flood ARI (1y, 2y, 5y, ...
3
votes
1answer
130 views

Show feature classes as a checklist in a workspace in ModelBuilder

In my model, I would like to show all the feature classes inside a file gdb as a "checklist", similar to how the tool dialog window for Make Query Table looks: So instead of the input being a ...
2
votes
1answer
350 views

Make Feature Layer tool problems in Model Builder

I am having a slight problem with using the Make Feature Layer tool in model builder. Basically I have a file geodatabase of points. I am trying to make a model to pull out points according to a ...
2
votes
1answer
128 views

Compare workspace schemas in Modelbuilder

My model has two model parameters: A file gdb workspace or sde workspace containing the data An empty "template" file gdb As the very first process in my model, I want to check if the schema of ...
4
votes
1answer
511 views

Nested Iteration with model builder - using nested models

I'm new to using model builder and have to do a nested iteration (for every month I have to iterate through 6 parameters). I am thinking of doing that by using nested models. One model doing the ...
3
votes
1answer
222 views

How to clip a Oracle query layer directly in a Python script?

I have a query layer directly running from ORACLE database in a MXD. I want to clip this layer with a layer being created in another MXD in a Python based tool. My question is to do this clip ...
8
votes
4answers
932 views

How to split points by polygon?

I am looking for a way to split points by a county polygon feature class. The attached image shows two feature classes: one composed of points and the other a county polygon feature class. The split ...
2
votes
1answer
1k views

Model Builder - How to calculate Field using part of filename

I am new to model builder and have not been able to figure how to use part of the FC name: For example the first FC in my GDB containing around 100 files is "A1005_GPS_Residence", and I need to ...
1
vote
0answers
514 views

Looping multiple feature classes in python for ArcGIS 10

I currently have a large list of feature datasets and dbf tables in a geodatabase. I would like to join each shapefile with its matching DBF file using the "Make Query Table" tool and then "Copy ...
3
votes
3answers
2k views

How do I access a multivalue output parameter from a python script in modelbuilder in ArcGIS 10.0?

How do I access a multivalue output parameter from a python script in modelbuilder, in ArcGIS 10.0? That is, I have a python script that loops through several input layers (working through a script ...
2
votes
1answer
348 views

How to collect shpfiles from “Iterate Feature Classes” into SINGLE input to “Intersect” tool?

Need to collect output files (Iterate Feature Classes) into single input to INTERSECT tool. Collect values isnt working (wrong data type)! Only precondition is available (see pic): ...
4
votes
3answers
152 views

Store “template” mxds inside model

Since the ability to store mxds inside a file gdb is still just an idea, I've been mulling over my options for using a "template" mxd within a model. My model uses 4 different mxds, but currently it ...
2
votes
1answer
194 views

arcpy Tool works in debug mode but not in normal model

When I try to run the following simple script from arcmap it fails but when run using right--click debug and then F9 (debug) in python scripter it works fine. I don't understand why??? # Modified ...
1
vote
0answers
207 views

tools from Geospatial Modelling Environment in ArcMap model [closed]

How to extract raster DEM elevations to vector attribute tables in ArcGIS 10? Can GME tools be used in model for publishing a tool on web? I want to use it in integration with other tools in ArcMap. ...
2
votes
1answer
222 views

Iterate Workspaces in Modelbuilder not executing all tools

I have a folder which contains a number of file gdbs. These gdbs all have the same structure i.e. a feature dataset FD_1 and several feature classes within the dataset (the two I am interested in are ...
1
vote
1answer
145 views

Symbology for specific values

I want to apply a symbology scheme for the final layer of my model. Rules are - All negative - Symbol A 0 - Symbol B All positive symbol C unknown - symbol D I am not sure how I can define these ...
0
votes
1answer
666 views

Is there a Select Feature by Attribute tool for Feature Classes when performing selection ModelBuilder?

I want to perform a Select by Attribute selection on a Feature Class in ModelBuilder, but I know the Select by Attribute tool does not work in this situation. I need to perform this function as I ...
2
votes
1answer
95 views

How to Improve a Distance Model

I am working on a distance model that creates distance rings around a given point and assigns those rings a probability. The point is in the center of a 25 x 25 km area, and the model fails to assign ...
1
vote
0answers
330 views

Deleting Features In ModelBuilder ArcGIS 9.3

In ModelBuilder, I have a work flow (data is stored in a File Geodatabase) that currently concludes with the use of the Append tool. I am looking to delete a features, as the last function of the ...
2
votes
0answers
59 views

How do I make a path cross the most possible classes in a raster?

I want to create a function and possibly use Arcmap tools to create something similar to Cost Path. Instead of just choosing the LCP, it must cross through the most different integers. Let's say I ...
1
vote
1answer
1k views

Setting a query loop

I am looking to apply a Select By Location protocol to my data, but need to first query individual IDs in my target and source layer (the same ID in each table, one at a time). How do I loop through a ...
0
votes
1answer
842 views

Select by Location tool

I am using the Select by Location tool to select certain polygons on my shape-file layer. I start by having a given point as my Selecting Feature and that its relationship is completely_ contains. ...
3
votes
2answers
1k views

Merge an entire Geodatabase in ESRI ModelBuilder

How can I merge an entire Geodatabase in the ESRI (ArcView) ModelBuilder? I have several FeatureClasses created into the GDB and in the model I plan to merge them all. Right now I have imported all ...
0
votes
1answer
218 views

how to integrate external image processing programs within ModelBuilder

I want to use python libraries to do image processing for very large files (over 2GB), but the current python libraries can not read 16 or 32 bit image correctly. At least, I tried Python Image ...
2
votes
1answer
86 views

Clipping from a given point

I am working with model-builder and I am trying to clip an area around a certain point. Is there a tool that I can use in which I can assign it a certain distance from the point. For instance, if I ...
1
vote
1answer
2k views

Feature Class to Geodatabase (multiple) in ModelBuilder => ERROR 000210: Cannot create output

I used modelbuilder, and the last step is to collect feature classes after iteration results to geodatabase using conversion tools of feature class to geodatabase(multiple). However, I met an error: ...
2
votes
2answers
2k views

How to split single shapefile into many, and use them as geoprocessing extents in ModelBuilder

I am trying to do the following things using ArcGIS model builder. select by expression to output feature class. use output feature class as spatial extent raster to point The main goal is to ...
3
votes
2answers
2k views

Python in ArcGIS: How to use a variable as part of the output path

I´m trying to use a variable as part of the output path of a shutil command. Unfortunately I couldn´t work it out how to do it. Can anybody help? import arcpy import shutil Name = ...
1
vote
0answers
162 views

Set feature class based on IF statement in Modelbuilder

My model selects a feature class within a user specified file geodatabase, based on the output of an IF statement which checks the user specified string value e.g. If the user specifies a file gdb ...
1
vote
1answer
303 views

Appending in Modelbuilder to a derived dataset

I have a simple model with a file gdb model parameter InputGDB, which contains a feature class fc1. Inside the model is a preset output folder and a template (empty) file gdb TemplateGDB, which ...
0
votes
1answer
698 views

use a variable as a fixed input value for buffer in ARCgis 10.0

I need one help. i am using arcgis 10. I actually want to show to create a buffer of a single point. But, the radius of that buffer depends on a simple formula (say Radius = a*b*c) instead of entering ...
6
votes
2answers
3k views

How to calculate XY coordinates in Decimal Degrees from projected dataset in model or script?

Is it possible to calculate points XY coordinates in Decimal Degrees in model or script when a feature class is in projected coordinate system? It's easy when a FC is in geographic coordinate system: ...
5
votes
2answers
235 views

Numbering Watersheds

I am working with a watershed map, and I was wondering if there is a function or a way that I can get ArcMap to number the watersheds. For instance, if we have watershed X numbered as 0, I want the ...
2
votes
1answer
249 views

Creating a model to run a complex query

I'm just a rookie when it comes to creating models in ArcGIS. I have two shapefiles from which I need to calculate an AVG and a MAX erosion rate for individual properties. The two shapefiles are: ...
1
vote
1answer
562 views

Replace data source of layer in ModelBuilder

After reading through the documentation about MapDocument and Layer classes, I have been trying to use the replaceDataSource method in ModelBuilder to replace the data sources of certain layers within ...
4
votes
1answer
2k views

If statement in ModelBuilder to check if field exists

I'm trying to create the following in ModelBuilder: Set input feature class if field1 exists execute the processes in branch1 else add field1 execute the processes in branch2 ...
2
votes
0answers
144 views

Submodel not executing within main model

My main model contains the following: Workspace variable Input GDB Feature class Input Feature Class SubModel 1 that produces OUTPUT feature class Parse Path is used to obtain the name from the ...
3
votes
2answers
1k views

How can I convert lots of ASCII files (.xyz format) into shapefiles by iterator in the Modelbuilder of Arcgis 10?

I have a plethora of xyz format files and I want to convert them into shapefiles separately and it is really time-consuming to do this conversion one by one. I tried to create a model in ...
0
votes
1answer
332 views

Sort feature class in Modelbuilder and populate new ids

I would like to sort my feature class in a model based on coordinates stored in its attribute table. The sorting must be done on Y_coord descending, then X_coord ascending. The answer to this question ...
3
votes
3answers
2k views

Use 'if' statement in ModelBuilder to stop model

I would like to use an if-else statement in my model (along the lines of this Esri blog). My model works fine (several intersects, dissolves, calculating fields, joins). However, I would like to add a ...
2
votes
1answer
666 views

Equivalent of Simple Data Loader in Modelbuilder

I have a model which processes a user specified polygon feature class InputFC, with the final result a dissolved (based on a user specified dissolve field D_FIELD) polygon feature class OutputFC. The ...
4
votes
1answer
1k views

Map Algebra expression in a model fails on open workspace

I have model which runs 2 processes that create rasters and a third process that (attempts to) add the two of them using Map Algebra. The expression is very simple, just "%Raster_A%" + "%Raster_B%". ...
5
votes
3answers
6k views

Remove spatially duplicate features using ModelBuilder

I am creating a model to remove features which are duplicated within a polygon feature class. Most of the features are duplicated once, but about a quarter have up to three or four exact copies. I do ...
4
votes
4answers
4k views

Search if field exists in feature class

I have a few dozen feature classes, one of which contains the field I am looking for. They are stored in several different file geodatabases. Is there a quick way of searching each feature class to ...
4
votes
1answer
811 views

ArcGIS ModelBuilder: how to wait for Python script to complete

I have an Arcgis (10) model which has 2 process that need to be run sequentially. The 1st process is a python script that creates multiple rasters, but that output is not known to Model Builder, ...
2
votes
2answers
344 views

Is it possible to use commands from ArcMap's main menu in Model Builder

Is it possible to use the functions from ArcMap's main menu (for example Add Data, Start Editing) in my model? I can not find a way to add any other functions except Toolboxes.