<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apply buffer around polyline in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247958#M14123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I finally managed the issue by setting the spatial reference of the geometry. But I wonder why this worked all the time before without setting the reference...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 06:21:54 GMT</pubDate>
    <dc:creator>CarstenSchumann</dc:creator>
    <dc:date>2013-07-25T06:21:54Z</dc:date>
    <item>
      <title>Apply buffer around polyline</title>
      <link>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247957#M14122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying retrieve a polyline from within a polygon. I use IRing#GetSubCurveEx for this. Afterwards I am trying to build a buffer around the curve, so I build up a polyline from the segments of the curve, as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;// try counter-clockwise ICurve c1 = ring.GetSubcurveEx(fromDistance, toDistance, false, true, false); IPolyline p1 = new PolylineClass(); ISegmentCollection segments = (ISegmentCollection) p1; segments.AddSegmentCollection((ISegmentCollection) c1); // build a buffer around the curve ITopologicalOperator topo = (ITopologicalOperator) p1; IPolygon buffer = (IPolygon) topo.Buffer(bufferSize);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code works so far, but on one single polygon it crashes with the following error: 0x8004023E which is the EsriNetworkError NETWORK_E_INVALID_ELEMENT_TYPE. But as I do not use any ERSI-Network-functionality I am somehow confused on this error. Moreover this code works one time on a given polygon, but if I pass this polygon a second time to this part of code the mentioned error occurs. I wonder under which circumstances this error is created if the polygon is known to be simple. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Maybe I should also mention that the first time I use another from- and toPoint for retrieving the subcurve of the ring, but as I also check the distances of the from/to-Points to the ring to be null I can ensure these points are on the boundary of my ring.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 13:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247957#M14122</guid>
      <dc:creator>CarstenSchumann</dc:creator>
      <dc:date>2013-07-24T13:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Apply buffer around polyline</title>
      <link>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247958#M14123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I finally managed the issue by setting the spatial reference of the geometry. But I wonder why this worked all the time before without setting the reference...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 06:21:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247958#M14123</guid>
      <dc:creator>CarstenSchumann</dc:creator>
      <dc:date>2013-07-25T06:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Apply buffer around polyline</title>
      <link>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247959#M14124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's probably a question in the &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/forums/20-ArcObjects-SDKs"&gt;ArcObjects&lt;/A&gt;&lt;SPAN&gt; forum, but generally, if you need&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to set the spatial reference, it's because you're using a mix of them and/or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some of the feature classes don't have one assigned, neither of which is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;really recommended. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 11:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247959#M14124</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-07-25T11:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Apply buffer around polyline</title>
      <link>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247960#M14125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the hint, actually the spatial references of the concerned featureClasses is set correctly, it seems its getting lost while doing some geometric operations on the features. This is why I have to reset it to the reference set in the featureClass.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/apply-buffer-around-polyline/m-p/247960#M14125</guid>
      <dc:creator>CarstenSchumann</dc:creator>
      <dc:date>2013-07-25T13:35:14Z</dc:date>
    </item>
  </channel>
</rss>

