|
POST
|
Hi, Before I dive into more detail. I have an issue with a layer that somebody wrote this expression into this labeling expression. I have the Drawing Alert that tells me . I am trying to understand this and I am not sure how to fix it. The layer I had was from an original layer came from the upper management and they did this for the whole country and I had to use it to clipped it to smaller area for our project. So when you clipped the layer , I believe some of the expression did not work in the label expression. So here is the Expression from the Labeling section is what I have here from an original layer: def FindLabel ( [TRAIL_NO], [ADMIN_ORG], [MANAGING_ORG], [TRAIL_NAME], [NATIONAL_TRAIL_DESIGNATION] ):
if [ADMIN_ORG].startswith('02'):
s='.'
if [ADMIN_ORG].startswith('0201'):
return [TRAIL_NO] [2:]
else:
return [TRAIL_NO].split(s,1)[0]
elif [ADMIN_ORG].startswith('0919') or [ADMIN_ORG] .startswith('0922') or [ADMIN_ORG] .startswith('0903')or [ADMIN_ORG] .startswith('0913'):
return [TRAIL_NO] [2:]
elif [ADMIN_ORG] .startswith('0909') or [ADMIN_ORG] .startswith('0907'):
return [TRAIL_NO] [2:].replace('-','')
elif [ADMIN_ORG] .startswith('0904'):
return [TRAIL_NO] [1:]
elif [ADMIN_ORG].startswith('0915'):
return [TRAIL_NO][4:]
elif [ADMIN_ORG].startswith('08'):
if [ADMIN_ORG].startswith('0805') or [ADMIN_ORG].startswith('0810'):
return [TRAIL_NO].replace('TRBS','').replace('TR','')[1:]
else:
return [TRAIL_NO].replace('TRBS','').replace('TR','')
elif [ADMIN_ORG].startswith('04'):
if [ADMIN_ORG].startswith('0419'):
return [TRAIL_NO] [1:]
elif [ADMIN_ORG].startswith('0402'):
return [TRAIL_NO][:3]
elif [MANAGING_ORG].startswith('0402'):
return [TRAIL_NO][:3]
elif [ADMIN_ORG].startswith('040702') and [TRAIL_NO].startswith('32000.'):
return [TRAIL_NO].replace('32000','').replace('.','')
elif [ADMIN_ORG].startswith('040702'):
return [TRAIL_NO][2:]
else:
return [TRAIL_NO][1:]
elif [ADMIN_ORG].startswith('0303'):
return [TRAIL_NO] [2:]
elif [MANAGING_ORG].startswith('031204'):
return [TRAIL_NO].replace('MT-','')
else:
return [TRAIL_NO].lstrip("0").replace('.', '-').replace('TER-','').replace('TRD','') I have the clippped layer here and I have looked into the attributes and I can see some of the split it mention in the expression and yes I can see some of the numbers like this 157.2 or "Name of trail".456 The Problem is the error that tells me Traceback (most recent call last): File "<expression>", line 1, in <module> File "<string>", line 7, in FindLabel AttributeError: 'NoneType' object has no attribute 'split' I am clueless here and I am not sure what the line 7 is and I am not sure where to find it. Please excuse my grammar here. I am deaf and I try my best to understand how it works and it will help me to understand better down in the road should I came up the same thing in the future... Thanks GIS friends ! I am in the VDI, Citrix, and ArcGIS Pro 3.3.4.
... View more
04-18-2025
10:15 AM
|
0
|
6
|
783
|
|
POST
|
Thank you ! I open the current project and at the Project Level Current Settings did show where my current project is. It shows the list of the Name, Location, Home Folder, Default geodatabase and Default toolbox. I appreciate your explaining and I give you thumbs-up !
... View more
04-14-2025
07:58 AM
|
0
|
0
|
462
|
|
POST
|
What is the difference between the Current Settings vs General settings for Starting ArcGIS Pro project in the Options ? For the Current Settings , it did not provide much details ; however, the General does provide details on how to save your projects on your local or network computer ? Here is the screen shot for the "Change settings for the current project"
... View more
04-11-2025
07:35 AM
|
0
|
2
|
548
|
|
POST
|
My co-worker tried to use Ortho-mapping with the old aerial photos and did not give a good postive results. Just saying ... I don't know if there are others that have tried this method.
... View more
04-10-2025
07:31 AM
|
0
|
0
|
833
|
|
POST
|
Sorry the title should be Simple Line for Label is NOT showing up !
... View more
04-03-2025
08:54 AM
|
0
|
0
|
559
|
|
POST
|
Never mind. I got it to work ! In order to show the simple line to show you, you need to go over to the Postion in the Label Class then at the first tab Postion then use the Regular Placement and then use the Horzional around polygon. Need to set what number you want in Preferred offset and Maximum offset. You can experiment what numbers you want and choose which measured you want.
... View more
04-03-2025
08:38 AM
|
1
|
0
|
565
|
|
POST
|
I have this polygon layer and the labels are turn on; however, I am trying to use the simple line but I am not seeing it . I don't know why or for some reasaon unknown.
Is there something I do wrong ?
Here you can see Pueblo with a circle , it is a polgyon and the label is on .
Check out my settings for that Label
You can see the simple line above but the label in the Map does not show ?
... View more
04-03-2025
07:59 AM
|
0
|
2
|
591
|
|
POST
|
Ok, I understand this now.. You could duplicate the layout and rename it and then if you need to copy any layers from another map you worked on and paste the new layers in the Map Frame in the Layout as well. I hope you understand what I am saying ...so I am still experiement and that works for me too.
... View more
04-02-2025
08:10 AM
|
0
|
0
|
1772
|
|
POST
|
Thank you for clarfying and appreciate. This is one the least legend to deal with and I know my co-workers have been dealing with.. That is one reason why I spend some time to better understand .
... View more
04-02-2025
07:15 AM
|
0
|
0
|
1778
|
|
POST
|
No, but when I went through and it did not refresh like you suggest. I don't know why .
... View more
04-02-2025
07:03 AM
|
0
|
0
|
1783
|
|
POST
|
I have been toying it around lately and here is what I found to be very helpful ... I am working in VDI . I have not test this in the Windows PC either in 10 or 11.... I found to be very helpful but it is a bit step to make it work without having to change the map in the layout if you click on the legend element or Map frame's map frame because you woud have to fix it or reset... So, Add the new layer or layers to the current map. Then go to the Share Map ...Export the Map file / Use the tool to import the map file. If you have the same area in the layout, I would recommend use the duplicate the layout and rename the file to prevent the legend to mess it up. Fix the legend when you have the new layers to show up ... That should work unless there is a better way around for now.
... View more
04-01-2025
12:47 PM
|
0
|
0
|
1795
|
|
POST
|
Hey, Do you have Metshape ? I used to work on that a lot until my agency revoked it due to that software from Russia.
... View more
04-01-2025
10:13 AM
|
0
|
0
|
931
|
|
POST
|
Hey, I was working on a map that I have in the past and decided to add new layers.to the current map. I also had the laout of the same map , too. However what got me is the question mark is : Why was the legend Element is not t updated with the new layers ????? But in the Map Frame, it does have the update with the new layers ? Why ?? I don't want to change the map irself in the layout and if you do change the map frame you choose from in the legend, it will update the map that you don't want to fix it .... like the locked itself ? How do you update the map frame in the legend in the layout ? It would be much save from troubling update the map frame in the Map Frame ???? The picture you see in both are in the Layout the Top part is when you click on the Map Frame that gives you whole bunch to choose from Map Frame But .... the bottome part is when you click on the Legend that gives you you limit to choose from ? Can you see the different ? Can anyone tell me what was the problem here ?
... View more
04-01-2025
10:07 AM
|
0
|
9
|
1850
|
|
IDEA
|
Hello Everyone ! Wheather you like it or not, maybe I just should throw out one feature to add this to the ArcGIS Pro. It is about the coordinate systems. I am aware that there is a way for you to open each layer and check their coordinate system. If you have many of them from different coordinate system, you have to open the the Map Propertis and (See screenshot ) But how about add the similiar one and put it in the Maybe in the future versions.
... View more
03-31-2025
11:29 AM
|
31
|
32
|
3592
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-01-2022 03:43 PM | |
| 1 | 09-28-2020 09:34 AM | |
| 2 | 09-24-2025 09:48 AM | |
| 1 | 09-22-2025 08:29 AM | |
| 1 | 09-17-2025 12:58 PM |
| Online Status |
Online
|
| Date Last Visited |
6 hours ago
|