|
POST
|
Ah yes small typo, rhett is right, should be %m for month. Though date formats are always year_month_day.
... View more
06-03-2013
05:10 AM
|
0
|
0
|
1674
|
|
POST
|
I usually do something like this. stamp = datetime.datetime.now().strftime("%Y_%M_%d_%H%M%S")
... View more
05-30-2013
07:13 AM
|
0
|
0
|
1674
|
|
POST
|
Are you trying to overwrite the existing output file or skip over that iteration of your loop if it already exists?
... View more
05-28-2013
01:16 PM
|
0
|
0
|
4320
|
|
POST
|
A simple "if not" statement would work, try posting the code you are running for more detailed help.
... View more
05-28-2013
11:34 AM
|
0
|
0
|
4320
|
|
POST
|
Do you have a compatible ArcPad extension installed? Edit: You may have to manually import the toolbox. Eg for ArcPad 10.0 with ArcGIS 10.x arcpad_box_path = r'C:\Program Files (x86)\ArcGIS\ArcPad10.0\DesktopTools10\ArcPad Tools.tbx'
arcpy.ImportToolbox(arcpad_box_path)
help("arcpy.ArcPadCheckin_ArcPad")
... View more
05-27-2013
10:47 AM
|
0
|
0
|
1213
|
|
POST
|
The model builder export to python is just a tool to help convert a model to a script, it is not a perfect conversion and requires modifications to work after the conversion. Also if you want help with your script you should post your script not just the error you receive.
... View more
05-22-2013
06:03 AM
|
0
|
0
|
796
|
|
POST
|
I believe you have to save the layer file to make the changes permanent.
... View more
05-08-2013
09:02 AM
|
0
|
0
|
2983
|
|
POST
|
Currently the arcpy.mapping module contains no where near the functionality you can achieve with ArcObjects. There is no way I know of to create a new text element using arcpy.mapping. You can take an existing element and change the size, position, text, etc.
... View more
05-08-2013
07:11 AM
|
0
|
0
|
3171
|
|
POST
|
You could try str() for your print messages though that shouldn't be an issue. Do you get this for any record in your dict or does it only pop up after a while?
... View more
05-02-2013
07:49 AM
|
0
|
0
|
2442
|
|
POST
|
Can you print out a line of your dict showing the key and values?
... View more
05-02-2013
07:32 AM
|
0
|
0
|
2442
|
|
POST
|
Not sure why you are getting that issue. It may be a case of nulls coming across as an empty string. You can get around this by simply adding int() around each argument when you make your calculations. You could alternatively use float() if there are decimal numbers. updateRow[1] = int(updateRow[1]) + int(joinDict[joinFieldValue][0])
... View more
05-02-2013
06:56 AM
|
0
|
0
|
2442
|
|
POST
|
Would I make 2 dictionaries from 2 SearchCursors? One on the update data and a second on the joined data? I would only look at creating a dictionary of your reference data. You can then cursor through your table you want to update referencing the key in your dictionary with the join field to access the dictionary value. If you don't have much experience with dictionaries I'm sure it is very confusing, but once you try it out they are quite simple.
... View more
05-01-2013
08:54 AM
|
0
|
0
|
6482
|
|
POST
|
I've had nothing but problems trying to update fields in a joined table. I would recommend reading this post and examining the attached scripts for ideas on how to get around these issues. http://forums.arcgis.com/threads/71572-Using-Python-Dictionaries-with-Update-Cursors-instead-of-quot-Join-and-Calculate-quot I also have a post from a while back using similar methodology in a more specific case example. http://forums.arcgis.com/threads/55099-Update-cursor-with-joined-tables-work-around-w-dictionaries
... View more
05-01-2013
06:24 AM
|
0
|
0
|
6482
|
|
POST
|
If you watch the process and related threads does it get over 2GB? Do you have any AV program running?
... View more
05-01-2013
05:45 AM
|
0
|
0
|
2748
|
|
POST
|
Since you are going through a cursor anyway you can just get the extent of the row shape object instead of using a selection. Unless there is some particular reason you need to select it. I'm also assuming your selections are unique to each row since you call them CONN_OBJ_ID_NUM. for row in cursor:
df.extent = row.Shape.extent
... View more
04-30-2013
06:56 AM
|
0
|
0
|
2748
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2011 10:36 AM | |
| 1 | 08-16-2012 10:48 AM | |
| 1 | 10-31-2012 08:39 AM | |
| 1 | 07-16-2012 01:52 PM | |
| 1 | 03-15-2012 10:57 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-22-2024
11:12 PM
|