Tag Info

Hot answers tagged

24

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 ...


20

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 ...


17

The answer is No.


16

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


11

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.


10

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 ...


8

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): ...


8

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.


7

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 ...


7

You could try using MXDdoctor and ArcGIS Document Defragmenter.


7

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.


7

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 ...


7

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.


7

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.


7

Short Answer: No, not directly Long Answer You need to understand that these are two different technologies. a ArcMap Document (.mxd) is a file which tells ArcMap which layers to use and how to render them etc. OpenLayers is a JavaScript Library that is used for creating application which consume Web Services. A .mxd file can only be opened in ArcMap, ...


6

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.


6

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:


6

See this GIS Stack Exchange link: How to edit or convert ArcGIS 10 layer style to a SLD's file.


5

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


5

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 ...


5

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.


5

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 ...


5

If you're using 10, you have several new functions available in the arcpy python module to address this: Updating and fixing data sources with arcpy.mapping


5

I've written a short python script that incorporates AGSSOM to stop running services,and then restart previously running services after performing some database maintenance. You can find it in answer to this question...Promrammatically start and stop map services with Python This script does not identify the source map document for the service. However, ...


5

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 ...


5

You sure can. As long as .save() is called on every map document object you have open before you close it (either by leaving a function if it's opened there or the script ends) your changes will persist. If you're working on one mxd at a time, though, I'd recommend saving each one as soon as you're done with it, just in case an error further down the line in ...


5

I would recommend breaking this up into two functions: A function to replace the data sources in one MXD A function that calls the previous function on each MXD in a directory tree You'll want to test the first function thoroughly by itself before moving on to the second. I recommend using a Python IDE such as PyScripter to develop, test and debug your ...


5

There are Esri Technical Articles that explain this. "Map documents (.mxd files) are compound files. The information describing the map, layout, and any embedded objects saved in the map is organized into units called storages and streams. When you save a compound file, the streams can become fragmented in a process that is analogous to hard disk ...


5

Yes. Label expressions slow drawing performance. In particular, avoid using label expression scripts to conditionally parse or format label strings or to concatenate the information in multiple fields into one label string when drawn. Instead, calculate a new field with exactly the information that is needed. The field can include formatting tags. From ...


5

I would guess that she only sent the .mxd file (which is the Map Document). You need the files the the map document references (rasters, vectors, databases, etc) in order to view them as they aren't stored in the .mxd file. You should also read this article about Shapefile file extensions. Assuming you are using shapefiles, you need, at a minimum: .shp ...



Only top voted, non community-wiki answers of a minimum length are eligible