Hi everyone,
I've some set of points which I'm joining to make a line. Refer the Picture below.
The problem I'm facing is there are no points(elevation points) on the polygon (River Bank). Is there any way of extending the line to the polygon?
At present m using Extend line to layer, but it taking too much of time and inconsistent in the lines. Refer the Picture below.
I just downloaded the sample data, and ran my code from the Draw a Line to the nearest Polygon thread, and it ran without any errors and did exactly what you wanted. I did have to increase the dist value since you are using State Plane, and the gaps between the lines and river banks are greater than 100 feet.
Here is the code that worked for me, using your 2 shape files (load the shape files into ArcMap first and run from interactive Python window):
<SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> <SPAN class="keyword token">import</SPAN> math <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> dist <SPAN class="operator token">=</SPAN> <SPAN class="number token">500</SPAN> <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> fc_line <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Pointoline"</SPAN> <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> fc_poly <SPAN class="operator token">=</SPAN> <SPAN class="string token">"RB_23"</SPAN> <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> <SPAN class="keyword token">with</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>SearchCursor<SPAN class="punctuation token">(</SPAN>fc_poly<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"SHAPE@"</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> scur<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="keyword token">for</SPAN> poly<SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">in</SPAN> scur<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> boundary <SPAN class="operator token">=</SPAN> poly<SPAN class="punctuation token">.</SPAN>boundary<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>SelectLayerByLocation_management<SPAN class="punctuation token">(</SPAN>fc_line<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"WITHIN"</SPAN><SPAN class="punctuation token">,</SPAN> poly<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="keyword token">with</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>UpdateCursor<SPAN class="punctuation token">(</SPAN>fc_line<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"SHAPE@"</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> ucur<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="keyword token">for</SPAN> line<SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">in</SPAN> ucur<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> arr<SPAN class="punctuation token">,</SPAN> <SPAN class="operator token">=</SPAN> line<SPAN class="punctuation token">.</SPAN>getPart<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> SR <SPAN class="operator token">=</SPAN> line<SPAN class="punctuation token">.</SPAN>spatialReference <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> p1<SPAN class="punctuation token">,</SPAN> p2 <SPAN class="operator token">=</SPAN> arr<SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">2</SPAN><SPAN class="punctuation token">]</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> angle <SPAN class="operator token">=</SPAN> math<SPAN class="punctuation token">.</SPAN>atan2<SPAN class="punctuation token">(</SPAN>p2<SPAN class="punctuation token">.</SPAN>Y <SPAN class="operator token">-</SPAN> p1<SPAN class="punctuation token">.</SPAN>Y<SPAN class="punctuation token">,</SPAN> p2<SPAN class="punctuation token">.</SPAN>X <SPAN class="operator token">-</SPAN> p1<SPAN class="punctuation token">.</SPAN>X<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> p <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Point<SPAN class="punctuation token">(</SPAN>p1<SPAN class="punctuation token">.</SPAN>X <SPAN class="operator token">-</SPAN> dist <SPAN class="operator token">*</SPAN> math<SPAN class="punctuation token">.</SPAN>cos<SPAN class="punctuation token">(</SPAN>angle<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> p1<SPAN class="punctuation token">.</SPAN>Y <SPAN class="operator token">-</SPAN> dist <SPAN class="operator token">*</SPAN> math<SPAN class="punctuation token">.</SPAN>sin<SPAN class="punctuation token">(</SPAN>angle<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> arr<SPAN class="punctuation token">.</SPAN>insert<SPAN class="punctuation token">(</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> p<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> pn1<SPAN class="punctuation token">,</SPAN> pn <SPAN class="operator token">=</SPAN> arr<SPAN class="punctuation token">[</SPAN><SPAN class="operator token">-</SPAN><SPAN class="number token">2</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="punctuation token">]</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> angle <SPAN class="operator token">=</SPAN> math<SPAN class="punctuation token">.</SPAN>atan2<SPAN class="punctuation token">(</SPAN>pn<SPAN class="punctuation token">.</SPAN>Y <SPAN class="operator token">-</SPAN> pn1<SPAN class="punctuation token">.</SPAN>Y<SPAN class="punctuation token">,</SPAN> pn<SPAN class="punctuation token">.</SPAN>X <SPAN class="operator token">-</SPAN> pn1<SPAN class="punctuation token">.</SPAN>X<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> p <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Point<SPAN class="punctuation token">(</SPAN>pn<SPAN class="punctuation token">.</SPAN>X <SPAN class="operator token">+</SPAN> dist <SPAN class="operator token">*</SPAN> math<SPAN class="punctuation token">.</SPAN>cos<SPAN class="punctuation token">(</SPAN>angle<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> pn<SPAN class="punctuation token">.</SPAN>Y <SPAN class="operator token">+</SPAN> dist <SPAN class="operator token">*</SPAN> math<SPAN class="punctuation token">.</SPAN>sin<SPAN class="punctuation token">(</SPAN>angle<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> arr<SPAN class="punctuation token">.</SPAN>append<SPAN class="punctuation token">(</SPAN>p<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> line <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Polyline<SPAN class="punctuation token">(</SPAN>arr<SPAN class="punctuation token">,</SPAN> SR<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> line <SPAN class="operator token">=</SPAN> line<SPAN class="punctuation token">.</SPAN>cut<SPAN class="punctuation token">(</SPAN>boundary<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">1</SPAN><SPAN class="punctuation token">]</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> ucur<SPAN class="punctuation token">.</SPAN>updateRow<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN>line<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Can you share a sample of your data (points, lines and polygon)? The situations in the first image do not correspond to the situations in the second image (probably to do with the sequence of the points) and it would be good to know what is going on. I see some similarity with this thread Points to line in Arcmap , but you have already defined a way to connect the points into a line. There are several ways of extending the line to the river banks:
Both are highly depend on the "quality" of the input line. So if the line was created correctly, this should not be a problem. However the results from your second image suggest differently.
I agree with Xander's comments and link. I haven't used the ArcScript tool you mentioned, so I'm not sure what is too slow, but you may want to look into using Map Topology to help you find the error, including the part of changing multiple issues at once. But unless you do know that all the lines are geometrically clean, you will want to be carefully on doing anything in bulk. You may want to do smaller batches so you can make sure other issues are not introduced.
Exercise 4b: Using geodatabase topology to fix line errors—Help | ArcGIS Desktop
Creating a map topology—Help | ArcGIS Desktop
Yes, I checked the Point to line . Actually, Same data I am also working for creating a line. We want to create a line feature from elevation point data. That line should touch the river banks all this we need automated process. The Second image which I am using the Extend line to layer tool for extend the output which got from the point to line tool. But Its taking time for 200 feature and getting geometrically errors.
Do you have any idea or script that create a line with the elevation point and line extend up to river banks.
Thanks for help.
Any python script that fixing the topological errors. Need in automated process. Have a huge amount of data for study. So, it difficult to run this tool manual.
How is this question different than https://community.esri.com/message/678558-join-a-line-to-a-polygon?sr=search&searchId=2df49d12-d2a5-4adc-81d9-c73827318d3a&searchIndex=0?
Nothing was different but getting error with the script. Please find the sample data,
The option provided by Joshua Bixby is a very good one. It takes the direction of the first and last part of the line and extends it to the polygon boundary. As an alternative you can simply snap the first and last point to polygon boundary (see code below).
<SPAN class="comment token">#-------------------------------------------------------------------------------</SPAN> <SPAN class="comment token"># Name: snapline2polygon.py</SPAN> <SPAN class="comment token"># Purpose:</SPAN> <SPAN class="comment token">#</SPAN> <SPAN class="comment token"># Author: xbakker</SPAN> <SPAN class="comment token">#</SPAN> <SPAN class="comment token"># Created: 17/04/2017</SPAN> <SPAN class="comment token">#-------------------------------------------------------------------------------</SPAN> <SPAN class="keyword token">def</SPAN> <SPAN class="token function">main</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">print</SPAN> <SPAN class="string token">"Start process..."</SPAN> <SPAN class="keyword token">import</SPAN> arcpy fc_line <SPAN class="operator token">=</SPAN> r<SPAN class="string token">'C:\GeoNet\SnapLine2Polygon\Pointoline.shp'</SPAN> fc_pol <SPAN class="operator token">=</SPAN> r<SPAN class="string token">'C:\GeoNet\SnapLine2Polygon\RB_23.shp'</SPAN> fc_out <SPAN class="operator token">=</SPAN> r<SPAN class="string token">'C:\GeoNet\SnapLine2Polygon\snapped_lines.shp'</SPAN> <SPAN class="comment token"># fech polygon and get perimeter</SPAN> <SPAN class="keyword token">print</SPAN> <SPAN class="string token">"Get polygon and boundary"</SPAN> polygon <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>SearchCursor<SPAN class="punctuation token">(</SPAN>fc_pol<SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="string token">'SHAPE@'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN>next<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN> boundary <SPAN class="operator token">=</SPAN> polygon<SPAN class="punctuation token">.</SPAN>boundary<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">print</SPAN> <SPAN class="string token">"start loop..."</SPAN> lst_feats <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">]</SPAN> cnt <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN> <SPAN class="keyword token">with</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>SearchCursor<SPAN class="punctuation token">(</SPAN>fc_line<SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="string token">'SHAPE@'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> curs<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">for</SPAN> row <SPAN class="keyword token">in</SPAN> curs<SPAN class="punctuation token">:</SPAN> cnt <SPAN class="operator token">+=</SPAN> <SPAN class="number token">1</SPAN> <SPAN class="keyword token">if</SPAN> cnt <SPAN class="operator token">%</SPAN> <SPAN class="number token">10</SPAN> <SPAN class="operator token">==</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">print</SPAN> <SPAN class="string token">" - processing line"</SPAN><SPAN class="punctuation token">,</SPAN> cnt polyline <SPAN class="operator token">=</SPAN> row<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN> pnt1 <SPAN class="operator token">=</SPAN> polyline<SPAN class="punctuation token">.</SPAN>firstPoint pnt2 <SPAN class="operator token">=</SPAN> polyline<SPAN class="punctuation token">.</SPAN>lastPoint pntg1_snap <SPAN class="operator token">=</SPAN> boundary<SPAN class="punctuation token">.</SPAN>snapToLine<SPAN class="punctuation token">(</SPAN>pnt1<SPAN class="punctuation token">)</SPAN> pntg2_snap <SPAN class="operator token">=</SPAN> boundary<SPAN class="punctuation token">.</SPAN>snapToLine<SPAN class="punctuation token">(</SPAN>pnt2<SPAN class="punctuation token">)</SPAN> polyline_out <SPAN class="operator token">=</SPAN> ExtendPolyline<SPAN class="punctuation token">(</SPAN>polyline<SPAN class="punctuation token">,</SPAN> pntg1_snap<SPAN class="punctuation token">.</SPAN>firstPoint<SPAN class="punctuation token">,</SPAN> pntg2_snap<SPAN class="punctuation token">.</SPAN>firstPoint<SPAN class="punctuation token">)</SPAN> lst_feats<SPAN class="punctuation token">.</SPAN>append<SPAN class="punctuation token">(</SPAN>polyline_out<SPAN class="punctuation token">)</SPAN> <SPAN class="comment token"># store results</SPAN> <SPAN class="keyword token">print</SPAN> <SPAN class="string token">"store results..."</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>CopyFeatures_management<SPAN class="punctuation token">(</SPAN>lst_feats<SPAN class="punctuation token">,</SPAN> fc_out<SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">def</SPAN> <SPAN class="token function">ExtendPolyline</SPAN><SPAN class="punctuation token">(</SPAN>polyline<SPAN class="punctuation token">,</SPAN> pnt1<SPAN class="punctuation token">,</SPAN> pnt2<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="comment token"># will snap first and last line to nearest part of given polyline</SPAN> <SPAN class="comment token"># does not account for small segments!</SPAN> sr <SPAN class="operator token">=</SPAN> polyline<SPAN class="punctuation token">.</SPAN>spatialReference lst_pnts <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">]</SPAN> <SPAN class="keyword token">for</SPAN> part <SPAN class="keyword token">in</SPAN> polyline<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">for</SPAN> pnt <SPAN class="keyword token">in</SPAN> part<SPAN class="punctuation token">:</SPAN> lst_pnts<SPAN class="punctuation token">.</SPAN>append<SPAN class="punctuation token">(</SPAN>pnt<SPAN class="punctuation token">)</SPAN> lst_pnts<SPAN class="punctuation token">.</SPAN>insert<SPAN class="punctuation token">(</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> pnt1<SPAN class="punctuation token">)</SPAN> lst_pnts<SPAN class="punctuation token">.</SPAN>append<SPAN class="punctuation token">(</SPAN>pnt2<SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">return</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Polyline<SPAN class="punctuation token">(</SPAN>arcpy<SPAN class="punctuation token">.</SPAN>Array<SPAN class="punctuation token">(</SPAN>lst_pnts<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> sr<SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">if</SPAN> __name__ <SPAN class="operator token">==</SPAN> <SPAN class="string token">'__main__'</SPAN><SPAN class="punctuation token">:</SPAN> main<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
This will produce errors when you have small segments and the first of last point is closer to the wrong side of the polygon boundary:
To avoid this you would have to edit the line data and create the correct lines to be extended or use the logic suggested by Joshua.
But, I am getting error at p1,p2 = arr[:2] and using arcmap 10.3
Runtime error Traceback (most recent call last): File "<string>", line 10, in <module> File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\mixins.py", line 161, in __getitem__ return convertArcObjectToPythonObject(self._arc_object.GetObject(index))AttributeError: Array: Error in parsing arguments for GetObject
Joshua, I increased the distance. But in some line are not touching with the riverbank.Please have a look.
Feature to ploygon with two input polylines to convert to polygon getting error from python script in dot net arc gis pro
kindly help me
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.