<?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: Data Exchange Between ArcPy and ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794485#M1725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thread... but I'm surprised it's been quiet here for almost a year. I'm&amp;nbsp;a happy camper using the arcgis module (ArcGIS API for Python) for Portal administration - yes, it's a web API - and arcpy for more data-centric automation and processing. arcgis helps with managing users and content, arcpy lets me transform feature, feature classes, fields, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I'm struggling right now is in the space in&amp;nbsp;between (or is it overlap?) when trying to publish data to server.&amp;nbsp;As a heavy Jupyter Notebook user, I have both arcgis and arcpy&amp;nbsp;installed in Python 3.6.5 (Anaconda) but the arcpy is different from what&amp;nbsp;it's available in the laughable Python 2.7.13 that still gets installed&amp;nbsp;under&amp;nbsp;C:\Python27 in Windows when you install Desktop. The two flavors of arcpy are very different and most of the documentation&amp;nbsp;is for the older version, some documentation&amp;nbsp;doesn't seem to support either version.&amp;nbsp;Where do I find some of the functionality from old arcpy in new arcpy? I&amp;nbsp;asked a related question &lt;A _jive_internal="true" href="https://community.esri.com/thread/228280-publishing-map-to-arcgis-server-106-with-python-conundrum"&gt;here&lt;/A&gt;&amp;nbsp;when&amp;nbsp;I ran into issues publishing to AGS from Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short version for the TLDR crowd:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any recipes for success for leveraging the full power of both APIs in Jupyter?&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2019 21:43:40 GMT</pubDate>
    <dc:creator>Arne_Gelfert</dc:creator>
    <dc:date>2019-02-05T21:43:40Z</dc:date>
    <item>
      <title>Data Exchange Between ArcPy and ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794480#M1720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As much as one-API-to-rule-them-all just doesn't work, introducing multiple Python-based APIs for ArcGIS raises some questions.&amp;nbsp; One question that has been nagging me is, "what is the preferred, or better yet optimal, way of transferring geometry objects and record/feature sets between ArcPy and ArcGIS API for Python?"&amp;nbsp; For me, dumping the data to intermediate file formats isn't efficient, so I am not looking for that to be the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 15:58:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794480#M1720</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-07-13T15:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Exchange Between ArcPy and ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794481#M1721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly the same question I came here to post --- luckily I did a search first and found someone has already asked this question. Surely lots of developers will face this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use "ArcPy + ArcGIS API for Python" to connect my&amp;nbsp;Web GIS and local enterprise GIS database and GIS tools, to automate my workflow. I will need to do some data exchange between two python data models (feature, featureset, table, geometry, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't help thinking the following questions:&lt;/P&gt;&lt;P&gt;Why ESRI doesn't provide some helper modules to in either or both API to facilitate the data exchange?&lt;/P&gt;&lt;P&gt;Why a separate Python API from ArcPy? will it be more logical to expand existing ArcPy to support the&amp;nbsp; online GIS (ArcgIS Online and Portal)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 01:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794481#M1721</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2018-03-15T01:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Exchange Between ArcPy and ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794482#M1722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is sad, in a pitiful kind of way, that no one from the ArcGIS API for Python team ever responded to this question, but I can't say I am surprised either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I asked this question 8+ months ago, the API was back on version 1.0.1.&amp;nbsp; Although there has been quite a bit of change from version 1.0.1 to 1.4, I would argue there hasn't been a whole lot of improvement on this front.&amp;nbsp; In fact, I think the ArcGIS API for Python has made matters worse by introducing objects with the same name as ArcPy objects that are not compatible with ArcPy.&amp;nbsp; The most egregious example is FeatureSet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what options are available?&amp;nbsp; Here are some ideas (not necessarily exhaustive) for interchanging data between ArcGIS API for Python and ArcPy.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SpatialDataFrame&lt;UL&gt;&lt;LI&gt;from_featureclass (not quite directly from ArcPy but closer than from a web service)&lt;/LI&gt;&lt;LI&gt;to_featureclass (not quite directly from ArcPy but closer than from a web service)&lt;/LI&gt;&lt;LI&gt;as_arcpy (sounds promising, but only exports geometries and not records)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;EM&gt;I know there are a couple others, but I am drawing a blank at the moment&lt;/EM&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:18:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794482#M1722</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-03-15T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data Exchange Between ArcPy and ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794483#M1723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As we all know:&lt;/P&gt;&lt;P&gt;ArcGIS API for Python is a Pythonic wrapper for ArcGIS REST API which&amp;nbsp;is specifically designed for Web GIS.&lt;/P&gt;&lt;P&gt;ArcPy, I guess, is more a wrapper around ArcObjects which is underpinning ArcGIS Desktop GIS functions.&lt;/P&gt;&lt;P&gt;These two sets of Python APIs give us different level of access to our GIS assets using python, I view them&amp;nbsp;supplementary to each other.&lt;/P&gt;&lt;P&gt;It makes sense to use common data model. or at least provide some utilities to facilitate data model exchange.&lt;/P&gt;&lt;P&gt;Let's see what the others think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 23:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794483#M1723</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2018-03-15T23:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data Exchange Between ArcPy and ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794484#M1724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can load feature data (from Web GIS or local file system) in SpatialDataFrame and&amp;nbsp;use it for feature and geometry manipulation. It can then be saved to feature classes (shapefiles or fgdb...) for use with ArcPy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to do fine grained geometry manipulation you can do it using methods on the SpatialDataFrame as well. Additionally, you&amp;nbsp;can use as_arcpy to get ArcPy Geometries from a SpatialDataFrame. Geometry manipulation using the Geometry utility service (arcgis.geometry) is another option.&amp;nbsp;The other option is to get the json representation and use it to construct arcpy geometries and do those operations locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these options do not cover the range of data exchange operations you want, please post what additional types of data exchange you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 07:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794484#M1724</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2018-03-16T07:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Exchange Between ArcPy and ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794485#M1725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thread... but I'm surprised it's been quiet here for almost a year. I'm&amp;nbsp;a happy camper using the arcgis module (ArcGIS API for Python) for Portal administration - yes, it's a web API - and arcpy for more data-centric automation and processing. arcgis helps with managing users and content, arcpy lets me transform feature, feature classes, fields, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I'm struggling right now is in the space in&amp;nbsp;between (or is it overlap?) when trying to publish data to server.&amp;nbsp;As a heavy Jupyter Notebook user, I have both arcgis and arcpy&amp;nbsp;installed in Python 3.6.5 (Anaconda) but the arcpy is different from what&amp;nbsp;it's available in the laughable Python 2.7.13 that still gets installed&amp;nbsp;under&amp;nbsp;C:\Python27 in Windows when you install Desktop. The two flavors of arcpy are very different and most of the documentation&amp;nbsp;is for the older version, some documentation&amp;nbsp;doesn't seem to support either version.&amp;nbsp;Where do I find some of the functionality from old arcpy in new arcpy? I&amp;nbsp;asked a related question &lt;A _jive_internal="true" href="https://community.esri.com/thread/228280-publishing-map-to-arcgis-server-106-with-python-conundrum"&gt;here&lt;/A&gt;&amp;nbsp;when&amp;nbsp;I ran into issues publishing to AGS from Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short version for the TLDR crowd:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any recipes for success for leveraging the full power of both APIs in Jupyter?&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2019 21:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-exchange-between-arcpy-and-arcgis-api-for/m-p/794485#M1725</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-02-05T21:43:40Z</dc:date>
    </item>
  </channel>
</rss>

