OSGridSquareConverter

From fmepedia


This page contains a Custom Transformer created by an fmepedia user.
  See the attached files list at the foot of this page for the zip file containing this custom transformer.  



Created by: Mark Ireland


The OSGridSquareConvertor processes x/y coordinates that are held as 5-figure British National Grid coordinates with a major grid square (http://en.wikipedia.org/wiki/British_national_grid_reference_system#Grid_letters). For example, NN,16680,71290 becomes 216680,771290 (since NN is an offset of 200000,700000).


The transformer takes as source any non-spatial dataset with attributes for easting, northing and grid. The output is non-spatial features with a new, complete 12-digit OS grid reference.


Above: Custom Transformer Design. ValueMappers were used to map grid square to offset. A Joiner or FeatureMerger could have been equally used.


Above: Output. Notice how Easting, Northing and Grid have been used to create new X/Y values. These could be subsequently converted to spatial features using the 2DPointReplacer

Attached Files
filesizedate
OSGridSquareConverter Output.jpg37.4 kB11/20/06
OSGridSquareConverter.jpg91.9 kB11/20/06
OSGridSquareConvertor.zip97.5 kB11/20/06
User Comments Add a new comment