3 votes
Accepted

What does "del aprx" at the end of Python code do?

In python del means delete the object which would release memory and file locks. So if you saw del abc,bob,x this would mean delete the objects abc, bob and x, what ever they are. aprx is the commonly ...
user avatar
  • 38.5k
2 votes

Adding function to Helpers list in ArcGIS Pro Field Calculator

The short answer is no you cannot alter what is offered up when you click on the helpers filter. You can however add your own function if you have pre-built it and saved it as a calculate field ...
user avatar
  • 38.5k
2 votes
Accepted

Saving selected features as new layer using ArcPy

You can try to save the result of the selection in a variable and then copy the value in the variable. sel = arcpy.management.SelectLayerByLocation(input, "INTERSECT", intersecting_features, ...
user avatar
2 votes

Adding new MapFrame to Existing Layout using arcpy and ArcGIS Pro

A layout can have more than one MapFrame so when you realise that then you realise that it's a collection object that you need to be inserting your MapFrames into, typically in python its a list. In ...
user avatar
  • 38.5k
2 votes
Accepted

Merging rasters from multiple days in loop using ArcPy

Here is the code you can use, obviously I don't have your data so I spoofed it up with text files, so you need to edit the code and replace the txt with tif. Here is my sample data: # Import modules ...
user avatar
  • 38.5k
2 votes
Accepted

Opening shapefile in ArcGIS Desktop

Your file are not a "project" but just some data in shapefile format (all these file with the same name but different extension are what is called a shapefile, for more information on what ...
user avatar
  • 11.8k
2 votes

Publish a Query Feature Class from ArcGIS Pro to ArcGIS Online

Once you publish a layer over to ArcGIS Online it becomes a standalone Hosted Service on ArcGIS Online and there is no connection maintained. So, if you get the Query layer over to ArcGIS Online the ...
user avatar
1 vote

Model works in ArcMap but in ArcGIS Pro gives ERROR 000229 failed to execute make feature layer

I switched out the Iterate Row to Iterate Feature Selection and that seems to have done the trick. I am still not sure why this would not work in Pro as it did in ArcMap but at least I can move ...
user avatar
  • 21
1 vote

ArcGIS - run a tool thousands of times

Perhaps this will work for you: arcpy.conversion.TableToTable(r"confusionmatrix"+str(i), r"path_of_folder_to_save_to", r"confusionmatrix"+str(i)+".csv") ...
user avatar
1 vote

Interpolating using ArcGIS Pro

Just ran your sample in the tool using TempCels and I got this: So it seems to work for me. It might be a display issue rather than a processing issue, i.e. the pyramids failed to correctly be built. ...
user avatar
  • 38.5k
1 vote
Accepted

Forcing label text into one line using ArcGIS Pro

Go to fitting strategy and untick Stack labels.
user avatar
  • 38.5k
1 vote
Accepted

Using many label colours in ArcGIS Pro

Yes, this can be done - changing the colour of labels can be achieved like so: import random def FindLabel([ATTRIBUTE_TO_USE]): r = random.randint(0, 255) g = random.randint(0, 255) b = ...
user avatar
1 vote
Accepted

ArcGIS Pro Pixel Editor - Saving takes forever

A 3GB raster is a large dataset so any edits will take time. Perhaps you can get smarter with your edits. You don't actually describe in any way what you are doing so maybe these pixel locations you ...
user avatar
  • 38.5k
1 vote

Finding Data Engineering tool for ArcGIS Pro

Data Engineering in ArcGIS Pro is available with version 2.8x. Upgrade the application to get the data engineering functionality. https://geospatialtraining.com/arcgis-pro-2-8-data-engineering-...
user avatar
1 vote

Show inline substitution value as tool parameter

I'm pretty sure what you want is not achievable. The inline variable is evaluated when the tool is executed, not when it has been opened up as a tool ready to take an input, as in your case the ...
user avatar
  • 38.5k
1 vote
Accepted

How do I preserve all fieldnames when merging features?

Just add all the fields you want to retain in the dissolve fields parameter:, arcpy.management.Dissolve( in_features=inputlayer, out_feature_class=fcMerged, dissolve_field = ['projectId', ...
user avatar
  • 51.8k
1 vote
Accepted

How to convert memory raster to points in ArcPy?

There are multiple issues with the code: You appeared to be mixing ArcMap and ArcPro flavours of arcpy so this code would probably have failed. There is no property called setSpatialExtent() on ...
user avatar
  • 38.5k
1 vote

Adding natural breaks classification to feature table

Might be too late to the game for you but... I just discovered the Reclassify Field tool in ArcGIS Pro. I needed to divide my vector data into 5 classes (Natural Breaks) and this tool does it for you!
user avatar

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