Tagged Questions

In ArcMap, the file that contains one map, its layout, and its associated layers, tables, charts, and reports.

learn more… | top users | synonyms

1
vote
1answer
252 views

Change coordinate system in multiple MXDs ArcGIS 9.3 using Python

I have to loop through some folders which may contain *.mxd files and change their coordinate system. I already found this piece of Python which should do the trick for ArcGIS 10.x (from here): ...
3
votes
1answer
151 views

How to add Oracle database connection to AnalyzeforMSD script?

I use this script right now: import os, arcpy directory = r"C:\Project" for root, dirs, files in os.walk(directory): for myFile in files: fileExt = os.path.splitext(myFile)[1] if (fileExt ...
2
votes
1answer
550 views

How to access all mxd files in a folder?

I'm a beginner to Python and am trying to figure out how I can access several mxds in a folder. For example, when I want to use the AnalyzeforMSD function in ArcGIS: import arcpy mxd = ...
6
votes
1answer
5k views

How can I edit/create new Normal.mxt template in ArcGIS 10.1?

I used to work with .mxt templates often back in version 9 and 8 but things seems to have changed since then. I realized that my new documents are loading a style file I don't want to to be loaded ...
0
votes
1answer
1k views

Find and Replace data source script

The following script is supposed to find and replace all shapefiles in a mxd (that exist in the folder) to the new SDE data source. No errors when running the script however, when I open the MXD in ...
4
votes
1answer
509 views

Replace the data source for several layers in several mxds - from shapefiles to the ARCSDE data source [duplicate]

Possible Duplicate: Permanently replace/update SDE server + service in each SDE Layer in an MXD First let me say I have probably read every link regarding changing DATA Sources on the ...
5
votes
1answer
1k views

Is it possible to convert ArcGIS .mxd to QGIS .qgs without having ArcGIS installed? [duplicate]

I was reading How to convert an .mxd file to a .qgs file?. It looks as though this only works with ArcGIS 10. I would like to do this, but am unable to install things on the computer that has ...
1
vote
1answer
201 views

How to programatically replace ArcGIS Online image with new imagery in mxd's?

I have many mxds that previously used ArcGIS Online Bing imagery. I want to replace those with newly purchased imagery. I know I need to use the arcpy.mapping.MapDocument module to do this though not ...
1
vote
1answer
102 views

Update Service config file with ArcIms java connector

We are using arcims java connector to create, update, delete services. it works fine for create and delete. However when we try to update the config file of service (ie : mxd file) the new mxd file is ...
2
votes
0answers
295 views

Create ESRI ArcSDE Connection File (.sde) using Python/ArcPy at the ArcView license level?

Is there an alternative way to create ArcSDE connections in ArcGIS 10.0 using Python at the ArcView license level? I need to create 4 separate connection files for a MXD SDE data source re-point tool. ...
7
votes
5answers
585 views

How to keep track of changes (version control) to MXD files?

I am trying to use ArcMap for the first time, so please bear with me and don't down vote the question. My superior at the work place has asked me to do some research about the life cycle of an .mxd ...
7
votes
1answer
99 views

Is it possible to add an ArcMap map to a report in Access?

I am using Access to create printable maps where I can change parameters (border colors) on the fly... Currently, I am exporting the maps to JPEG then pulling them in. I would like to import MXD ...
1
vote
2answers
211 views

What is the difference between Geoprocessing Map object vs. MapDocument object in Python

I have the following code: mxd["C1"] = arcpy.mapping.MapDocument(os.path.join(fRoot, filename)) mxd["C2"] = [arcpy.mapping.MapDocument(os.path.join(fRoot, filename))] C1 creates a geoprocessing Map ...
1
vote
1answer
78 views

Change printer for a specific map document from Arcpy

Is it possible to change the printer for a particular map document from ArcPy? The mxd is saved with the default printer settings, and I know with the PrintMap() function one can specify the printer ...
2
votes
1answer
329 views

How can I use Python to save several MXDs within the same script?

I have a program (720 lines of code) that runs multiple tasks on Arcmap .mxd files. Such as update layers, update text, add layers, etc. Within my program I have multiple "mxd.save()" instances. All ...
0
votes
1answer
125 views

Difference between a *.lyr and layer directly added from *.gdb/sde to mxd?

What is the difference between a *.lyr and a layer directly added from *.gdb/sde to mxd? Doing it difference in mxd? Which is better?
3
votes
1answer
228 views

How to clip a Oracle query layer directly in a Python script?

I have a query layer directly running from ORACLE database in a MXD. I want to clip this layer with a layer being created in another MXD in a Python based tool. My question is to do this clip ...
2
votes
0answers
94 views

Why are updates made in MXD by my tool not visible on some machines?

I've developed a tool that makes updates in many mxd files. When it runs in my machine, everything works fine, and I can open the mxd and see the updates made by the tool. When the tool runs in any ...
4
votes
3answers
161 views

Store “template” mxds inside model

Since the ability to store mxds inside a file gdb is still just an idea, I've been mulling over my options for using a "template" mxd within a model. My model uses 4 different mxds, but currently it ...
4
votes
1answer
445 views

Why do I lose my printer settings when saving a copy of mxd from ArcPy?

Judging from the answer to this question, one cannot change the page size etc from ArcPy, so I set up my "template" mxds so my script can save a new copy of it, change data sources etc. This methods ...
2
votes
0answers
297 views

ArcObjects : How to change layers connection properties without losing joins

I'm using arcObjects 9.2.6 java librairies to change connection/path properties within a java prog. This prog aims to change path and connection properties for all layers of an mxd file. It works well ...
1
vote
0answers
79 views

Why are the special fonts in a .mxd-project not used/found?

I have a .mxd-project file from a customer which uses special fonts (TrueType). I installed these fonts in Windows but my application (mostly a MapControl) doesn't use these fonts for displaying. I ...
4
votes
1answer
1k views

Move .SHP from .MXD to gdb [duplicate]

Possible Duplicate: How to move SHP to gdb with ArcView license? Let's cut it short, I have numerous mxd with layer coming from .SHP and various servers WMS that I need to move to a gdb. ...
20
votes
3answers
11k views

How to convert ArcGIS .mxd file to QGIS .qgs file?

I recently tried to use QGIS and I wondered if you can convert a draft ArcGIS map (*.mxd file) into a QGIS project (*.qgs file). This would avoid thematize the entire project.
7
votes
2answers
849 views

Locked/Uneditable Map Document

I am wondering if its possible to create a locked map document? I have a document that multiple users will be accessing and as a way of preventing them from making any accidental errors, am wondering ...
1
vote
1answer
455 views

Generate MXD layer info report

I'd like to generate a report about MXD layers for a handful of MXDs. I want the report to display their name, workspace path and scale range settings. I can get the first two with ArcPy but I didn't ...
3
votes
1answer
2k views

error on mxd.save/saveACopy

I'm trying to use arcpy to save an .mxd and am having an issue. It doesn't matter if I use mxd.save or mxd.saveACopy I get the same error. I know it doesn't look like I am doing anything w/ it here, ...
2
votes
1answer
2k views

Use ArcPy to rename MXD layers

I have a MXD with some layers that have parentheses in them. I'd like to rename them via script. Is this a valid approach? import re map = arcpy.mapping.MapDocument("CURRENT") layers = ...
4
votes
2answers
7k views

ArcGIS Explorer and .mxd files?

This is perhaps a silly question but can ArcGIS Explorer open a .mxd file? I can't seem to find a definite answer online and I can't download it until I know the answer. Thanks.
1
vote
1answer
167 views

Can we read/write MXD Document using GeoTools

Is it possible we can read/write mxd document only using geotools.
2
votes
4answers
3k views

How to enumerate ArcGIS Server 10 map services with ArcPy

I need to connect to ArcGIS server with ArcPy and enumerate over map services. I need to: Loop through each ArcGIS server map service Stop/Start the service Get the service source document (MXD/MSD) ...
2
votes
2answers
1k views

Collapse layers in ArcMap Table of Contents using ArcObjects

Can someone offer up a Christmas present here? I'm stuck on how to collapse all layers in my ArcMap projects (9.3). I've tried a few bits of sample code, but they all seem to fail for some reason or ...
2
votes
2answers
828 views

Save a MapControl map to an MXD

I used to know how to do this, but I must have lost the code. I tried this: IMxdContents mxdcontents = mapControl.Map as IMxdContents; IMapDocument doc = new MapDocumentClass(); ...
4
votes
1answer
222 views

Removing a Table from several MXD-Files using ArcPy

I'm trying to remove a certain Table (xlsx-File) from some MXD-Files using python, but I can't finguring out how. I tried the code sniplet for removing: import arcpy, os from arcpy import env ...
5
votes
5answers
2k views

Exporting MXD layout view to GeoTIFF?

It my be old issue, but I can't find right solution. How to produce GeoTIFF from layout view not from data view? Any simple solution?
1
vote
2answers
521 views

ArcGIS Server 9.3.1 - Creating a MXD and Exporting a PDF From It

I've been tasked with developing a geoprocessing service in ArcGIS Server 9.3.1 that in addition to providing the resultant feature sets, it needs to produce a pdf in which the layers can be toggled ...
4
votes
2answers
684 views

arcgis 10, python update raster of mxd file

i wanted to update the raster file in a mxd file using python. for example, i created a.mxd which contains b.tif file in it. now, i obtained c.tif and want to update the a.mxd, i.e. want to delete ...
1
vote
1answer
834 views

arcgis server 10 tif mxd problem

i am using arcgis server 10. first i opened arcmap and added a.tif file. then i saved it using File -> Save As as a ArcMap Document (*.mxd) file, let's say b.mxd. Now i open arccatalog and ...
19
votes
4answers
1k views

Run a Python Script when opening an MXD?

Can anyone tell me how to accomplish this? I want a Python script to run on opening the MXD which would pull an excel worksheet into a GDB and refresh the map. I only want this to happen in this ...
7
votes
1answer
3k views

Is there a free and open-source MXD to SLD converter? [duplicate]

Possible Duplicate: How to edit or convert ArcGIS 10 layer style to a SLD’s file I'm trying to set up a web map server for one of the government agencies in my country. Server setup's done ...
4
votes
2answers
832 views

Update ArcMap links to ArcSDE Geodatabase features

I've seen questions about attemting to repair a .mxd file with broken links. What I would like to do is get ahead of this issue and "fix" it before it becomes a problem. I have my data in an ArcSDE ...
7
votes
5answers
6k views

How to Batch export MXD to PDF files?

Nico Burgerhart made a fantastic script called "Batch export MXD to PDF" back in 2008. http://arcscripts.esri.com/details.asp?dbid=14872 Any ideas how to implement it in ArcGIS 10? Something ...
3
votes
2answers
665 views

Printing MXD at A3 always prints at B5

Context ArcGIS 9.2 Build 1500 ArcObjects Windows Forms application running outside of ArcMap, similar to ArcEngine product. Accessing mxd to print out page layout to A3 paper. Mxd is saved with ...
4
votes
2answers
953 views

Publish MXD to server in ArcObjects C#

I have an MXD that I would like to publish to an ArcGIS server using C# ArcObjects (preferably as an MSD). I have been unable to find anything regarding this. Essentially I would like to implement the ...
9
votes
3answers
2k views

How can I speed up slow-loading, template-generated MXDs?

I have an ArcMap template (.mxt) file which causes .mxd documents created with it to take 5-10 minutes to load (if it ever loads). Even after stripping out all the data sources and tables, the issue ...
10
votes
5answers
6k views

How do you deal with (repair/avoid) broken MXD\LYR paths?

In relation to this question ... In the past, whenever I cleaned up a bit and moved layers around (or changed their names) my MXD's paths were broken and it was time-consuming to correct them. I'd ...
4
votes
1answer
501 views

Countries mxd file?

Anyone know where I can get a decent mxd file that has country boundaries. Currently I'm using the world.mxd file that comes with ArcObjects; however, what I really am looking for is one that has all ...
3
votes
1answer
493 views

Can ArcPublisher 10 publish backwards to an 9.3 PMF?

It seems like a lot of other functions within ArcGIS are getting backwards compatibility (file geodb creation, MXD files). I'll still need to publish 9.3 PMF files for a few months and I couldn't ...
4
votes
4answers
2k views

How can I print a bunch of Arcmap mxd's all at once?

I have a folder with a dozen Arcmap compositions (.mxd files) I need to print. They're all ready to go, I don't need to do any editing. Do I really have to open up each one, wait to refresh, and press ...
12
votes
4answers
2k views

Are the ESRI .lyr and .mxd data format specs published?

Are the binary formats of .lyr and .mxd files published?