<?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: How to intersect two geometry objects with 9.3 geoprocessor in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110394#M3771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One can use them in v93 but the use is quite limited it seems. Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 17:11:55 GMT</pubDate>
    <dc:creator>JörgMohring</dc:creator>
    <dc:date>2011-06-29T17:11:55Z</dc:date>
    <item>
      <title>How to intersect two geometry objects with 9.3 geoprocessor</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110392#M3769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear colleagues,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two geometry objects o1 and o2 created from arrays (e.g. o1 = gp.CreateObject("geometry", "polygon", array1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I would like to intersect them. However&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.Intersect_analysis("o1;o2",output) does not work, neither does&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.Intersect_analysis(o1 + ";" + o2,output) work, nor does&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.Intersect_analysis(str(o1) + ";" + str(o2),output) work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can it be that it's simply not possible to intersect geometry objects since the intersect tool requires strings?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for any help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jörg Mohring&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:13:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110392#M3769</guid>
      <dc:creator>JörgMohring</dc:creator>
      <dc:date>2011-06-16T15:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to intersect two geometry objects with 9.3 geoprocessor</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110393#M3770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could be wrong, but I thought you could only use the geometry objects directly in v10 GP tools (not in v93).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 17:01:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110393#M3770</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-06-16T17:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to intersect two geometry objects with 9.3 geoprocessor</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110394#M3771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One can use them in v93 but the use is quite limited it seems. Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 17:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110394#M3771</guid>
      <dc:creator>JörgMohring</dc:creator>
      <dc:date>2011-06-29T17:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to intersect two geometry objects with 9.3 geoprocessor</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110395#M3772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;check to see how you are creating the object from the example in the 9.3.1 help files&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=966&amp;amp;pid=951&amp;amp;topicname=Using_geometry_objects_with_geoprocessing_tools"&gt;http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=966&amp;amp;pid=951&amp;amp;topicname=Using_geometry_objects_with_geoprocessing_tools&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 21:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110395#M3772</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-06-29T21:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to intersect two geometry objects with 9.3 geoprocessor</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110396#M3773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, live and learn. I guess that's why I look at these forum posts...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Contrary to my beliefs 5 minutes ago:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) You can use geomety objects directly in v9.3 (thought that was new in v10)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) You can pass a list objects (maybe tuples?) directly into the v93 gp tools, and apparently no longer have to use string parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
#snipit of ESRI example code
inGeom1 = gp.createobject("geometry", "polygon", ary)
inGeom2 = gp.createobject("geometry", "polygon", ary2)
inGeoms = [inGeom1, inGeom2]
outGeom = gp.createobject("geometry")
newOutGeom = gp.union_analysis(inGeoms, outGeom)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good to know...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110396#M3773</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-11T06:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to intersect two geometry objects with 9.3 geoprocessor</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110397#M3774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jörg, per your original post, how about:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;gp.Intersect_analysis([o1,o2],output)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 22:13:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110397#M3774</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-06-29T22:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to intersect two geometry objects with 9.3 geoprocessor</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110398#M3775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;2) You can pass a list objects (maybe tuples?) directly into the v93 gp tools&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like this statement (at least in v9.3.1) only applies to geometry objects - not on disk FCs, so I wasn't completely wrong...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;inputList = [r"D:\csny490\test.gdb\townships", r"D:\csny490\test.gdb\regions"]
outputFC =&amp;nbsp; r"D:\csny490\test.gdb\output"
gp.intersect_analysis(inputList, outputFC)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;errors out, but&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
inputList = [r"D:\csny490\test.gdb\townships", r"D:\csny490\test.gdb\regions"]
outputFC =&amp;nbsp; r"D:\csny490\test.gdb\output"
gp.intersect_analysis(";".join(inputList), outputFC)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;works fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-intersect-two-geometry-objects-with-9-3/m-p/110398#M3775</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-11T06:38:27Z</dc:date>
    </item>
  </channel>
</rss>

