Hot answers tagged

3

Have a look at inline model variable substitution Something like Parcels_10m_Rail_%fc_name% is what you want. fc_name is the variable that stores the names of your restrictions feature classes. Parse Path can be used to retrieve feature class name.


2

Use summary statistics with your counties layer Use Get Field value to grab the sum from the summary table And Calculate Field to update somewhereland


2

This can be easily done in the same calculate tool so no need to add another tool. If you think about it what does a replace function return? A string! Which you can put through another function! Here is a silly example were ww would be your %Value% ww = "Wwww 23'rrr" ww.replace(" ","").replace("'","_") returns 'Wwww23_rrr'


2

Your model appears to be correct and you are using the %value% correctly, that is the ID of what your are calling your station number. The error message says you have no spatial reference, i.e. either your DEM or Polygon dataset are missing a defined coordinate system. So you need to make sure they have that set. Look into the Define Projection tool. It ...


2

I would use Long (derived). This will be automatically stored in your field as a short integer if the absolute value is small enough (< 32767), but this will be an issue when its larger, so make sure that your model handles the case when the user enters a value that will yield an "out of range" output.


2

Let's take a look at it in Excel: | 1 | A | B | | 2 | ABCDEFGHIJKLMNOPQRSTUVWXYZ | =RIGHT(LEFT(A1,20),13) | Which will display HIJKLMNOPQRST In python then, we need to slice the first 20 characters, and from that the last 13. (Note the use of negative slicing, which is needed to start from the end of the ...


1

Edit: I checked the help for the calculate Value tool. It says: "Variables created in ModelBuilder can be used by this tool, but variables desired for use in the expression parameter cannot be connected to the Calculate Value tool. To use them in the expression, enclose the variable name in percent signs (%). For example, if you want to divide a variable ...


1

ESRI Documentation says to set the toolbox to read-only in Windows. (Link is to 10.3 documentation but I have to believe the same workflow applies for 10.2)


1

If you want to preserve the names of your rasters, consider saving your shapefile as a feature class in a geodatabase . See here for feature class field name limits.


1

I've come across similar issues with mass automation generating thousands of files. An issue is that you are filling a folder with thousands of datasets which all have one feature, this would have an impact. I would consider either writing them to a file geodatabase or combine them in some manner. You could turn your model into a sub-model and pass out a ...


1

Create buffer of any radius around your points and run this expression, using field calculator on field Shape, parser - Python: def makeRectangle(shp,H,W): hH=H/2;hW=W/2 pcX=shp.centroid.X pcY=shp.centroid.Y LL=arcpy.Point(pcX-hW,pcY-hH) UL=arcpy.Point(pcX-hW,pcY+hH) UR=arcpy.Point(pcX+hW,pcY+hH) LR=arcpy.Point(pcX+hW,pcY-hH) rectangle=arcpy....


1

I can think of a few things that might help you here. First of all, you can initially work with a file geodatabase instead of shapefiles, if that helps you to get around the 2GB limit. If your output needs to be shapefile then that may not help too much but perhaps it gets you to the next step in your workflow. Next if you are trying to delete land cover ...


1

You can judge the existence of the result dataset and only when the dataset does not exist for processing. You can use FileExistenceChecker and NoFeaturesTester, they can from the FME HUB for download. Will you want to undertake the processing of connected to NoFeatruesTester NOINPUT port will be able to achieve your goal.



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