I'm also using PostGIS/OSM-Bright/TileMill setup (for the first time). I imported my OSM data with osm2pgsql; the tables of interest seem to be planet_osm_polygon
, planet_osm_point
, planet_osm_line
, and planet_osm_roads
.
You can get the extent value for each table by running a query like this:
SELECT ST_Extent(way) FROM planet_osm_polygon
Or to get the extent (i.e., bounding box for ALL of your OSM data) you can run a query like this:
SELECT
ST_Extent( way )
FROM (
SELECT way FROM planet_osm_polygon
UNION
SELECT way FROM planet_osm_point
UNION
SELECT way FROM planet_osm_line
UNION
SELECT way FROM planet_osm_roads
) as foo;
This will return a box with minX, minY, maxX, maxY values (e.g., BOX(739651.875 2908247.25,794875.8125 2970042.75)
-> config["postgis"]["extent"] = "739651.875 2908247.25 794875.8125 2970042.75"
).