http://rbrundritt.wordpress.com/2009/11/26/dynamic-tile-layers-in-the-bing-maps-silverlight-control/
may have some info that could help you? has source code download On Fri, Mar 23, 2012 at 9:08 AM, Richard Mason <rich...@rikware.com> wrote: > If you have SQL Server around, why don't you import the shape files into > SQL (http://www.sharpgis.net/page/SQL-Server-2008-Spatial-Tools.aspx). > Then you can do use the Reduce function to reduce the complexity of the > shape to something suitable for you then use STAsText() to get the GEO as > "well known text (WKT)" (it's a standard spatial format). I think you'll > find parsing the WKT quite simple - it's basically a list of points for > each polygon. > > So you end up with a SQL statement something like: > > SELECT TOP 1 GEO.Reduce(100).STAsText() FROM Building > > Adjust the reduce value suitably for whatever quality you need the polygon > in. You can then just grab the WKT and use it in your app. i.e. you don't > actually need to have any SQL Server dependency in the app. > > I still think you should look at using DeepEarth to then display the geo - > you'll save a HEAP of time handling zooming panning etc and you can easily > create DeepEarth polygons from the WKT. > > Richard > > On Fri, Mar 23, 2012 at 7:55 AM, Greg Keogh <g...@mira.net> wrote: > >> Chaps, I found some free downloads of shapefiles for various states and >> countries, but then I had to go looking for a managed code library that can >> manipulate shp, prj and dbx files. I found SharpMap and DotSpatial which >> look very impressive for apps with maps, but it’s huge overkill for me. I >> just need simple regions with colours and selection, so perhaps it’s best >> just to render the graphics myself with hit-test and simple animations. All >> I have to do now is find some country and state shapes in an open format >> (preferably XML). Simplified shapes would be fine of course as I don’t need >> the 3 seconds of arc accuracy of some of the shapefiles I’ve seen. I’ll >> report back when I make any progress on this -- Greg **** >> >> ** ** >> >> _______________________________________________ >> ozsilverlight mailing list >> ozsilverlight@ozsilverlight.com >> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight >> >> > > _______________________________________________ > ozsilverlight mailing list > ozsilverlight@ozsilverlight.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight > >
_______________________________________________ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight