<?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: ZoomTo: Invalid spatial reference. Spatial reference must match map'sl... in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475567#M12241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds more like you are not making the correct request &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; That's why I asked where the data comes from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you set the SpatialReference property in the FindParameters/IdentifyParameters to that of the map? You should then get data back in the map's spatial reference, and don't have to worry about it at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you dont set it, it will default to the service's spatial reference, which in this case is wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Jun 2010 00:28:07 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2010-06-19T00:28:07Z</dc:date>
    <item>
      <title>ZoomTo: Invalid spatial reference. Spatial reference must match map'sl...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475563#M12237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So at first I was using Map.ZoomTo() to zoom to a feature... but I found that depending on the feature, i would get the error "Invalid spatial reference. Spatial reference must match map's spatial reference"...&amp;nbsp; So I figured the Map.ZoomTo() did not project the geometry on the fly.&amp;nbsp; So I programatically invoked a ZoomToAction and it was then working... i thought... so it now works on the feature that didnt work before, but other features are throwing the error "Invalid spatial reference. Spatial reference must match map's spatial reference".&amp;nbsp; The map I am attaching to should be the same as I am using for Map.ZoomTo()...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&amp;nbsp; Do I need to use a Geometry service to project the feature first?&amp;nbsp; Hate to make a trip to the server for that!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 02:09:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475563#M12237</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2010-06-18T02:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: ZoomTo: Invalid spatial reference. Spatial reference must match map'sl...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475564#M12238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The client doesn't have any reprojection built in, so yes you will have to do a roundtrip first. I'm wondering why your data is in the wrong projection in the first place? Where did this data come from, since it's not in the right projection?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 06:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475564#M12238</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-18T06:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: ZoomTo: Invalid spatial reference. Spatial reference must match map'sl...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475565#M12239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is our own data and ESRIs.&amp;nbsp; Our company uses two coordinate systems depending on the situation, either GCS_North_American_1983 or NAD_1927_StatePlane_California_X_FIPS_040X... and the ESRI imagery layers are all WGS_84 I believe... so any one of our maps might have a mixture of these three.&amp;nbsp; I know its not ideal, but its how our data was setup years ago :(.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Morten!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 13:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475565#M12239</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2010-06-18T13:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: ZoomTo: Invalid spatial reference. Spatial reference must match map'sl...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475566#M12240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, and also, if you mean by "where did the data come from"&amp;nbsp; it came from either a FindTask or an IdentifyTask, and now I am trying to do a ZoomTo on one of the returned features...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 13:14:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475566#M12240</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2010-06-18T13:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: ZoomTo: Invalid spatial reference. Spatial reference must match map'sl...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475567#M12241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds more like you are not making the correct request &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; That's why I asked where the data comes from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you set the SpatialReference property in the FindParameters/IdentifyParameters to that of the map? You should then get data back in the map's spatial reference, and don't have to worry about it at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you dont set it, it will default to the service's spatial reference, which in this case is wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2010 00:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475567#M12241</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-19T00:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: ZoomTo: Invalid spatial reference. Spatial reference must match map'sl...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475568#M12242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh cool, I feel so dumb, thats an easy fix.&amp;nbsp; Thank you much!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For whatever reason:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FindParameters.SpatialReference = Map.SpatialReference;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The find task will fail, no error message but if you dig in the object it gives a 400 status and says the sr is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FindParameters.SpatialReferenceWKID = Map.SpatialReference.WKID;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This works though, but warns that it is obsolete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*EDIT* FYI, this does NOT work either: FindParameters.SpatialReference = new SpatialReference(Map.SpatialReference.WKID);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kinda odd... IdentifyTask does not have this problem though, SpatialReference = Map.SpatialReference works!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2010 01:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoomto-invalid-spatial-reference-spatial-reference/m-p/475568#M12242</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2010-06-19T01:01:22Z</dc:date>
    </item>
  </channel>
</rss>

