<?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: Trouble casting ShapeBuffer to MultiPartShapeBuffer in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/trouble-casting-shapebuffer-to/m-p/421997#M709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, still stuck using vb.NET so I tried&amp;nbsp; converting it to C# and it worked fine. This will work for now. I guess there is a problem with the syntax, if anyone knows the correct syntax for vb.NET, that would be great!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2013 11:47:18 GMT</pubDate>
    <dc:creator>BobCarberry</dc:creator>
    <dc:date>2013-12-23T11:47:18Z</dc:date>
    <item>
      <title>Trouble casting ShapeBuffer to MultiPartShapeBuffer</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/trouble-casting-shapebuffer-to/m-p/421996#M708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I needed some code that would convert a FGDB featureclass to GeoJson.&amp;nbsp; I was able to find some (in C#) but needed it in vb.NET.&amp;nbsp; I converted and all worked well except with the routine that converted the geometry (which is what I really need!).&amp;nbsp; There is a place in the code where it's casting a shapebuffer to multipartshapebuffer.&amp;nbsp; I keep getting this error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unable to cast object of type 'Esri.FileGDB.ShapeBuffer' to type 'Esri.FileGDB.MultiPartShapeBuffer'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The line of code is pretty straight forward (where geometry is Esri.FileGDB.ShapeBuffer):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pbuff As MultiPartShapeBuffer = geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&amp;nbsp; Is this the correct syntax for vb.NET? Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I'm using VS 2010 Professional and tried it with both FGDB API versions 1.2 and 1.3&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 14:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/trouble-casting-shapebuffer-to/m-p/421996#M708</guid>
      <dc:creator>BobCarberry</dc:creator>
      <dc:date>2013-12-20T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble casting ShapeBuffer to MultiPartShapeBuffer</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/trouble-casting-shapebuffer-to/m-p/421997#M709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, still stuck using vb.NET so I tried&amp;nbsp; converting it to C# and it worked fine. This will work for now. I guess there is a problem with the syntax, if anyone knows the correct syntax for vb.NET, that would be great!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 11:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/trouble-casting-shapebuffer-to/m-p/421997#M709</guid>
      <dc:creator>BobCarberry</dc:creator>
      <dc:date>2013-12-23T11:47:18Z</dc:date>
    </item>
  </channel>
</rss>

