New answers tagged

0

When I want two .mxd files open at the same time, I launch ArcGIS for a second time. I do this by right clicking on the ArcGIS icon shortcut in my task bar and choosing the option to open ArcMap. Once it is launched I can open a second .mxd file and I now have two ArcMap windows going. I can even drag and drop features between them.


1

For panToExtent use the coordinates of your data frames coodinate system. As you said and Midavalo explained, the Point x = 30.317459, y = -97.694778 is measured in meters. So if you want to use geographic locations, change the coordinate sytem of your data frame or project the geographic coordinates into your UTM-Zone. For the last, it is discussed here: ...


2

You're passing coordinates in meters to the panToExtent. It is not expecting Lat/Long, so when it pans it is correctly panning to 30m east and 97m south of your origin. This modification to your code will temporarily change your data frame's spatial reference, pan to your Lat/Lon, and change back. Note: I am unsure on the effect this may have on any ...


2

MXD2QGS was built as an ArcToolbox extension; it is not a QGIS plugin. However, this tool seems that it only works with version 10.0 of ArcGis and Python 2.6. You can see other comments in: Convert .mxd to .qgs, MXD2QGS fix? https://dragons8mycat.wordpress.com/2014/04/17/mxd-to-qgis/ http://www.faqoverflow.com/gis/23717.html In Spanish: ...


0

I think your error is mainly in path formatting and string handling. Try this: import arcpy import os arcpy.env.workspace = "C:\\folder_path" mxd = arcpy.mapping.MapDocument("C:\\file_path.mxd") df = arcpy.mapping.ListDataFrames(mxd,"*")[0] path = "C:\\file_path" rasterList = arcpy.ListRasters() for jpg in rasterList: # This sets a new path with ...


0

Modifying your script slightly, I had to add the path into the loop and add a save at the end: import arcpy arcpy.env.workspace = "C:\\FolderPath" mxd = arcpy.mapping.MapDocument("C:\\FolderPath\\Rasters.mxd") df = arcpy.mapping.ListDataFrames(mxd,"*")[0] rasterList = arcpy.ListRasters() for jpg in rasterList: path = "C:\\FolderPath\\" path += ...



Top 50 recent answers are included