Hi
Would you know of a shapefile for the UK and of a sample application to show how to utilise it? This sounds as if it should work http://www.ordnancesurvey.co.uk/oswebsite/products/strategi/ but I cannot see how the supplied files would be used to load a simple map?
Kind regards
Rob
Hello Rob,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Regards,
Ivan Kotev
For the european_region_region from their "Boundary-Line" try the following:
<Maps:XamMap x:Name="xamMap" > <Maps:MapNavigationPane igControls:XamDock.Edge="InsideRight" /> <Maps:XamMap.Layers> <Maps:MapLayer > <Maps:MapLayer.Reader> <Maps:ShapeFileReader Uri="ShapeFiles/OsOpenData/european_region_region" >
<Maps:ShapeFileReader.CoordinateSystem> <Maps:CoordinateSystem FalseEasting="400000" FalseNorthing="-100000" UnitType="M"> <Maps:CoordinateSystem.Projection> <Maps:TransverseMercator EllipsoidType="Airy" CentralMeridian="-2" LatitudeOrigin="49" ScaleFactor="0.999601272" /> </Maps:CoordinateSystem.Projection> </Maps:CoordinateSystem> </Maps:ShapeFileReader.CoordinateSystem> </Maps:ShapeFileReader> </Maps:MapLayer.Reader> </Maps:MapLayer> </Maps:XamMap.Layers></Maps:XamMap>
Information about projection can be found in *.prj files.
Hi Rob
Try the following code, which uses admin_polyline shapefile:
<Maps:XamMap x:Name="xamMap" > <Maps:MapNavigationPane igControls:XamDock.Edge="InsideRight" /> <Maps:XamMap.Layers> <Maps:MapLayer > <Maps:MapLayer.Reader> <Maps:ShapeFileReader Uri="ShapeFiles/OsOpenData/admin_polyline" >
<Maps:ShapeFileReader.CoordinateSystem> <Maps:CoordinateSystem> <Maps:CoordinateSystem.Projection> <Maps:TransverseMercator EllipsoidType="WGS84" /> </Maps:CoordinateSystem.Projection> </Maps:CoordinateSystem> </Maps:ShapeFileReader.CoordinateSystem> </Maps:ShapeFileReader> </Maps:MapLayer.Reader> </Maps:MapLayer> </Maps:XamMap.Layers></Maps:XamMap>
I am a bit confused as they supply a .shp file but, whenever I try to utilise it I am just displayed a blue screen as the map?
I've also looked at http://help.infragistics.com/NetAdvantage/DV/2010.2/CLR4.0/?page=xamWebMap_Add_Open_Street_Maps_as_Geo-Imagery_Data_Source.html to utlise existing maps but cannot see how to set the location to be displayed from the example code - it shows me the whole world whilst just the UK is displayed in this example.
Kind regads
Sincerely,Petar MonovDeveloper Support EngineerInfragistics Bulgariawww.infragistics.com/support