|
POST
|
01-10-2023
08:21 PM
|
0
|
0
|
402
|
|
POST
|
The Optimal Path As Raster tool can be used to 'trace downstream' using the same flow direction raster used to make watersheds. The optimal path created can be a flow path based on D8 flow direction. To generate an optimal path in this way, use a D8 flow direction raster as input for the Input back direction or flow direction raster parameter. You also need to supply an Input distance accumulation raster value; the Input distance accumulation raster value is not used to determine the path. Whether you use a constant raster or a digital elevation model (DEM), the path will be the same; only an attribute value on the path will vary. See the Flow Direction tool documentation for more information on D8 flow direction rasters.
... View more
12-14-2022
05:10 PM
|
1
|
0
|
1311
|
|
POST
|
You are correct to look at the Iterate Feature Classes tool. One of its outputs is the file name. You can then use a python expression of function (Calculate Value tool) to generate the corresponding path and then do the join. Join Field may be a better approach than add join / copy features, depending on what you're doing. Here's an example of the calculation to generate the second file name, # this is an example what you get from the iterator Name output variable
# (data used below in variable reference %Name%)
"T1"
# here is an example of what expression you could
# use with the Calculate Value tool
# this would evaluate to :"T__1_ExportFeatures1"
"T__1_ExportFeatures{}".format("%Name%".replace("T","")) You then use the output variable from Calculate Value for tools used down the chain, like Join Field. A tip: if needed, use preconditions, for example, make sure the iterator "Name" variable is set as a precondition to the Calculate Value to make sure you are working with the value from the current iteration. Hope this is helpful to you!
... View more
12-10-2022
07:04 PM
|
0
|
0
|
1365
|
|
DOC
|
With the release of ArcGIS Pro 3.0, there are three toolbox formats available in ArcGIS. This matrix is an attempt to help you decide which is appropriate for your work. atbx tbx pyt Description ArcGIS Pro 3.x ArcMap, Pro 1.x, 2.x ArcMap 10.x, Pro Format XML-based text/binary python code Model Builder support Yes Yes No (but references to model builder tools supported) Python skills required Minimal Minimal Yes Container (location toolbox is saved) Folder or gdb Folder or gdb Folder Script tool parameter validation Property sheets and validation code Property sheets and validation code code Full read/write support across versions Pro 3.x only Within current version (Pro 2.1, ArcMap 10.8) With careful coding can support all versions (at least in a limited way), even ArcMap and Pro Read toolbox created with previous version Yes Yes Yes Save toolbox to previous version Yes (Save to tbx file - not gdb, with optional validation tools) Yes No Documentation source Embedded in toolbox Embedded in toolbox XML files in same folder as pyt file Efficient with git and other version control systems No No Yes (as pyt and associated .py or .xml files are entirely code) Embedded code encryption supported Yes Yes No
... View more
10-14-2022
04:13 AM
|
4
|
1
|
1854
|
|
POST
|
Vote up this idea: https://community.esri.com/t5/arcgis-pro-ideas/need-absolute-path-names-in-pro/idi-p/938348
... View more
09-28-2022
09:25 AM
|
0
|
0
|
6090
|
|
POST
|
I think the OP needs to live with it. I would guess this change was made because of the new multi-threaded architecture of ArcGIS Pro - the addition of layers to the map is called after the geoprocessing thread is done doing its work (running the model).
... View more
09-01-2022
02:52 PM
|
0
|
0
|
1108
|
|
POST
|
You have the iteration backwards, the sub model should do the calculations (including raster calculator) and write the output, the driver (outside) model should do the iteration. See the examples in the help.
... View more
09-01-2022
02:48 PM
|
0
|
1
|
1666
|
|
POST
|
For some reason this popped up in my email so I thought I'd add that using string formatting is easier to understand and debug. This is especially true if your expression is complex. For example: expr = 'float({}) - float(time.strftime(!PLANTIO!,"%Y"))'.format(anuAtual)
# at runtime, expr will be something like:
# float(1999) - float(time.strftime(!PLANTIO!,"%Y"))
arcpy.CalculateField_management("temp_informe_Layer", "EST_SUBREP",
expr, "PYTHON")
... View more
08-07-2022
10:54 AM
|
0
|
0
|
799
|
|
POST
|
How about the Merge tool with a field map with a "," delimiter to combine the values, then a Join Field (Maybe faster for a large dataset.)
... View more
07-20-2022
04:30 PM
|
0
|
0
|
1502
|
|
POST
|
"layer name" needs to be either a string literal or a string variable containing the name of an existing layer or the path to a dataset. It's pretty easy to grab the first one this way lyr = "name_of_your_layer"
event_id = arcpy.da.SearchCursor(lyr, ['Event']).next()[0]
... View more
07-20-2022
08:12 AM
|
1
|
1
|
1310
|
|
POST
|
Seems to me a good approach is to get the event ID from your selected set into a variable using a cursor, use that to build a SQL expression, and run Select Layer By Attributes to select the points in the other feature layer. If you have to do this many times, be sure and index the datasets by your event attribute so the selections will be faster.
... View more
07-19-2022
01:34 PM
|
1
|
3
|
1320
|
|
BLOG
|
Packt seems to really do well with this kind of book! Thanks Joseph I will definitely get a copy of this! Note: this is available only as e-book. (Nice for me as I am moving in a few months!)
... View more
07-19-2022
08:30 AM
|
1
|
0
|
1342
|
|
POST
|
So: this tool seems to not work for raster layers, just raster datasets.
... View more
07-17-2022
02:26 PM
|
0
|
0
|
1349
|
|
BLOG
|
Did your installs work? Check in add/remove programs (and versions).
... View more
07-08-2022
08:36 AM
|
0
|
0
|
23471
|
|
POST
|
Re - missing rasters. I'm guessing you are placing .tif files into the geodatabase .gdb folder with copy paste from internet explorer or from some other software. If you do this ArcGIS can't see them. If you copy the rasters into the geodatabase in ArcGIS, this will save them as file geodatabase rasters (not .tifs) and ArcGIS will see them. However, my experience processing .tif files is faster so I don't recommend this (esp since your drone tifs are probably massive). So in short I suggest saving the .tifs into the folder the .gdb is in, or in a folder parallel to the .gdb folder. I think the iterator you want is Iterate Rasters. It has lots of options to filter (by file type, wildcard name match). But it won't work if these are tif files stored in the geodatabase. Hope this helps.
... View more
07-08-2022
08:31 AM
|
1
|
2
|
1383
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-11-2021 01:26 PM | |
| 5 | 12-10-2021 04:58 PM | |
| 1 | 02-27-2017 09:30 AM | |
| 2 | 12-04-2023 01:05 PM | |
| 1 | 04-12-2016 10:17 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-19-2024
12:10 AM
|