|
POST
|
Have you looked into the following? Collector for ArcGIS | ArcGIS https://survey123.arcgis.com/help
... View more
12-29-2016
01:42 PM
|
1
|
5
|
1721
|
|
POST
|
Do the labels appear if you select "Never remove (place overlapping)" under Conflict Resolution in Placement Properties? Also, try viewing unplaced labels via the Labeling toolbar to get an idea if the labels are there and not displaying, or not there at all:
... View more
12-21-2016
02:26 PM
|
2
|
0
|
2768
|
|
POST
|
So, you get the 200' buffer with: params.distances = [60.96]; ?
... View more
12-21-2016
01:48 PM
|
0
|
4
|
1429
|
|
POST
|
Can you expand on what it means to be "placed in arbitrary rotated positions based on their placement on the ground"?
... View more
12-20-2016
10:54 AM
|
0
|
0
|
1650
|
|
POST
|
You'll probably have to do some tweaking to fit your exact needs, but here is generally how you can cycle through points, make buffers, intersect with a quadrant polygon, and return only the wedge shape. Table format: Script: >>> fc = "storm_points" # points feature class
... sr = arcpy.Describe(fc).spatialReference # points spatial reference
... out_buffs = [] # placeholder for wedges
... max = 100000 # distance larger than the maximum wedge
... with arcpy.da.SearchCursor(fc,['SHAPE@','NE_50','SE_50','SW_50','NW_50','NE_34','SE_34','SW_34','NW_34'], spatial_reference=sr) as cursor: # loop through points
... for row in cursor:
... cur = row[0].centroid # convert point geometry to point object
... up = arcpy.Point(cur.X,cur.Y+max) # make points from which to make boxes later
... upright = arcpy.Point(cur.X+max,cur.Y+max)
... right = arcpy.Point(cur.X+max,cur.Y)
... downright = arcpy.Point(cur.X+max,cur.Y-max)
... down = arcpy.Point(cur.X,cur.Y-max)
... downleft = arcpy.Point(cur.X-max,cur.Y-max)
... left = arcpy.Point(cur.X-max,cur.Y)
... upleft = arcpy.Point(cur.X-max,cur.Y+max)
... boxes = {'NE':arcpy.Polygon(arcpy.Array([[cur,up,upright,right]]),sr),
... 'SE':arcpy.Polygon(arcpy.Array([[cur,right,downright,down]]),sr),
... 'SW':arcpy.Polygon(arcpy.Array([[cur,down,downleft,left]]),sr),
... 'NW':arcpy.Polygon(arcpy.Array([[cur,left,upleft,up]]),sr)} # make boxes
... for field in cursor.fields[1:]: # loop through the fields following the point geometry field
... cur_buff = row[0].buffer(row[cursor.fields.index(field)]) # make a buffer
... clip_buff = boxes[field[:2]].intersect(cur_buff,4) # clip the buffer by the corresponding box
... out_buffs.append(clip_buff) # record the wedge
... arcpy.CopyFeatures_management(out_buffs,r'in_memory\out_buffs') # write the wedges Result:
... View more
12-19-2016
04:28 PM
|
4
|
11
|
3692
|
|
POST
|
Just slightly different syntax: arcpy.CalculateField_management(MULTIs, "G", "!SUM_Green! if !SUM_Green! >= 1 else 0", "PYTHON_9.3","")
... View more
12-12-2016
10:17 AM
|
1
|
2
|
1360
|
|
POST
|
Try 'print fclist'. It looks like there's nothing there. Also, there's something fishy going on. You should get an error at 'env.workspace' since you haven't imported env.
... View more
12-09-2016
02:33 PM
|
0
|
2
|
3437
|
|
POST
|
Unless the buildings are obviously spread out (i.e. distinct clusters of points), there may not be a way to automatically connect the dots. You could try running Points to Line which may connect most of the points if they are stored in order. If they do turn out to be in order, and each building has exactly 4 corners, you may be able to script the rectangles in Python (although there is some question whether the points are guaranteed to be read in order).
... View more
12-09-2016
10:45 AM
|
1
|
0
|
2220
|
|
POST
|
Do the points have an attribute that ties together the points of a specific building? For example, all corners of first building have value 1, points from second building have value 2, etc.
... View more
12-09-2016
10:05 AM
|
1
|
5
|
2220
|
|
POST
|
Look at the Python examples in: ListLayers—Help | ArcGIS Desktop Select—Help | ArcGIS Desktop
... View more
12-09-2016
09:04 AM
|
2
|
1
|
5627
|
|
POST
|
I suppose rather than calling write within the loop, build your master string (using +=) within the loop and then call write once outside.
... View more
12-06-2016
11:56 AM
|
0
|
1
|
3199
|
|
POST
|
I agree that it is inconsistent when you require a spatial reference and when it will let you get away without one, but I've decided that it's worth it to just include a spatial reference every time you a.) create a geometry object, and b.) create a Search or Update cursor.
... View more
12-05-2016
02:17 PM
|
1
|
0
|
5111
|
|
POST
|
I think you've already got your list in the format below, just use ';'.join(list) to insert semi-colons in between list items and return the string: >>> my_list = ['field1a field1b','field2a field2b','field3a field3b','field4a field4b']
... delimited_list = ';'.join(my_list)
... print delimited_list
...
field1a field1b;field2a field2b;field3a field3b;field4a field4b
... View more
12-05-2016
01:15 PM
|
1
|
1
|
1301
|
|
POST
|
Try specifying the spatial reference when you create your polygon: polygon = arcpy.Polygon(array,spatialref)
... View more
12-05-2016
11:53 AM
|
3
|
2
|
5111
|
|
POST
|
You could use Generate Near Table to calculate the 2d distances ('c' below), then Spatial Join to transfer start/end height attribute (difference is 'd' below), then calculate the 3d distance to a new field ('e' below).
... View more
12-05-2016
11:11 AM
|
1
|
14
|
4928
|
| 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
|