<?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: FeatureLayer - outSR parameter is invalid in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590454#M15150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. This cleans it right up. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jun 2010 18:28:16 GMT</pubDate>
    <dc:creator>DavidLowther</dc:creator>
    <dc:date>2010-06-07T18:28:16Z</dc:date>
    <item>
      <title>FeatureLayer - outSR parameter is invalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590450#M15146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IN the SL API I have setup a FeatureLayer. Using fiddler I see that the request is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GET /ArcGIS/rest/services/SampleLoc/MapServer/0/query?returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;where=1%3d1&amp;amp;outSR=%7b%22wkt%22%3a%22PROJCS%5b%5c%22Mercator_2SP%5c%22%2cGEOGCS%5b%5c%22unnamed+ellipse%5c%22%2cDATUM%5b%5c%22D_unknown%5c%22%2cSPHEROID%5b%5c%22Unknown%5c%22%2c6378137.0%2c0.0%5d%5d%2cPRIMEM%5b%5c%22Greenwich%5c%22%2c0.0%5d%2cUNIT%5b%5c%22Degree%5c%22%2c0.0174532925199433%5d%5d%2cPROJECTION%5b%5c%22Mercator%5c%22%5d%2cPARAMETER%5b%5c%22false_easting%5c%22%2c0.0%5d%2cPARAMETER%5b%5c%22false_northing%5c%22%2c0.0%5d%2cPARAMETER%5b%5c%22central_meridian%5c%22%2c0.0%5d%2cPARAMETER%5b%5c%22standard_parallel_1%5c%22%2c0.0%5d%2cUNIT%5b%5c%22Meter%5c%22%2c1.0%5d%5d%22%7d&amp;amp;f=json&amp;amp; HTTP/1.1&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"wkt":"PROJCS[\"Mercator_2SP\",GEOGCS[\"unnamed ellipse\",DATUM[\"D_unknown\",SPHEROID[\"Unknown\",6378137.0,0.0]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator\"],PARAMETER[\"false_easting\",0.0],PARAMETER[\"false_northing\",0.0],PARAMETER[\"central_meridian\",0.0],PARAMETER[\"standard_parallel_1\",0.0],UNIT[\"Meter\",1.0]]"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The response is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"error":{"code":400,"message":"","details":["'outSR' parameter is invalid"]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe this is because the API is using the SR or the layer - which is clearly verbose. I tried the request using outSR=102723 and received the features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the question: Is there any way I can change the service or the client so that the request with the simpler outSR is made?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 15:07:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590450#M15146</guid>
      <dc:creator>DavidLowther</dc:creator>
      <dc:date>2010-06-07T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer - outSR parameter is invalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590451#M15147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is the server that throws this error running ArcGIS Server v10? (only v10 supports WKT)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the service where you are getting the WKT from exposing a WKID or a WKT for the spatial reference?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can force the spatial reference or the layer like done in this example: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DefineMapProjection"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DefineMapProjection&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 15:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590451#M15147</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-07T15:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer - outSR parameter is invalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590452#M15148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The server is 9.3. I'm completely willing to change the service, but I don't know how to tell if it is exposing a WKT or WKID - likely WKT since that is what the API is pushing back at it, right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 15:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590452#M15148</guid>
      <dc:creator>DavidLowther</dc:creator>
      <dc:date>2010-06-07T15:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer - outSR parameter is invalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590453#M15149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Enter the URL to the service in your browser. You should see the service metadata right there. If it specifies a number at the spatial reference its using WKID. If it's the long string, well then it's WKT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If its showing WKT (very likely), you need to update your MXD to use a common SRID instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 18:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590453#M15149</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-07T18:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer - outSR parameter is invalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590454#M15150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. This cleans it right up. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 18:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590454#M15150</guid>
      <dc:creator>DavidLowther</dc:creator>
      <dc:date>2010-06-07T18:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer - outSR parameter is invalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590455#M15151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ran into this issue as well (our server is 9.3.1). In my case the one map service I'm using in the application uses a custom Albers-based projection. Since it's a dynamic service we could redefine the Map's coordinate system to use one with a WKID, but the service is already pretty slow, so we'd rather keep the map in the native projection (especially since this is the only place the WKT causes an issue).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've worked around it by changing the layer from a FeatureLayer to a GraphicsLayer, where I query the features and add them to the layer. But it seems that the FeatureLayer should work here, or there should be some way to get the FeatureLayer to not send the WKT with the feature request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 22:29:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590455#M15151</guid>
      <dc:creator>BryanBaker</dc:creator>
      <dc:date>2010-10-15T22:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer - outSR parameter is invalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590456#M15152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can you request data using querytask/graphicslayer on a 9.3.x server in a projection that matches the basemaps' spatial reference if this is only defined as a wkt? Ie if you can get data from a 9.3.1 server that overlays correctly on your map, there must be a valid wkid for that map that you can use instead of the wkt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Either that, or you are mixing spatial references which could lead to some major accuracy issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a side note my experience is that projection on the fly is not really a big overhead at all. Most of the performance issues is usually from pulling shapes out of the database and rendering it to the image. If you have issues with performance this is really stuff you should be looking at instead (msd and/or caching will also help way more than what you loose on reprojection)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 02:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590456#M15152</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-10-18T02:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer - outSR parameter is invalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590457#M15153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How can you request data using querytask/graphicslayer on a 9.3.x server in a projection that matches the basemaps' spatial reference if this is only defined as a wkt? Ie if you can get data from a 9.3.1 server that overlays correctly on your map, there must be a valid wkid for that map that you can use instead of the wkt.&lt;BR /&gt;Either that, or you are mixing spatial references which could lead to some major accuracy issues.&lt;BR /&gt;&lt;BR /&gt;On a side note my experience is that projection on the fly is not really a big overhead at all. Most of the performance issues is usually from pulling shapes out of the database and rendering it to the image. If you have issues with performance this is really stuff you should be looking at instead (msd and/or caching will also help way more than what you loose on reprojection)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply, Morten. In our case the only map service in the map is the one that uses the WKT. So there is no WKID involved at all. I can query the service without specifying the spatial reference and it'll return OK. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out that we cannot project the map service even if performance were not an issue, because the Silverlight client is getting coordinates from the hosting application for zooming the map etc., and those coordinates are in the custom projection of the WKT. We definitely don't want to have to project those input coordinates every time. So for now we'll stick with the graphics layer workaround. I'll note that I found a separate issue that I suspect is also related to spatial references using WKT (see &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/15650-Map.ZoomToResolution-fails-to-change-map?p=48472#post48472"&gt;http://forums.arcgis.com/threads/15650-Map.ZoomToResolution-fails-to-change-map?p=48472#post48472&lt;/A&gt;&lt;SPAN&gt;), so hopefully ESRI will investigate and fix any issues along these lines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 21:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-outsr-parameter-is-invalid/m-p/590457#M15153</guid>
      <dc:creator>BryanBaker</dc:creator>
      <dc:date>2010-10-22T21:05:54Z</dc:date>
    </item>
  </channel>
</rss>

