|
POST
|
So your last value is a numeric value and when you add a new feature, you want that field to be last value + 1. Is that correct? If so, my suggestion is to use a data base sequence and start your sequence with the highest current value. You can then add a rule to return the next value of the the sequence.
... View more
03-12-2021
02:29 PM
|
0
|
1
|
3651
|
|
POST
|
I assume you are doing this is either ArcCatalog or a Catalog Pane or View in Pro? I really don't know why that wouldn't work for you.
... View more
03-11-2021
07:57 AM
|
0
|
1
|
8225
|
|
POST
|
Take a look at: https://communitymaps.arcgis.com/ https://www.arcgis.com/apps/Cascade/index.html?appid=eac9ce6e02de472498a49cb4a17d7eca https://communitymaps.arcgis.com/CMContributorApp/index.html etc etc etc.... @Anonymous User
... View more
03-11-2021
06:49 AM
|
0
|
0
|
2776
|
|
POST
|
Rats; thought did it, but didn't. When I right click on Standalone Tables it gives me the choice to reorder layers and that's what it does, but not tables....
... View more
03-10-2021
11:48 AM
|
0
|
2
|
3659
|
|
POST
|
Using ArcGIS Pro 2.7: Is there a way to sort the items in the contents pane alphabetically? I have a stack of tables I'd like to order that way:
... View more
03-10-2021
08:43 AM
|
4
|
7
|
3685
|
|
POST
|
D'une manière ou d'une autre, il s'est corrigé! Merci!
... View more
03-09-2021
12:14 PM
|
0
|
0
|
3066
|
|
POST
|
I searched the computer c drive for *.stylx and found nothing: I searched the directory where all the project files are stored, and didn't find an *.stylx there either. Nothing in favorites. But check this out: I just opened a new project (without any aprx template) and added the points. Now they are behaving correctly. I also opened an existing project, added a map and then the feature class. It works as expected as well. Go figure!
... View more
03-09-2021
12:11 PM
|
0
|
1
|
3068
|
|
POST
|
ArcGIS Pro 2.7 I have an aprx that I use often and it has a feature template: it's the ESRI Address data management solution so the template/symbology for site address points looks like this: The data is housed in an Enterprise Geodatabase (aka SDE). I was working in a project file that initially was set up with the symbology shown above and I modified it for a map I needed to make. I thought I closed the project with out saving any changes. However, now when I add that feature class to a new aprx, or even a map pane in an existing one the are symbolized with what I had used in that one project: I don't understand where this is coming from. Prior to this little mishap, I could add the point feature classs to a new project and a default, single symbol would be automagically used. How do I get that to be the case once again? Oh... Yes, I've tried shutting down Pro and have even shutdown the computer it's running on. I've also gone into Options / Display and Cleared the Local Cache.
... View more
03-09-2021
11:05 AM
|
0
|
8
|
3123
|
|
POST
|
You'll want to get familiar with the os module in python, and especially the os.listdir() method. Once you get a list of the file names, you can iterate through that list and apply the code I provided above upon each iteration. Finally you'll want to rename your .txt files to .csv files. You have a couple options here; you can follow the code above that edits the contents of the .txt files and then using the os module re-name them, or you edit those files and write the edits to a different file. This page is worthy of a bookmark for how to open, read, write, append etc files. You may want to copy a few of your files and work on them to iron out the kinks before you tackle all one hundred. I've purposely left out specific code here, as well as provided a number of different online Python resources for you as I'm a firm believer in the 'Teach a man to fish' philosophy. And speaking of which, it's Saturday, and the temperatures are expected to be near 60 here in Utah, which means there is a good chance of a midge hatch on local rivers. I'm going to take advantage of that and pull my waders and tie on a Griffiths Gnat with some sort of Midge emerger as a dropper....
... View more
03-06-2021
06:56 AM
|
0
|
0
|
673
|
|
POST
|
You won't use arcpy as it is nothing more than a python module but you can use the re (regular expression) module to do it: import re
myFile = r'C:\temp\Coords.txt'
with open(myFile,'r+') as f:
text = f.read()
text = re.sub(' ',',',text)
f.seek(0)
f.write(text)
f.truncate()
f.close() Assuming you have the file C:\temp\Coords.txt that looks like this: -111.45 40.57
-112.05 40.06 I stole this right from https://www.kite.com/python/answers/how-to-update-and-replace-text-in-a-file-in-python
... View more
03-05-2021
08:36 AM
|
0
|
1
|
5413
|
|
POST
|
Try this? Office(!Location_IDs!,!LOC_CODE!)
def Office(Location_IDs,LOC_CODE):
if (Location_IDs>= -1):
return ""
else:
return LOC_CODE hahaha: @DavidPike beat me by a few seconds!
... View more
03-05-2021
07:13 AM
|
3
|
1
|
1894
|
| 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
|