POST
|
Xander, The code edit worked!!! This helped indeed. All sectors can now be represented and created into buffer sections, regardless of if they pass due East (0/360 degree axis) Thank you for helping me understand the For loop and Point creation process to solve the problem. I think this geoprocessing is amazing, especially in regards to linear features and directions of flow or travel. This oriented buffers page seems to be the only resource out there to do something like this. This method should be added in the standard buffer tool when using vector point data. Thank you so much for your quick response!
... View more
12-13-2019
08:24 AM
|
1
|
1
|
752
|
POST
|
Sorry for such a small sample, I can send a larger one with other values in the other quadrants of the Arithmetic Planes. However, I am new to this forum and finding it not too easy to upload that here. How does one provide shapefiles or excel data sheets? Regards, ZT
... View more
12-12-2019
03:17 PM
|
0
|
3
|
752
|
POST
|
OBJECTID_1 StationID Shape_STAr Shape_STLe Angle X_Point Y_Point Plus30 Minus30 DistanceMeters 733 159 8.63835E-05 0.048079561 88.08735 1574539.163 2241287.79 118.0873451 58.08734511 32186.9 734 159 8.63835E-05 0.048079561 87.8675 1574539.163 2241287.79 117.8674966 57.86749663 32186.9 735 159 8.63835E-05 0.048079561 3.742908 1574539.163 2241287.79 33.7429079 333.7429079 32186.9 736 159 8.63835E-05 0.048079561 87.95309 1574539.163 2241287.79 117.9530876 57.9530876 32186.9 737 159 8.63835E-05 0.048079561 6.656265 1574539.163 2241287.79 36.65626485 336.6562648 32186.9 738 159 8.63835E-05 0.048079561 7.620967 1574539.163 2241287.79 37.62096675 337.6209667 32186.9 739 159 8.63835E-05 0.048079561 357.6368 1574539.163 2241287.79 27.63680285 327.6368028 32186.9 740 159 8.63835E-05 0.048079561 359.3138 1574539.163 2241287.79 29.31379995 329.3138 32186.9 741 160 1.36592E-05 0.015307084 19.55481 1623294.907 2247645.701 49.55480509 349.5548051 32186.9 Here is a small sample that I have ran with your code. The spatial reference is: You can make those points an XY event layer and then run your script as is. (changing the field names of course). I use plus30 and minus30 columns as my begin and end angles (that should be 30 +/- from the 'Angle' Column). The distance is in meters (20 miles). Three of the oriented buffers appear when I run that data, as referenced below, While the seven others fall within a range of angles that cross the 0/360 degree line.
... View more
12-12-2019
03:04 PM
|
0
|
0
|
750
|
POST
|
Xander, I have found that this code does not produce oriented sectors of the buffer when the angles cross the 0/360 degrees axis (due East). Do you have any idea why? Example: If I have Angles 5 and 335 with a distance of 20 miles, no buffer is created, and I have found this to be true of 830+ of 4,500 records. I am trying to use 60 degree segments, so anything in between the ranges from 59 - 359 degrees & 301 - 1 degrees does not compute in the above script. Instead the shape length and Area of the polygon is returned as 0. Is the issue stemming from an exception needes in the "For bearing In range" function and parameters? I'm running ArcMap 10.4 If you can see this still, Thank you. -ZT
... View more
12-12-2019
01:45 PM
|
0
|
6
|
750
|
Title | Kudos | Posted |
---|---|---|
1 | 12-13-2019 08:24 AM |
Online Status |
Offline
|
Date Last Visited |
10-09-2023
03:18 PM
|