|
POST
|
No definition queries, but the GDB is a decent size. I also realized I was checking out a few feature classes (including a large related table) that I do not typically include. The script did complete in the Desktop python window but it took 52 minutes. I'm currently trying again on a small GDB but it's still taking longer than it should.
... View more
06-09-2016
10:03 AM
|
0
|
0
|
1711
|
|
POST
|
Ahhh gotcha, thank you. It was a reading comprehension fail on my part. I see what you're recommending now, and I found the blog post so it all makes sense. The blog post, for those who are curious Filenames and file paths in Python
... View more
06-09-2016
09:34 AM
|
0
|
0
|
1711
|
|
POST
|
Thanks, I'll give it a try., but I don't think it's hung (the checkout gdb was semi-populated, so there was still "work" to be done when I cancelled). I'm currently trying to run it through the window in ArcMap but it's taking equally as long. Why use raw file names? The final goal is to loop through several versions and create checkouts for each, so I'd have to use variables in my paths at that point.
... View more
06-09-2016
09:01 AM
|
0
|
2
|
1711
|
|
POST
|
I'm a bit new to python, but I decided to script out a workflow that I complete often (create checkout replicas). This is my first try at it, based on the sample script in CreateReplica_management help. I ran the script via PythonWin to test but I've cancelled it after > 1 hour run time. This would take <1 minute if I ran through the wizard in ArcMap. Any ideas/pointers? # Description: Create a checkout to a file GDB
# Import system modules
import arcpy
from arcpy import env
#get list of versions that will be checked out
version_list = "RLB"
#specify the checkout number for version & GDB naming
checkout_number = 1
#specify folder ocation and file name for checkout
working_folder = "D:\RLB\Python\CheckoutScript"
working_file = "TestCO_%s_v%s.gdb" % (version_list, checkout_number)
# Set workspace
env.workspace = "D:\RLB\Python\CheckoutScript\Water_D1_version%s.sde" % (version_list)
# Set local variables
in_data = ["Water_Network", "Water_Features"] # feature datasets
replica_type = "CHECK_OUT"
output_workspace = "%s\%s" % (working_folder, working_file)
replica_name = "MyReplica_%s_v%s" % (version_list, checkout_number)
access_type = "FULL"
initial_sender = "PARENT_DATA_SENDER"
expand = "USE_DEFAULTS"
reuse_schema = "DO_NOT_REUSE"
get_related = "GET_RELATED"
replica_geometry = ""
archiving = "DO_NOT_USE_ARCHIVING"
#create the empty GDB for checkout
arcpy.CreateFileGDB_management(working_folder, working_file)
# Execute CreateReplica
arcpy.CreateReplica_management(in_data, replica_type, output_workspace, replica_name, access_type, \
initial_sender, expand, reuse_schema, get_related, replica_geometry, archiving)
... View more
06-09-2016
08:29 AM
|
0
|
6
|
4370
|
|
POST
|
Thanks for mentioning this. I had found the documentation page you linked above, and I wondered why there wasn't a reference to .FormatDate() How would you grade arcpy documentation overall? While I'm learning more and more about python I anticipate some head scratching along the way, which is of course minimized by good documentation. However, I didn't anticipate struggling so much to find this particular solution, after all finding DatePart('yyyy',[DateField]) is so much easier. I'm interested to hear the opinion of someone experienced.
... View more
06-03-2016
12:02 PM
|
0
|
1
|
7882
|
|
POST
|
Thanks! Looks like dateutil has a lot of useful functions, which I'm sure will be helpful as I learn more python and tackle more complex problems.
... View more
06-03-2016
07:05 AM
|
0
|
0
|
2199
|
|
POST
|
Thanks, not sure why this was impossible to find (I searched and searched....).
... View more
06-03-2016
07:02 AM
|
0
|
0
|
7882
|
|
POST
|
I have dates (in a date field) of mixed formatting (1/21/2006 4:19:20 AM, 12/27/2007, etc.). I need to populate an integer field with just the year. Based on this thread I'm trying to work my way through it but I can't get it figured out d = datetime.datetime.strptime(!InstallDate!, "%d/%m/%Y")
justyr = datetime.datetime(d.year) Any help would be appreciated!
... View more
06-03-2016
06:15 AM
|
1
|
14
|
15695
|
|
POST
|
What version of ArcPad are you using? I cannot get the XYZ Applet to work on 10.2, I tried on multiple devices. I'm trying to use quick fields also, but that is coming up short because help provides limited information on the syntax. I also don't like the idea of something that can be turned off.
... View more
05-05-2016
07:44 AM
|
0
|
0
|
4630
|
|
POST
|
Collector is also available for Windows 10 if you weren't already aware.
... View more
03-17-2016
06:09 AM
|
1
|
0
|
2468
|
|
POST
|
Joe, Thanks for the suggestion, I did find this beta yesterday and I started testing it on my personal device last night. Seems fairly solid so far. This will definitely be a consideration. Thanks, Rob
... View more
10-29-2015
05:09 AM
|
0
|
0
|
2305
|
|
POST
|
Does anyone have updated input on this topic? I'm looking for a ruggedized tablet but most that I see are cost-prohibitive and running older (4.2x) versions of android. As we begin moving to 5.x and 6.x as the dominant versions I think it's wise to be weary of a small manufacturer who will not likely offer OS updates. Does anyone have insight on deploying a more "mainstream" tablet (galaxy, nexus, etc.) with a rugged case like an otterbox?
... View more
10-28-2015
07:01 AM
|
0
|
2
|
2305
|
|
POST
|
This is INTENDED behavior? Ridiculous! Why? What is the intention on the development side?
... View more
10-16-2015
06:47 AM
|
1
|
1
|
3777
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 3 | 2 weeks ago | |
| 1 | 03-20-2026 04:14 AM | |
| 1 | 07-01-2025 05:11 AM | |
| 1 | 06-13-2022 11:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|