<?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: What coordinate is this and how can I convert it? in Coordinate Reference Systems Questions</title>
    <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792558#M593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be web Mercator, what was the source of the database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 20:42:23 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2014-07-23T20:42:23Z</dc:date>
    <item>
      <title>What coordinate is this and how can I convert it?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792556#M591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a coordinate database using coordinates like this: 3288396.9786247308, -11102996.686625781 &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used a random website (&lt;A class="jive-link-external-small" href="http://webmappingtools.com/FlexAWidget/CoordinateMenu/" rel="nofollow" target="_blank"&gt;Coordinate Menu Widget&lt;/A&gt;) to look it up, and it went right where it was supposed to, so it must be fairly universal. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is, what is the name of this system so I can learn how to convert it? I thought it was UTM but I haven't been able to convert it with any online tools.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, do you know of any programming libraries that convert this (PHP, JS, Java, C#, etc.)? Preferably PHP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792556#M591</guid>
      <dc:creator>CalebPitman</dc:creator>
      <dc:date>2014-07-23T20:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: What coordinate is this and how can I convert it?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792557#M592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sounds like a good one for &lt;A href="https://community.esri.com/migrated-users/3120"&gt;Melita Kennedy&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792557#M592</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2014-07-23T20:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: What coordinate is this and how can I convert it?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792558#M593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be web Mercator, what was the source of the database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792558#M593</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-07-23T20:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: What coordinate is this and how can I convert it?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792559#M594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is from an ESRI viewer. The JSON says "&lt;CODE&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;esriGeometryPoint&lt;/SPAN&gt;&lt;/CODE&gt;". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meant to say earlier that the point given goes to a spot in Texas. The lat/lng should be around 28,-99.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 21:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792559#M594</guid>
      <dc:creator>CalebPitman</dc:creator>
      <dc:date>2014-07-23T21:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: What coordinate is this and how can I convert it?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792560#M595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The chances are that it is in web mercator auxiliary sphere then as that is the coordinate system esri use for its basemaps. The maths for the conversion can be found on this blog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.gal-systems.com/2011/07/convert-coordinates-between-web.html" title="http://www.gal-systems.com/2011/07/convert-coordinates-between-web.html"&gt;Oren Gal GIS Blog: Convert coordinates between Web Mercator and WGS84 Geographic&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 21:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792560#M595</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-07-23T21:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: What coordinate is this and how can I convert it?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792561#M596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually just stumbled upon that method and converted it to PHP, but it's wrong. Anyone able to see why it didn't work? Maybe it's not web mercator? Or I failed at converting it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function convert($mercatorX_lon,$mercatorY_lat) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; $x = $mercatorX_lon;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $y = $mercatorY_lat;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num3 = $x / 6378137.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num4 = $num3 * 57.295779513082323;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num5 = floor(($num4 + 180.0) / 360.0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num6 = $num4 - ($num5 * 360.0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num7 = 1.5707963267948966 - (2.0 * atan(log ((-1.0 * $y) / 6378137.0)));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $mercatorX_lon = $num6;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $mercatorY_lat = $num7 * 57.295779513082323;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return $mercatorX_lon.','.$mercatorY_lat;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;echo convert(3287688.1314858599,-11102713.923204448);&lt;/P&gt;&lt;P&gt;// returns: 29.5338049793,31.9996076332&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual coordinates: 28.3063916, -99.7370334&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 21:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792561#M596</guid>
      <dc:creator>CalebPitman</dc:creator>
      <dc:date>2014-07-23T21:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: What coordinate is this and how can I convert it?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792562#M597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is definitely web mercator as my flex application is converting correctly, the only thing i can see which may be causing an issue is num 5, the code specifically floors to a double:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;double&lt;/SPAN&gt; num5 = &lt;SPAN class="type"&gt;Math&lt;/SPAN&gt;.Floor((&lt;SPAN class="keyword"&gt;double&lt;/SPAN&gt;)((num4 + 180.0) / 360.0));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where yours is not:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$num5 = floor(($num4 + 180.0) / 360.0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This maybe causing some rounding somewhere?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2520" alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2520_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 22:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792562#M597</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-07-23T22:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: What coordinate is this and how can I convert it?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792563#M598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony, thanks for the help! I found my mistake. I grabbed the wrong PHP function for exp. It was just the same as java (exp). I also put it in backwards, ouch... long day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those who need it, the PHP function for converting web mercator to latitude longitude is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function convert($mercatorX_lon,$mercatorY_lat) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; $x = $mercatorX_lon;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $y = $mercatorY_lat;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num3 = $x / 6378137.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num4 = $num3 * 57.295779513082323;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ex = ($num4 + 180.0) / 360.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num5 = floor($ex); // Math.Floor((num4 + 180.0) / 360.0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; //echo $num5 .'and'.$ex; die;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num6 = $num4 - ($num5 * 360.0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $num7 = 1.5707963267948966 - (2.0 * atan(exp ((-1.0 * $y) / 6378137.0)));&lt;/P&gt;&lt;P&gt;&amp;nbsp; //echo $num6 . ' and ' .$num7; die;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $mercatorX_lon = $num6;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $mercatorY_lat = $num7 * 57.295779513082323;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return $mercatorX_lon.','.$mercatorY_lat;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 22:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/what-coordinate-is-this-and-how-can-i-convert-it/m-p/792563#M598</guid>
      <dc:creator>CalebPitman</dc:creator>
      <dc:date>2014-07-23T22:46:27Z</dc:date>
    </item>
  </channel>
</rss>

