<?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: java.lang.NumberFormatException: Invalid int: &amp;quot;WGS84(DD)&amp;quot; in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404156#M2742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you see I am trying to create a layer with EPSG:32633(atleast I think thats how you do it). The wms is geoserver and it supports a broad range of reference systems, as we have not disabled any of the default ones. When testing the Wms sample project, i see that the map defaults to your service if no other layer is set?I cannot find a constructor that both sets reference system and a wms url. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 06:08:08 GMT</pubDate>
    <dc:creator>MariusEggen</dc:creator>
    <dc:date>2015-07-31T06:08:08Z</dc:date>
    <item>
      <title>java.lang.NumberFormatException: Invalid int: "WGS84(DD)"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404154#M2740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;com.esri.arcgis.android.samples.wmslayer W/System.err﹕ java.lang.NumberFormatException: Invalid int: "WGS84(DD)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am adding a custom WMS server like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #9876aa;"&gt;String wmsURL &lt;/SPAN&gt;= &lt;SPAN style="color: #6a8759;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;lan ip&amp;gt;:8080/geoserver/wms"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;wmsLayer &lt;/SPAN&gt;= &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;WMSLayer(&lt;SPAN style="color: #9876aa;"&gt;wmsURL&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;SpatialReference.&lt;SPAN style="font-style: italic;"&gt;create&lt;/SPAN&gt;(&lt;SPAN style="color: #6897bb;"&gt;32633&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I have debugged and decompiled the source and it is "class g" that is the problem, the array "t" which contains all the reference systems in the EPSG: range does Integer&lt;/SPAN&gt;&lt;SPAN&gt;.parseInt(var2.substring(&lt;SPAN&gt;5&lt;/SPAN&gt;)); ,but the "EPSG:WGS84(DD)" cannot be parsed like this and it throws the NumberFormatException and my layer will never be created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This was testet with the WmsLayer sample code with version &lt;SPAN style="color: #6a8759;"&gt;'com.esri.arcgis.android:arcgis-android:10.2.6-2'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 07:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404154#M2740</guid>
      <dc:creator>MariusEggen</dc:creator>
      <dc:date>2015-07-30T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NumberFormatException: Invalid int: "WGS84(DD)"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404155#M2741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does the WMS service support this spatial reference?&lt;/P&gt;&lt;P&gt;You could try and use the constructor which checks to see if the current mapviews spatial reference (which is set from the first layer you add, typically the basemap layer) is supported by the WMS service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404155#M2741</guid>
      <dc:creator>WillCrick</dc:creator>
      <dc:date>2015-07-30T19:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NumberFormatException: Invalid int: "WGS84(DD)"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404156#M2742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you see I am trying to create a layer with EPSG:32633(atleast I think thats how you do it). The wms is geoserver and it supports a broad range of reference systems, as we have not disabled any of the default ones. When testing the Wms sample project, i see that the map defaults to your service if no other layer is set?I cannot find a constructor that both sets reference system and a wms url. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 06:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404156#M2742</guid>
      <dc:creator>MariusEggen</dc:creator>
      <dc:date>2015-07-31T06:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NumberFormatException: Invalid int: "WGS84(DD)"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404157#M2743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you confirm that you are using the topographic basemap from ESRI that is set in the samples activity_main.xml layout file? This sets the MapViews spatial reference (which in this case is web mercator or 102100). You cannot change this once this is set.&amp;nbsp; If you want your MapView to be in a specific spatial reference then use a service which supports this and add this as your first layer to the MapView (and remove the topo map reference in the mapview xml definition in the layout file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried just adding the WMS Layer using the default constructor into the MapView (whilst still using the top basemap from the layout xml file)? If the map service supports web mercator, it should just work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 00:26:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/java-lang-numberformatexception-invalid-int-quot/m-p/404157#M2743</guid>
      <dc:creator>WillCrick</dc:creator>
      <dc:date>2015-08-04T00:26:34Z</dc:date>
    </item>
  </channel>
</rss>

