<?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: Spatially enabled dataframe overwrite layer breaking spatial reference in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-overwrite-layer/m-p/1542636#M10702</link>
    <description>&lt;P&gt;... and oh yeah, it also truncates the headers.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 18:46:12 GMT</pubDate>
    <dc:creator>DougZietz1</dc:creator>
    <dc:date>2024-09-25T18:46:12Z</dc:date>
    <item>
      <title>Spatially enabled dataframe overwrite layer breaking spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-overwrite-layer/m-p/1542617#M10700</link>
      <description>&lt;P&gt;The process goes as such:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I create my sedf from a df using a geometry field and declare the wkid in the spatial reference.&lt;/LI&gt;&lt;LI&gt;Publish the sedf as a new feature layer with only name and the gis. It works as expected.&lt;/LI&gt;&lt;LI&gt;I run the same script but instead of creating a new feature layer, I overwrite. It changes the projection.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;from arcgis.geometry import SpatialReference&lt;/P&gt;&lt;P&gt;sr = SpatialReference(wkid=4326) # WGS 84&lt;BR /&gt;sedf = pd.DataFrame.spatial.from_df(df,geometry_column='geometry',sr=sr)&lt;/P&gt;&lt;P&gt;lyr = sedf.spatial.to_featurelayer('feat_layer_name', gis=gis) # works correctly&lt;/P&gt;&lt;P&gt;lyr = sedf.spatial.to_featurelayer(gis=gis,overwrite=True,service={'featureServiceId':'1234567890abcdefgh','layer':0}) # breaks projection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like a bug. I'd rather not have to go back to the old method of updating feature layers as this &lt;U&gt;&lt;EM&gt;should&lt;/EM&gt; &lt;/U&gt;be the standard.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 18:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-overwrite-layer/m-p/1542617#M10700</guid>
      <dc:creator>DougZietz1</dc:creator>
      <dc:date>2024-09-25T18:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially enabled dataframe overwrite layer breaking spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-overwrite-layer/m-p/1542621#M10701</link>
      <description>&lt;P&gt;Oh yeah, it also keeps creating extra shapefiles and feature layers...&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 18:25:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-overwrite-layer/m-p/1542621#M10701</guid>
      <dc:creator>DougZietz1</dc:creator>
      <dc:date>2024-09-25T18:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially enabled dataframe overwrite layer breaking spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-overwrite-layer/m-p/1542636#M10702</link>
      <description>&lt;P&gt;... and oh yeah, it also truncates the headers.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 18:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-overwrite-layer/m-p/1542636#M10702</guid>
      <dc:creator>DougZietz1</dc:creator>
      <dc:date>2024-09-25T18:46:12Z</dc:date>
    </item>
  </channel>
</rss>

