|
POST
|
In python you need to use strftime() from the datetime module to format date fields as a string. See this for a handy how-to.
... View more
09-13-2021
09:06 AM
|
1
|
1
|
5425
|
|
POST
|
If you google 'ESRI Error 000597', you get this return. Check the data you are appending for null values in fields where the target data does not allow null values.
... View more
09-13-2021
07:01 AM
|
0
|
2
|
2252
|
|
POST
|
How many more columns are appended to the table with the join? And are you really using shapefiles? Is there a particular reason you cannot use a relationship class rather than a permenant join?
... View more
09-12-2021
11:08 AM
|
1
|
0
|
1814
|
|
POST
|
As I've said before, the G in GIS isn't Google... Is 65 meters an issue for you? I mean do you need better precision than that? If so perhaps you need to consider a different work flow for your conversions. Remember too that various projections and spatial references may and often times do use different datums. Consequently, a conversion may induce 'error'. @MelitaKennedy
... View more
09-10-2021
11:05 AM
|
1
|
1
|
2490
|
|
POST
|
You aren't the only one; if you search on something like 'special characters' in the python space, you'll see I am your compadre in pain. The problem with allowing special characters in a database is they may be great for the those entering/creating the data but they suck for those of use who actually use the data. As you've probably discovered, once you filter out for one special character, there are a dozen more that pop up. Can you provide some of the data that it's choking on? Even just in the form of a csv. Maybe another set of eyes is all you need. EDITED MOMENTS LATER.... I just noticed in lines 9 & 10 you haven't used arcpy.makeFeatureLayer prior to your selections. I wonder if that might be you problem.
... View more
09-10-2021
07:32 AM
|
0
|
4
|
5286
|
|
POST
|
You’re killing me, Patterson! The OP is wondering ‘Who are these guys and why can’t I get straight answer out of them?’
... View more
09-09-2021
05:30 PM
|
1
|
0
|
4049
|
|
POST
|
@DanPatterson - python 2.7 continues to be patched with security updates... Even if 2.7 got patched, would that not require a new install of the patched version? And how does anyone know when it's been patched? And what has been patched patched? Having said that, dump arcmap, there is no reason to keep it going since people have had since 2015 to adapt to the newer technology. Couldn't agree more!
... View more
09-09-2021
03:50 PM
|
0
|
2
|
4058
|
|
POST
|
09-09-2021
03:25 PM
|
4
|
0
|
4069
|
|
POST
|
I used weave Perl into AMLs. Pretty cool, back then. But ArcGIS Pro and Python 3.x is my story now, and I'm stickin' to it!
... View more
09-09-2021
03:09 PM
|
1
|
0
|
4075
|
|
POST
|
How are you to continue to use ArcMap with a security risk that there doesn't seems to be a fix for. That's a great question! The short answer is something along the lines of; you don't. The security risk is always going to be a problem, and if you think about, it's been there for years. Python 2.x is old school as opposed to the later 3.x releases and has limited shelf life at best. My agency abandoned ArcMap/ArcCatalog a couple years ago. I don't miss it at all.
... View more
09-09-2021
02:07 PM
|
0
|
1
|
4101
|
|
POST
|
@ABishop I'm glad it worked out for you! I'm no genius, and in fact much of my python 'training' has come from this forum. You'll start to get the hang of things as you encounter other problems to solve. I very much like python and use it everyday. Don't be afraid to explore the web with a google phrase like 'xyz python' or 'python xyz' There are tons of resources out there for you. And of course, you can ask questions here!
... View more
09-09-2021
10:48 AM
|
1
|
1
|
2427
|
|
POST
|
@ABishop Exiting/quitting etc in python can be a little weird. I don't get that message when I run the exit() method in Spyder, but I do in what you seem to be using, IDLE. You may want to check the other options available to you in that link I posted earlier. I just tried this in an idle window and don't get the prompt: import sys
for i in range(0,10):
if i == 5:
sys.exit()
... View more
09-09-2021
10:34 AM
|
1
|
4
|
7121
|
|
POST
|
@ABishop something to try in your console just to see how and if /elif block works with a counter, and exit(): import time
counter = 0
for i in range(0,10):
counter += 1
if counter < 5:
time.sleep(1)
print(counter)
elif counter == 5:
print(f'Counter is at {counter} You know what that means! See you later, alligator!')
time.sleep(5)
exit()
... View more
09-09-2021
09:16 AM
|
0
|
0
|
2438
|
|
POST
|
I may have lead you astray. At line 29, use the exit() method like this: if blah blah blah:
exit() More reading for you.
... View more
09-09-2021
09:01 AM
|
1
|
6
|
3727
|
| 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 |
yesterday
|