Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CartoDB + OpenStreetMap

Andrew W Hill
October 16, 2012

CartoDB + OpenStreetMap

CartoDB is a great tool for using, sharing, and analyzing OSM data. Here I give an overview of some of the things that can be done. For any links or further information, tweet me @andrewxhill

Andrew W Hill

October 16, 2012
Tweet

More Decks by Andrew W Hill

Other Decks in Technology

Transcript

  1. CartoDB is a tool to build applications and master your

    geospatial data Sunday, October 14, 12
  2. 1 OSM file becomes 4 CartoDB tables 1. Points 2.

    Polygons 3. Roads 4. Linestrings Sunday, October 14, 12
  3. Import local data from .org or mirror simple drag-drop support

    on most browsers Sunday, October 14, 12
  4. From here the sky is the limit combine SQL, CartoCSS,

    and APIs with ease Sunday, October 14, 12
  5. _I want to see ‘X’ over time using the SQL

    API with big data Sunday, October 14, 12
  6. WITH  hgrid            AS  (SELECT  Cdb_rectanglegrid(Cdb_xyz_extent(8,

     12,  5),                                  Cdb_xyz_resolution(5)  *  4,                                                        Cdb_xyz_resolution(5)  *  4)  AS  cell)   SELECT  x,                y,                Array_agg(c)  vals,                Array_agg(d)  dates   FROM      (SELECT  St_xmax(hgrid.cell)                                                                                        x,                                St_ymax(hgrid.cell)                                                                                        y,                                Count(i.cartodb_id)                                                                                        c,                                Floor((  Date_part('epoch',  built)  -­‐  -­‐10418716800  )  /  32837875)  d                  FROM      hgrid,                                us_po_offices  i                  WHERE    St_intersects(i.the_geom_webmercator,  hgrid.cell)                  GROUP    BY  hgrid.cell,                                      Floor((  Date_part('epoch',  built)  -­‐  -­‐10418716800  )  /  32837875)                )  f   GROUP    BY  x,                      y Sunday, October 14, 12
  7. 1 10 100 1000 3mb 70mb 300mb 1.5 2 1.2

    300 70 3 Raw Datacube Payload sizes Sunday, October 14, 12
  8. That’s CartoDB + OpenStreetMap in a nutshell come talk to

    me, I’m sure I missed much more Sunday, October 14, 12