New answers tagged

0

Assuming there is a common field between them all: Merge all the feature classes together into one feature class Dissolve the feature class based on the identifier field. This will result in a multi-point feature class with each entry comprised of multiple locations Run feature to point to collapse the multipoint to point


-2

You could try using 'Feature Class to Feature Class'. You can copy over a dataset and set the field map. I can't test this now for you but I hope it helps.


1

Based on your description are you looking for Get Count? Returns the total number of rows for a table. If the input is a layer or table view containing a selected set of records, only the selected records will be counted.


1

Field in the Feature to Raster tool must be exposed as a model variable. Right click on the Feature to Raster tool >> Make Variable >> From Parameter >> Field Once you have done that you can then set Raster_%Field%


1

This is Linear Referencing task, however Python makes it much easier. Solution below assumes your points and line are in projected coordinate system. Add your line to mxd, call layer "line". Add numeric field to your points table, use advanced mode in field calculator, python and this expression to polulate it: def Chainage(shp): mxd = ...


2

Not that I'm aware of in modelbuilder as a setting. The only way I can see calling that action would be calling a python script at the end of the model that makes the .net arcobject call to open said layer/table.


0

I am not sure if this is exactly what you are trying to accomplish, because your question is a little vague, but using TableView, this will allow you to add an attribute table to your map after it has been run. quoted from ESRI The full page with all the syntax, properties, etc... is available here ...


1

Run the data through the SORT tool, sorting by your random number field, sorting in an ascending sequence, send the output into IN_MEMORY. For example input data is: The sort tool creates an FID field which is sequential, so all you need to so is select rows where FID <= 10 as shown below: If you need the lowest 20 then select FID <= 20. This ...


3

The tool does not carry over source point layer field/attributes. You will have to apply other tools/methods (e.g. spatial join) to bring over those attributes.


3

One option would be: Use Get Count tool on query result table and assign result of tool to a variable Then, use if-then-else Branching logic to check if variable is greater than 1 or not


0

Sounds like you are generating routes through linear referencing. All the available tools for linear referencing are discussed here. Sounds like you want to be using the Make Route Event Layer?


1

Open Model Builder from ArcMap. Tool 1 in Model Builder: From the Toolbox, drag in "Select Layer by Attribute" tool. Its under "Data Management". Right click on the tool and hover over "Make Variable", then when more options pop out, select "From Parameter". When more options pop out select "Input Layer". When a new circle appears, right click on it ...


0

Create an arbitrary common factor in each table. For example, in each table create a column called "Merge". Make it an integer short field. Now open the Calculate Field Tool. Click the expression box and in the code block insert the code below. In the Pre logic script code type: autoIncrement() rec=0 def autoIncrement(): global rec pStart = 1 ...


1

If you're interested in the current date, then the Calculate Value tool could be of use, along with some python. Below is the code that would return the current date as a string. In the Expression box, put this: getdate() In the code block, put the following: def getdate(): import datetime now = datetime.datetime.now() current_date = ...


1

The problem was that outputs from iterator in subModel had always the same name ie: "Lines". My solution is to save every output of subModel in a new FC named with the group by value %Value% using inline variable substitution You can see the solution in the red square below:


0

Couldn't you just chain 3 functions in your model? Have each function create one of the rasters you want. To my knowledge there isn't a way to make a Con tool create multiple outputs.


0

Have you searched Google? A quick search for "techniques for generalizing roads" threw up this Continuous_Road_Network_Generalisation.pdf Selection of roads Wikipedia


0

This problem depends on decimal symbol (separator) for numbers and currency (regional settings). If you set "comma", your models will be crashed, but if you set "dot" you will not have a problem.


1

Consider testing against the workspace type property. In your calculate value tool (you only need one for this step), modify your code to look something like this: import os, arcpy def workspace_type(wkspace,fc_name): wt = arcpy.Describe(wkspace) if wt.workspaceType == "FileSystem": #folder return ...


1

You could try adding the Rename Tool to the right of your output raster(s). As your input to the Rename Tool, connect your output raster(s). For the output data parameter in the Rename Tool, you should input the file name you desire. In your case, something to the effect of "C:\temp\HogHab1_%Value%" or "C:\temp\ModRas1_%Value%" respectively. What the ...


0

Sounds like you want to expose the field mapping parameter of a tool as a parameter. Look at the section exposing tool parameters to see how you expose a parameter of a tool in model builder. Typically only the inputs and outputs are shown (blue/green blobs) so other parameters of a tool are not shown by default.


0

Should be possible. As you mention python i guess you have some knowledge there. The idea would be to read your point coordinates. Then create the shape of your desired buffer. You can build a loop for creating a shape for each point and within this loop you move your polygons to the coordinates of your points(as you have always the same shape it is easy to ...


0

You can use Calculate Value with an output parameter type of Remap to accomplish dynamic reclassification of intermediate results. Here, I'm use Iterate Field Values to loop over a table with different reclass values. %Max% is a model variable and %Value% is the current table value. If you export the Reclassify GP tool to Python, you'll find that the remap ...


2

Add Join requires that the Target is a Layer or a Table View, not a Feature Class or Table. The difference is that Layers and Table Views exist only in ArcMap Desktop and support display and record selections while the other is what is stored on disk and shown in ArcCatalog that does not let you select records. Copy Rows only creates a Feature Class or ...


3

The first column is an automatic ID field. If for some reason you need to preserve the specific ID value for each row, you need to create a new column and populate it with the ID values. Merging two layers will definitely change the automatic ID for all the features of one of them (usually, retains the add order in the merge tool box). As for your point ...


0

You are right that I wasn't clear enough. I actually used different inline variable expressions for each Get Field Value, but I was getting sequentially more shapefiles added on with each row pass in the iterator. What I wanted was a new combined shapefile for each row pass of the iterator. Today I took a different tact, and created sub-models to link each ...


4

You cannot save a table in a geodatabase with an extension like ".dbf". Remove the extension and the tool should run.


0

You are using the wrong values in your Select Layer by Attribute. Lets assume Get Field Value tools return GEOID's 11 and 22, these are stored in variables Value (2) and value (3) in your model. In your description above you state you are using %value% and value is the group by ID from the iterator. It sounds like you want to change the whereclause (note ...


0

If you want to use model builder probably the simplest approach would be to expose some of your inputs as parameters and turn your whole model into a tool. If it were me: I would expose the the whereclause of a select by attribute tool which allows you to enter the code for a county. Apply this selection process on feature class A and B. You now have two ...


1

Rather than returning a boolean, how about you modify your code so that it converts your input raster to a .tif and returns that instead.. Something like this: def check_if_Tiff(DGM,folder): import arcpy import os desc = arcpy.Describe(DGM) type = desc.format if type == "TIFF": return DGM else: out_r = ...


0

One option would be: Start model with the Feature Set variable to allow the user the ability to interactively select the buffer zone Use the Clip tool with the selected buffer polygon feature and clip out the intersecting portion of the soil layer Finally, use Summary Statistic tool (MEAN option) on the clipped out soil layer from step 2 on the soil type ...


1

If your input is shapefiles then your iterate Feature Classes won't work. Make sure you export your shapefiles into geodatabase feature classes first. Model builder does not like shapefiles! I would also create or use an existing geodatabase for the outputs in this model. Secondly, just delete the parts from the model that appear broken and add them ...


0

I came across this same issue and tried everything. Turns out the issue was that the layer name that I was giving the output started with a number and you cannot use the copy features tool to write to a fgdb if the layer name you are giving it starts with a number. There are other rules for how to name your output layer regarding this as well. It was a ...


0

As commented by @KHibma: Try: manually perform the workflow, once the layer looks how you want it, create a LYRX file and save it to disk. Then build your model with Apply Symbology from Layer tool in between the 2 tools. Alternatively look at using a task, while it wont completely automate a 1 -click solution, you can have it launch tools and ...


0

Definitely need to rename your model elements so they don't have percent signs in the element name. That will definitely break the parsing in the raster calculator! Note, the value of the element can have percent signs in it, but the element name/label cannot have percent signs.



Top 50 recent answers are included