<?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: Geometry cannot be converted to spatial reference of the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15684#M1442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; projectParams.geometries = passedExtent; is suppose to be an array of geometries like:&lt;/P&gt;&lt;P&gt;projectParams.geometries = [passedExtent];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 19:24:19 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-08-25T19:24:19Z</dc:date>
    <item>
      <title>Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15681#M1439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: Consolas; color: #222222; background: white;"&gt;Please help me if you can, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: Consolas; color: #222222; background: white;"&gt;I'm getting the following message in the console ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: Consolas; color: #222222; background: white;"&gt;Map: Geometry (wkid: 102685) cannot be converted to spatial reference of the map (wkid: 102100)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: Consolas; color: #222222; background: white;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: Consolas; color: #222222; background: white;"&gt;Similar to this thread&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&lt;A _jive_internal="true" data-containerid="2128" data-containertype="14" data-objectid="66936" data-objecttype="1" href="https://community.esri.com/thread/66936"&gt;https://community.esri.com/thread/66936&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found this one which appears related&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2128" data-containertype="14" data-objectid="75265" data-objecttype="1" href="https://community.esri.com/thread/75265"&gt;Map options: issues with non-mercator spatial reference&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;I tried using the suggestion by Adam Skoog in that first thread (66936) but when I get to what shows up as line # 07. In his code, I get an error as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Uncaught TypeError: Cannot read property 'spatialReference' of undefined&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12px; font-family: Consolas;"&gt;Which seems odd since all of this is inside a require block that includes Map, ProjectParameters, SpatialReference, Extent, Geometry, GeometryService etc. etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;SPAN style="color: #222222; font-family: Consolas; font-size: 12px;"&gt;My code looks like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriConfig.defaults.io.proxyUrl = "/proxy";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriConfig.defaults.io.alwaysUseProxy = false;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriConfig.defaults.geometryService = new GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// I have xMin, xMax, yMin, yMax sent in to this php file and it seems I need the Number() fx to get real numbers&lt;/P&gt;&lt;P&gt;// This prints the following to the console ...&lt;/P&gt;&lt;P&gt;// -8819410.666559163 4792613.494165327 -8813596.67509507 4794481.424044095 pmeasure.js:50&lt;/P&gt;&lt;P&gt;// -8816503.670827117 4793547.459104711 pmeasure.js:51&lt;/P&gt;&lt;P&gt;// AND IF THE BLOCK STARTING WITH "var defer = " IS UNCOMMENTED, I GET THIS&lt;/P&gt;&lt;P&gt;// Uncaught TypeError: Cannot read property 'spatialReference' of undefined &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;&amp;nbsp;&amp;nbsp;&amp;nbsp; var avgX = ((Number(xMin) + Number(xMax)) / 2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var avgY = ((Number(yMin) + Number(yMax)) / 2);&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(xMin, yMin, xMax, yMax);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(avgX, avgY);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var passedExtent = new esri.geometry.Extent(Number(xMin), Number(yMin), Number(xMax), Number(yMax), new esri.SpatialReference({wkid:102685}) );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var projectParams = new esri.tasks.ProjectParameters();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectParams.geometries = passedExtent;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectParams.outSR = new esri.SpatialReference({wkid:102100}); // map.spatialReference;&amp;nbsp; ummmmm map not defined yet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectParams.spatialReference = new esri.SpatialReference({wkid:2248}); // map.spatialReference;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // var defer = esri.config.defaults.geometryService.project(projectParams);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // dojo.when(defer, function (projectedGeometry) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; if (projectedGeometry.length &amp;gt; 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(projectedGeometry[0]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // });&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("map", { &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "streets",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [avgX, avgY], // center: [-79.23, 39.51],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent: passedExtent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 17:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15681#M1439</guid>
      <dc:creator>JohnChurchill</dc:creator>
      <dc:date>2014-08-25T17:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15682#M1440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Maybe I am mis-reading this but &lt;STRONG&gt;projectParams&lt;/STRONG&gt; does not have a &lt;STRONG&gt;spatialReference&lt;/STRONG&gt; property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 18:04:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15682#M1440</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-25T18:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15683#M1441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The line that gives the error is this line.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;var defer = esri.config.defaults.geometryService.project(projectParams);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;I did add a line &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; projectParams.spatialReference = new esri.SpatialReference({wkid:2248});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I comment that out I still get that error in red. In fact that is why I added it (in a weak attempt to fix the error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Uncaught TypeError: Cannot read property 'spatialReference' of undefined&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 19:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15683#M1441</guid>
      <dc:creator>JohnChurchill</dc:creator>
      <dc:date>2014-08-25T19:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15684#M1442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; projectParams.geometries = passedExtent; is suppose to be an array of geometries like:&lt;/P&gt;&lt;P&gt;projectParams.geometries = [passedExtent];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 19:24:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15684#M1442</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-25T19:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15685#M1443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - Thanks for your help -&amp;nbsp; if I send it this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spatRef = new esri.SpatialReference({wkid:2248});&lt;/P&gt;&lt;P&gt;var passedExtent = new esri.geometry.Extent({"xmin": Number(xMin), "ymin": Number(yMin), "xmax": Number(xMax), "ymax": Number(yMax), "spatialReference":spatRef});`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then do this ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var projectParams = new ProjectParameters();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectParams.geometries = [passedExtent];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectParams.outSR = map.spatialReference;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm getting this error instead ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Uncaught TypeError: Cannot read property 'wkid' of undefined&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which is actually where I was earlier ... and I still get this ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Map: Geometry (wkid: 102685) cannot be converted to spatial reference of the map (wkid: 102100)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;I noted too that the brackets don't matter, I get the exact same result either way with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;projectParams.geometries = [passedExtent];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;projectParams.geometries = passedExtent;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Am I formatting the "Extent" incorrectly ? It seems to me I'm formatting it just like in this guide &lt;A href="https://developers.arcgis.com/javascript/jshelp/intro_extents.html" title="https://developers.arcgis.com/javascript/jshelp/intro_extents.html"&gt;Setting and using extents in a map | Guide | ArcGIS API for JavaScript&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 19:41:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15685#M1443</guid>
      <dc:creator>JohnChurchill</dc:creator>
      <dc:date>2014-08-25T19:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15686#M1444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can you give me some example of the extent numbers you are trying to pass (and describe where that extent should be in the world) and its wkid 102685 or 2248. I need to trow together a sample to see what going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 19:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15686#M1444</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-25T19:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15687#M1445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what the problem is, but I wanted to double-check the spatial references (coordinate systems) that you're using. wkid:102685 and wkid:2248 are both NAD 1983 (US feet) State Plane Maryland. You should be able to use either wkid unless you're using a very old geometry service, and we changed the wkid from 102685 to 2248 a while ago. Are you positive that the values/extent that you're passing are in this coordinate system, or in Web Mercator? Note: I may have the map vs source/layer coordinate systems backwards. If they were actually Web Mercator or lat/lon, that can cause errors like "can't convert".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Another possibility is that it's complaining about the two different GCS: NAD83 and WGS84, but then there should be some way to set a geographic/datum transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Melita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 20:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15687#M1445</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2014-08-25T20:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15688#M1446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response - Yes I'm using MD State Plane. Here is a link to the service I'm trying to use.&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.garrettcounty.org:6080/arcgis/rest/services/P_and_Z/Parcels_and_Zoning/MapServer" title="http://gis.garrettcounty.org:6080/arcgis/rest/services/P_and_Z/Parcels_and_Zoning/MapServer"&gt;P_and_Z/Parcels_and_Zoning (MapServer)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;That is good information because I wasn't sure which to use or why it was on the list twice (now I know). It is probably best to use 2248 then if it is more up to date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible (maybe probable now that I look at the extents of my service) that these coordinates are Web Mercator and not wkid: 2248&lt;/P&gt;&lt;P&gt;so perhaps I shouldn't be trying to project these anyway but I didn't have any luck earlier trying to set the map extent e.g.&lt;/P&gt;&lt;P&gt;but maybe I should go back and work from this instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("map", { &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "streets",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [avgX, avgY], // center: [-79.23, 39.51],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent: passedExtent,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the xMin, xMax, yMin, and yMax I get in console.log look like this&lt;/P&gt;&lt;P class="console-message-wrapper" style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;/P&gt;&lt;DIV class="console-log-level console-message" style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #f0f0f0; padding: 1px 22px 1px 0; margin-left: 24px;"&gt;&lt;SPAN class="console-message-text source-code"&gt;-8819410.666559163 4792613.494165327 -8813596.67509507 4794481.424044095 &lt;A class="console-message-url webkit-html-resource-link" style="text-align: right; margin-left: 4px; color: #545454; text-decoration: underline;" title="http://localhost/javascript/pmeasure.js:50"&gt;pmeasure.js:50&lt;/A&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="console-message-wrapper" style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;/P&gt;&lt;DIV class="console-log-level console-message" style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #f0f0f0; padding: 1px 22px 1px 0; margin-left: 24px;"&gt;&lt;SPAN class="console-message-text source-code"&gt;&lt;SPAN class="source-code console-formatted-number" style="color: #1c00cf;"&gt;-8816503.670827117 &lt;SPAN class="source-code console-formatted-number" style="color: #1c00cf;"&gt;4793547.459104711 (avgX and avgY)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="console-log-level console-message" style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #f0f0f0; padding: 1px 22px 1px 0; margin-left: 24px;"&gt; &lt;/DIV&gt;&lt;DIV class="console-log-level console-message" style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #f0f0f0; padding: 1px 22px 1px 0; margin-left: 24px;"&gt;which is not in the range I would expect.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 20:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15688#M1446</guid>
      <dc:creator>JohnChurchill</dc:creator>
      <dc:date>2014-08-25T20:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15689#M1447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Those are definitely Web Mercator already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 20:29:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15689#M1447</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-25T20:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry cannot be converted to spatial reference of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15690#M1448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I'm happy to say that I got this to work the way I wanted to. I gave Robert credit for the correct answer since he was diligent in helping me out, though Melita got me on the right track. Thanks to Robert and Melita's guidance, I confirmed that the coordinates I was getting were Web Mercator already so I did not need to attempt to project them. I assumed my map was in Web Mercator and that the streets basemap was in Web Mercator but it did occur to me that when I created the map variable, I was setting the center to [-79.2, 39.5] which I know are geographic coordinates wkid:4326. I'm not sure how or why the map is using 4326.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also learned from reading about this that I don't need the entire extent (this is apparently an old way of doing this), I just needed the center and zoom level which are available through the getCenter and getLevel functions. I'm using v3.10 of the arcgis javascript API btw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used webMercatorUtils to convert my center coordinates to lat/longs, and got the zoom level, and successfully got the map to load the php file with the extent from the original map html file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #66d9ef; font-weight: bold;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(){&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #66d9ef; font-weight: bold;"&gt;require&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;([&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #d64032;"&gt;"esri/geometry/webMercatorUtils"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;],&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #66d9ef; font-weight: bold;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;w&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;){&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #66d9ef; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; c&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;w&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;webMercatorToGeographic&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;extent&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;getCenter&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;());&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;console&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;([&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;parseFloat&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;c&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;x&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;toFixed&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #ae81ff;"&gt;3&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; parseFloat&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;c&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;y&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;toFixed&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #ae81ff;"&gt;3&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;))]);});})();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;I found this link where I got the above code snippet to be very helpful ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;A href="http://www.bearpanther.com/2013/10/21/esri-javascript-map-center-zoom-level-and-extent/" title="http://www.bearpanther.com/2013/10/21/esri-javascript-map-center-zoom-level-and-extent/"&gt;BearPanther.com | Esri JavaScript map center, zoom level and extent&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;My testing code (in the html file) looked like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var center=webMercatorUtils.webMercatorToGeographic(map.extent.getCenter());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passedX = parseFloat(center.x.toFixed(5));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passedY = parseFloat(center.y.toFixed(5));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoomLevel = map.getLevel();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(passedX + ", " + passedY);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Zoom: " + zoomLevel);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 15:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometry-cannot-be-converted-to-spatial-reference/m-p/15690#M1448</guid>
      <dc:creator>JohnChurchill</dc:creator>
      <dc:date>2014-08-26T15:13:10Z</dc:date>
    </item>
  </channel>
</rss>

