I am working on The XamWebMap control to render a set of big shapefiles. I would like to optimize my application so i could download the shapefiles in ziped format and put it in the Isolated storage, and to re use the same file over the life of the application. However the Shapefile reader only takes URI. Is there a way i could make it read from the Isolated storage? Are there any other optimization techniques i could use to avoid downloading of the big shapefiles?
Many Thanks
Hi Graham, Your solution has really helped me alot. One final question How can I check existence of my files in the isolated storage because the filenames are differently stored in isolated storage. For example if I save Regions.dbf it is saving with different notation(probably Octet stream). But is there any way we can give the file name of our choice like "Regions" so as to check the existence of the file in isolated storage
Yes, I'm relatively certain that Silverlight functionality for multi scale images byspasses the redirects. I wanted to try something like that myself earlier to try and generate the image tiles on the client side. But it did not appear to work properly.
I suspect a lot of the web requests made by the Silverlight runtime itself are handled in native code (unfounded speculation), and don't have the same hooks to call your custom request handler, unfortunately. But this approach should work for any shape file redirection.
I do wonder if there is something browser specific you can do to try and intercept the requests that Silverlight is sending through the browser, and route them back into the SL runtime, but I have not investigated this.
-Graham
I use it with MultiScaleSource component. I thinks it's the reason?
Thanks
First of all, are your trying this with the map or are you trying to use it with something else in Silverlight? Unfortunately many Silverlight components like the Image control seem like they make their web requests with lower level functionality that is not possible to redirect with the above logic. Since we request the shapefiles using a higher level API than, say, the image control, the above redirect functions to insert the custom request handler when you use the iso prefix.
If you are trying this with the map, make certain you are adding the prefix before the map would be initialized. You may even want to add it to the application initialization.
Hi
I'm not able to use your sourcecode. I add to my WebRequest prefix iso but I never enter in
Do you have any idea?
Thnaks