Hannes, I just did it!
Ingredients: - ArcGIS 10 - Visual Studio.NET 2003 - SWIG (swigwin-1.3.31) (or newer, maybe) - GDAL source code (doesn't need to be the same version that Arc uses) How to prepare: - Build GDAL (see gdal.org) - Set the variables SWIG and PYDIR on nmake.opt - Set the path for the ArcGIS Python folder: ..\gdal> set PATH=E:\Python26\ArcGIS10.0;%PATH% - Set the path for SWIG (obviously): ..\gdal> set PATH=<your swig folder>;%PATH% - Build the GDAL Python wrapper: ..\gdal\swig> nmake -f makefile.vc python - Generate the GDAL Python installer: ..\gdal\swig> cd python ..\gdal\swig\python> python setup.py bdist_wininst - Run the installer: ..\gdal\swig\python> cd dist ..\gdal\swig\python\dist> GDAL-1.7.0.win32-py2.6.exe - Open ArcMap again and click on the "Python window" icon or select "Geoprocessing/python" from the ArcMap menu - To launch GDAL just type the usual: >>> from osgeo import GDAL >>> from osgeo import OGR - VOILA Alternative: if you just download and run the GDAL-Python installer it probably is not going to find the ArcGIS's Python installation on the register. So you can ask someone to prepare one for you like I did. Attention: Again, you are going to be running two different versions of GDAL in ArcMap's Python command line! Regards, Ivan > -------Original Message------- > From: Hannes Reuter <[email protected]> > To: [email protected], [email protected] > Subject: [gdal-dev] ArcGIS 10 > Sent: Aug 11 '10 12:19 > > YES, numpy / gdal is under my Python 2.6/AG10site packages, > > on the other hand, installing python, numpy, gdal, scipy is rather > straightforward and should be done in less than 10 minutes.. ;-) > > The only problem I was running in -> Vista and Win7 maschines need the > newest version of gdal (larger than 1.6) to execute GDAL's readasarray, > while ogr is fine.. .otherwise they just die, while all is fine on XP > and linux. see > > http://osgeo-org.1803224.n2.nabble.com/Gdal-Python-Win7-crash-with-ReadAsArray-td4398401.html > > hannes > > hth > > > > I hear the new ArcGIS10 has GDAL and NumPy built into the > geoprocessor. If this is true, does that mean that users will not have to > install the various Python library bindings GDAL, numpy, etc. after a full > Arc10 install? > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100811/5b8eebc1/attachment-0001.html > > _______________________________________________ > 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
