<?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: Converting geometries between GeoJSON, esri JSON, and esri Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246247#M19075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AsShape() takes exactly 1 argument (2 given)&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AttributeError: 'PointGeometry' object has no attribute 'JSON'&lt;/SPAN&gt;&lt;SPAN&gt; errors imply that you're on an version of ArcGIS before the JSON stuff was added. I thought I got all of that in at 10.1 SP1, maybe your install is messed up? Try replacing &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;geometries.py&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;arcobjects.py&lt;/SPAN&gt;&lt;SPAN&gt; in arcpy from a fresh install of 10.1 SP1 and see if that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/project-open-data/esri2open" rel="nofollow" target="_blank"&gt;esri2open toolbox&lt;/A&gt;&lt;SPAN&gt; or the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/jasonbot/geojson-madness" rel="nofollow" target="_blank"&gt;geojson-madness toolbox&lt;/A&gt;&lt;SPAN&gt; and see if either of those work for you. If you're willing to experiment in the browser or on your local computer with node.js then &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/esri/Terraformer" rel="nofollow" target="_blank"&gt;Terraformer&lt;/A&gt;&lt;SPAN&gt; is also an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you go the geojson-madness route, there are two simple functions you could lift for your own purposes. One will &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/jasonbot/geojson-madness/blob/master/geojson_out.py#L22-58" rel="nofollow" target="_blank"&gt;reliably convert an arcpy geometry into GeoJSON&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/jasonbot/geojson-madness/blob/master/geojson_in.py#L124-158" rel="nofollow" target="_blank"&gt;the other will turn GeoJSON into an arcpy geometry (via WKT)&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2014 14:42:43 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2014-03-31T14:42:43Z</dc:date>
    <item>
      <title>Converting geometries between GeoJSON, esri JSON, and esri Python</title>
      <link>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246246#M19074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to be able to convert geometries between GeoJSON [1], esri JSON [2, 3], and esri Python objects [4] using ArcGIS 10.1 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://geojson.org/geojson-spec.html" rel="nofollow" target="_blank"&gt;http://geojson.org/geojson-spec.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;[2] &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000004m000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000004m000000&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;[3] &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jsapi/geometry-amd.html etc." rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/jsapi/geometry-amd.html etc.&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;[4] &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Geometry/018z00000070000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Geometry/018z00000070000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Converting GeoJSON to esri Python using arcpy.AsShape as described in &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000004m000000" rel="nofollow" target="_blank"&gt;[2]&lt;/A&gt;&lt;SPAN&gt; works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, converting esri JSON to esri Python described in example 6 on the same help page &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000004m000000" rel="nofollow" target="_blank"&gt;[2]&lt;/A&gt;&lt;SPAN&gt; raises an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the error but none of my experiments worked and this example is from the official help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;esri_json = {"paths" : [[[-97.08, 32.8], [-97.05, 32.6], [-97.06, 32.7], [-97.07, 32.6]], [[-97.4, 32.5], [-97.2, 32.75]]], "spatialReference" : {"wkid" : 4326}} polyline = arcpy.AsShape(esri_json, True) &amp;gt;&amp;gt;&amp;gt; # returns Traceback (most recent call last): &amp;nbsp; File "&amp;lt;editor selection&amp;gt;", line 1, in &amp;lt;module&amp;gt; TypeError: AsShape() takes exactly 1 argument (2 given)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believed it was possible to get esri JSON from esri Python using the JSON property on geometry objects &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Geometry/018z00000070000000" rel="nofollow" target="_blank"&gt;[4]&lt;/A&gt;&lt;SPAN&gt;, but this consistently fails with errors like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Traceback (most recent call last): &amp;nbsp; File "&amp;lt;editor selection&amp;gt;", line 6, in &amp;lt;module&amp;gt; AttributeError: 'PointGeometry' object has no attribute 'JSON'&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know about a reliable way of converting esri geometries to GeoJSON in Python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would be grateful for any comments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Filip.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 12:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246246#M19074</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2014-03-31T12:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting geometries between GeoJSON, esri JSON, and esri Python</title>
      <link>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246247#M19075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AsShape() takes exactly 1 argument (2 given)&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AttributeError: 'PointGeometry' object has no attribute 'JSON'&lt;/SPAN&gt;&lt;SPAN&gt; errors imply that you're on an version of ArcGIS before the JSON stuff was added. I thought I got all of that in at 10.1 SP1, maybe your install is messed up? Try replacing &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;geometries.py&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;arcobjects.py&lt;/SPAN&gt;&lt;SPAN&gt; in arcpy from a fresh install of 10.1 SP1 and see if that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/project-open-data/esri2open" rel="nofollow" target="_blank"&gt;esri2open toolbox&lt;/A&gt;&lt;SPAN&gt; or the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/jasonbot/geojson-madness" rel="nofollow" target="_blank"&gt;geojson-madness toolbox&lt;/A&gt;&lt;SPAN&gt; and see if either of those work for you. If you're willing to experiment in the browser or on your local computer with node.js then &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/esri/Terraformer" rel="nofollow" target="_blank"&gt;Terraformer&lt;/A&gt;&lt;SPAN&gt; is also an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you go the geojson-madness route, there are two simple functions you could lift for your own purposes. One will &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/jasonbot/geojson-madness/blob/master/geojson_out.py#L22-58" rel="nofollow" target="_blank"&gt;reliably convert an arcpy geometry into GeoJSON&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/jasonbot/geojson-madness/blob/master/geojson_in.py#L124-158" rel="nofollow" target="_blank"&gt;the other will turn GeoJSON into an arcpy geometry (via WKT)&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 14:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246247#M19075</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-03-31T14:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting geometries between GeoJSON, esri JSON, and esri Python</title>
      <link>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246248#M19076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks for your reply, Jason, and apologies for not checking my setup. The machine I was using yesterday did not have Service Pack 1 installed. Today I am with SP1 and the JSON property on geometries works as a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldn't find out-of-the-box arcpy conversion to GeoJSON but the functions you pointed out in your &lt;/SPAN&gt;&lt;A href="https://github.com/jasonbot/geojson-madness" rel="nofollow noopener noreferrer" target="_blank"&gt;geojson-madness&lt;/A&gt;&lt;SPAN&gt; library do the job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below I am adding my notes on this topic in context of Python/JavaScript in case anyone is interested. Corrections and additions are more than welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Filip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size:3;"&gt;&lt;STRONG&gt;Converting geometries between esri JSON, GeoJSON, and arcpy objects&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Python with arcpy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# GeoJSON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt; esri Python : arcpy.AsShape(x)
# GeoJSON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt; esri JSON&amp;nbsp;&amp;nbsp; : arcpy.AsShape(x).JSON
# esri Python --&amp;gt; GeoJSON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : geojson-madness.geometry_to_struct(x)
# esri Python --&amp;gt; esri JSON&amp;nbsp;&amp;nbsp; : x.JSON
# esri JSON&amp;nbsp;&amp;nbsp; --&amp;gt; esri Python : arcpy.AsShape(x, True)
# esri JSON&amp;nbsp;&amp;nbsp; --&amp;gt; GeoJSON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : geojson-madness.geometry_to_struct(arcpy.AsShape(x, True))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In JavaScript with esri js api and Terraformer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// esri JSON&amp;nbsp; --&amp;gt; esri JSAPI&amp;nbsp;&amp;nbsp; : esri.geometry.jsonUtils.fromJson(json)
// GeoJSON&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt; esri JSAPI&amp;nbsp;&amp;nbsp; : Terraformer.ArcGIS.convert(...)
// esri JSON&amp;nbsp; --&amp;gt; GeoJSON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Terraformer.ArcGIS.parse(...)
// esri JSAPI --&amp;gt; GeoJSON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Terraformer.ArcGIS.parse(...)
// esri JSAPI --&amp;gt; esri JSON&amp;nbsp;&amp;nbsp;&amp;nbsp; : esri JSON is representation of esri JSAPI
// GeoJSON&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt; esri JSON&amp;nbsp;&amp;nbsp;&amp;nbsp; : Terraformer.ArcGIS.convert(...)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Support for spatial reference in json is generally poor. Information about coordinate system is often lost in translation to different format. Often WGS84 is the only officially supported coordinate system. Therefore, extra care must be taken to handle coordinate systems properly on both server and client side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spatial reference in GeoJSON can be defined on any object by the 'crs' member, which is inherited and should not be overridden on children. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;crs_wgs84 = {'type': 'EPSG', 'properties': {'code': 4326}}
crs_osgb = {'type': 'EPSG', 'properties': {'code': 27700}}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spatial reference is esri JSON can be defined as WKT or WKID. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//{"wkid" : &amp;lt;wkid&amp;gt;, "latestWkid" : &amp;lt;wkid&amp;gt;, "vcsWkid" : &amp;lt;wkid&amp;gt;,"latestVcsWkid" : &amp;lt;wkid&amp;gt;}
var web_mercator = {"wkid" : 102100, "latestWkid" : 3857 }
var osgb = {"wkid": 27700}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Notable Python libraries&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import json
from osgeo import gdal
from osgeo import ogr
import shapely&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;A href="https://pypi.python.org/pypi/Shapely" rel="nofollow noopener noreferrer" target="_blank"&gt;https://pypi.python.org/pypi/Shapely&lt;/A&gt;
import pysal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;A href="http://pysal.readthedocs.org/en/latest/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://pysal.readthedocs.org/en/latest/index.html&lt;/A&gt;
import geojson-madness # &lt;A href="https://github.com/jasonbot/geojson-madness" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/jasonbot/geojson-madness&lt;/A&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Notable JavaScript libraries&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Terraformer &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/Terraformer" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/Esri/Terraformer&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;proj4js &lt;/SPAN&gt;&lt;A href="http://trac.osgeo.org/proj4js/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://trac.osgeo.org/proj4js/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;geojson-utils &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/geojson-utils" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/Esri/geojson-utils&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;koop (js server) &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/koop" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/Esri/koop&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Other notes&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.2 has tools 'JSON to Features' and 'Features to JSON' tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ogr2ogr should be able to convert formats to OGRGeoJSON.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.gdal.org/ogr/drv_geojson.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.gdal.org/ogr/drv_geojson.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/13029/how-to-convert-arcgis-server-json-to-geojson" rel="nofollow noopener noreferrer" target="_blank"&gt;ogr2ogr -f GeoJSON test.json "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0/query?where=objectid+%3D+objectid&amp;amp;outfields=*&amp;amp;f=json" OGRGeoJSON&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is an ArcGIS Server Object Extension that adds support for GeoJSON (didn't try it personally)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/geobabbler/AGSOpenFormats" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/geobabbler/AGSOpenFormats&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somebody already had an &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/ideaView?id=0873000000088U9AAI" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Idea &lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;RESOURCES&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;GeoJSON Specification:&lt;/SPAN&gt;&lt;A href="http://geojson.org/geojson-spec.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://geojson.org/geojson-spec.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;esri JavaScript geometries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/geometry-amd.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/jsapi/geometry-amd.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.esri.com/industries/landing-pages/geoservices/~/media/Files/Pdfs/library/whitepapers/pdfs/geoservices-rest-spec.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.esri.com/industries/landing-pages/geoservices/~/media/Files/Pdfs/library/whitepapers/pdfs/geoservices-rest-spec.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Geometry_Objects/02r3000000n1000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/#/Geometry_Objects/02r3000000n1000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246248#M19076</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2021-12-11T12:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting geometries between GeoJSON, esri JSON, and esri Python</title>
      <link>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246249#M19077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, arcpy geometry objects have the &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;__geo_interface__&lt;/SPAN&gt;&lt;SPAN&gt; attribute which does GeoJSON in most cases. It was unreliable with Polygons with rings until 10.2.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 22:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246249#M19077</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-04-01T22:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Converting geometries between GeoJSON, esri JSON, and esri Python</title>
      <link>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246250#M19078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of comments since this is an older thread.&amp;nbsp; Since 2014, Esri started support GeoJSON with &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/tools/conversion-toolbox/features-to-json.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/tools/conversion-toolbox/features-to-json.htm"&gt;Features To JSON—Help | ArcGIS Desktop&lt;/A&gt; at ArcGIS 10.5, which is handy for exporting sets of geometry objects to GeoJSON.&amp;nbsp; Unfortunately, sadly, &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/json-to-features.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/json-to-features.htm"&gt;JSON To Features—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; still does &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; support GeoJSON at ArcGIS 10.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, since 2014, the GeoJSON has been formally adopted as &lt;A class="link-titled" href="https://tools.ietf.org/html/rfc7946" title="https://tools.ietf.org/html/rfc7946"&gt;RFC 7946 - The GeoJSON Format&lt;/A&gt; .&amp;nbsp; Although what the IETF adopted was mostly the same, there are some important differences in the standard, most notably with the removal of alternative coordinate reference systems.&amp;nbsp; GeoJSON is now all ESPG: 4326.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 14:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-geometries-between-geojson-esri-json/m-p/246250#M19078</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-06-15T14:21:12Z</dc:date>
    </item>
  </channel>
</rss>

