New answers tagged arcpy
1
vote
Updating data sources in .aprx files
I found that the updateConnectionProperties() method in arcpy is either horribly broken, or that there is a significant mis-understanding between the documentation and myself (I'm prepared to admit ...
0
votes
Resource Allocation tool that is preferential to higher cost pixels?
Just invert your cost distance. Let's say this is cost distance:
Normalise it by maximum:
Invert (I used Exp(3-3 * "NORMALISED"):
Note how cost distance squeezed towards higher values:
...
1
vote
Packaging projects or maps without data source connections in ArcGIS Pro
What you want to do is sort of an anti-pattern in packaging and sharing: Share something that when given to someone else will have broken data links. The entire point of packaging is to create a ...
0
votes
Opening ArcGIS Pro application from ArcGIS Pro Project (.aprx) file using ArcPy?
you can also use subprocess to do this. In my implementation, subprocess was a better choice.
import subprocess
myfile = r"C:\Temp\Projects\TestProject\TestProject.aprx"
subprocess.Popen([...
1
vote
Batch editing ArcGIS Layout file text elements and exporting in ModelBuilder
In ArcGIS Pro .lyrx, .mapx, and .pagx. are a json format which you can manipulate with python. That is the reason you can open it in a text editor. Esri call it CIM - Cartographic Information Model.
...
1
vote
Accepted
AddFieldDelimiters not correctly adding field delimiters in arcpy
I think that you should test this code, which does not use arcpy.AddFieldDelimiters(), because it is a simpler coding pattern and my understanding is that field delimiters have not been required for ...
0
votes
Accepted
How to generate sequential numbers for list of input table fields written to a text file (ArcMap script tool)?
You can index a counter. For example:
counter = 0
for i in range(5):
counter +=1
print('Col' + str(counter))
This code returns or prints out....
Col1
Col2
Col3
Col4
Col5
So in your case you ...
Top 50 recent answers are included
Related Tags
arcpy × 10571arcgis-desktop × 1450
arcmap × 1159
python × 1067
cursor × 997
arcgis-pro × 975
arcgis-10.1 × 754
arcgis-10.2 × 712
arcgis-10.0 × 645
arcgis-10.3 × 427
python-script-tool × 419
raster × 396
spatial-analyst × 358
modelbuilder × 312
layers × 312
field-calculator × 301
python-toolbox × 293
enterprise-geodatabase × 277
fields-attributes × 238
python-2.7 × 238
python-addin × 236
select-by-attribute × 222
error-000732 × 221
shapefile × 209
parameters × 204