<?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: Convert Polygon/Polyline shapebuffer in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200581#M371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is not necessary to convert your PolyLine shape buffer to a ShapeBuffer because it already is one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ShapeBuffer is the base class for all of the other shape buffer types.&amp;nbsp; Since SetGeometry accepts a ShapeBuffer object, that means you can pass an instance of the base class or any of the derived classes.&amp;nbsp; This is a fundamental object oriented programming technique of C++.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a small extract from the ShapeBuffer sample program:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MultiPartShapeBuffer lineGeometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.GetGeometry(lineGeometry);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int numPts;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineGeometry.GetNumPoints(numPts);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that lineGeometry is declared as a MultiPartShapeBuffer, and that we are able to pass it to GetGeometry with no problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 22:13:15 GMT</pubDate>
    <dc:creator>DavidSousa</dc:creator>
    <dc:date>2013-05-30T22:13:15Z</dc:date>
    <item>
      <title>Convert Polygon/Polyline shapebuffer</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200577#M367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to insert new Polygon in the feature class in the GDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So i am trying to insert it using SetGeometry, which can recieve only ShapeBuffer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a proper way to convert Polygon to shapebuffer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Team Igal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 12:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200577#M367</guid>
      <dc:creator>teamIgal</dc:creator>
      <dc:date>2013-05-13T12:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Polygon/Polyline shapebuffer</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200578#M368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ShapeBuffer.cpp in the samples/ShapeBuffer directory of the API seems to provide&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;an example of what's necessary.&amp;nbsp; You can roll your own helper functions, but either&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;way, it's probably wise to review the shapefile reference PDFs in the doc directory.&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, 16 May 2013 13:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200578#M368</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-05-16T13:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Polygon/Polyline shapebuffer</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200579#M369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i saw the samples in the ShapeBuffer.cpp, but it's not quite what i am looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please provide some code example to a transform between runtime objects, such as polyline to shapebuffer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Team Igal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 May 2013 05:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200579#M369</guid>
      <dc:creator>teamIgal</dc:creator>
      <dc:date>2013-05-26T05:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Polygon/Polyline shapebuffer</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200580#M370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Between LineGeomTest and LineZGeomTest, it looks like the bases are covered --&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;conversion in both directions, with multiple dimensions -- what more do you need?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps it will help if you think of it as a "packing" exercise, instead of transformation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 May 2013 17:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200580#M370</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-05-26T17:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Polygon/Polyline shapebuffer</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200581#M371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is not necessary to convert your PolyLine shape buffer to a ShapeBuffer because it already is one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ShapeBuffer is the base class for all of the other shape buffer types.&amp;nbsp; Since SetGeometry accepts a ShapeBuffer object, that means you can pass an instance of the base class or any of the derived classes.&amp;nbsp; This is a fundamental object oriented programming technique of C++.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a small extract from the ShapeBuffer sample program:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MultiPartShapeBuffer lineGeometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.GetGeometry(lineGeometry);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int numPts;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineGeometry.GetNumPoints(numPts);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that lineGeometry is declared as a MultiPartShapeBuffer, and that we are able to pass it to GetGeometry with no problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 22:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/convert-polygon-polyline-shapebuffer/m-p/200581#M371</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2013-05-30T22:13:15Z</dc:date>
    </item>
  </channel>
</rss>

