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

CartoDB and the Curious Power of Maps

CartoDB and the Curious Power of Maps

Andrew W Hill

October 14, 2014
Tweet

More Decks by Andrew W Hill

Other Decks in Technology

Transcript

  1. 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
  2. @andrewxhill Join the CartoDB Developer Program The CartoDB Developer Program

    is an initiative to partner with companies and developers in creating geospatial products that look, feel, and sell great cartodb.com/marketplace 60 70 Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.8.0-29-generic i686) * Documentation: https://help.ubuntu.com/ System information as of Mon Sep 1 09:00:03 UTC 2014 System load: 0.05 Processes: 121 Usage of /: 19.4% of 29.40GB Users logged in: 1 Memory usage: 64% IP address for eth0: 12.3.132.15 Swap usage: 0% IP address for eth1: 10.2.124.12 Manage this system at https://landscape.canonical.com/ *** System restart required *** ubuntu@cartodb:~$ DESIGN DEVELOP MARKETING AND SALES