Running GDAL and arcpy together (ArcGIS 10.1, GDAL 1.9.2, python 2.7.4)

There are many use cases for running GDAL and arcpy in the same python instance.  GDAL is the most popular open source geopspatial geoprocessing toolset and arcpy is Esri’s python wrapper for the entire ArcGIS geoprocessing toolset.However, doing so can get quite tricky.  GDAL’s python bindings are not easily configured for Windows (and ArcGIS/ArcObjects is…

ENVI/IDL and ArcGIS/Python integration

I occasionally answer questions on ENVI/IDL and ArcGIS/Python integration. ENVI functions are available as “tools” through the ArcGIS GUI toolbox: “With ENVI 4.8, ENVI’s scientifically proven image analysis capabilities will be available as discrete tools in the ArcGIS toolbox and accessible directly from ArcGIS desktop and server environments. Upon installation of ENVI products, a selection…

python zipfile.py MemoryError

Was getting the following error on zipfile.py (actually while attempting to run a cascadenik script): newdata = self.dc.decompress(newdata) MemoryError I fixed this error by changing the compression algorithm that my .zip was being created with to “STORE” (i.e. no compression).

python cgi with xxamp/apache on windows

I recently figured out that a web service class I was dealing with (WFS in OpenLayers) would only accept requests through a proxy script (despite the requests were sent to my local machine!). OpenLayers has a .cgi proxy script which runs through Python, and here’s how I got it to work: 1. Download proxy.cgi to…