|
POST
|
VBScript doesn't recognize dimming as a type, so change it to: Dim result (or just don't dim it at all). Also, "Else" has to be on a new line (I assume that was a copy/paste thing).
... View more
10-18-2011
09:27 AM
|
0
|
0
|
1183
|
|
POST
|
First, it will help if you paste the code you're trying to use, especially since it's giving you a syntax error. Second, yes, it is possible to use as many if/then statements as you please.
... View more
10-18-2011
07:18 AM
|
0
|
0
|
1183
|
|
POST
|
I think you want to use Split Line at Vertices (ArcInfo required). Then, Add XY Coordinates. If you don't have ArcInfo you can use python to cycle through the vertices and write them to a new file (essentially, the opposite of this example).
... View more
10-14-2011
01:53 PM
|
0
|
0
|
1827
|
|
POST
|
ArcGIS already has a tool that does this: Feature to Point (requires ArcInfo). Like most tools, it will honor your selection (ie. make points only for those selected polygons). It doesn't automatically pop up the coordinates, however, so you'd have to code that.
... View more
10-13-2011
01:22 PM
|
0
|
0
|
2992
|
|
POST
|
If your data is fairly simple (like attached), you can use a Spatial Join. Use the tool in the toolbox, not from the ArcMap menu. Target Features = points at the middle of each cluster Join Features = count data Join Operation = JOIN_ONE_TO_ONE *** Right-click the column that holds your count data, change merge rule to SUM *** Match Option = Intersect Search Radius = 50m
... View more
10-13-2011
12:20 PM
|
0
|
0
|
4351
|
|
POST
|
Can you expand on your question? Do you want one point in the end, or literally a polygon that covers the 50m area. Also, what happens if there are 3 points in a row, each 30m apart?
... View more
10-13-2011
10:48 AM
|
0
|
0
|
4351
|
|
POST
|
Along different lines, you can do this in the field calculator. expression: func() codeblock: def func():
sum = 0
fc = "H:/GIS_Data/TEMP.gdb/points" # the path to your feature class
rows = arcpy.SearchCursor(fc)
for row in rows:
sum = row.THEFIELDTOSUM + sum # enter the fieldname in this line
return sum
... View more
10-13-2011
10:02 AM
|
0
|
0
|
5700
|
|
POST
|
I'd suggest treating this as a Least Cost Path Analysis, where travelling over land is prohibitively costly.
... View more
09-30-2011
02:06 PM
|
0
|
0
|
941
|
|
POST
|
I'm going to guess that this has to do with using a comma as the decimal point, and interpretting 0,4 as 4. Try replacing all of the commas with a period. Does your numerical column use commas?
... View more
09-21-2011
10:48 AM
|
0
|
0
|
1291
|
|
POST
|
You get the total number of characters with Len(). Len() - 7 is the number of characters to keep. Right() will keep that number of characters from the righthand side. You're not hardcoding anything except 7, the number of characters to exclude.
... View more
09-20-2011
01:15 PM
|
0
|
0
|
1449
|
|
POST
|
VBScript: use a combination of CStr (to convert your number to a string), Len (to get the total number of characters), and Right (to grab only characters at the right hand end of your string [total minus 7]).
... View more
09-20-2011
01:00 PM
|
0
|
0
|
1449
|
|
POST
|
Just FYI, you can add arrows to lines using ArcMap symbology if you dig deep enough into the properties (use a marker line symbol on top of a simple line symbol).
... View more
09-14-2011
07:59 AM
|
0
|
0
|
10128
|
|
POST
|
This counts vertices, minus 1, in the Field Calculator which should be the number of sides. Parser: Python Expression: MySub(!shape!) Codeblock: def MySub(feat):
partnum = 0
# Count the number of points in the current multipart feature
partcount = feat.partCount
pntcount = 0
# Enter while loop for each part in the feature (if a singlepart feature
# this will occur only once)
#
while partnum < partcount:
part = feat.getPart(partnum)
pnt = part.next()
# Enter while loop for each vertex
#
while pnt:
pntcount += 1
pnt = part.next()
# If pnt is null, either the part is finished or there is an
# interior ring
#
if not pnt:
pnt = part.next()
partnum += 1
pntcount = pntcount - 1
return pntcount
... View more
09-13-2011
12:18 PM
|
1
|
1
|
3708
|
|
POST
|
Should I create a feature layer, make a selection by attributes, then run delete_management or would I still need to use deletefeatures? Delete simply wipes the entire dataset, so you don't want that. If you're sure you've got the SQL right and it will select the correct features, then you should be able to run Delete Features straight on the feature class (once you've made the selection). My understanding for making the feature layer is so you're working on a copy. You can then overwrite the original feature class or save the layer to a new feature class.
... View more
09-12-2011
08:15 AM
|
0
|
0
|
1970
|
| 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
|