|
POST
|
I know it is kind of late to post but in the past ESRI always has their UC Map Gallery books... They have that now online https://mapgallery.esri.com/
... View more
04-29-2025
06:06 PM
|
0
|
0
|
810
|
|
POST
|
I fixed it and it worked; however on line 2 which I am not sure about but I can see the Admin_Org has null and I don't know how to include it in the code ? 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:
if [TRAIL_NO]:
return [TRAIL_NO]
else:
return "TRAIL_NO is null" Traceback (most recent call last): File "<expression>", line 1, in <module> File "<string>", line 2, in FindLabel AttributeError: 'NoneType' object has no attribute 'startswith' And here is the screenshot for the field name here is
... View more
04-22-2025
10:07 AM
|
0
|
1
|
1477
|
|
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
|
1555
|
|
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
|
859
|
|
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
|
945
|
|
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
|
1751
|
|
POST
|
Sorry the title should be Simple Line for Label is NOT showing up !
... View more
04-03-2025
08:54 AM
|
0
|
0
|
917
|
|
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
|
923
|
|
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
|
949
|
|
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
|
3109
|
|
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
|
3115
|
|
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
|
3120
|
|
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
|
3132
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2026 10:11 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|