Other posts


  1. Thu 23 June 2022

    Web Mercator OS Vector Tile API in OpenLayers

    Adding a Vector Tile layer of Ordnance Survey data from the OS Data Hub to an OpenLayers map in Web Mercator is a little more work than expected as the JSON style document and associated JSON source document include paths for the default British National Grid tiles. The following is …

    comments. read more

  2. Fri 20 September 2019

    MapServer PostGIS Performance

    Recently I was looking at improving the performance of rendering a Space Syntax OpenMapping layer in MapServer. The openmapping_gb_v1 table is in a PostGIS database with an index on the geometry column. The original MapServer DATA configuration looked like this:

    DATA "wkb_geometry from (select meridian_class_scale * 10 as line_width, * from openmapping …

    comments. read more

  3. Tue 26 April 2016

    OpenLayers 2 Custom Build

    A bit of a blast from the past now that OpenLayers 3 has been released but it may be useful for someone who is working on or maintaining an OpenLayer 2 project.

    Create a list of OpenLayers 2 classes used within a code base suitable for including in a custom …

    comments. read more

  4. Thu 20 November 2014

    Loading PostGIS

    Notes from a talk at PostGIS Day, London 20th Nov 2014.

    The options

    All support basic options such as specifying table names, schema, SRS etc.

    Graphical

    shp2pgsql-gui
    Graphical interface to shp2pgsql tool shipped with PostGIS to load ESRI Shapefiles via pgAdmin III.
    ogr2gui
    Graphical interface to ogr2ogr command line utility …

    comments. read more

  5. Sun 07 September 2014

    Practical OpenLayers 3 & Leaflet

    I ran a 2 hour workshop at OSGIS 2014 introducing OpenLayers 3 and Leaflet.

    A hands on introduction to using OpenLayer 3 (OL3) and Leaflet to display spatial data on the web. The workshop will introduce the two libraries, the underpinning concepts and strengths of each, and take delegates through …

    comments. read more

  6. Thu 17 July 2014

    GNU Parallel all the things!

    I've been doing a lot of data processing recently and have been looking for a way of running bulk data loads into PostGIS in parallel to make use of all available cores. The work has mainly revolved around loading national cover of Ordnance Survey OS MasterMap and VectorMap Local for …

    comments. read more

  7. Fri 18 October 2013

    Custom GeoServer GetFeatureInfo Template

    The default GeoServer GetFeatureInfo Freemarker template is a simple table and doesn't work very well when displaying the content in a web map popup. It's a common requirement to change the GetFeatureInfo template to an unordered list, to capitalise the title and attribute names. Here is a sample content.ftl …

    comments. read more

  8. Mon 28 March 2011

    Recursively delete empty directories

    To recursively delete all empty directories from the command prompt in Windows. Open command prompt and change to the desired directory then enter the following:

    for /F "tokens=*" %f in ('dir /AD /S /B ^| sort /R') do echo rd "%f"
    

    This command generates a list of all directories and sub …

    comments. read more