|
POST
|
import arcpy fc = r'C:\some\file.gdb\someFeatureClass' for field in arcpy.ListFields(fc): print(f.name) ''' it's kinda clunky; I tried to break out of this into another paragraph and haven't figure that out just yet.... '''
... View more
11-24-2020
02:43 PM
|
1
|
0
|
3557
|
|
POST
|
This thread is several months old and I've since migrated to 2.6 pro and only using the the new style locators with the create locator tool. Sorry but I cannot remember what was going on here. @PaulaMorrissey and @JacobHelfman1 can you explain your product version, workflows, locators etc and the problems you are encountering in more detail?
... View more
11-24-2020
02:27 PM
|
1
|
1
|
8335
|
|
POST
|
There is a bunch more testing to do: I just tried it and if I use the code format option that you mentioned earlier and try to post I get an html error and my reply does not post. The code editor for replies does not seem to work as hope.
... View more
11-24-2020
01:39 PM
|
0
|
0
|
3564
|
|
POST
|
Son of gun: there it is! Looked at the Formats pull down but didn't go deep enough...
... View more
11-24-2020
12:27 PM
|
2
|
3
|
3594
|
|
POST
|
I can't seem to find a way to format python code in a reply so I'll do the best I can. You don't need the os module if you are working with file geodatabses. Just set the workspace env: everything you do can then comes from and goes to that workspace with arcpy: import arcpy arcpy.env.workspace = r'C:\path\to\your.gdb' inFC = 'YourFeatureClassName' outFC = 'TheOutFeatureClassName' arcpy.Buffer_analysis(inFC, outFC, '1000 Kilometers')
... View more
11-24-2020
12:19 PM
|
1
|
0
|
4579
|
|
POST
|
In the new forum is it possible to use the code formatter when replying to a post? I don't see the button in the tool bar for replies.
... View more
11-24-2020
12:07 PM
|
0
|
11
|
4529
|
|
POST
|
Is your data stored as actual shape files or as feature classes with a file geodatabase? If the former, they are stored in a folder as a series of files with the same name but different extensions. The .shp extension is just one of them. On the other hand if you are storing your data in a file geodatabase (best practices) there is no extension, just the feature class name. Until you can explain where and how you have your data stored, there's not much I can help you with.
... View more
11-24-2020
11:48 AM
|
0
|
0
|
4588
|
|
POST
|
Please, when posting code use the format tool . It looks to me that you are joining the current working directory to the field geodatabase and then a shapefile. Actual shapefiles do not and cannot reside within a file geodatabase.
... View more
11-24-2020
11:17 AM
|
1
|
0
|
4597
|
|
POST
|
I've been working with ESRI Tech Support on this one for the past month and I've just been informed that this is a known bug in the AGOL geocoding process: Apparently, if you use the word Address or Location as the column name that actually has your address or location in it, you will experience the problem described above. In fact, if you have a field NAMED address or location (or any derivative like Address2, MyAddress, etc) it will fail EVEN if you are not using that field to geocode. Call me simple, but I typically use Address as the field name that holds my address data when I geocode. Wow. Thirty years of ESRI products use; this is the silliest bug I've ever encountered....
... View more
11-24-2020
09:34 AM
|
0
|
1
|
1912
|
|
IDEA
|
Good one Jeff: I second the idea. Field mapping has always been a tough nut to crack. Instead of a join, could you use the turbo charge approach from Fairhurst? I use that almost daily it seems: https://community.esri.com/t5/python-blog/turbo-charging-data-manipulation-with-python-cursors-and/ba-p/884079
... View more
11-23-2020
10:47 AM
|
0
|
0
|
1468
|
|
POST
|
Okay great! That's not too bad then. @ChrisFox is there too so I can still survive in ArcadeLand and AttributeRulesLand... 😌
... View more
11-19-2020
03:41 PM
|
1
|
0
|
3291
|
|
POST
|
Just tried with Xander Bakker and you are correct, he's not a choice. Neither is Chris Fox. These guys have been vital to me!!!
... View more
11-19-2020
01:18 PM
|
0
|
5
|
3325
|
|
POST
|
If you want to have the sequence to provide the next value automagically you can write an attribute rule that looks something like this: //Ensure the ID is not already set, if it is, //return the original id
if (IsEmpty($feature.AddressID)) {
return NextSequenceValue("SiteAddressID")
}
else {
return $feature.AddressID
} Which for me fires upon creation of new address point, reads the sequence named SiteAddressID and updates the field of choice with the next value. The cool thing about sequences is the numbers are unique, and are never repeated. So if you assign a value to a feature and later delete that feature, the value is retired.
... View more
11-19-2020
10:49 AM
|
2
|
0
|
7766
|
|
POST
|
Seems like this question comes up from time to time. With google I just found: https://support.esri.com/en/technical-article/000021133
... View more
11-18-2020
12:53 PM
|
1
|
0
|
1449
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-11-2018 07:12 AM | |
| 1 | 05-17-2021 11:18 AM | |
| 1 | 06-29-2021 11:42 AM | |
| 1 | 07-05-2012 07:49 AM | |
| 1 | 09-03-2016 06:16 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-19-2026
11:56 AM
|