<?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>idea Pythonic ArcPy Geometries in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idi-p/940322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given that ArcPy is a &lt;SPAN style="text-decoration: underline;"&gt;Python&lt;/SPAN&gt; site package, the ArcPy geometries should actually be Pythonic.&amp;nbsp; What do I mean by Pythonic?&amp;nbsp; ArcPy geometries and components should be accessible and modifiable using standard Python conventions like iterating, indexing, and slicing among others.&amp;nbsp; The idea isn't original; in fact, Pythonic geometries have already been implemented in &lt;A href="http://geodjango.org/" target="_blank"&gt;GeoDjango &lt;/A&gt;(&lt;A href="https://docs.djangoproject.com/en/dev/ref/contrib/gis/geos/#geometries-are-pythonic" target="_blank"&gt;Geometries are Pythonic&lt;/A&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 17:40:35 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2015-07-09T17:40:35Z</dc:date>
    <item>
      <title>Give the arcpy.PointGeometry object XYZ properties</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/936389#M22876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It's entirely too confusing to use .getPart(), .centroid(), .firstPoint() to get the XYZ properties off a PointGeometry in python. &amp;nbsp;Please give this class direct access to the propreties or at least make an obvious property to use. &amp;nbsp;We're using PointGeometry not Multipoint so there should never be more than a single part in the geometry. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;See post:&amp;nbsp;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/102734-Geometry-object-stuff?p=366070#post366070"&gt;http://forums.arcgis.com/threads/102734-Geometry-object-stuff?p=366070#post366070&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;

&lt;!-- content transformation source ID: 087E00000005AHi --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 20:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/936389#M22876</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2014-03-06T20:48:53Z</dc:date>
    </item>
    <item>
      <title>Support Empty Geometries with ArcPy Geometry Class Constructors</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939512#M18540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style=""&gt;&lt;SPAN style="font-family: verdana,sans-serif; font-size: 9.5pt;"&gt;&lt;FONT color="#000000"&gt;Constructing empty geometries isn't possible using the ArcPy Geometry classes. The only way to currently create an empty geometry in ArcPy is to use the arcpy.FromWKT as a geometry constructor. I propose the ArcPy Geometry classes support the construction of empty geometries.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana,sans-serif; font-size: 9.5pt;"&gt;&lt;FONT color="#000000"&gt;Currently, calling any of the ArcPy Geometry constructors with no arguments, a 'None' argument, or an empty arcpy.Array throws an exception.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="ckeditor_codeblock"&gt;
&amp;gt;&amp;gt;&amp;gt; arcpy.Polygon()
Runtime error 
Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\mixins.py", line 222, in __init__
    *gp_fixargs(args, True))
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\geoprocessing\_base.py", line 504, in &amp;lt;lambda&amp;gt;
    return lambda *args: val(*gp_fixargs(args, True))
RuntimeError: Object: CreateObject cannot create geometry from inputs&lt;/PRE&gt;

&lt;P style=""&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana,sans-serif; font-size: 9.5pt;"&gt;&lt;FONT color="#000000"&gt;Instead, the constructors should generate an empty geometry of the appropriate type similar to geometry constructors from other Python (Shapely) and DBMS (SQL Server) packages.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="ckeditor_codeblock"&gt;
&amp;gt;&amp;gt;&amp;gt; pg = arcpy.Polygon()
&amp;gt;&amp;gt;&amp;gt; pg.type
u'polygon'
&amp;gt;&amp;gt;&amp;gt; pg.WKT
u'MULTIPOLYGON EMPTY'&lt;/PRE&gt;
&amp;nbsp;

&lt;P style=""&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;

&lt;!-- content transformation source ID: 087E0000000CxH1 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 02:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939512#M18540</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-04-22T02:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Support Empty Geometries with ArcPy Geometry Class Constructors</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939513#M18541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;When I saw your idea I thought surely that's not right but having looked at the help file I realised there is no mechanism or &lt;I&gt;method&lt;/I&gt; that allows you to add points to a polygon. In ArcObjects there is an interface called IPointsCollection and you would use that to insert points into a geometry. So as there is no way of adding points to an existing polygon its not suprising that the constructor won't allow the creation of a Polygon without an array of points. So I'm guessing until ESRI expose some method to add points to a polygon this idea will never get of the ground...&lt;BR /&gt;&lt;BR /&gt;Still voted for it!

&lt;!-- content transformation source ID: 00aE000000BbdNy --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:54:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939513#M18541</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2015-04-22T11:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Support Empty Geometries with ArcPy Geometry Class Constructors</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939514#M18542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Can create an empty polygon this way:&lt;BR /&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;SPAN style="font-family: calibri,sans-serif;"&gt;&lt;SPAN style="color: rgb(31, 73, 125);"&gt;p = arcpy.Polygon(arcpy.Array(None))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;

&lt;!-- content transformation source ID: 00aE000000BblX2 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 20:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939514#M18542</guid>
      <dc:creator>DavidWynne</dc:creator>
      <dc:date>2015-04-22T20:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Support Empty Geometries with ArcPy Geometry Class Constructors</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939515#M18543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ha! I had tried the following and had come to the conclusion it was not possible as this throws an error:&lt;BR /&gt;&lt;BR /&gt;p = arcpy.Polygon(arcpy.Array([]))&lt;BR /&gt;&lt;BR /&gt;Nice to see it's possible.&lt;BR /&gt;&amp;nbsp;

&lt;!-- content transformation source ID: 00aE000000Bbomj --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939515#M18543</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2015-04-23T13:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Support Empty Geometries with ArcPy Geometry Class Constructors</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939516#M18544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Funny, I tried None, arcpy.Array(), and arcpy.Array([]); but I never thought to try arcpy.Array(None).&amp;nbsp; That said, arcpy.Polygon(arcpy.Array(None)) is a bit too baroque for my tastes.&amp;nbsp; In the context of Zen, there is nothing simple or beautiful about the current implementation.&amp;nbsp; What is problematic with arcpy.Polygon()?&lt;BR /&gt;&lt;BR /&gt;I will leave this idea open to push for a more elegant and straightfoward way to construct empty geometries.

&lt;!-- content transformation source ID: 00aE000000BcMKa --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 22:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939516#M18544</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-04-27T22:37:56Z</dc:date>
    </item>
    <item>
      <title>Pythonic ArcPy Geometries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idi-p/940322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given that ArcPy is a &lt;SPAN style="text-decoration: underline;"&gt;Python&lt;/SPAN&gt; site package, the ArcPy geometries should actually be Pythonic.&amp;nbsp; What do I mean by Pythonic?&amp;nbsp; ArcPy geometries and components should be accessible and modifiable using standard Python conventions like iterating, indexing, and slicing among others.&amp;nbsp; The idea isn't original; in fact, Pythonic geometries have already been implemented in &lt;A href="http://geodjango.org/" target="_blank"&gt;GeoDjango &lt;/A&gt;(&lt;A href="https://docs.djangoproject.com/en/dev/ref/contrib/gis/geos/#geometries-are-pythonic" target="_blank"&gt;Geometries are Pythonic&lt;/A&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idi-p/940322</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-07-09T17:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pythonic ArcPy Geometries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/940323#M5372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is looking good for implementation, although the feedback isn't clear whether that will be in an upcoming minor or major release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 21:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/940323#M5372</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-06-01T21:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pythonic ArcPy Geometries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/940324#M5373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another great python Geometry implementation that I've worked with is Geoalchemy2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://geoalchemy-2.readthedocs.io/en/0.3/" title="http://geoalchemy-2.readthedocs.io/en/0.3/"&gt;GeoAlchemy 2 Documentation — GeoAlchemy2 0.3.0 documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://geoalchemy-2.readthedocs.io/en/0.3/orm_tutorial.html#create-an-instance-of-the-mapped-class" title="http://geoalchemy-2.readthedocs.io/en/0.3/orm_tutorial.html#create-an-instance-of-the-mapped-class"&gt;ORM Tutorial — GeoAlchemy2 0.3.0 documentation&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 18:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/940324#M5373</guid>
      <dc:creator>GreggRoemhildt1</dc:creator>
      <dc:date>2016-06-02T18:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Support Empty Geometries with ArcPy Geometry Class Constructors</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939517#M18545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given empty geometries are actually/already supported by the geometry constructors, I think this idea should be merged with &lt;A href="https://community.esri.com/ideas/10963" target="_blank"&gt;https://community.esri.com/ideas/10963&lt;/A&gt;‌ since what I am after is having the syntax for creating empty geometries be more intuitive and idiomatic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/939517#M18545</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-06-22T08:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pythonic ArcPy Geometries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/940325#M5374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An example of making ArcPy Geometry constructors more Pythonic:&amp;nbsp; &lt;A href="https://community.esri.com/blogs/tilting/2017/06/12/a-case-for-no-argument-arcpy-geometry-constructors?sr=search&amp;amp;searchId=c9322780-043e-4c30-9df5-0e3bc3053d04&amp;amp;searchIndex=0"&gt;/blogs/tilting/2017/06/12/a-case-for-no-argument-arcpy-geometry-constructors?sr=search&amp;amp;searchId=c9322780-043e-4c30-9df5-0e3bc3053d04&amp;amp;searchIndex=0&lt;/A&gt;‌.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/pythonic-arcpy-geometries/idc-p/940325#M5374</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-06-12T16:20:21Z</dc:date>
    </item>
  </channel>
</rss>

