Accessing a COM Server from R

Microsoft have recently added support for R to their Visual Studio 2015 development environment. R is a programming language for statistical and graphical programming that is widely used by statisticians and data miners. To use R with Visual Studio, you need to download and install R Tools for Visual Studio and Microsoft R Open. These ...

OSRM’s Lua Scripts 2

OSRM (Open Source Routing Machine) is an open source high performance routing engine for road network routing. Typically OSRM is used as a web server using OpenStreetMap (OSM) data, and is capable of calculating hundreds of routes a second. OSRM gets its speed by pre-processing the road network using Contraction Hierarchies, allowing very fast ‘short ...

New Maptitude 3d Surfaces Section

I have just added a new section to the Maptitude ‘Howto’ pages over at mapping-tools.com, discussing Maptitude’s 3d surface and landscape options. Here is an example image of Snowdonia, created using Ordnance Survey elevation data combined with Google Maps Satellite imagery: Other examples include Guadalupe Mountains (Texas), and geological overlays of both the Caprock Escarpment ...

Converting old Ordnance Survey Height Data

I’m currently putting together some pages for the Maptitude How-To pages covering Maptitude’s support for digital terrain models and elevation models. Left over from my undergraduate geology days, I happened to have the Ordnance Survey 1:50,000 height data files for the 20km SH64 square (my dissertation covered an area straddling the SH75SW and SH75SE 5km ...

Product Overview: Caliper Maptitude

Although Caliper®’s Maptitude® product is usually considered a desktop GIS system, it does implement a number of web-based features, allowing it to be used as a web map viewer.

Product Overview: MPExporter

Those looking to migrate their Microsoft MapPoint maps to the geospatial web may want to look at MPExporter, an add-in from Mapping-Tools.com.

Running the Charniak-Johnson Parser from Python 2

Although the Python NLTK library contains a number of parsers and grammars, these only support words which are defined in the grammar. This also applies to the supported Probabilistic Context Free Grammars (PCFGs). Therefore, in order to work with a more general parser that can handle unseen words, you have to use a Python wrapper ...

Extracting Body content from a Web Page using .NET

Boilerpipe is a useful library for extracting body content from web pages and discard the ‘boilerplate’ (menus, footers, advertising, etc). It is a Java library, so it requires a Bridge (e.g. JPype for Python) if you wish to use it in a non-Java environment.  Luckily for C# users, Arif Ogan has ported Boilerpipe to C#/Mono. ...

Extracting Body Content from a Web Page

I recently encountered the problem of having to extract the main body content from a series of web pages, and to discard all of the ‘boiler plate’ — i.e. header, menus, footer, and advertising. The application was performing statistical comparisons between web pages, and although it was producing the correct answers for my test data, ...

NLTK on the Raspberry PI

If you haven’t heard of it yet, the Raspberry Pi is a $25/$35 barebones computer intended to excite kids with programming and hardware projects. It is very much modeled on the British experience of home computing in the early 1980s and even has a “Model A” and a “Model B” in homage to the BBC ...