<?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: C# sample with IGeometryServer2.cut in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-sample-with-igeometryserver2-cut/m-p/304996#M7926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also interested in it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2011 12:04:43 GMT</pubDate>
    <dc:creator>SebastianKrings</dc:creator>
    <dc:date>2011-07-26T12:04:43Z</dc:date>
    <item>
      <title>C# sample with IGeometryServer2.cut</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-sample-with-igeometryserver2-cut/m-p/304995#M7925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone has a sample code in C# for IGeometryServer2.cut(...) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guillaume&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 12:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-sample-with-igeometryserver2-cut/m-p/304995#M7925</guid>
      <dc:creator>GuillaumeMOCCAND</dc:creator>
      <dc:date>2011-07-25T12:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: C# sample with IGeometryServer2.cut</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-sample-with-igeometryserver2-cut/m-p/304996#M7926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also interested in it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 12:04:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-sample-with-igeometryserver2-cut/m-p/304996#M7926</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2011-07-26T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: C# sample with IGeometryServer2.cut</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/c-sample-with-igeometryserver2-cut/m-p/304997#M7927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What part of this is tripping things up from your tests? Here is a simple example that I hope will help get the ball rolling:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;object beforeAfter = Type.Missing;

ISpatialReference sr = CreateHighPrecisionSpatialReference(4326,false,false);

IPointCollection pc = new PolylineClass();
pc.AddPoint(new PointClass() { X = 0, Y = 0, SpatialReference = sr }, beforeAfter, beforeAfter);
pc.AddPoint(new PointClass() { X = 10, Y = 10, SpatialReference = sr }, beforeAfter, beforeAfter);
IPolyline polyline1 = (IPolyline)pc;

IPointCollection pc2 = new PolylineClass();
pc2.AddPoint(new PointClass() { X = -5, Y = 5, SpatialReference = sr }, beforeAfter, beforeAfter);
pc2.AddPoint(new PointClass() { X = 5, Y = 5, SpatialReference = sr }, beforeAfter, beforeAfter);
IPolyline polyline2 = (IPolyline)pc2;

if (((ITopologicalOperator)pc).IsSimple)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; ILongArray la;

&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeometryArray targetArray = new GeometryArrayClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp; targetArray.Add(polyline1);

&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeometryServer2 geomServer = new GeometryServerClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeometryArray outGeomArray = geomServer.Cut(sr, targetArray, polyline2, out la);
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/c-sample-with-igeometryserver2-cut/m-p/304997#M7927</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2021-12-11T14:36:17Z</dc:date>
    </item>
  </channel>
</rss>

