<?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 Trouble adding polygon barriers in network analyst in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/trouble-adding-polygon-barriers-in-network-analyst/m-p/322774#M8408</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'm trying to add polygon barriers using the network analyst Java API and am running into a couple problems. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem #1 - The barrier feature class fields don't seem to include anything related to barriers (e.g. "BarrierType" or Attr_[Impedance]). (I use INAContext.getNAClasses().getItemByName("Barriers") to get a handle on the barrier feature class.) How can I set the barrier specific fields?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem #2 - I imagine the way to implement these polygon barriers is to create polygon geometry, then assign this geometry to a barrier feature. Does this sound right? If so, I get when I do that (using setShapeByRef()) I get AutomationException: 0x80040901. Which leads me to believe I'm either creating the polygon wrong, or perhaps, related to problem #1, it doesn't expect to be given a polygon here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm very new to ArcGIS, and a bit lost, so any help would be much appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pete&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 13:31:26 GMT</pubDate>
    <dc:creator>PeterRimshnick</dc:creator>
    <dc:date>2010-12-22T13:31:26Z</dc:date>
    <item>
      <title>Trouble adding polygon barriers in network analyst</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/trouble-adding-polygon-barriers-in-network-analyst/m-p/322774#M8408</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'm trying to add polygon barriers using the network analyst Java API and am running into a couple problems. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem #1 - The barrier feature class fields don't seem to include anything related to barriers (e.g. "BarrierType" or Attr_[Impedance]). (I use INAContext.getNAClasses().getItemByName("Barriers") to get a handle on the barrier feature class.) How can I set the barrier specific fields?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem #2 - I imagine the way to implement these polygon barriers is to create polygon geometry, then assign this geometry to a barrier feature. Does this sound right? If so, I get when I do that (using setShapeByRef()) I get AutomationException: 0x80040901. Which leads me to believe I'm either creating the polygon wrong, or perhaps, related to problem #1, it doesn't expect to be given a polygon here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm very new to ArcGIS, and a bit lost, so any help would be much appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pete&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 13:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/trouble-adding-polygon-barriers-in-network-analyst/m-p/322774#M8408</guid>
      <dc:creator>PeterRimshnick</dc:creator>
      <dc:date>2010-12-22T13:31:26Z</dc:date>
    </item>
  </channel>
</rss>

