|
POST
|
You are creating a new feature layer, then deleting it in the next line (of course you won't see anything). If you want to delete features, make a selection, then use Delete Features.
... View more
09-12-2011
07:56 AM
|
0
|
0
|
1968
|
|
POST
|
The Intersect tool should give you all overlapping portions, remaining separate. You can think of Clip as a cookie cutter - it only cares about geometry.
... View more
09-09-2011
07:22 AM
|
0
|
0
|
751
|
|
POST
|
Intersect will give you the areas split by both territory and MSA. Union will give you the entire original area split into polygons showing territory, MSA, or both, whichever is the case. You should also check out Identity if you're interested in keeping all of the territory but only overlapping parts of MSA, or vice versa.
... View more
09-07-2011
07:39 AM
|
0
|
0
|
4710
|
|
POST
|
I think you need to use getValue and setValue to work with field names as variables (not sure though).
... View more
09-07-2011
07:27 AM
|
0
|
0
|
1116
|
|
POST
|
Inside your SearchCursor loop, you should be able to loop through each field (or limit to string fields) with ListFields to test the value against your string. I have no idea if this is the fastest method or not.
... View more
09-06-2011
02:44 PM
|
0
|
0
|
1116
|
|
POST
|
I suggest you project your original data to a new file using the Project tool, first (to an equal area projection if you're picky about high accuracy). When you calculate the area, make sure it's reporting the number in the desired units - depending on how you do it, you may be able to choose the units or it may default to the projection units (e.g. meters).
... View more
09-06-2011
01:15 PM
|
0
|
0
|
4710
|
|
POST
|
Stacy, your link points to a consistent example (the same list is being referenced by both get and set). Index 0 = input parameter Index 1 = 1st output parameter Index 2 = 2nd output parameter Index 3 = 3rd output parameter
... View more
09-02-2011
02:17 PM
|
0
|
0
|
3143
|
|
POST
|
1.) Feature Vertices to Points 2.) Add XY Coordinates 3.) Export to Excel
... View more
09-01-2011
12:19 PM
|
0
|
0
|
1022
|
|
POST
|
Better would be to Union your pads and buffered roads, then Erase that from the total. If you simply subtract the separate areas of pads and buffered roads from the total, you'll count any areas of overlap between the two twice.
... View more
09-01-2011
12:16 PM
|
0
|
0
|
855
|
|
POST
|
If you have an ArcInfo license, use the Erase tool (buffer the roads first, so they are polygons). If you don't have ArcInfo, you can Dissolve all of your roads (or pads) together into one shape and simply subtract the area number from the total area.
... View more
09-01-2011
07:37 AM
|
0
|
0
|
855
|
|
POST
|
Your problem is that you are using SelectLayerByLocation slightly wrong. The syntax is: (in_layer, {overlap_type}, {select_features}, {search_distance}, {selection_type}) The 1st parameter is the feature class from which to select features intersecting features in the 3rd parameter. Your 3rd parameter feature class was created empty with CreateFeatureClass, so there are no intersections with the 1st parameter. Make the selection (referencing the correct feature class), then output that selection with Copy Features.
... View more
08-29-2011
02:10 PM
|
0
|
0
|
1009
|
|
POST
|
"To calculate strings to text or character fields, in the dialog box the string must be double-quoted ("string"), or in scripting, the double-quoted string must also be encapsulated in single quotes ('"string"')." - from CalculateField help
... View more
08-26-2011
09:36 AM
|
0
|
0
|
1570
|
|
POST
|
I already have a layer for each district with it's addresses. Do you mean you have a point feature class, one for each address, and a column containing the district identifier? If not, intersect the district layer with the address layer to get this feature class. Then use Summary Statistics to calculate the mean (case = district field, statistic = mean on residents per household field).
... View more
08-08-2011
11:19 AM
|
0
|
0
|
758
|
|
POST
|
See this page for more examples. Codeblock:
def func(Class):
if Class == 1 OR Class == 2:
return "A15"
elif Class == 3:
return "A20"
elif Class == 4:
return "A30"
elif Class == 5:
return "A40"
Expression:
func(!theclassfield!)
*I'm not sure if the final 'elif...:' must be an 'else:' instead. I can't find any examples without an 'else:' to end the 'if...:'.
... View more
07-22-2011
07:21 AM
|
0
|
0
|
886
|
|
POST
|
There are many ways to do this (check here for an intro to lists), but I would start by making a loop to go through the list, a counter to keep track of the index position, and using the list.reverse method to flip the list. Add the current index value to the flipped index value. Edit: Correct me if I'm wrong, but in your example you're adding the first to last value, second to second-last, and so on...
... View more
07-20-2011
07:07 AM
|
0
|
0
|
3284
|
| 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
|