<?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 How to update Hosted Feature Service spatialReference with update_definition in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-update-hosted-feature-service/m-p/767388#M564</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 am trying to update the definition of an existing Hosted Feature Service. I created a FeatureLayerCollection object from the item in ArcGIS Online and I am able to update some parts of the definition such as serviceDescription. However, when I try to update the spatialReference property, it returns {'success': True} without actually changing it. My guess is that it doesn't like that I'm passing it an object with another object in it, but I don't know any way around that. Here's a screenshot as an example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/454282_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if I can update this, or am I out of luck?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2019 21:54:27 GMT</pubDate>
    <dc:creator>KeithLarson1</dc:creator>
    <dc:date>2019-07-24T21:54:27Z</dc:date>
    <item>
      <title>How to update Hosted Feature Service spatialReference with update_definition</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-update-hosted-feature-service/m-p/767388#M564</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 am trying to update the definition of an existing Hosted Feature Service. I created a FeatureLayerCollection object from the item in ArcGIS Online and I am able to update some parts of the definition such as serviceDescription. However, when I try to update the spatialReference property, it returns {'success': True} without actually changing it. My guess is that it doesn't like that I'm passing it an object with another object in it, but I don't know any way around that. Here's a screenshot as an example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/454282_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if I can update this, or am I out of luck?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 21:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-update-hosted-feature-service/m-p/767388#M564</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2019-07-24T21:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to update Hosted Feature Service spatialReference with update_definition</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-update-hosted-feature-service/m-p/1513065#M10389</link>
      <description>&lt;P&gt;I ran into the same problem. The documentation for GIS.content.create_service says that a blank feature service will take the spatial reference of the first added layer, but I found this not to be true when is_view=True. A work around is to create the feature service with a specified wkid. Of course this means deleting the old feature service, creating a new one, and updating any reference to it.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-update-hosted-feature-service/m-p/1513065#M10389</guid>
      <dc:creator>jfisher</dc:creator>
      <dc:date>2024-07-31T17:27:29Z</dc:date>
    </item>
  </channel>
</rss>

