<?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: how to set attributes on a polyline in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-attributes-on-a-polyline/m-p/452078#M12283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-size: 3; font-family: arial;"&gt;Mike,&lt;BR /&gt;&lt;BR /&gt;It is not clear which tools you are trying to run.&lt;BR /&gt;&lt;BR /&gt;You state &lt;SPAN style="font-style:italic;"&gt;"Next I get the polygon.Boundary to get the polyline that encompasses the outer ring of the polygon."&lt;/SPAN&gt; but IPolygon has no method Boundary?&lt;BR /&gt;&lt;BR /&gt;You refer to "PolylineToRaster" can I assume this is the geo-processing tool and not some function you are attempting to build? If it is then this tool takes as input a &lt;STRONG&gt;FeatureLayer&lt;/STRONG&gt; not a single geometry object so a number for a field makes no sense. To use this tool you would need to store your polyline in a FeatureClass and supply the FeatureClass to the tool.&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 14:23:21 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2014-02-19T14:23:21Z</dc:date>
    <item>
      <title>how to set attributes on a polyline</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-attributes-on-a-polyline/m-p/452077#M12282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;here is what I am trying to achieve:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; We have a polygon area that will delay a ship moving through that area for a period of time.&amp;nbsp; I need to apply this to our hydrography map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How we are doing this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Each cell in the cost array equal (n sec/meter) * 1000 depending on the speed of the ship&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; The delay needs to be applied with the value 1 in the middle cells and the delay time / 2 in the outer rim of the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; We use IExtractionOp2.Polygon to get the part of the hydrography raster that the polygon overlays&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; We set the entire polygon area to the value 1 using ReclassByRemap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Next I get the polygon.Boundary to get the polyline that encompasses the outer ring of the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Finally I intended to call PolygonToRaster to get a raster with the outer rim set to delay time /2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The call to PolylineToRaster fails and I think the reason is I'm passing an integer field.&amp;nbsp; The documetation, I found, states it has to be "any attribute field in the Polygon".&amp;nbsp; So how do I set a specific attirbute field with the values I need?&amp;nbsp; The polyline doesn't even expose anything like AddAttribute!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 18:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-attributes-on-a-polyline/m-p/452077#M12282</guid>
      <dc:creator>MichaelEber</dc:creator>
      <dc:date>2014-02-10T18:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to set attributes on a polyline</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-attributes-on-a-polyline/m-p/452078#M12283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-size: 3; font-family: arial;"&gt;Mike,&lt;BR /&gt;&lt;BR /&gt;It is not clear which tools you are trying to run.&lt;BR /&gt;&lt;BR /&gt;You state &lt;SPAN style="font-style:italic;"&gt;"Next I get the polygon.Boundary to get the polyline that encompasses the outer ring of the polygon."&lt;/SPAN&gt; but IPolygon has no method Boundary?&lt;BR /&gt;&lt;BR /&gt;You refer to "PolylineToRaster" can I assume this is the geo-processing tool and not some function you are attempting to build? If it is then this tool takes as input a &lt;STRONG&gt;FeatureLayer&lt;/STRONG&gt; not a single geometry object so a number for a field makes no sense. To use this tool you would need to store your polyline in a FeatureClass and supply the FeatureClass to the tool.&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 14:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-attributes-on-a-polyline/m-p/452078#M12283</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-02-19T14:23:21Z</dc:date>
    </item>
  </channel>
</rss>

