|
POST
|
It will treat the coordinates in your points as being in that spatial reference, and then reproject them to the spatial reference of the feature class when it inserts them.
... View more
06-28-2012
12:21 PM
|
0
|
0
|
1080
|
|
POST
|
SearchCursors will let you set a spatial reference, you can insert points at a different spatial ref than what the feature class is set to.
... View more
06-28-2012
11:08 AM
|
0
|
0
|
1080
|
|
POST
|
Set arcpy.env.addOutputsToMap to False at the beginning, then back to True when you're done.
... View more
06-27-2012
01:36 PM
|
1
|
0
|
1375
|
|
POST
|
Need to split into multiple lines probably? Also you don't need the "from arcpy import env" line import arcpy
from arcpy import env
arcpy.CreatePersonalGDB_management("C:/output", "pGDB.mdb", "9.2")
... View more
06-27-2012
10:49 AM
|
0
|
0
|
672
|
|
POST
|
It's correct. Still using the old product names to maintain backwards compatibility.
... View more
06-26-2012
09:11 AM
|
0
|
0
|
300
|
|
POST
|
Just do row = None at the beginning (after your rows= line), then del row will always succeed.
... View more
06-25-2012
03:26 PM
|
0
|
0
|
2747
|
|
POST
|
For a very, very long time. Arcpy is built on it, and we don't really want to ever break backward compatibility with your scripts.
... View more
06-23-2012
02:27 PM
|
0
|
0
|
566
|
|
POST
|
arcpy.Merge_management(";".join(L), OutputFolderLocation + "\\All_Sites.shp")
... View more
06-22-2012
12:03 PM
|
0
|
0
|
1100
|
|
POST
|
Right click on the result in the results window and copy as Python snippet.
... View more
06-22-2012
12:02 PM
|
0
|
0
|
927
|
|
POST
|
In the Field Calc, need to do !DUPLICATE! and not [DUPLICATE] in Python.
... View more
06-20-2012
10:23 AM
|
0
|
0
|
1178
|
|
POST
|
Rather than Install.businesslogic, does import businesslogic work? It should. If not, try sys.path.append(os.path.dirname(__file__)) before your import thought I thought I made relative imports work.
... View more
06-19-2012
01:14 PM
|
0
|
0
|
574
|
|
POST
|
Need to add the lists together, otherwise it's nested lists in lists and that's not acceptable input. fieldList = ['SOL1', 'SOL2', 'SOL3', 'SOL4', 'SOL5', 'SOL6', 'SOL7', 'SOL8', 'SOL9', 'SOL10', 'SOL11', 'SOL12', 'DUR1', 'DUR2', 'DUR3', 'DUR4', 'DUR5', 'DUR6', 'DUR7', 'DUR8', 'DUR9', 'DUR10', 'DUR11', 'DUR12'] fc = r'C:\gis\solarTESTING\default.gdb\points' with arcpy.da.InsertCursor(fc,['SHAPE@XY'] + fieldList) as c: for k,v in allData.iteritems(): row = + v c.insertRow(row)
... View more
06-18-2012
03:10 PM
|
0
|
0
|
2539
|
|
POST
|
This isn't supported from ArcMap directly, the way for Python to interact with the user in the desktop environment is through GP tool dialogs. That is, write it as a script tool with the report name as a parameter.
... View more
06-08-2012
01:38 PM
|
1
|
0
|
7152
|
|
POST
|
Long story short: it matters a whole lot less than you think it does. os.chdir() and os.getcwd() manage the working directory of the process and therefore of builtin functions like open(), env.workspace does not. That is the only difference. It's not a matter of better style, it's a matter of what behavior you need to do what you need to do. getcwd works in standalone scripts that aren't necessarily script tools or ArcGIS related, env.workspace is ArcGIS Geoprocessing specific.
... View more
06-08-2012
11:25 AM
|
2
|
0
|
2282
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-26-2012 02:46 AM | |
| 2 | 01-06-2011 08:22 AM | |
| 1 | 03-25-2014 12:18 PM | |
| 1 | 08-12-2014 09:36 AM | |
| 1 | 03-31-2010 08:56 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|