<?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 Extract Data from External Feature Service in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-data-from-external-feature-service/m-p/1052471#M5983</link>
    <description>&lt;P&gt;I am trying to create a tool to measure distances from a subset of the Microsoft Building Footprint service (&lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0/)" target="_blank" rel="noopener"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0/)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I am able to extract data within a given Polygon in a Webmap, however I cannot get arcgis.features.analysis.extract_data() to work for the buildings within the same Polygon.&lt;/P&gt;&lt;P&gt;I receive the errors:&amp;nbsp;&lt;BR /&gt;GetHostedLayers for parameter 0 failed. Error: {"code" : 0, "messageCode":"GPEXT_018","message": "Number of features in service &lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0&lt;/A&gt; exceeds the limit of 100,000 features. Use a hosted feature service as input to analyze large dataset.","params":{"url" : "&lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0&lt;/A&gt;"}} {"messageCode": "AO_100026", "message": "ExtractData failed."} Failed to execute (ExtractData). Failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Erroring Code:&lt;BR /&gt;BLDG =&amp;nbsp; "&lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0&lt;/A&gt;"&lt;BR /&gt;bld = BLDG.layers[0]&lt;BR /&gt;Test&amp;nbsp; = gis.content.get(&lt;EM&gt;hosted feature Polygon&lt;/EM&gt;)&lt;BR /&gt;arcgis.features.analysis.extract_data(input_layers=[bld], extent=Test, clip=True, data_format='FileGeodatabase', output_name='Buildings')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working Webmap URL Query:&lt;BR /&gt;https://&lt;EM&gt;&amp;lt;portal&amp;gt;&lt;/EM&gt;/hosted/rest/services/System/SpatialAnalysisTools/GPServer/ExtractData/submitJob?f=json&lt;BR /&gt;&amp;amp;InputLayers=[&lt;EM&gt;&amp;lt;MSBFP&amp;gt;&lt;/EM&gt;] &amp;amp;Clip=false&amp;amp;DataFormat=FILEGEODATABASE&amp;amp;Extent={&lt;EM&gt;&amp;lt;hosted Polygon&amp;gt;&lt;/EM&gt;,"serviceToken":&amp;lt;&lt;EM&gt;token&lt;/EM&gt;&amp;gt;,"name":"&lt;EM&gt;Polygon"}&lt;/EM&gt;&amp;amp;context={&amp;lt;&lt;EM&gt;PolygonExtent&amp;gt;&lt;/EM&gt;}&amp;amp;OutputName=&lt;EM&gt;{&amp;lt;OutputName&amp;gt;&lt;/EM&gt;}&amp;amp;token&lt;EM&gt;&amp;lt;token&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with my python code? Is there a way to query such large datasets? Or do I need to run my script by writing the full URL Query call as it seems to work even if it is more complex and round about process?&lt;BR /&gt;&lt;BR /&gt;By defining extents , do we still need to download the entire service?&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 17:34:23 GMT</pubDate>
    <dc:creator>DavidBates-Jefferys</dc:creator>
    <dc:date>2021-05-07T17:34:23Z</dc:date>
    <item>
      <title>Extract Data from External Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-data-from-external-feature-service/m-p/1052471#M5983</link>
      <description>&lt;P&gt;I am trying to create a tool to measure distances from a subset of the Microsoft Building Footprint service (&lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0/)" target="_blank" rel="noopener"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0/)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I am able to extract data within a given Polygon in a Webmap, however I cannot get arcgis.features.analysis.extract_data() to work for the buildings within the same Polygon.&lt;/P&gt;&lt;P&gt;I receive the errors:&amp;nbsp;&lt;BR /&gt;GetHostedLayers for parameter 0 failed. Error: {"code" : 0, "messageCode":"GPEXT_018","message": "Number of features in service &lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0&lt;/A&gt; exceeds the limit of 100,000 features. Use a hosted feature service as input to analyze large dataset.","params":{"url" : "&lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0&lt;/A&gt;"}} {"messageCode": "AO_100026", "message": "ExtractData failed."} Failed to execute (ExtractData). Failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Erroring Code:&lt;BR /&gt;BLDG =&amp;nbsp; "&lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0" target="_blank" rel="noopener"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/MSBFP2/FeatureServer/0&lt;/A&gt;"&lt;BR /&gt;bld = BLDG.layers[0]&lt;BR /&gt;Test&amp;nbsp; = gis.content.get(&lt;EM&gt;hosted feature Polygon&lt;/EM&gt;)&lt;BR /&gt;arcgis.features.analysis.extract_data(input_layers=[bld], extent=Test, clip=True, data_format='FileGeodatabase', output_name='Buildings')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working Webmap URL Query:&lt;BR /&gt;https://&lt;EM&gt;&amp;lt;portal&amp;gt;&lt;/EM&gt;/hosted/rest/services/System/SpatialAnalysisTools/GPServer/ExtractData/submitJob?f=json&lt;BR /&gt;&amp;amp;InputLayers=[&lt;EM&gt;&amp;lt;MSBFP&amp;gt;&lt;/EM&gt;] &amp;amp;Clip=false&amp;amp;DataFormat=FILEGEODATABASE&amp;amp;Extent={&lt;EM&gt;&amp;lt;hosted Polygon&amp;gt;&lt;/EM&gt;,"serviceToken":&amp;lt;&lt;EM&gt;token&lt;/EM&gt;&amp;gt;,"name":"&lt;EM&gt;Polygon"}&lt;/EM&gt;&amp;amp;context={&amp;lt;&lt;EM&gt;PolygonExtent&amp;gt;&lt;/EM&gt;}&amp;amp;OutputName=&lt;EM&gt;{&amp;lt;OutputName&amp;gt;&lt;/EM&gt;}&amp;amp;token&lt;EM&gt;&amp;lt;token&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with my python code? Is there a way to query such large datasets? Or do I need to run my script by writing the full URL Query call as it seems to work even if it is more complex and round about process?&lt;BR /&gt;&lt;BR /&gt;By defining extents , do we still need to download the entire service?&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 17:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-data-from-external-feature-service/m-p/1052471#M5983</guid>
      <dc:creator>DavidBates-Jefferys</dc:creator>
      <dc:date>2021-05-07T17:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data from External Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-data-from-external-feature-service/m-p/1052492#M5984</link>
      <description>&lt;P&gt;What's the purpose of extracting the data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'exceeds the limit of 100,000 features'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you elaborated a bit more it might lead to a better solution than trying to download &amp;gt;100,000 polygons to then analyse.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 21:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-data-from-external-feature-service/m-p/1052492#M5984</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-04-28T21:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data from External Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-data-from-external-feature-service/m-p/1052499#M5985</link>
      <description>&lt;P&gt;The goal of my script is to generate buffers off the Building footprints, using a User Provided polygon and distance that will then be used for further analysis.&lt;/P&gt;&lt;P&gt;I generally have gotten the same 'exceeds limit error' when using arcgis.features.analysis.create_buffers, so I am trying to create a subset of the original dataset, and am open to other ways to do this&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 21:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/extract-data-from-external-feature-service/m-p/1052499#M5985</guid>
      <dc:creator>DavidBates-Jefferys</dc:creator>
      <dc:date>2021-04-28T21:13:48Z</dc:date>
    </item>
  </channel>
</rss>

