I'm pretty sure I need to convert the coordinates in my GeoJson file to EPSG:3857 for them to play nicely with CartoDB, but I don't know what coordinate system they are currently in. The original data is from Ordnance Survey. Here's how I got that data and how I transformed it:
- I downloaded the UK OS shapefile for "lower layer super output area" boundaries.
- I used the mapshaper command line tool to heavily simplify the polygons and export the result as GeoJson.
- (I then used a Ruby script to discard all the features that were not in Greater Manchester, but I hope that's not relevant.)
- Finally, I imported the result as a CartoDB dataset but saw no polygons on the map view.
Here is an example feature from my GeoJson file:
{
"type": "Feature",
"properties": {
"LSOA11CD": "E01004766",
"LSOA11NM": "Bolton 005A",
"LSOA11NMW": "Bolton 005A"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
370664.009,
411365.069
],
[
370452.531,
411428.156
],
[
370344.061,
411733.869
],
[
370510.978,
411885.617
],
[
370774.826,
411942.479
],
[
370795.626,
411526.363
],
[
371172.854,
411677.763
],
[
371456.953,
411961.328
],
[
371525.9,
411866.915
],
[
371452.615,
411272.858
],
[
371336.156,
411156.394
],
[
371161.151,
411170.972
],
[
371052,
411185.906
],
[
370664.009,
411365.069
]
]
]
}
}
If I can find out what the current coordinate system is then I am confident that I can convert using QGIS.