Skip to main content

New answers tagged

0 votes

How to do Conditional Union or Spatial Pairwise Dissolve?

Here's a quick stab at it, I haven't tested it so it's up to you to debug; it's very likely there are some bugs to sort out. This loop contains dual cursors (one update and one search) which is ...
Michael Stimson's user avatar
-1 votes

Applying Symbology to Feature Layer from ArcGIS toolbox

This seems to have resolved the issue. Thanks @FelixIP, your suggestion helped me resolve this! try: symbology_lyrx = arcpy.GetParameterAsText(8) # Update this with the prefix ...
Geno's user avatar
  • 61
0 votes

Edits going Straight to DEFAULT instead of remaining in own version when using Reconcile and Post

So after some research with analyst team, It turned out that Feature Class wasn't VERSION ENABLED. after making this change from ArcMap prod, user edits were going as expected.
SQLLogic's user avatar
0 votes

Changing active definition query for multiple layers in group layer using ArcPy in ArcGIS Pro

I wrote a code to do this but in arcmap, I'm working in a solution to arcgis pro, as soon as I have it, I'll share it https://space4geomatics-spa.blogspot.com/2022/11/batch-modify-definition-query....
user244979's user avatar
0 votes
Accepted

Tool not licensed when consuming geoprocessing service

From your comment, you state you figured it out by using the GetInstallInfo() method. This will indeed tell you your general license level, but the general pattern of checking if a license is avaiable ...
KHibma's user avatar
  • 16.9k
2 votes

Update aprx data sources using arcpy

You don't need the for path in root: loop. This is causing your infinity loop. You also don't create the directory that you try to save to which I think would cause problems. I created some code below ...
jdavid05's user avatar
  • 568
0 votes

ArcGIS Pro Orthomosaic Workspace empty

The issue had something to do with the existing project I was trying to create the Ortho Mapping Workspace in. When I tried again in a new, empty project, everything worked as expected. I'm not sure ...
ia200's user avatar
  • 367
3 votes
Accepted

AttributeError: 'ArcGISProject' object has no attribute 'listStyleItems'; ArcGIS Pro 3.1.4; Python Notebook

I would assume the listStyleItems method was added to ArcGIS Pro 3.2 and does not exist in 3.1. If you use the drop down at the top of the page you reference (https://pro.arcgis.com/en/pro-app/latest/...
KHibma's user avatar
  • 16.9k
1 vote

Auto-applying symbology changes in ArcGIS Pro without clicking Apply every time

If you do not see the auto apply in version 3.0 then it was new functionality introduced at 3.1 or higher. It is highly unlikely that ESRI will retrospectively add functionality that is in newer ...
Hornbydd's user avatar
  • 43.7k
2 votes

Restricting numeric fields to specific ranges using ArcGIS Pro Attribute Rules (Arcade)

Try creating an Attribute Constraint Rule for each field, and use the following Arcade expressions: For Azimuth field return ($feature.Azimuth >= 0 && $feature.Azimuth <= 359); and for ...
Midavalo's user avatar
  • 29.8k
0 votes

ArcGIS Pro CAD to Geodatabase returns no results

You need to use Catalog to navigate to the geodatabase you exported them to (CAD_Project_6.gdb in this case). Drag them onto the map from there.
PintSizeSlash3r's user avatar
0 votes

ArcGIS Pro doesn't see loaded DWG geodatabase

To use a DWG file, follow these steps: 1. First, load the DWG file into the map. Then, zoom to the layer to check if the data is visible. If it is visible, proceed to the next step. Select the ...
苏云明's user avatar
2 votes
Accepted

How does ArcGIS Pro determine what is "first" or "last"?

I did simple experiment,- spatial join of points to lines shown. First I physically sorted lines in descending order by length and kept only length attribute in joined points. This attribute shown in ...
FelixIP's user avatar
  • 23.1k
2 votes
Accepted

ArcGIS Pro Field Calculator is not working with double field

The issue was with the Processing Extent set in Environments. In an earlier step, I created a model using ModelBuilder and set its processing extent to one of the layers used in the ModelBuilder. For ...
Salit's user avatar
  • 170
0 votes
Accepted

Revert some but not all version edits to the original (target) version state in ArcGIS Pro 3.1

If there are not too many of these features, and if you don't mind a bit of manual work, you could add two layers, one with the old geometries and one with the new geometries. Then simply copy the ...
Son of a Beach's user avatar
0 votes

How to clip multipart polygons in ArcGIS Pro using editing tools

Since I was unable to find an OOTB solution, and python tools were not ideal for my situation, I wanted to post my solution. I created an addin with the ArcGIS Pro SDK, and implemented a Map Tool to ...
Barbarossa's user avatar
  • 5,807
1 vote

Get "not data owner" error when execute register with geodatabase even I connect with the owner user in ArcGIS Pro

Your Question and comment confuse several issues. PostgreSQL has logins (technically, login roles1) which are used to connect to an instance (host+port). The sde login is used to manage the ...
Vince's user avatar
  • 20.1k
2 votes
Accepted

Calculating Area of 2D Shape in 3D space

To get the area I used the tool: "add Z-information". The features have a Z value that isn't considered in the geometry calculation. Only through the tool "add Z-information" can ...
obrob's user avatar
  • 887
0 votes

Describe layer field names

Using arcpy.ListFields(lyr) was the solution. act_map = aprx.activeMap map = aprx.listMaps("Map1") OPField = "xxxxxx" for lyr in layers: fieldList = arcpy.ListFields(lyr) ...
Davec433's user avatar
0 votes

Abbreviate street names using ArcGIS Pro field calculator?

Another option. Use a dictionary with List Comprehension. Replace CompleteSt with the name of your existing street name field, and adjust the d dictionary: abbr(!CompleteSt!) def abbr(street): d =...
Bera's user avatar
  • 74.3k
1 vote

Abbreviate street names using ArcGIS Pro field calculator?

A solution that is more robust (less prone to various errors) and more maintainable (eg, easier to view and add/remove abbreviations) but more complex to write than the replace() chaining could be ...
Son of a Beach's user avatar
1 vote
Accepted

Abbreviate street names using ArcGIS Pro field calculator?

This is not the most sophisticated or efficient solution, but it easy to implement. It's also not terribly easy to read or maintain, but it is simple to write. Chain a replace() call for each ...
Son of a Beach's user avatar
0 votes
Accepted

Min/ Max Elevation per Polygon (Delaware)

For finding an appropriate elevation dataset try asking on Open Data Stack Exchange. The size of your pressure zones and other use case details will determine what is/isn't an appropriate resolution ...
ycartwhelen's user avatar
  • 2,417
1 vote

Buffering with a barrier in ArcGIS Pro?

There is no direct method. If the pink parcels are polygons, after processing the buffer you can make a crop using these polygons
Ivan's user avatar
  • 43
0 votes

ArcGIS Pro 3.0.3 doesn't recognize .NET Desktop Runtime when deployed through Software Center

I just installed the latest .NET 8.0 and the problem is solved.
Lala Hetman's user avatar
0 votes
Accepted

Hosted layer in ArcGIS not getting updated

I figured out the issue. The problem was happening due to the geometry based columns. I was trying to merge two dataframes together. Apparently, the merging was happening correctly but it was also ...
Mir Muhammad Murtaza's user avatar
0 votes

How to return subtype and domain description instead of the code, when using arcgis.gis Python

Here is some code I worked up to get a dictionary containing the code and description of all domains for a specified field in a published feature layer IF that layer has subtypes. There are several ...
Wes's user avatar
  • 11

Top 50 recent answers are included