Select to view content in your preferred language

2.1 Beta double encodes 'imageSR' and 'bboxSR' parameters

1040
5
11-15-2010 01:21 PM
JasonScharf
Deactivated User
Greetings,

I'm using the new 2.1 API for Silverlight/WPF and I've noticed that the imageSR and bboxSR parameters (and maybe more) happen to have been encoded twice by the API. Example:

bbox=13411824.8287484%2c385003.362371264%2c13418421.0112482%2c390910.15762643&size=421%2c377&format=png8&transparent=true&layers=show%3a0%2c1&imageSR=%257b%2522wkt%2522%253a%2522PROJCS%255b%255c%2522NAD_1983_Lambert_Conformal_Conic%255c%2522%252c%2bGEOGCS%255b%255c%2522GCS_North_American_1983%255c%2522%252c%2bDATUM%255b%255c%2522D_North_American_1983%255c%2522%252c%2bSPHEROID%255b%255c%2522GRS_1980%255c%2522%252c%2b6378137%252c%2b298.257222101%255d%255d%252c%2bPRIMEM%255b%255c%2522Greenwich%255c%2522%252c%2b0%255d%252c%2bUNIT%255b%255c%2522Degree%255c%2522%252c%2b0.0174532925199433%255d%255d%252c%2bPROJECTION%255b%255c%2522Lambert_Conformal_Conic%255c%2522%255d%252c%2bPARAMETER%255b%255c%2522False_Easting%255c%2522%252c%2b13123359.5800525%255d%252c%2bPARAMETER%255b%255c%2522False_Northing%255c%2522%252c%2b0%255d%252c%2bPARAMETER%255b%255c%2522Central_Meridian%255c%2522%252c%2b-84.3666666666667%255d%252c%2bPARAMETER%255b%255c%2522Standard_Parallel_1%255c%2522%252c%2b42.1%255d%252c%2bPARAMETER%255b%255c%2522Standard_Parallel_2%255c%2522%252c%2b43.6666666666667%255d%252c%2bPARAMETER%255b%255c%2522Latitude_Of_Origin%255c%2522%252c%2b41.5%255d%252c%2bUNIT%255b%255c%2522Foot%255c%2522%252c%2b0.3048%255d%255d%2522%257d&bboxSR=%257b%2522wkt%2522%253a%2522PROJCS%255b%255c%2522NAD_1983_Lambert_Conformal_Conic%255c%2522%252c%2bGEOGCS%255b%255c%2522GCS_North_American_1983%255c%2522%252c%2bDATUM%255b%255c%2522D_North_American_1983%255c%2522%252c%2bSPHEROID%255b%255c%2522GRS_1980%255c%2522%252c%2b6378137%252c%2b298.257222101%255d%255d%252c%2bPRIMEM%255b%255c%2522Greenwich%255c%2522%252c%2b0%255d%252c%2bUNIT%255b%255c%2522Degree%255c%2522%252c%2b0.0174532925199433%255d%255d%252c%2bPROJECTION%255b%255c%2522Lambert_Conformal_Conic%255c%2522%255d%252c%2bPARAMETER%255b%255c%2522False_Easting%255c%2522%252c%2b13123359.5800525%255d%252c%2bPARAMETER%255b%255c%2522False_Northing%255c%2522%252c%2b0%255d%252c%2bPARAMETER%255b%255c%2522Central_Meridian%255c%2522%252c%2b-84.3666666666667%255d%252c%2bPARAMETER%255b%255c%2522Standard_Parallel_1%255c%2522%252c%2b42.1%255d%252c%2bPARAMETER%255b%255c%2522Standard_Parallel_2%255c%2522%252c%2b43.6666666666667%255d%252c%2bPARAMETER%255b%255c%2522Latitude_Of_Origin%255c%2522%252c%2b41.5%255d%252c%2bUNIT%255b%255c%2522Foot%255c%2522%252c%2b0.3048%255d%255d%2522%257d&f=image



Cheers,
JS
0 Kudos
5 Replies
JasonScharf
Deactivated User
Also, it may be worth mentioning that the resulting response was a 404 which was initially misleading:

HTTP/1.1 404 'imageSR' parameter is invalid
0 Kudos
DominiqueBroux
Esri Frequent Contributor
This bug was existing in the beta but is supposed to be fixed in the release candidate (build 427).

Which version are you using?

If it's not the RC, could you try after downloading it here : http://resources.arcgis.com/content/how-download-arcgis-api-microsoft-silverlightwpf-beta

Thanks
0 Kudos
JasonScharf
Deactivated User
I can confirm it has been fixed in the RC. Thanks!
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Thanks for your confirmation. Good to know.
0 Kudos
SergioGalindo
Deactivated User
Im using 2.1 (not beta) and it looks like it still does it (i mean the comma's double encoding):

http://mps.prosis.com/sigmps/proxy.ashx?http%3a%2f%2fmps.prosis.com%2fArcGIS%2frest%2fservices%2fMPS_Proteccion_Social%2fMapServer%2fexport%3fbbox%3d-8270075.29231198%252c504785.204638491%252c-8218957.58845141%252c527257.420547742%26size%3d1358%252c597%26format%3dpng24%26transparent%3dtrue%26imageSR%3d102100%26bboxSR%3d102100%26f%3dimage%26


any way to avoid this?

Thanks
0 Kudos