Alternatively, if you just want to extract a square (say EN82), you can use ogr2ogr’s ‘where’ clause to select just the geometry you want:.Ogr2ogr -f KML EN-maidenhead_grid.kml EN-maidenhead_grid.shp Let’s assume we want to make the grid square ‘EN’. You’ll need the OGR toolkit installed, which comes in several open-source geo software bundles: FWTools/ osgeo4w/ QGis. Several people have asked, so here’s how you convert to KML. If anyone would like their grid square in Google Earth format, let me know, or read on … Making KML Files (If you’re feeling nerdy, here it is in Shapefile format: Maidenhead_Locator_World_Grid-shp). A Google Earth KML file covering the whole world in 20° by 10° grid fields: Maidenhead_Locator_World_Grid.324 (= 18 2) of these files would cover the whole world, and at 8MB or so a pop, things get unwieldy quickly.
You’ll need Geo::Shapelib to make this work. I’d hoped to provide a shapefile of the entire world, but that would be too big for the format’s 2GB file size limit. Toronto, as understood by the Maidenhead Locator systemĪfter yesterday’s post, I went a bit nuts with working out the whole amateur radio grid locator thing ( not that I’m currently likely to use it, though).