<?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 ArcPad Split Polygon and Line in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/arcpad-split-polygon-and-line/m-p/541505#M3909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm currently doing ArcPad programming to split a polygon and line. I want split a feature polygon from a layer which ONLY intersect with a cutter which are line. How to find which feature is intersect with cutter line. Can i get any code to find intersect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently use CUT esri example, but it cut all features in a layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Get the records of the cut layer and find the count&lt;BR /&gt; cutRS = Map.Layers( cutLayerName ).Records&lt;BR /&gt; cutRS.MoveFirst()&lt;/P&gt;&lt;P&gt;var numFeats = cutRS.RecordCount&lt;BR /&gt; for( i=1; i&amp;lt;=numFeats; i++ ) {&lt;/P&gt;&lt;P&gt;//Get the current feature, and call PerformCut routine&lt;BR /&gt; curFeat = cutRS.Fields.Shape &lt;BR /&gt; output = PerformCut( selLine, curFeat )&lt;/P&gt;&lt;P&gt;// if successfully split&lt;BR /&gt; if ( output[0] ) {&lt;BR /&gt; &lt;BR /&gt; //ask if they want to add new feature&lt;BR /&gt; Add = MessageBox("Do you want to add the new features?", apYesNo)&lt;BR /&gt; if (Add == apYes) {&lt;/P&gt;&lt;P&gt;//Get the attributes and Bookmark of the oringial feature&lt;BR /&gt; origBM = cutRS.Bookmark&lt;BR /&gt; origAtts = new Array()&lt;BR /&gt; for( j=1; j&amp;lt;=cutRS.Fields.Count; j++){&lt;BR /&gt; origAtts&lt;J&gt; = cutRS.Fields(j).Value&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //Add features, and if successful, increment counter and add original feature to the toDelete pile&lt;BR /&gt; newFeats = output[1]&lt;BR /&gt; addedFeat1 = AddFeat( newFeats[0], cutRS, origAtts )&lt;BR /&gt; addedFeat2 = AddFeat( newFeats[1], cutRS, origAtts )&lt;BR /&gt; if( addedFeat1 &amp;amp;&amp;amp; addedFeat2 ){&lt;BR /&gt; toDelete.push( origBM )&lt;BR /&gt; cut++&lt;BR /&gt; }&lt;BR /&gt; cutRS.Bookmark = origBM&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; //Move to next feature&lt;BR /&gt; cutRS.MoveNext()&lt;BR /&gt; }&lt;/J&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2018 07:44:48 GMT</pubDate>
    <dc:creator>BalanmuruganThurmalingam</dc:creator>
    <dc:date>2018-11-01T07:44:48Z</dc:date>
    <item>
      <title>ArcPad Split Polygon and Line</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-split-polygon-and-line/m-p/541505#M3909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm currently doing ArcPad programming to split a polygon and line. I want split a feature polygon from a layer which ONLY intersect with a cutter which are line. How to find which feature is intersect with cutter line. Can i get any code to find intersect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently use CUT esri example, but it cut all features in a layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Get the records of the cut layer and find the count&lt;BR /&gt; cutRS = Map.Layers( cutLayerName ).Records&lt;BR /&gt; cutRS.MoveFirst()&lt;/P&gt;&lt;P&gt;var numFeats = cutRS.RecordCount&lt;BR /&gt; for( i=1; i&amp;lt;=numFeats; i++ ) {&lt;/P&gt;&lt;P&gt;//Get the current feature, and call PerformCut routine&lt;BR /&gt; curFeat = cutRS.Fields.Shape &lt;BR /&gt; output = PerformCut( selLine, curFeat )&lt;/P&gt;&lt;P&gt;// if successfully split&lt;BR /&gt; if ( output[0] ) {&lt;BR /&gt; &lt;BR /&gt; //ask if they want to add new feature&lt;BR /&gt; Add = MessageBox("Do you want to add the new features?", apYesNo)&lt;BR /&gt; if (Add == apYes) {&lt;/P&gt;&lt;P&gt;//Get the attributes and Bookmark of the oringial feature&lt;BR /&gt; origBM = cutRS.Bookmark&lt;BR /&gt; origAtts = new Array()&lt;BR /&gt; for( j=1; j&amp;lt;=cutRS.Fields.Count; j++){&lt;BR /&gt; origAtts&lt;J&gt; = cutRS.Fields(j).Value&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //Add features, and if successful, increment counter and add original feature to the toDelete pile&lt;BR /&gt; newFeats = output[1]&lt;BR /&gt; addedFeat1 = AddFeat( newFeats[0], cutRS, origAtts )&lt;BR /&gt; addedFeat2 = AddFeat( newFeats[1], cutRS, origAtts )&lt;BR /&gt; if( addedFeat1 &amp;amp;&amp;amp; addedFeat2 ){&lt;BR /&gt; toDelete.push( origBM )&lt;BR /&gt; cut++&lt;BR /&gt; }&lt;BR /&gt; cutRS.Bookmark = origBM&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; //Move to next feature&lt;BR /&gt; cutRS.MoveNext()&lt;BR /&gt; }&lt;/J&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 07:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-split-polygon-and-line/m-p/541505#M3909</guid>
      <dc:creator>BalanmuruganThurmalingam</dc:creator>
      <dc:date>2018-11-01T07:44:48Z</dc:date>
    </item>
  </channel>
</rss>

