|
POST
|
From the help, it looks like the input list should be comma delimited for merge, not semi-colons. Am I wrong? edit: I just tried my way and it works. #Create List and Add Layers to the List
L = []
L.append(LayerName)
# Process: Merge Selected Features
arcpy.Merge_management(L, OutputFolderLocation + "\\All_Sites.shp")
... View more
06-22-2012
12:07 PM
|
0
|
0
|
1639
|
|
POST
|
Oh, I think I see. When you tried Spatial Join, did you set a search distance? That can make a big difference. Something else you could try is running Near to find the closest polygon to each point, then join them together (not sure if that would be any faster). You could also make a simplified version of your coastline polygons and try Spatial Join to that.
... View more
06-21-2012
02:43 PM
|
0
|
0
|
3812
|
|
POST
|
You can try: 1.) Trace the coast line to a polyline feature class 2.) Buffer the coast line using "LEFT" or "RIGHT" (requires ArcInfo, or Advanced, now)
... View more
06-21-2012
02:17 PM
|
0
|
0
|
3812
|
|
POST
|
I don't know if this will help, but you should delete your mxd when you're done with it: del mxd
... View more
06-21-2012
09:19 AM
|
0
|
0
|
2381
|
|
POST
|
It seems like your question is more "how to dynamically calculate the time when a point is added" rather than "how to dynamically add a point" (that's what an edit session is for). I think the best way to do it would be to write a simple ArcObjects macro that listens for an event (adding a point) and then calculates the time in the table for that point. I think you're barking up the wrong tree trying to force this in Python, which doesn't listen for events.
... View more
06-21-2012
08:48 AM
|
0
|
0
|
1725
|
|
POST
|
Why did you comment out the line: #mxd = arcpy.mapping.MapDocument(ckFolder + os.sep + mDoc)? You need a MapDocument to use findAndReplaceWorkspacePaths. The value returned from os.path.join isn't a MapDocument, it's a path to a MapDocument.
... View more
06-21-2012
08:33 AM
|
0
|
0
|
2381
|
|
POST
|
Firstly, you need to decide if you want to use VBScript or Python. You started with almost functional VBScript and have been slowly drifting into functional Python. PYTHON: In the expression box: func(!DUPLICATE!) Then, in the codeblock: def func(dup):
if dup == "0":
return "CATEGORY 1"
elif dup == "1":
return "CATEGORY 2"
VBSCRIPT: In the expression box: result Codeblock: if [DUPLICATE] = 0 then
result = "CATEGORY 1"
elseif [DUPLICATE] = 1 then
result = "CATEGORY 2"
else
result = [DUPLICATE]
end if
... View more
06-20-2012
01:10 PM
|
0
|
0
|
1753
|
|
POST
|
If you want to use floor in the field calculator, select the Python parser, and use the expression: math.floor(!Elevation!)
... View more
06-20-2012
08:02 AM
|
0
|
0
|
872
|
|
POST
|
Psst! Nobbir, you forgot the "try:" in your previous example. Ian, the only thing I can think of is that your path is wrong. Later on, there's a typo in your script ("arpy").
... View more
06-19-2012
09:52 AM
|
0
|
0
|
4276
|
|
POST
|
Is this the whole script? I don't see where you've set the workspace environment, or qqlist, or elim_path, or update_path, etc.
... View more
06-08-2012
07:20 AM
|
0
|
0
|
468
|
|
POST
|
What exactly are you using for your parameters? And, are they all entire file paths or file names (particularly "outFileName")? edit: Oh. "wsTable.basename" would give you "watershed". That's not a file path, it's a word. Either set your workspace environment first, or change it to: arcpy.Select_analysis(watershedTablePath,outFileName,whereClause)
... View more
05-29-2012
02:28 PM
|
0
|
0
|
4772
|
|
POST
|
I've also run into this with polygons with a large number of vertices, although I'm not sure if the infowindows still appeared. Try Simplify Polygon first. edit: I see folks posting elsewhere that KML has a vertex limit of about 30,000, although I ran into this problem with a feature class containing about 10,000. It worked fine after simplification.
... View more
05-28-2012
11:22 AM
|
2
|
0
|
14156
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-30-2013 02:22 PM | |
| 1 | 04-12-2011 11:19 AM | |
| 1 | 09-17-2021 09:43 AM | |
| 1 | 04-04-2012 12:05 PM | |
| 2 | 07-16-2020 11:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|