<?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: How to get rid of this error: &amp;quot;Feature collection need to be projected&amp;quot;? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-get-rid-of-this-error-quot-feature/m-p/63493#M459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your data is in WGS84 and you are using a local tiled layer as your base layer (which sets the spatial reference of the entire MapView) in Web Mercator. Dynamic re-projection of feature layers from a feature set are not supported. You will have to either use another base layer in WGS84 or reproject your features into Web Mercator (using the Geometry Engine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 20:55:30 GMT</pubDate>
    <dc:creator>WillCrick</dc:creator>
    <dc:date>2015-07-27T20:55:30Z</dc:date>
    <item>
      <title>How to get rid of this error: "Feature collection need to be projected"?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-get-rid-of-this-error-quot-feature/m-p/63492#M458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, I'm using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="_jivemacro_uid_14356937645172646 jive_macro_code jive_text_macro" data-renderedposition="50_8_912_16" jivemacro_uid="_14356937645172646"&gt;&lt;P&gt;fl = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;ArcGISFeatureLayer(getResources().getString(R.string.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;layerDefinition&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;fs&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;o)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create a feature layer locally, where fs is a FeatureSet loaded from a .txt file in JSON format, and 'o' are options of type Options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both layerDefinition and featureSet are in WGS84 Spatial Reference (4326) and my basemap is initialized as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14356937769597757" data-renderedposition="171_8_912_32" jivemacro_uid="_14356937769597757"&gt;&lt;P&gt;&lt;SPAN style="color: #9876aa;"&gt;map &lt;/SPAN&gt;= &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;MapView(&lt;SPAN style="color: #cc7832;"&gt;this, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;WEB_MERCATOR&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, new &lt;/SPAN&gt;ArcGISLocalTiledLayer(Environment.&lt;SPAN style="font-style: italic;"&gt;getExternalStorageDirectory&lt;/SPAN&gt;().getAbsolutePath() + &lt;SPAN style="color: #6a8759;"&gt;"/" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"ingenio_la_cabana" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"/" &lt;/SPAN&gt;+ &lt;SPAN style="color: #6a8759;"&gt;"mapa_ingenio.tpk"&lt;/SPAN&gt;).getFullExtent())&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt; font-family: helvetica;"&gt;The problem is that it shows this error &lt;SPAN style="color: #e23d39;"&gt;"Feature collection need to be projected"&lt;/SPAN&gt; when I try to load my FeatureLayer locally. &lt;SPAN style="color: #2873ee;"&gt;This problem appears randomly&lt;/SPAN&gt;; sometimes it crashes and doesn't load the layer and sometimes it works fine without touching any code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this an Arcgis for Android bug? Or is it something I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me! thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 19:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-get-rid-of-this-error-quot-feature/m-p/63492#M458</guid>
      <dc:creator>CamiloMedina</dc:creator>
      <dc:date>2015-06-30T19:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of this error: "Feature collection need to be projected"?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-get-rid-of-this-error-quot-feature/m-p/63493#M459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your data is in WGS84 and you are using a local tiled layer as your base layer (which sets the spatial reference of the entire MapView) in Web Mercator. Dynamic re-projection of feature layers from a feature set are not supported. You will have to either use another base layer in WGS84 or reproject your features into Web Mercator (using the Geometry Engine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 20:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-get-rid-of-this-error-quot-feature/m-p/63493#M459</guid>
      <dc:creator>WillCrick</dc:creator>
      <dc:date>2015-07-27T20:55:30Z</dc:date>
    </item>
  </channel>
</rss>

