Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Trying to follow the guide here: http://datamaps.markmarkoh.com/using-custom-map-data-w-datamaps/ but not getting the right output from the queries to topojson and ogr2ogr
{"type":"Topology","objects":{"subunits":{"type":"GeometryCollection","geometries":[{"type":"Polygon","arcs":[[0]]}]}},"arcs":[[[7332,9927],[5,1],[5,3],[9,0],[8,-2],[20,-13],[27,-24],[42,-56],[58,-30],[23,-19],[17,-33],[4,-49],[-3,-25],[-13,-47],[-4,-32],[-13,-32],[-10,-45],[-20,-48],[-5,-28],[-7,-25],[-1,-12],[3,-14],[3,-2],[6,2],[7,-2],[26,-27],[15,-8],[14,10],[13,12],[84,37],[25,-2],[21,-18],[21,-33],[-5,-8],[2,-13],[1,-24],[0,-26],[-3,-20],[-11,-19],[-25,-21],[-6,-20],[1,-10],[6,-24],[2,-12],[-1,-11],[-8,-34],[-3,-34],[-2,-11],[-4,-9],[-8,-15],[-3,-6],[-3,-48],[10,-89],[-7,-44],[-7,-25],[-3,-15],[6,-43],[1,-46],[-2,-23],[-4,-14],[-1,-31],[-25,-55],[2,-27],[-5,-10],[-4,-16],[-5,-45],[-1,-67],[1,-13],[4,-12],[12,-24],[3,-13],[0,-45],[2,-24],[6,-20],[39,-81],[7,-22],[5,-51],[5,-22],[8,-21],[9,-19],[23,-31],[30,-20],[32,-9],[34,0],[34,8],[27,14],[201,191],[19,26],[23,17],[6,8],[10,20],[7,10],[28,23],[70,37],[31,8],[48,-11],[24,15],[103,19],[6,11],[4,21],[29,57],[33,86],[20,36],[28,21],[32,8],[18,8],[15,23],[49,38],[50,6],[14,12],[8,15],[12,33],[11,16],[27,27],[6,2],[15,-7],[7,5],[34,46],[11,10],[14,6],[18,2],[16,-2],[12,-9],[11,-5],[43,31],[31,1],[84,-39],[48,-16],[30,1],[25,-4],[-5,-28],[-1,-9],[0,-46],[-4,-16],[-12,-18],[-12,-12],[-10,-7],[-27,-3],[-14,-7],[-15,-16],[-9,-21],[3,-24],[11,-8],[30,12],[14,-2],[5,-6],[10,-17],[5,-5],[7,1],[12,11],[6,3],[16,-2],[11,-3],[10,3],[26,31],[14,5],[30,5],[39,23],[14,4],[53,24],[77,20],[17,9],[13,19],[1,37],[11,15],[18,1],[21,-7],[17,3],[8,29],[3,-14],[8,7],[8,1],[7,-6],[10,-21],[7,-3],[8,-1],[20,-4],[12,3],[13,2],[15,-9],[26,-9],[5,-2],[6,0],[71,6],[20,14],[89,-69],[20,-27],[31,-68],[21,-15],[-55,-18],[-13,-1],[-8,6],[-27,76],[-5,8],[-11,2],[-8,-8],[-7,-11],[-16,-18],[-4,-3],[-14,-2],[-3,-5],[-2,-7],[-9,-11],[-2,-5],[-3,-4],[-5,-2],[-5,2],[-8,11],[-5,3],[-10,-1],[-30,-11],[-22,-1],[-9,-6],[-8,-17],[-6,-23],[-7,-13],[-11,-8],[-15,-3],[-26,5],[-10,-6],[-1,-21],[11,-23],[22,-21],[43,-27],[13,-18],[8,-22],[9,-18],[16,-10],[4,-6],[1,-8],[-1,-8],[-3,-8],[-4,-35],[-11,-4],[-14,15],[-13,24],[-2,3],[-3,3],[-13,5],[-15,-1],[-29,-10],[-18,-19],[-58,-47],[-34,-35],[-16,-8],[-46,7],[-11,-3],[-10,-10],[-5,-15],[-3,-38],[-7,-11],[-41,-17],[-20,0],[-21,10],[-20,6],[-57,46],[-22,12],[-42,10],[-42,2],[-1,0],[-1,0],[-48,3],[-91,-20],[-22,5],[-22,4],[-46,-8],[-33,3],[-35,-16],[-10,-1],[-10,1],[-20,7],[-22,3],[-104,-14],[-11,-5],[-17,-15],[-8,-5],[-10,1],[-21,11],[-17,-6],[-17,-11],[-20,-7],[-62,-4],[-58,11],[-46,-4],[-44,-14],[-34,-22],[-43,-47],[-15,-5],[-32,3],[-28,-12],[-31,-3],[-61,-18],[-31,-16],[-11,-10],[-3,-14],[11,-22],[5,-18],[-13,-9],[-40,-7],[-17,-7],[-9,-6],[-6,-9],[2,-9],[3,-10],[-1,-10],[-12,-13],[-28,-9],[-15,-10],[-11,-15],[-33,-24],[-9,-11],[-9,-11],[-9,-10],[-11,-5],[-45,-4],[-14,-12],[1,-34],[12,-30],[2,-15],[-8,-13],[-11,-5],[-11,-1],[-11,6],[-20,28],[-40,34],[-14,8],[-13,-2],[-7,-10],[-8,-33],[-6,-18],[-5,-12],[-18,-22],[-3,-17],[7,-17],[4,-14],[-14,-10],[-16,-4],[-14,-6],[-11,-10],[-53,-76],[-14,-14],[-44,-20],[-4,-7],[-3,-24],[-5,-10],[-7,-6],[-21,-13],[-27,-23],[-4,-8],[-3,-23],[-4,-11],[-22,-29],[-7,-17],[3,-16],[1,-4],[8,-9],[25,-18],[9,-10],[18,-24],[19,-10],[19,-6],[20,-11],[11,-16],[3,-36],[7,-16],[32,-29],[9,-17],[24,-54],[4,-16],[1,-11],[-1,-10],[0,-9],[3,-13],[4,-7],[11,-11],[4,-6],[9,-19],[3,-20],[-4,-20],[-12,-21],[-9,-22],[6,-19],[14,-14],[38,-24],[12,-11],[6,-17],[0,-21],[-5,-20],[-3,-21],[4,-24],[4,-7],[5,-10],[9,-14],[6,-15],[-1,-21],[-7,-16],[-33,-39],[-22,-35],[-1,-30],[13,-28],[38,-57],[21,-23],[3,-15],[-6,-21],[-17,-35],[-48,-44],[-18,-29],[-1,-48],[3,-11],[-1,-11],[-5,-9],[-7,-7],[-6,-11],[-6,-26],[-5,-12],[-6,-7],[-11,-6],[-83,-44],[-25,-25],[-13,-34],[-10,-37],[-37,-68],[-9,-13],[-27,-18],[-49,-52],[-7,-13],[-1,-17],[5,-24],[3,-23],[-3,-27],[-7,-22],[-13,-8],[-28,6],[-15,-1],[-1,-1],[-10,-6],[-9,-19],[0,-24],[3,-25],[7,-21],[14,-28],[20,-32],[22,-27],[49,-36],[3,-27],[-20,-77],[0,-20],[6,-38],[2,-22],[-1,-27],[-4,-15],[-19,-29],[-8,-22],[1,-18],[2,-17],[-3,-21],[-11,-14],[-34,-9],[-15,-6],[-7,-15],[-9,-10],[-10,-5],[-12,2],[-19,8],[-7,-3],[-3,-14],[-12,-32],[-50,-13],[-93,2],[-93,-18],[-22,1],[-57,16],[-56,3],[-13,5],[-24,16],[-39,5],[-150,70],[-23,2],[-37,-8],[-19,-8],[-11,-16],[-2,-17],[3,-17],[-2,-16],[-12,-17],[-9,-16],[4,-16],[20,-27],[7,-14],[9,-42],[6,-18],[17,-32],[6,-16],[5,-22],[7,-21],[10,-8],[17,-3],[10,-2],[38,-22],[29,7],[7,-12],[6,-43],[4,-17],[3,-6],[7,-7],[11,-7],[5,-5],[3,-7],[0,-27],[-15,-70],[-1,-20],[3,-22],[6,-19],[9,-17],[6,-5],[19,-8],[5,-6],[5,-18],[4,-8],[37,-55],[11,-34],[-5,-36],[-118,-132],[-14,-10],[-15,2],[-16,7],[-8,-4],[-24,-59],[-5,-10],[-8,-5],[-21,2],[-6,-1],[-52,-43],[-30,-3],[-46,31],[-27,-6],[-33,-31],[-12,-4],[-7,1],[-6,4],[-6,3],[-23,-6],[-14,1],[-28,-5],[-23,-21],[-18,-31],[-7,-18],[-7,-19],[13,-120],[-7,-32],[-4,-5],[-18,-18],[-17,-32],[-23,-23],[-8,-15],[2,-22],[3,-8],[5,-7],[6,-6],[6,-3],[5,-5],[2,-8],[1,-20],[7,-36],[-2,-14],[-9,-21],[-36,-74],[-12,-13],[-29,-14],[-14,-12],[-21,-36],[-13,-41],[-4,-46],[8,-47],[18,-62],[2,-23],[-1,-24],[-4,-47],[-1,-46],[-5,-47],[-1,-24],[14,-104],[22,-83],[2,-15],[-3,-6],[-1,-4],[-34,-34],[-19,-27],[-76,-159],[-9,-15],[-11,-9],[-9,-20],[-22,-27],[-25,-24],[-19,-11],[-25,3],[-23,-11],[-45,-30],[-27,-5],[-18,18],[-32,63],[-18,28],[-6,16],[-2,45],[-4,13],[-9,7],[-39,9],[-41,32],[-23,12],[-15,0],[-17,-8],[-30,-22],[-13,-14],[2,-11],[12,-7],[15,-3],[42,1],[13,-3],[7,-10],[-9,-13],[-15,-12],[-12,-6],[-26,6],[-73,35],[-27,3],[-28,-1],[-15,3],[-9,11],[-7,15],[-17,19],[-16,12],[-18,8],[-14,-1],[-9,-15],[-14,-47],[-5,-10],[-3,-9],[-23,-28],[-3,-10],[-3,-23],[-4,-8],[-36,-28],[-12,-12],[-8,-15],[-7,-6],[-28,-2],[-21,5],[-10,-1],[-19,-13],[-43,-65],[-23,-22],[-15,-14],[-21,-12],[-21,-3],[-45,14],[-22,-1],[-9,-19],[5,-17],[10,-16],[9,-19],[4,-43],[10,-17],[14,-11],[14,-6],[58,11],[25,-11],[3,-47],[-7,-20],[-11,-7],[-28,2],[-11,-5],[-10,-9],[-9,-12],[-44,-38],[-13,-7],[-37,-9],[-26,-15],[-41,-8],[-48,-28],[-13,-3],[-44,5],[-36,-2],[-12,2],[-14,7],[-25,19],[-14,6],[-14,-1],[-27,-9],[-14,0],[-16,4],[-8,4],[-6,6],[0,8],[2,7],[4,7],[2,9],[-2,24],[-4,15],[-11,8],[-40,-1],[-26,-10],[-47,-32],[-21,-24],[-16,-26],[-18,-18],[-27,-5],[-16,-16],[-24,-124],[-13,-25],[-65,-92],[-16,-10],[-94,-26],[-12,-8],[-6,-16],[-68,-353],[-2,-48],[11,-44],[17,-30],[6,-14],[3,-22],[2,-23],[-13,-145],[2,-67],[-3,-21],[-45,-125],[-10,-42],[-2,-17],[4,-15],[25,-24],[28,-40],[21,-22],[6,-11],[-2,-5],[-6,-3],[-4,-3],[-15,-34],[-18,-33],[-55,-55],[-60,-24],[-40,-16],[-40,-17],[-41,-16],[-40,-16],[-40,-16],[-40,-17],[-41,-16],[-40,-16],[-40,-17],[-41,-16],[-40,-16],[-40,-16],[-40,-17],[-41,-16],[-40,-16],[-40,-16],[-101,-41],[-35,2],[-115,28],[-95,2],[-128,1],[-15,0],[-187,-77],[-25,-17],[-15,-29],[-26,-68],[-19,-11],[-79,47],[-128,34],[-152,41],[-106,-14],[-34,-4],[-34,-5],[-34,-4],[-34,-5],[-34,-4],[-34,-4],[-34,-5],[-34,-4],[-34,-5],[-34,-4],[-34,-5],[-34,-4],[-34,-4],[-34,-5],[-34,-4],[-34,-5],[-20,-2],[-87,-12],[-72,19],[-66,29],[-57,26],[-58,26],[-58,26],[-58,25],[-58,26],[-57,26],[-58,26],[-58,25],[-58,26],[-58,26],[-57,25],[-58,26],[-58,26],[-58,25],[-58,26],[-57,26],[-50,22],[-22,14],[40,64],[53,86],[108,176],[57,94],[39,64],[75,123],[57,93],[79,131],[88,145],[57,95],[12,17],[-2,6],[-1,1],[1,20],[2,8],[4,3],[-2,75],[-3,13],[13,36],[5,23],[0,21],[-4,22],[-8,36],[-12,35],[-2,12],[-1,32],[-6,25],[-18,41],[-7,23],[-1,22],[5,47],[-5,20],[-24,43],[-14,15],[-18,10],[-38,7],[-80,16],[-136,27],[-118,23],[-1,0],[-116,24],[-70,13],[-23,14],[-9,103],[-10,53],[-2,26],[9,81],[-10,102],[-1,53],[5,68],[-1,24],[-3,12],[-3,11],[-2,11],[6,24],[-4,6],[-6,5],[-2,7],[5,16],[19,32],[4,18],[9,88],[1,90],[-23,117],[-31,153],[-28,127],[-25,116],[-25,110],[-23,107],[-20,90],[-10,70],[-1,87],[4,15],[34,61],[37,68],[34,60],[27,48],[20,24],[22,19],[8,12],[3,22],[-1,19],[-2,18],[2,16],[12,11],[33,3],[10,5],[6,12],[0,2],[-6,15],[-12,14],[-10,9],[-24,8],[-26,2],[-51,-3],[-55,5],[-56,31],[-44,55],[-17,81],[6,36],[21,64],[2,43],[-20,168],[-8,95],[-1,15],[4,49],[20,52],[22,38],[24,33],[33,23],[11,15],[-5,24],[49,4],[70,5],[52,4],[-8,21],[-51,88],[-11,28],[-7,13],[-8,10],[-17,10],[-6,8],[-6,26],[-5,8],[-6,4],[-7,2],[10,23],[17,11],[38,7],[18,6],[13,13],[32,47],[3,8],[5,8],[9,7],[10,2],[9,-1],[8,2],[7,13],[3,27],[-2,28],[0,26],[13,19],[22,23],[13,31],[4,19],[22,9],[5,36],[3,39],[0,10],[-3,20],[-1,11],[2,14],[10,21],[2,10],[2,22],[11,41],[4,46],[5,15],[16,31],[-7,10],[-1,9],[2,10],[1,12],[-2,5],[-24,43],[-4,11],[4,5],[7,5],[1,11],[-4,10],[-4,5],[0,11],[0,23],[4,24],[10,10],[15,1],[17,3],[13,10],[6,20],[-4,56],[4,23],[4,12],[14,26],[4,11],[6,34],[8,21],[16,26],[9,21],[5,23],[-2,22],[-7,45],[-6,10],[10,5],[36,9],[6,0],[5,-3],[7,-8],[-1,-3],[-6,-12],[9,-10],[1,0],[1,0],[11,-13],[1,-5],[-3,-12],[0,-4],[5,-9],[4,-6],[6,-4],[8,-2],[4,-3],[6,-3],[45,-54],[32,-46],[46,-23],[94,-19],[41,4],[83,38],[41,-1],[21,-13],[18,-17],[71,-91],[19,-16],[38,-22],[11,-14],[7,-17],[5,-20],[1,-19],[-1,-45],[4,-16],[13,-40],[7,-12],[11,8],[68,119],[22,28],[19,1],[45,-55],[8,-5],[7,1],[7,2],[7,1],[21,-12],[6,-1],[11,4],[51,28],[10,8],[9,12],[9,16],[18,24],[44,27],[3,2],[63,65],[46,29],[14,4],[29,3],[14,5],[9,13],[4,20],[3,42],[7,34],[-2,12],[-12,12],[-2,14],[-2,56],[2,16],[18,24],[53,22],[20,18],[4,10],[0,8],[-3,6],[-18,9],[-5,5],[-9,17],[-36,41],[-4,14],[-3,20],[-7,14],[-5,14],[3,19],[11,14],[14,4],[151,-4],[61,16],[56,34],[10,12],[17,29],[10,13],[12,9],[15,4],[85,7],[28,9],[65,49],[21,9],[12,2],[10,2],[20,-5],[66,-33],[0,14],[-6,52],[0,19],[6,18],[8,14],[46,45],[25,15],[26,7],[28,-6],[12,-7],[8,-2],[7,7],[11,45],[8,13],[11,9],[13,7],[51,15],[23,11],[23,24],[14,22],[55,108],[12,38],[8,40],[3,44],[-2,23],[-9,42],[-4,23],[0,22],[2,22],[9,44],[12,35],[74,174],[26,59],[9,38],[-3,43],[-13,83],[3,43],[13,28],[20,20],[126,86],[51,21],[295,10],[10,0],[24,16],[32,56],[20,26],[9,15],[4,23],[-1,24],[-5,47],[3,25],[7,23],[9,22],[7,18],[7,11],[8,7],[12,3],[29,0],[9,9],[4,29],[2,16],[11,-6],[14,-4],[5,-5],[12,-33],[5,-10],[5,-7],[13,-13],[156,-73],[13,-14],[19,-33],[12,-15],[14,-9],[8,-1],[23,1],[7,-2],[10,-10],[7,-3],[6,-4],[5,-3],[11,-15],[14,-13],[18,-2],[48,19],[17,3],[7,-4],[10,-20],[9,-5],[7,1],[6,6],[11,15],[12,14],[11,9],[14,6],[18,1],[16,-2],[46,-25],[9,-2],[19,-1],[7,4],[14,15],[7,3],[91,5],[63,19],[34,-1],[13,-7],[27,-25],[15,-6],[8,-10],[12,-48],[6,-16],[14,-11],[31,-15],[14,-17],[7,-19],[5,-20],[8,-17],[16,-8],[15,4],[27,22],[18,5],[16,2],[15,5],[14,9],[14,13],[23,29],[13,13],[14,5],[16,-10],[13,-46],[12,-13],[7,4],[5,10],[5,11],[4,5],[7,2],[13,5],[8,1],[8,-3],[15,-15],[8,-5],[9,-1],[25,1],[14,-4],[12,-10],[9,-14],[3,-21],[-6,-70],[0,-17],[9,-14],[16,-15],[17,-11],[31,-10],[10,-13],[7,-20],[11,-22],[8,-9],[16,-11],[6,-7],[24,-37],[4,-9],[3,-10],[4,-9],[6,-5],[3,-1],[6,0],[8,5],[7,6],[46,50],[9,7],[12,6],[12,15],[12,14],[19,3],[28,-12],[17,0],[7,15],[-5,47],[0,22],[5,18],[13,12],[14,-1],[13,-7],[14,-4],[18,2],[14,9],[4,17],[-10,25],[43,4],[33,10],[8,1],[6,4],[9,22],[4,4],[14,3],[26,10],[12,2],[3,9],[4,17],[8,16],[16,3],[-4,14],[-2,5],[-4,4],[8,12],[13,0],[27,-4],[14,1],[9,-1],[8,-5],[26,-21],[8,0],[3,10],[-1,24],[-9,33],[3,12],[15,7],[15,-5],[7,-14],[7,-18],[9,-15],[10,-6],[8,3],[3,9],[-2,16],[-3,5],[-12,11],[-4,7],[-4,13],[2,4],[4,-2],[3,-1],[47,-7],[14,-10],[14,-16],[11,-20],[10,-40],[14,-16],[16,-13],[12,-13],[12,-39],[7,-9],[15,-14],[4,-2],[66,-56],[14,1],[13,9],[16,4],[3,1],[8,4],[7,8],[12,17],[28,23],[11,14],[24,51],[2,14],[-13,3],[-11,7],[5,24],[-6,10],[-4,38],[-6,16],[-4,8],[-2,9],[-1,11],[0,10],[1,3],[2,1],[1,1],[1,6],[-2,5],[-7,2],[-1,4],[-1,42],[2,21],[4,17],[4,6],[10,9],[5,6],[3,6],[4,13],[2,5],[31,29],[15,18],[12,47],[14,7],[95,-11],[15,4],[30,16],[17,3],[5,-1],[16,-6],[5,-5],[7,-5],[7,5],[7,8],[7,4],[14,5],[30,19],[16,-1],[11,-13],[7,-18],[7,-15],[15,-7],[9,-2],[4,-6],[2,-7],[4,-5],[2,-3],[7,-3],[22,-5],[-5,8],[19,-4],[21,-9],[21,-5],[20,10],[24,38],[5,4],[1,9],[10,33],[2,0],[13,1],[2,-1],[4,4],[2,2],[3,9],[1,7],[-1,10],[0,9],[3,4],[3,3],[9,16],[2,13],[2,9],[2,10],[-1,16],[-7,32],[-2,16],[4,12],[-6,8],[-7,12],[-4,14],[-2,16],[-5,9],[-23,9],[-8,5],[-11,23],[-10,32],[-3,33],[8,28],[14,-14],[15,-4],[16,3],[17,8],[-6,9],[-2,9],[0,9],[2,11],[5,3],[8,2],[8,4],[4,10],[3,6],[3,2],[14,9],[6,5],[31,52],[31,40],[7,7],[24,12],[7,9],[8,19],[18,61],[21,50],[6,27],[8,6],[10,3],[7,4],[9,38],[0,9],[0,11],[0,12],[3,10],[6,4],[16,-1],[6,5],[25,22],[6,13],[-14,13],[0,8],[13,10],[40,5],[9,19],[4,8],[12,3],[22,0],[6,-2],[11,-4],[6,-1],[5,3],[3,5],[4,5],[8,1],[28,-17],[17,-5],[7,12],[-2,25],[5,7],[16,1],[9,-3],[8,-6],[7,-8],[7,-9],[4,-9],[6,-20],[5,-9],[7,-8]]],"transform":{"scale":[0.001440696966896691,0.0009087976873687463],"translate":[60.48677779100012,29.38660532600005]}}
@Peege151

This comment has been minimized.

Copy link
Owner Author

commented Apr 17, 2015

Not sure if there is a better way to display the json in gists.

@markmarkoh

This comment has been minimized.

Copy link

commented Apr 17, 2015

@Peege151 If you name the file with a .json extension it'll display better:

https://gist.github.com/markmarkoh/9e962942bd756847587b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.