|
POST
|
Have you tried Dissolve? It sounds like you're describing the line example on the help page.
... View more
09-02-2014
02:34 PM
|
1
|
0
|
978
|
|
POST
|
Not sure if this works in all cases, but using your intersection points as both the target and join features (Spatial Join) should result in all combinations of coincident points, including self-intersections, plus all attributes of both (including the original FID of each). So, for each pair of intersecting points (A and B), you have: A | A A | B B | A B | B You are interested in either A | B or B | A, so either select all points where A(FID) > B{FID) or B(FID) > A(FID), and delete the rest.
... View more
09-02-2014
01:24 PM
|
1
|
2
|
1821
|
|
POST
|
Your image shows that the parser is set to VB Script, which means it is expecting to read VB Script. Since you've written Python, change the parser to Python. Also, you need to indent everything under the def statement.
... View more
09-02-2014
10:29 AM
|
0
|
0
|
1179
|
|
POST
|
Are you sure the points intersect your cost raster? For example, if the points are even one pixel outside the raster (or on NoData), it won't draw those lines.
... View more
09-02-2014
10:02 AM
|
0
|
1
|
1048
|
|
POST
|
If you are starting a new project and are proficient in ArcObjects, then, agreed, pure ArcObjects would be better. For me, it was worth the effort to figure it out, since I had a functional Python script that needed one small piece of added interaction that Arcpy could not afford (particularly, adding guides to the map).
... View more
09-02-2014
09:14 AM
|
2
|
0
|
1808
|
|
POST
|
I recently had to venture outside Arcpy functionality by adding guides to a map document, finally achieved by using the comtypes library (downloaded from Sourceforge here). I followed the instructions from a 2010 presentation by Mark Cederholm (here). I'm curious, is this the current way to incorporate fine-scale (i.e. ArcObjects) control through Python?
... View more
08-31-2014
04:45 PM
|
0
|
3
|
6988
|
|
POST
|
Using Python, you can use a combination of os.walk (to traverse directory tree) and arcpy.ListFeatureClasses (to list feature classes). Windows Explorer search won't include file geodatabase feature classes.
... View more
08-29-2014
01:44 PM
|
3
|
2
|
1864
|
|
POST
|
Thanks, Riyas. That is approximately what I came up with, although your code did spur some new refinements. I was hoping to find a secret corner of arcpy that I'd been missing (with functions I've been without), but it sounds like it may not exist. Thanks again.
... View more
08-28-2014
10:07 PM
|
0
|
0
|
1164
|
|
POST
|
Is there an arcpy function that reports page coordinates (on the layout) for map features (in a dataframe)? (Not looking for the way to derive this manually)
... View more
08-28-2014
12:51 PM
|
0
|
2
|
1823
|
|
POST
|
You can improve performance by using the cursors in the data access module. So, arcpy.da.SearchCursor rather than arcpy.SearchCursor, and arcpy.da.InsertCursor rather than arcpy.InsertCursor.
... View more
08-28-2014
12:44 PM
|
0
|
2
|
1758
|
|
POST
|
It depends on your definition of "extent". If you mean the encompassing rectangle around the entire feature class, you can Describe the Dataset to get the extent (see the example here). If you just want the overlapping features, use Intersect.
... View more
08-28-2014
10:53 AM
|
1
|
4
|
2493
|
|
POST
|
Is the table showing only the selected records? If none are selected, the table appears blank.
... View more
08-28-2014
10:37 AM
|
0
|
1
|
651
|
|
POST
|
Here is how to create a new point at exact coordinates: ArcGIS Help (10.2, 10.2.1, and 10.2.2) Here is how to move an existing point to exact coordinates: ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
08-27-2014
02:54 PM
|
1
|
0
|
2425
|
|
POST
|
Do you mean something like this doesn't work, or something else entirely? C01 = Con("M0","M0","","VALUE == " + str(fb)) As always, please post your script so we can better see what you're talking about.
... View more
08-27-2014
10:38 AM
|
0
|
1
|
2639
|
| 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
|