Thanks for your encyclopedic response Jason! If you don't mind detailing the problems with running GDAL scripts in process, and your work-around for avoiding it, I would be very interested.
Cheers, Francis On 12 August 2010 02:49, Jason Roberts <[email protected]> wrote: > ArcGIS 10 installs Python 2.6 and numpy 1.3.0. It does not install GDAL with > Python bindings. It includes a new Python module from ESRI called ArcPy. > This module supposedly provides the capability of reading and writing raster > layers in the form of numpy arrays, similar to GDAL’s Python bindings. I > have not played with it much—only very briefly in Arc 9.4 Beta 2, when it > did not seem to work very well. If you search the Arc 10 online > documentation you can probably find more information. > > > > In principle, the ArcPy module may make it less necessary those developing > for ArcGIS with Python to resort to GDAL to read or write rasters. If you do > wish to use GDAL from ArcGIS 9.3 or 10, you must contend with an important > bug in ArcGIS that affects GDAL; see http://trac.osgeo.org/gdal/ticket/3672. > I am corresponding with the ESRI developer who is investigating this. He > expressed an interest in fixing this in Arc 10 SP1 but has not committed to > doing so at this time. > > > > To work around that, when creating Python-based geoprocessing tools that use > GDAL, you must disable the “Run Python script in process” option in the > ArcGIS UI. That has certain implications on performance but is probably fine > for most people. I developed a hack that works around the ArcGIS bug that > allows you to enable the “Run Python script in process” but unless you are > pretty savvy with Python (comfortable writing C extension modules) I do not > recommend that approach. If anyone is interested I can provide an example. > > > > Best, > > Jason > > > > From: [email protected] > [mailto:[email protected]] On Behalf Of Discourse Maps > Sent: Wednesday, August 11, 2010 10:38 AM > To: [email protected] > Subject: [gdal-dev] ArcGIS 10 > > > > 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? > > _______________________________________________ > 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
