Permalink
Browse files

Merge branch 'master' of github.com:nvkelso/golden-ratio

  • Loading branch information...
2 parents eda576a + 963398f commit d38534d4f42f0b23eaec1e8fbc911fd87ed57334 @nvkelso committed Jun 5, 2012
Showing with 435 additions and 0 deletions.
  1. +110 −0 reference/twitter_bbox/mapnik/Makefile
  2. +107 −0 reference/twitter_bbox/mapnik/mapnik-render.py
  3. BIN reference/twitter_bbox/mapnik/renders/gr_brazil.png
  4. BIN reference/twitter_bbox/mapnik/renders/gr_california.png
  5. BIN reference/twitter_bbox/mapnik/renders/gr_canberra.png
  6. BIN reference/twitter_bbox/mapnik/renders/gr_china.png
  7. BIN reference/twitter_bbox/mapnik/renders/gr_china2.png
  8. BIN reference/twitter_bbox/mapnik/renders/gr_eastcoast.png
  9. BIN reference/twitter_bbox/mapnik/renders/gr_eastcoast2.png
  10. BIN reference/twitter_bbox/mapnik/renders/gr_germany.png
  11. BIN reference/twitter_bbox/mapnik/renders/gr_israel.png
  12. BIN reference/twitter_bbox/mapnik/renders/gr_japan.png
  13. BIN reference/twitter_bbox/mapnik/renders/gr_lagos.png
  14. BIN reference/twitter_bbox/mapnik/renders/gr_lagos2.png
  15. BIN reference/twitter_bbox/mapnik/renders/gr_london.png
  16. BIN reference/twitter_bbox/mapnik/renders/gr_lowlands.png
  17. BIN reference/twitter_bbox/mapnik/renders/gr_lowlands2.png
  18. BIN reference/twitter_bbox/mapnik/renders/gr_mexico.png
  19. BIN reference/twitter_bbox/mapnik/renders/gr_newyork.png
  20. BIN reference/twitter_bbox/mapnik/renders/gr_northerneurope.png
  21. BIN reference/twitter_bbox/mapnik/renders/gr_sf.png
  22. BIN reference/twitter_bbox/mapnik/renders/gr_sydney.png
  23. BIN reference/twitter_bbox/mapnik/renders/gr_tokyo.png
  24. BIN reference/twitter_bbox/mapnik/renders/gr_us.png
  25. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_brazil.png
  26. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_california.png
  27. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_china.png
  28. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_eastcoast.png
  29. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_eastcoast2.png
  30. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_israel.png
  31. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_japan.png
  32. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_lagos.png
  33. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_lagos2_nullisland.png
  34. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_london.png
  35. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_lowlands.png
  36. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_lowlands2.png
  37. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_mexico.png
  38. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_newyork.png
  39. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_northerneurope.png
  40. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_sf.png
  41. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_sydney.png
  42. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_tokyo.png
  43. BIN reference/twitter_bbox/mapnik/renders_cropped/gr_us.png
  44. +48 −0 reference/twitter_bbox/mapnik/style.mml
  45. +118 −0 reference/twitter_bbox/mapnik/style.xml
  46. +52 −0 reference/twitter_bbox/mapnik/stylesheet.mss
@@ -0,0 +1,110 @@
+#mexico 7/19.992/-100.867
+#lowlands 7/50.393/2.674
+#china 5/26.631/110.032
+#china2 4/31.36/109.66
+#northern europe 4/50.96/12.63
+#germany 5/50.905/10.015
+#us 4/37.72/-97.06
+#newyork 10/40.7312/-73.9114
+#sf 10/37.6532/-122.1921
+#california 7/36.008/-118.393
+#east coast 8/40.102/-75.258
+#east coast2 7/40.731/-75.514
+#brazil 8/-23.261/-45.453
+#lagos 7/6.398/2.857
+#lagos2 6/5.863/2.368
+#israel 7/33.455/34.420
+#lowlands2 7/52.586/8.746
+#london 8/51.758/-0.326
+#sydney 7/-36.123/148.203
+#canberra 6/-32.938/147.605
+#tokyo 8/35.686/137.912
+#japan 7/36.122/137.091
+
+all: index.html
+
+index.html: \
+ renders/gr_mexico.png renders/gr_lowlands.png renders/gr_china.png \
+ renders/gr_china2.png renders/gr_northerneurope.png \
+ renders/gr_germany.png renders/gr_us.png \
+ renders/gr_newyork.png renders/gr_sf.png \
+ renders/gr_california.png renders/gr_eastcoast.png renders/gr_eastcoast2.png \
+ renders/gr_brazil.png renders/gr_lagos.png renders/gr_lagos2.png \
+ renders/gr_israel.png renders/gr_lowlands2.png renders/gr_london.png \
+ renders/gr_sydney.png renders/gr_canberra.png renders/gr_tokyo.png \
+ renders/gr_japan.png
+
+renders/gr_mexico.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 19.992 -100.867 -z 7 -d 1824 1568 -o $@
+
+renders/gr_lowlands.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 50.393 2.674 -z 7 -d 1824 1568 -o $@
+
+renders/gr_china.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 26.631 110.032 -z 5 -d 1824 1568 -o $@
+
+renders/gr_china2.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 31.36 109.66 -z 4 -d 1824 1568 -o $@
+
+renders/gr_northerneurope.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 50.96 12.63 -z 5 -d 1824 1568 -o $@
+
+renders/gr_germany.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 50.905 10.015 -z 5 -d 1824 1568 -o $@
+
+renders/gr_us.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 37.72 -97.06 -z 4 -d 1824 1568 -o $@
+
+renders/gr_newyork.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 40.7312 -73.9114 -z 10 -d 1824 1568 -o $@
+
+renders/gr_sf.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 37.6532 -122.1921 -z 10 -d 1824 1568 -o $@
+
+renders/gr_california.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 36.008 -118.393 -z 7 -d 1824 1568 -o $@
+
+renders/gr_eastcoast.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 40.102 -75.258 -z 8 -d 1824 1568 -o $@
+
+renders/gr_eastcoast2.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 40.731 -75.514 -z 7 -d 1824 1568 -o $@
+
+renders/gr_brazil.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l -23.261 -45.453 -z 8 -d 1824 1568 -o $@
+
+renders/gr_lagos.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 6.398 2.857 -z 7 -d 1824 1568 -o $@
+
+renders/gr_lagos2.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 5.863 2.368 -z 6 -d 1824 1568 -o $@
+
+renders/gr_israel.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 33.455 34.420 -z 7 -d 1824 1568 -o $@
+
+renders/gr_lowlands2.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 52.586 8.746 -z 7 -d 1824 1568 -o $@
+
+renders/gr_london.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 51.758 -0.326 -z 8 -d 1824 1568 -o $@
+
+renders/gr_sydney.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l -36.123 148.203 -z 7 -d 1824 1568 -o $@
+
+renders/gr_canberra.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l -32.938 147.605 -z 6 -d 1824 1568 -o $@
+
+renders/gr_tokyo.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 35.686 137.912 -z 8 -d 1824 1568 -o $@
+
+renders/gr_japan.png: style.xml
+ python mapnik-render.py -f fonts -s style.xml -l 36.122 137.091 -z 7 -d 1824 1568 -o $@
+
+
+style.xml: style.mml stylesheet.mss
+ cascadenik-compile.py style.mml $@
+ chmod a+r $@
+
+clean:
+ rm -f style.xml
+ rm -f renders/gr_*-*.png
@@ -0,0 +1,107 @@
+import sys
+import glob
+import os.path
+import mapnik
+import cairo
+import pyproj
+import PIL.Image
+import ModestMaps
+import optparse
+
+optparser = optparse.OptionParser(usage="""%prog [options]
+""")
+
+defaults = {
+ 'fonts': 'fonts',
+ 'stylesheet': 'style.xml',
+ 'location': (37.804325, -122.271169),
+ 'zoom': 10,
+ 'size': (1024, 768),
+ 'output': 'out.png'
+}
+
+optparser.set_defaults(**defaults)
+
+optparser.add_option('-f', '--fonts', dest='fonts',
+ type='string', help='Directory name for fonts. Default value is "%(fonts)s".' % defaults)
+
+optparser.add_option('-s', '--stylesheet', dest='stylesheet',
+ type='string', help='File name of mapnik XML file. Default value is "%(stylesheet)s".' % defaults)
+
+optparser.add_option('-l', '--location', dest='location',
+ nargs=2, type='float', help='Latitude and longitude of map center. Default value is %.6f, %.6f.' % defaults['location'])
+
+optparser.add_option('-z', '--zoom', dest='zoom',
+ type='int', help='Zoom level of rendered map. Default value is %(zoom)d.' % defaults)
+
+optparser.add_option('-d', '--dimensions', dest='size',
+ nargs=2, type='int', help='Width and height of rendered map. Default value is %d, %d.' % defaults['size'])
+
+optparser.add_option('-o', '--output', dest='output',
+ type='string', help='File name of rendered map. Default value is "%(output)s".' % defaults)
+
+if __name__ == '__main__':
+
+ opts, args = optparser.parse_args()
+
+ try:
+ fonts = opts.fonts
+ stylesheet = opts.stylesheet
+ zoom = opts.zoom
+ output = opts.output
+
+ center = ModestMaps.Geo.Location(*opts.location)
+ dimensions = ModestMaps.Core.Point(*opts.size)
+ format = output.split(".").pop().lower()
+
+ assert zoom >= 0 and zoom <= 19
+ assert format in ('png', 'jpg', 'svg', 'pdf', 'ps')
+
+ for ttf in glob.glob(os.path.join(fonts, '*.ttf')):
+ mapnik.FontEngine.register_font(ttf)
+
+ except Exception, e:
+ print >> sys.stderr, e
+ print >> sys.stderr, 'Usage: python mapnik-render.py <fonts dir> <stylesheet> <lat> <lon> <zoom> <width> <height> <output jpg/png/svg/pdf/ps>'
+ sys.exit(1)
+
+ osm = ModestMaps.OpenStreetMap.Provider()
+ map = ModestMaps.mapByCenterZoom(osm, center, zoom, dimensions)
+
+ srs = {'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_0': 0, 'lon_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'no_defs': True}
+ gym = pyproj.Proj(srs)
+
+ northwest = map.pointLocation(ModestMaps.Core.Point(0, 0))
+ southeast = map.pointLocation(dimensions)
+
+ left, top = gym(northwest.lon, northwest.lat)
+ right, bottom = gym(southeast.lon, southeast.lat)
+
+ map = mapnik.Map(dimensions.x, dimensions.y)
+ mapnik.load_map(map, stylesheet)
+ map.zoom_to_box(mapnik.Envelope(left, top, right, bottom))
+
+ img = mapnik.Image(dimensions.x, dimensions.y)
+
+ # http://brehaut.net/blog/2010/svg_maps_with_cairo_and_mapnik
+ # http://trac.mapnik.org/wiki/MapnikRenderers
+ if format in ('svg', 'pdf', 'ps' ) :
+ f = open(output, 'w')
+ if format == 'svg' :
+ surface = cairo.SVGSurface(f.name, dimensions.x, dimensions.y)
+ elif format == 'pdf' :
+ surface = cairo.PDFSurface(f.name, dimensions.x, dimensions.y)
+ else :
+ surface = cairo.PSSurface(f.name, dimensions.x, dimensions.y)
+ context = cairo.Context(surface)
+ mapnik.render(map, context)
+ surface.finish()
+ else :
+ mapnik.render(map, img)
+
+ img = PIL.Image.fromstring('RGBA', (dimensions.x, dimensions.y), img.tostring())
+
+ if format == 'jpg':
+ img.save(output, quality=85)
+ else :
+ img.save(output)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE Map[
+ <!ENTITY epsg4326 "+proj=longlat +datum=WGS84">
+ <!ENTITY epsg900913 "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
+ <!ENTITY epsg900913_extent "-20037508,-20037508,20037508,20037508">
+
+ <!ENTITY nev_host "localhost">
+ <!ENTITY nev_name "naturalearth1.1_merc">
+ <!ENTITY nev_user "nev">
+]>
+
+<Map srs="&epsg900913;">
+
+ <Stylesheet src="stylesheet.mss"/>
+
+ <Layer class="country-shapes-50m" id="country-shapes-50m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_0_countries_50m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="country-shapes-10m" id="country-shapes-10m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_0_countries_10m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer class="golden-ratio" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">../twitter_bbox_join8_redux_poly_area1_clip_merc_area2</Parameter>
+ </Datasource>
+ </Layer>
+
+</Map>
@@ -0,0 +1,118 @@
+<Map background-color="rgb(255,255,255)" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
+ <Style name="line style 11">
+ <Rule name="rule 2">
+ <MaxScaleDenominator>12499999</MaxScaleDenominator>
+ <LineSymbolizer>
+ <CssParameter name="stroke-width">0.5</CssParameter>
+ <CssParameter name="stroke-linejoin">round</CssParameter>
+ <CssParameter name="stroke-linecap">round</CssParameter>
+ </LineSymbolizer>
+ </Rule>
+ </Style>
+ <Style name="line style 4">
+ <Rule name="rule 1">
+ <MinScaleDenominator>12500000</MinScaleDenominator>
+ <LineSymbolizer>
+ <CssParameter name="stroke-width">0.5</CssParameter>
+ <CssParameter name="stroke-linejoin">round</CssParameter>
+ <CssParameter name="stroke-linecap">round</CssParameter>
+ </LineSymbolizer>
+ </Rule>
+ </Style>
+ <Style name="polygon style 15">
+ <Rule name="rule 3">
+ <Filter>([zoom_start]=10)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(203,219,62)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ <Rule name="rule 4">
+ <Filter>([zoom_start]=11)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(255,242,69)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ <Rule name="rule 5">
+ <Filter>([zoom_start]=12)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(255,183,47)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ <Rule name="rule 6">
+ <Filter>([zoom_start]=13)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(226,102,75)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ <Rule name="rule 7">
+ <Filter>([zoom_start]=14)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(253,86,191)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ <Rule name="rule 8">
+ <Filter>([zoom_start]=15)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(117,16,0)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ <Rule name="rule 9">
+ <Filter>([zoom_start]=16)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(83,0,39)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ <Rule name="rule 10">
+ <Filter>([zoom_start]=17)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(40,0,58)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ <Rule name="rule 11">
+ <Filter>([zoom_start]=18)</Filter>
+ <MaxScaleDenominator>49999999</MaxScaleDenominator>
+ <PolygonSymbolizer>
+ <CssParameter name="fill">rgb(5,5,5)</CssParameter>
+ </PolygonSymbolizer>
+ </Rule>
+ </Style>
+ <Layer name="layer 7" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
+ <StyleName>line style 4</StyleName>
+ <Datasource>
+ <Parameter name="dbname">naturalearth1.1_merc</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">-20037508,-20037508,20037508,20037508</Parameter>
+ <Parameter name="host">localhost</Parameter>
+ <Parameter name="table">admin_0_countries_50m</Parameter>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="user">nev</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer name="layer 14" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
+ <StyleName>line style 11</StyleName>
+ <Datasource>
+ <Parameter name="dbname">naturalearth1.1_merc</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">-20037508,-20037508,20037508,20037508</Parameter>
+ <Parameter name="host">localhost</Parameter>
+ <Parameter name="table">admin_0_countries_10m</Parameter>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="user">nev</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer name="layer 21" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
+ <StyleName>polygon style 15</StyleName>
+ <Datasource>
+ <Parameter name="file">/home/nate/public_html/golden-ratio/reference/twitter_bbox/twitter_bbox_join8_redux_poly_area1_clip_merc_area2</Parameter>
+ <Parameter name="type">shape</Parameter>
+ </Datasource>
+ </Layer>
+</Map>
Oops, something went wrong.

0 comments on commit d38534d

Please sign in to comment.