POST
|
Thank you! Your code worked. I also asked this question on another forum (Geographic Information Systems Stack Exchange ) The solution presented by Hornbydd is this: var inArray = [$feature.FromAddr_L,$feature.ToAddr_L,$feature.FromAddr_R,$feature.ToAddr_R];
var sortedArray;
sortedArray = sort(inArray);
for(var i in sortedArray)
{
if (sortedArray > 0) break;
}
return sortedArray;
Both solutions work in the Field Calculator. It will be interesting to see if they work in the Attribute Rules. Thank you!
... View more
03-02-2020
06:17 AM
|
1
|
1
|
1125
|
POST
|
Hi! I am trying to get familiar with the new Arcade language. Specifically as used in Attribute Rules. I am trying to create an Arcade expression to calculate a field in ArcGIS Pro. In my streets feature there are 4 number fields to evaluate. I can easily use the Min() function to do this. The problem that I am having is sometimes there is a 0 in one or more fields. I need the lowest number that is not a 0. In python I had this script which worked well: min([x for x in ( !L_F_ADD!, !L_T_ADD!, !R_F_ADD!, !R_T_ADD!) if x is not 0]) I have tried redoing this in Arcade but can't figure it out. Any ideas?
... View more
02-28-2020
01:03 PM
|
0
|
3
|
1230
|
POST
|
I have upgraded to 2.3 and after using for a few days, I am much happier with the random color patterns. It appears to be working as expected now. Thank you ESRI for looking into this and fixing it.
... View more
02-13-2019
08:03 AM
|
2
|
0
|
978
|
POST
|
I am still having this issue as well. The "Random" symbology is not very random. Most of the time I get groups of varying shades of the same colors. I feel like the random symbology in Desktop gave a much better color spread. I have been using the work around of importing symbology from a layer created in Desktop, but what happens when Desktop goes away? I would really like to just pick "Random" and get a random symbology instead of tinkering around with all of the settings. I'm hoping it is something ESRI is looking into.
... View more
10-22-2018
06:50 AM
|
1
|
0
|
978
|
POST
|
It appears that everything is working correctly now. I'm guessing because of 2.1.1?
... View more
02-13-2018
06:57 AM
|
0
|
2
|
1114
|
POST
|
We have been switching a lot of our projects over to Pro and it has been fairly successful. I'm trying to convert a map book we currently have in desktop 5.1. We have an index grid that is no problem to create, and in desktop you can go to "Data Frame Properties" and then "Grids" and you could set up an "Index Grid" with the Grids and Graticules Wizard that would put graphics around your data frame in layout view. (See Screenshot attachments) My question is, is there a way to do this in Pro? I see the "Grid" option on the Map Frames tab, but it only lets you add graticules, measured grids, and MGRS. I can't seem to find anything in the online help. What am I missing? Thanks for any help.
... View more
02-13-2018
06:27 AM
|
1
|
8
|
1768
|
POST
|
I have a contour feature in my ArcGIS Pro project. When I turn on the labels for the elevation (double), they seem to label fine for all of the different label placement options except for "Contour Placement". I can scroll through all the placement options such as "Basic Line", "European Streets", "North American Streets", etc.. and watch the labels change position, but as soon as I choose the "Contour Placement" they just don't appear. I have the "View Unplaced" option checked and nothing shows up. I have tried different options within the placement control pane such as Uphill Alignment, Page Alignment, Ladders and nothing seems to work. I guess my question is does anybody else have this problem? Is this a bug? Am I doing something silly? Thanks for any feedback.
... View more
10-30-2017
08:35 AM
|
0
|
11
|
1786
|
POST
|
That is some impressive script wizardry! It worked and did what I needed. Thank you so much! I appreciate you taking the time to help me out.
... View more
07-20-2017
10:15 AM
|
0
|
2
|
757
|
POST
|
I really appreciate your help. I tried your tool but it failed and this is what I got: Start Time: Thursday, July 20, 2017 8:56:42 AM Running script UpdateLATLONG... WARNING 001097: LAT already exists -- overwriting. Failed script UpdateLATLONG... Traceback (most recent call last): File "C:\Users\spsummers\Downloads\CalcGeometryModified\CalcGeometryModified.tbx#UpdateLATLONG_CalcGeometryModified.py", line 387, in <module> File "C:\Users\spsummers\Downloads\CalcGeometryModified\CalcGeometryModified.tbx#UpdateLATLONG_CalcGeometryModified.py", line 61, in execute File "C:\Users\spsummers\Downloads\CalcGeometryModified\CalcGeometryModified.tbx#UpdateLATLONG_CalcGeometryModified.py", line 313, in CreateOutputFields RuntimeError: Table is already locked [Table is already locked[gis.GISDB.AddressPoints.LONG]] Failed to execute (UpdateLATLONG). Failed at Thursday, July 20, 2017 8:58:06 AM (Elapsed Time: 1 minutes 24 seconds) I know some very basic python but this is a little over my head.
... View more
07-20-2017
06:35 AM
|
0
|
4
|
757
|
POST
|
You are correct that I can run the tool on a selected point and get the coordinates I want. The problem I am having is that this tool creates its own fields to store the coordinates. I can not add fields to my point feature class. It is in an SDE environment and my organization has all of the fields already set up and I do not have permissions to add further fields. As I stated above, I know that I could create my own temporary point fc just to calculate these coordinates and then copy and paste them in, but I was hoping for a simpler solution like the old "Calculate Geometry". I added my question to this string because I too was trying to use the !SHAPE.centroid.X@decimaldegrees! with the Field Calculator thinking I had found a work around. I appreciate any ideas and thank you for your time.
... View more
07-19-2017
11:21 AM
|
0
|
3
|
2464
|
POST
|
I'm not sure how this would work for me. Perhaps you might have a better idea? I have an existing building points feature class (it's in State Plane feet) and it already has an existing LAT and LONG field. If a new building is constructed I add a new point and I need to calculate the LAT and LONG. In desktop I would just open the attribute table and "Calculate Geometry" and choose Decimal Degrees. Is there no way to do something similar in PRO? It appears the "Add XY Coordinates" tool would calculate the fields for the entire feature class? Am I missing something simple and stupid or do I really have to go through a long convoluted process to do this? Any suggestions would be greatly appreciated.
... View more
07-13-2017
07:33 AM
|
0
|
5
|
2464
|
POST
|
I'm a long time Desktop user and I'm trying to get up to speed with ArcGIS Pro. When making maps with Interstate, US routes, and State routes I have always used a "shield" for my labels. This was pretty easy in Desktop, but I am struggling to find anything other than an Interstate Shield in ArcGIS Pro. Does anyone know how to get a US route shield? Thanks.
... View more
06-14-2017
05:38 AM
|
2
|
9
|
8315
|
POST
|
I am trying to make some tasks in the Task Designer. One step I can't seem to get past is I need to copy a selected point feature (GPSstructure) and copy it to another point feature dataset (an archive named GPSdone). In Desktop I normally would just select the feature then right-click "Copy" and right-click "Paste". The menu would ask me which feature dataset to paste into and I was done. I was trying to automate this with tasks but I keep getting an "Error: Cannot run command assigned to the step. It is not enabled." I have tried various versions of copy and paste with no success. I used the record steps function and that appeared to record the steps (which did work manually) but did not work when the task was run. Any ideas?
... View more
11-19-2015
12:01 PM
|
0
|
8
|
4977
|
POST
|
Hello, I am trying my hand at creating a task in ArcGIS Pro. I have figured out a step to use a SQL query to select a point based on an identification number. I am trying to now make a step to zoom to the selected feature. I have tried several methods but it doesn't seem to do what I want. 1) I tried the record step tool but that didn't work at all for me. Maybe I'm just not sure how to use it. 2) I added the "zoom to selection" command. This kind of works, but it never zooms in far enough. 3) I read elsewhere that you could "pan" to selected feature and then "scale" the map, but I can't seem to find a way to zoom to a fixed scale. Ideally I would like to be able to zoom to my selected point with a scale of 1:1000 . Any ideas?
... View more
11-18-2015
08:10 AM
|
1
|
2
|
4084
|
Title | Kudos | Posted |
---|---|---|
1 | 03-11-2020 11:45 AM | |
2 | 07-13-2022 10:54 AM | |
1 | 07-12-2022 08:25 AM | |
1 | 10-13-2021 06:37 AM | |
1 | 03-13-2020 06:33 AM |