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
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to