<?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 JSON To Features &amp;quot;POLYLINE&amp;quot; geometry type in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/json-to-features-quot-polyline-quot-geometry-type/m-p/33908#M1298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I imported a GeoJSON using JSON to Features (AGP 2.3.2). Unfortunately there's no option to select the geometry type through the GP dialog box. When I reviewed the documentation for the python code example, I saw that "geometry_type" can convert "POLYLINE". However, according to&amp;nbsp;&lt;A href="https://tools.ietf.org/html/rfc7946#section-3.1.4"&gt;RFC7946 Section 3.1.4&lt;/A&gt;&amp;nbsp;there is no Polyline type that GeoJSON recognizes. LineString appears to be the equivalent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I stepped through the geometry types, seeing if the python snippet would convert the appropriate geometry, I confirmed that it isn't seeing the "LineString" geometry. Specifying Polyline doesn't search for LineString.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another odd thing I noticed is the tool seemed to "lock on" to a geometry type. I was using the same python&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.JSONToFeatures_conversion(r"C:\Users\gmarcus\Downloads\Testing (4).json","TestJSONImportPyPolygon", 'POLYGON')&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.JSONToFeatures_conversion(r"C:\Users\gmarcus\Downloads\Testing (4).json","TestJSONImportPyPoint", 'POINT')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but only points were converted. This&amp;nbsp;&lt;EM&gt;didn't&lt;/EM&gt; happen when I first ran the GP tool from the dialog box (converted to polygon by default)&lt;/P&gt;&lt;P&gt;It didn't happen when I ran the python command and first selected polygon.&lt;/P&gt;&lt;P&gt;It only occurred after I ran the python command and selected point. It's stuck on point now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Restarting the program results in the same behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;Has anyone run into this before?&lt;/P&gt;&lt;P&gt;Did you submit a bug request?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2019 20:14:54 GMT</pubDate>
    <dc:creator>GabrielMarcus1</dc:creator>
    <dc:date>2019-04-11T20:14:54Z</dc:date>
    <item>
      <title>JSON To Features "POLYLINE" geometry type</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/json-to-features-quot-polyline-quot-geometry-type/m-p/33908#M1298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I imported a GeoJSON using JSON to Features (AGP 2.3.2). Unfortunately there's no option to select the geometry type through the GP dialog box. When I reviewed the documentation for the python code example, I saw that "geometry_type" can convert "POLYLINE". However, according to&amp;nbsp;&lt;A href="https://tools.ietf.org/html/rfc7946#section-3.1.4"&gt;RFC7946 Section 3.1.4&lt;/A&gt;&amp;nbsp;there is no Polyline type that GeoJSON recognizes. LineString appears to be the equivalent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I stepped through the geometry types, seeing if the python snippet would convert the appropriate geometry, I confirmed that it isn't seeing the "LineString" geometry. Specifying Polyline doesn't search for LineString.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another odd thing I noticed is the tool seemed to "lock on" to a geometry type. I was using the same python&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.JSONToFeatures_conversion(r"C:\Users\gmarcus\Downloads\Testing (4).json","TestJSONImportPyPolygon", 'POLYGON')&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.JSONToFeatures_conversion(r"C:\Users\gmarcus\Downloads\Testing (4).json","TestJSONImportPyPoint", 'POINT')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but only points were converted. This&amp;nbsp;&lt;EM&gt;didn't&lt;/EM&gt; happen when I first ran the GP tool from the dialog box (converted to polygon by default)&lt;/P&gt;&lt;P&gt;It didn't happen when I ran the python command and first selected polygon.&lt;/P&gt;&lt;P&gt;It only occurred after I ran the python command and selected point. It's stuck on point now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Restarting the program results in the same behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;Has anyone run into this before?&lt;/P&gt;&lt;P&gt;Did you submit a bug request?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 20:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/json-to-features-quot-polyline-quot-geometry-type/m-p/33908#M1298</guid>
      <dc:creator>GabrielMarcus1</dc:creator>
      <dc:date>2019-04-11T20:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: JSON To Features "POLYLINE" geometry type</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/json-to-features-quot-polyline-quot-geometry-type/m-p/33909#M1299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload a sample/example data set that demonstrates this behavior? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 21:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/json-to-features-quot-polyline-quot-geometry-type/m-p/33909#M1299</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-11T21:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: JSON To Features "POLYLINE" geometry type</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/json-to-features-quot-polyline-quot-geometry-type/m-p/33910#M1300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the extension of the file from .json to .geojson and it worked as predicted. The file was organized as a geojson. I initially believed the tool would read the content of either and respond appropriately to what it found. That was not the case.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 21:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/json-to-features-quot-polyline-quot-geometry-type/m-p/33910#M1300</guid>
      <dc:creator>GabrielMarcus1</dc:creator>
      <dc:date>2019-04-16T21:39:32Z</dc:date>
    </item>
  </channel>
</rss>

