<?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 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823783#M2927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this fixes my issue, although I'm still concerned if projections don't match ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2019 10:51:15 GMT</pubDate>
    <dc:creator>OisinSlevin</dc:creator>
    <dc:date>2019-01-18T10:51:15Z</dc:date>
    <item>
      <title>Spatially Enabled Dataframe</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823779#M2923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi Guys,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Having an issue with a projection where the projection is off by 70 meters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;example:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;gis = GIS("url", "user", password)&lt;BR /&gt;content=gis.content.get("ID")&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;layers=&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;content&lt;/SPAN&gt;.layers&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;points=pd.DataFrame.spatial.from_layer(&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;layers&lt;/SPAN&gt;[0])&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;points['SHAPE']=points['SHAPE'].geom.project_as(29900)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG style="font-size: 14px;"&gt;my source data is in&amp;nbsp; EPSG:2157 but i need EPSG:29900, when I view the source data in an eternal package it &lt;/STRONG&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;STRONG&gt;aligns&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 14px;"&gt;&amp;nbsp;with the the backround map, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG style="font-size: 14px;"&gt;if I project to&amp;nbsp;&lt;STRONG style="font-size: 14px;"&gt;EPSG:29900 I'm roughly 70meters off from the basemap&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG style="font-size: 14px;"&gt;if i project_as&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG style="font-size: 14px;"&gt;&lt;STRONG&gt;EPSG:4&lt;/STRONG&gt;326 it seems to work with no issues and aligns with the base map.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG style="font-size: 14px;"&gt;Is there any known issues or any other ways to changing coordinate systems.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG style="font-size: 14px;"&gt;have had the same issue using spatial DataFrame and Spatially Enabled Dataframe.&amp;nbsp;&lt;BR /&gt;I've also used geopandas to convert the data and that works perfectly so I'm nearly certain there is an issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 16:39:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823779#M2923</guid>
      <dc:creator>OisinSlevin</dc:creator>
      <dc:date>2019-01-16T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823780#M2924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it just between EPSG:2157 and EPSG:29900 or can you reproduce between other combinations?&amp;nbsp; Also, what if you try from EPSG:2157 to EPSG:29902 ?&amp;nbsp; According to several sites, EPSG:29900 is deprecated, so maybe that is causing an issue with the transformation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 19:08:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823780#M2924</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-01-16T19:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823781#M2925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried using 29902, I've also tried converting from 2157 to 4326, and then projecting to 29902, so I think its just an issue with the projection to 29902.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 10:45:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823781#M2925</guid>
      <dc:creator>OisinSlevin</dc:creator>
      <dc:date>2019-01-17T10:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823782#M2926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect the projection was done as expected.&lt;/P&gt;&lt;P&gt;Could you try this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"url"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"user"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
content&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 

layers&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers


&lt;SPAN class="comment token"&gt;#points=pd.DataFrame.spatial.from_layer(layers[0])&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#points['SHAPE']=points['SHAPE'].geom.project_as(29900)&lt;/SPAN&gt;

feature_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; layers&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;
fset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; feature_layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_sr&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;29900&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
sdf1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fset&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sdf

&lt;SPAN class="comment token"&gt;# then you can export the sdf1 as other formats if you like&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;/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;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;&lt;/P&gt;&lt;P&gt;The difference is the projection will be done on the server rather than in the browser,&amp;nbsp;at least this is what I am guessing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823782#M2926</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2021-12-12T09:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823783#M2927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this fixes my issue, although I'm still concerned if projections don't match ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 10:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe/m-p/823783#M2927</guid>
      <dc:creator>OisinSlevin</dc:creator>
      <dc:date>2019-01-18T10:51:15Z</dc:date>
    </item>
  </channel>
</rss>

