web development

Watch out for OpenLayer Distances

I had the fortune on my most recent project, a MapFish mapping system, of having someone else do some thorough testing. One thing that had escaped me, was both the measure tool and area tool were returning incorrect results. The distance as-the-crow flies between Dublin and Cork is 219 kilometres (136.08 miles in old money) […]

Compiling a 64 bit Version of PyISAPIe

Welcome to a veritable novella. I’ll jump straight to the end – there is no happy outcome, as yet, to this post there is a happy outcome! I have compiled a 64 bit PyISAPIe DLL (a program that runs Python at high speed under IIS), and it is up and running on Windows Server 2008 […]

Logging OpenLayers with Firebug

I take it as given that anyone developing with Firefox and OpenLayers has Firebug installed. Firebug has a number of powerful tools that can make the previous nightmare of JavaScript debugging tolerable. One feature I recently “discovered” are the logging options. It’s definitely a timesaver over my previous method of putting temporary alert(vals); throughout my […]

Reboot to Refresh Environment Variables

I wasn’t aware that if you change Windows environment variables that are used by IIS then you need to reboot the machine for the changes to take effect. As described by David Wong This is because NT services like IIS inherit their environment from services.exe, which does not get updated when you change system environment […]

Setting Up Python on IIS7

I had already configured Python to run through the Apache webserver on my development server, but after a few issues on the production server (Apache freezing / crashing) I wanted to test running Python scripts with IIS7. The principle aim was to run TileCache through IIS rather than requiring Apache. Why Not CGI? While IIS […]

Minifying the Mapfish Client on Windows

This page has 72 external Javascript scripts. Try combining them into one. My YSlow Firefox plug-in was telling me that I had included too may JavaScript files, and that they should be combined into a single-file, and minified. The default setup of Mapfish has a single script include (mfbase\mapfish\MapFish.js), but this script  automatically loads around […]

Automated WMS Reports

This post details how the WMS GetCapabilities request can be used to create an automated report listing all the map layers available from a WMS server. The final sample page can be seen here. The GetCapabilities Request Web Mapping Services (WMS) is an open standard that all major GIS vendors implement in their server software […]