<?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: GeoJSON response size limit? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/geojson-response-size-limit/m-p/204419#M8024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;found the problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it was the curves within the geometry, once simplified into true vertices the geojson response returns fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding it working via the Open Data site, I can only assume it is running the geometry through its own simplify routine before converting to geojson, just a guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2017 17:24:26 GMT</pubDate>
    <dc:creator>DaveOrlando</dc:creator>
    <dc:date>2017-03-08T17:24:26Z</dc:date>
    <item>
      <title>GeoJSON response size limit?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geojson-response-size-limit/m-p/204417#M8022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm curious if I'm running into a size limit in the response of a GeoJSON request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two published layers, points and polygons.&lt;/P&gt;&lt;P&gt;I can successfully query all the points or specific points in pjson, json and geojson&lt;/P&gt;&lt;P&gt;I can successfully query specific polygons in pjson, json and geojson&lt;/P&gt;&lt;P&gt;I can successfully query all the polygons in pjson and json,&lt;/P&gt;&lt;P&gt;but it fails on geojson for all the polygons (code 400).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;funny thing is, I added it to our OpenData portal and was successful getting all the polygons in geojson that way, which is ultimately querying the same data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out what the problem is for geojson on my REST endpoint when querying all the polygons (only 190)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geojson-response-size-limit/m-p/204417#M8022</guid>
      <dc:creator>DaveOrlando</dc:creator>
      <dc:date>2017-03-07T21:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: GeoJSON response size limit?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geojson-response-size-limit/m-p/204418#M8023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just guessing here but it does not sound like you're hitting limit on the volume of a response, if there even is any.&lt;/P&gt;&lt;P&gt;You could try to adjust the maximum number of records the service should return from a query to something like 10 or less and try your queries again.&lt;/P&gt;&lt;P&gt;Have you tried running Check Geometry and Repair Geometry tools on your polygon feature class in ArcGIS for Desktop?&lt;/P&gt;&lt;P&gt;Also, &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/features-to-json.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;exporting the data to GeoJSON in ArcMap&lt;/A&gt; may reveal where the problem is.&lt;/P&gt;&lt;P&gt;If your polygons are not massive (i.e. if they don't have many vertices), I would try looking at them in GeoJSON also in the Python window like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'c:\path\to\polygons.shp'&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SHAPE@JSON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; sc&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; sc&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__geo_interface__&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See also&amp;nbsp;&lt;A href="https://community.esri.com/thread/90950" target="_blank"&gt;Converting geometries between GeoJSON, esri JSON, and esri Python&lt;/A&gt;&amp;nbsp;, especially the last contribution.&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geojson-response-size-limit/m-p/204418#M8023</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2021-12-11T10:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: GeoJSON response size limit?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geojson-response-size-limit/m-p/204419#M8024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;found the problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it was the curves within the geometry, once simplified into true vertices the geojson response returns fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding it working via the Open Data site, I can only assume it is running the geometry through its own simplify routine before converting to geojson, just a guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 17:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geojson-response-size-limit/m-p/204419#M8024</guid>
      <dc:creator>DaveOrlando</dc:creator>
      <dc:date>2017-03-08T17:24:26Z</dc:date>
    </item>
  </channel>
</rss>

