[gdal-dev] Reading MXD files

Matt Wilkie matt.wilkie at gov.yk.ca
Tue Sep 7 13:27:01 EDT 2010


Here is a recipe for accessing arcobjects from python:
http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python

cheers,

matt wilkie
--------------------------------------------
Geomatics Analyst
Information Management and Technology
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------

On 03/09/2010 5:36 PM, Lucena, Ivan wrote:
> Ben,
>
> There are some interfaces on the ArcObject package that let you not exactly *ready* the MXD but you
> can get some useful information from the document. I believe that you can access the ArcObject COM
> API in ArcGIS 10 or 9 by using the win32com.client.Dispatch() the same way as you can load the
> "esriGeoprocessing.GpDispatch.1". You can use the tools on PythonWin to browse to all the available
> ArcGIS components.
>
>   >>>  import win32com.client
>   >>>  arcobj = win32com.client.Dipath("<  What should goes here ?>")
>
> It is only a wild guess, I am not even running Windows now to do a quick test, but I hope it would
> help you.
>
> Ivan
>
> Benjamin Welton wrote:
>>   Can you do that with ArcGIS 9.3? i was under the impression from the
>> doc's/forums that it's only available in the arcpy package in 10.
>>
>> Ben
>>
>>
>> On 9/4/2010 5:44 PM, Paolo Corti wrote:
>>>>      Im wondering if there is any way to read MXD files in ether gdal
>>>> or some other python based extension. I'm not looking for the raster
>>>> data for the files only the filename/SDE name of the layer and the
>>>> name of the layer in the MXD file. Is there any easy way to pull this
>>>> information out of the MXD?
>>>>
>>>>
>>> I think your only option is to use the ArcGis Python library, but you
>>> need a license for doing so
>>>
>>> Paolo
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> .
>


More information about the gdal-dev mailing list