Hot answers tagged mxd
They're not published, and you're probably not supposed to reverse engineer them and still expect free cookies at the ESRI UC, but they're basically OLE2 Compound Document format files, like MS Word & Excel documents. With a nice tool for cracking them open (e.g. http://www.gemboxsoftware.com/CompoundFile.htm), you can get to the hacking part pretty ...
This looks like the sort of thing you want: https://underdark.wordpress.com/2011/05/27/converting-mxd-to-qgis-project-file/ On Wednesday, Allan Maungu announced MXD2QGS, a converter that exports layers from an Arcmap 10 document into a Quantum GIS project file. The tool is built as an ArcToolbox and can be downloaded from the blog. The only working ...
I've seen similar complaints on the Esri discussion forums and a quick search turned up this thread. Some suggestions: Save a copy of the mxd Open the geoprocessing results window and delete the history Under geoprocessing options, results management, change the value to a day or two
The answer is No.
I know this question is a few months old, but I'm posting this in case it helps others. I developed this kludge to parse version numbers from MXD documents. It basically reads the first 4000 or so characters of an MXD document and searches for a version number. I tested with MXD versions 9.2, 9.3, 10.0, and 10.1. import re def getMXDVersion(mxdFile): ...
Besides PolyGeo second suggestion, There is an extension called CarryMap. It does what you exactly want. It exports your mxd into an Exe file that can be opened with a double click. No other software is needed. Furthermore it export your map for use in Android or iOS devices! However you should pay to have the extension (commercial extension). http://www....
If you are going to ArcMap 10.1 you could create a python add-in. The add-in gives you access to an "on open" function that will run code when you open the mxd. The help here explains how to create one and has a sample that adds a base layer to the mxd when opening.
This is because arcpy.Rename_management does not work on a map layer object - it works on objects on the disk. Instead try: layer.name = newName layer.name is a read/write attribute of the arcpy.mapping.Layer class.
It's not an *.exe but you can either: export your map to a layered PDF so that anyone with the free Adobe Reader can view it use the Publisher extension to publish your map as a PMF so that anyone with the free ArcReader can view it
The way to do this is to create a map package: Map packages (.mpk) make it easy to share complete map documents with others. A map package contains a map document (.mxd) and the data referenced by the layers it contains, packaged into one convenient, portable file. The downside of this will be that with the inclusion of raster data sources, your *...
I also use and recommend relative paths to generally minimize occurrences of this situation. But when it does happen, I've often resolved it using some out-of-the-box ArcGIS functionality I don't see mentioned here - Set Data Sources in ArcCatalog:
Code If the layer is a shapefile, Layer.datasetName will return the file name. Please read the documentation in the following link to help you understand more about the datasetName parameter of the Layer object: dataSource (Read Only) : Returns the complete path for the layer's data source. It includes the workspacePath and the datasetName properties ...
To open an mxd, to the best of my knowledge, you will need a license of ArcGIS for Desktop to use its ArcMap application, which is by no means cheap. It seems that there are some tools out there to convert an ESRI document into a format that an open source solution like QGIS can read but it looks like they require access to an ArcGIS license as well. I ...
Use os.walk to walk through defined directory, and .endwith to find all mxd's within directory/sub directory, see example below: import arcpy, os for root, dirs, files in os.walk(r"C:\Project"): for f in files: if f.endswith(".mxd"): mxd = root + '\\' + f analysis = arcpy.mapping.AnalyzeForMSD(mxd) ...
No it's not possible. Like PolyGeo said you could write a conversion script using ArcPy that reads the QGIS project file (which is just XML) and load each layer. There would be a bit of work but you might even be able to match some of the styling. However there would be a lot of effort in this and it might not be worth it for a single project.
MXD Doctor "This utility provides functionality to analyze broken ArcMap document (MXD) files. Depending on the analysis, entities contained within the broken MXD file can be copied from the broken file into a new MXD file. This utility is provided as is. Before using this utility you should always back up the broken MXD file, and if you choose an existing ...
You could try using MXDdoctor and ArcGIS Document Defragmenter.
I believe that you need a license of ArcGIS for Desktop to use its ArcMap application as well. You can also ask the client to send the shape-file and open them in the open-source tool QGIS
If you want to learn ArcMap I think searching its online help for tutorials will be your best starting point. An MXD file on its own does not contain spatial data so a search for map packages *.mpk (MXD + spatial data) may prove more productive.
The ESRI ArcGIS Resources page for Local Goverment has several sample maps that are available for download. The download includes the mxd and all associated data in a file geodatabase. I would say download the Tax Parcel Map Book and the Campus Editing samples as places to start.
Did you perhaps have a Bing layer in it? Or maybe even an ArcGIS Online layer? I think I have some documents like that. ArcMap 10 seems to be a bit slower on most file loads anyway. I just installed the patch for the file dialog performance ESRI website.
See this GIS Stack Exchange link: How to edit or convert ArcGIS 10 layer style to a SLD's file.
If you are on ArcGIS 10, you can use ArcPy to replace connections: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s30000004p000000.htm (which is one of the answers to question you referenced). import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Project\Project_default.mxd") mxd.findAndReplaceWorkspacePaths(r"C:\Project\Connection to Default....
If you open up the Properties dialog for the picture element, you can state that you want it to be saved with the MXD:
Unfortunately, you cannot open .mxd files in ArcGIS Explorer You can open these item types in ArcGIS Explorer Desktop: ArcGIS Explorer document (.nmf) ArcGIS Explorer application configuration (.ncfg) ArcGIS layer (.lyr) ArcGIS layer package (.lpk) ArcGIS Explorer layer (.nmc) ArcGIS Explorer add-in (.eaz) ArcGIS Server service Web map Please see this ...
What you are after may not be determinable, it requires that the document info was saved/embedded and as you've found that is not often embedded into the document. I cannot find any reference to when this data is saved/skipped. For what it's worth this is another method: import os, sys, arcpy from comtypes.client import GetModule, CreateObject BasePath = ...
Export Map Document to PDF is now included in the arcpy.mapping sample script tools Source Code is available to Automate/Batch MXD for Export to PDF.
You could code within the VBA of the mxd and call the python script within the code wrapper below: Private Function MxDocument_OpenDocument() As Boolean End Function
OK this is something we have all had to face at one time or another. I have seen 2 methods of dealing with this. 1) as so eloquently put by Andy W, Relative paths. This works best when you have a project MXD in the root of the project folder and all of the data under that in a data folder. Then wherever you move the entire project the links will still exist ...
Only top voted, non community-wiki answers of a minimum length are eligible