Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I would like to open MXD with ArcGIS Runtime WPF. There is no example about this. Anybody has a solution ?

Thank you

share|improve this question
    
not sure but may be helpful forums.arcgis.com/threads/… –  Sunil Feb 6 '13 at 13:19
1  
Thank you..... You will need to publish the MXD to ArcGIS Server, and then use the REST service this creates to display the map. You cannot load an MXD directly. –  twisig Feb 6 '13 at 13:29

3 Answers 3

Using ArcGIS Server and consuming a map service is one way. Or you can turn a Map (MXD) into a Map Package and consume this in the Runtime. You'll probably want to choose your solution based off 2 things: 1) will your app have internet access? 2) if you have internet, will you have an ArcGIS Server to host services. If the answer to either of those questions is NO, you'll probably need to go the Local MPK way.

share|improve this answer
    
The app will have no internet access. So, is it possible to create a MPK with ArcGis Server ? and to save a Map in WPF Runtime ? –  twisig Feb 7 '13 at 13:12
1  
ArcGIS Server has geoprocessing, so you can either create a geoprocessing service, or simply use Server's Python to call tools. So yeah, ArcGIS Server "can create an mpk".. (via the Map Package tool) –  KHibma Feb 11 '13 at 17:20

You can't open an .mxd file directly in the WPF runtime map control. However, you don't necessarily need ArcGIS Server to get it to work. Instead you can publish the map and associated data as a map package.

You can create a map package with ArcMap.

Then you will need to add a layer in your .xaml file for each layer in the .mxd file. Additionally, you may have to make some tweaks in xaml (or code behind) to get the rendering to look the same.

You might have something like this:

    <esri:Map WrapAround="True" x:Name="theMap" >
        <esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
        <esri:ArcGISLocalFeatureLayer x:Name="MyFeaureLayer" ID="Things" Path="C:/maps/ThingsMap.mpk" LayerName="Things" OutFields="*" Editable="True" AutoSave="False"  ValidateEdits="True" Mode="OnDemand"  SelectionColor="#FFFFFF00" />
    </esri:Map>
share|improve this answer

You can check this ESRI forum link for reference.It will help you to find the answer..

thanks..

share|improve this answer
    
Money $$$$ with ESRI :) Thank you –  twisig Feb 12 '13 at 13:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.