Tag Info

Hot answers tagged

3

The topic that I think you are looking for is Linear Referencing and, to perform line-on-line overlay, the tool to use is Overlay Route Events. I recommend reviewing About overlaying event data: Overlaying events is another way to create new event data. This process combines two input event tables to create a single output event table. The new ...


3

I just wanted to point out that just using if not row.Stand may yield undesired results (remember, explicit is better than implicit from the Zen of Python). Take the following example: >>> for i, sample in enumerate(['a',1,None, '', ' ', 0]): if not sample: print 'value "{}" at index {} is empty'.format(sample, i) value "None" at ...


2

import arcpy from arcpy import * env.workspace = r"C:\IND_Rivers\New\Outputs\A3\a3_03.gdb" fcList = arcpy.ListFeatureClasses() #attempts to replace feature classes with "a1" with "a6" for fc in fcList: nn = 'a6' + fc[3:] arcpy.Rename_management(fc, nn)


2

As you have specified that the line from the point can pass in/out of the polygon then I think all you need to do is extract the Envelope of the polygon. You also state in the comment above you are look for an arcpy solution and you have a Basic license level. You can get most of the way with model builder and a sneaky use of the fishnet tool to extract the ...


1

Since I used from arcpy import * (not shown), the line: cursor = InsertCursor (outFc, ["SHAPE@XY", "PGA"]) ...was calling the older version of InsertCursor. The proper code is: cursor = da.InsertCursor (outFc, ["SHAPE@XY", "PGA"]) This line calls the data access InsertCursor.


1

So it turns out the tool doesn't exist. There is a request to ESRI to create it under the ideas site. If anybody comes across this post and has a similar need it would be great if you could vote for it too.



Only top voted, non community-wiki answers of a minimum length are eligible