<?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: Select/ Get a single Line of a Polyline (contour) C# in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/select-get-a-single-line-of-a-polyline-contour-c/m-p/548064#M14816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The altitude of specific line is stored in the base objects geometry which is point, Z attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Polyline is a collection of Paths, And Path is collection of points. So you can:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// access to paths within polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeometryCollection pathCollection = pPolyline as IGeometryCollection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// get single path from path collections&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IPath contourlinePath = pathCollection.get_Geometry(i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// get points within path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IPointCollection contourLineColl = contourlinePath as IPointCollection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IPoint counterLinePoint = contourLineColl.get_Point(i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;double alt = contourLinePoint.Z;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this will help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Jul 2011 15:07:53 GMT</pubDate>
    <dc:creator>DubravkoAntonic</dc:creator>
    <dc:date>2011-07-31T15:07:53Z</dc:date>
    <item>
      <title>Select/ Get a single Line of a Polyline (contour) C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/select-get-a-single-line-of-a-polyline-contour-c/m-p/548063#M14815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to access one specific contourline out of all contourlines stored in one polyline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing is, that I want to know the altitude of the specific line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given are some points and a cotnour featureclass. Every Point lies on a contourline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For every Point I now want to have the altitude.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe the points lie not exactly on a contourline. So a selection may shall go with the option of some tolerance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cant find an object to access a location of the polyline or to get access to a single line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 13:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/select-get-a-single-line-of-a-polyline-contour-c/m-p/548063#M14815</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2011-07-27T13:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select/ Get a single Line of a Polyline (contour) C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/select-get-a-single-line-of-a-polyline-contour-c/m-p/548064#M14816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The altitude of specific line is stored in the base objects geometry which is point, Z attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Polyline is a collection of Paths, And Path is collection of points. So you can:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// access to paths within polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeometryCollection pathCollection = pPolyline as IGeometryCollection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// get single path from path collections&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IPath contourlinePath = pathCollection.get_Geometry(i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// get points within path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IPointCollection contourLineColl = contourlinePath as IPointCollection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IPoint counterLinePoint = contourLineColl.get_Point(i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;double alt = contourLinePoint.Z;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this will help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2011 15:07:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/select-get-a-single-line-of-a-polyline-contour-c/m-p/548064#M14816</guid>
      <dc:creator>DubravkoAntonic</dc:creator>
      <dc:date>2011-07-31T15:07:53Z</dc:date>
    </item>
  </channel>
</rss>

