source: subversion/applications/rendering/toposm/areas.py @ 27489

Last change on this file since 27489 was 24414, checked in by ahlzen, 9 years ago

Added support for rendering specific areas of interest.
Runs PNG optimizer after rendering.

File size: 6.1 KB
Line 
1#!/usr/bin/python
2from mapnik import Envelope
3
4# Misc test areas
5WA = Envelope(-125.3, 45.4, -116.8, 49.1)
6WAdetail = Envelope(-123.4, 46.2, -120.0, 48.1)
7Seattle = Envelope(-122.4, 47.5, -122.2, 47.7)
8WAnw = Envelope(-125.3, 47.7, -121, 49.1)
9WAne = Envelope(-121, 47.7, -116.8, 49.1)
10WAsw = Envelope(-125.3, 45.4, -121, 47.7)
11WAse = Envelope(-121, 45.4, -116.8, 47.7)
12NEdetail = Envelope(-71.5, 42, -70.5, 43)
13Stow = Envelope(-71.55, 42.40, -71.46, 42.47)
14BostonSS = Envelope(-71.2, 42.0, -70.6, 42.4)
15BostonDetail = Envelope(-71.11, 42.30, -70.99, 42.41)
16COdetail = Envelope(-105.1, 38.7, -104.7, 39.0)
17COminor = Envelope(-105.0, 38.8, -104.8, 38.95)
18
19NEdetail1 = Envelope(-71.0, 42.0, -70.5, 42.5)
20NEdetail2 = Envelope(-71.0, 42.5, -70.5, 43.0)
21NEdetail3 = Envelope(-71.5, 42.0, -71.0, 42.5)
22NEdetail4 = Envelope(-71.5, 42.5, -71.0, 43.0)
23
24# Main US zones
25US = Envelope(-126, 24, -66, 56)
26USnw = Envelope(-126, 40, -96, 56)
27USne = Envelope(-96, 40, -66, 56)
28USsw = Envelope(-126, 24, -96, 40)
29USse = Envelope(-96, 24, -66, 40)
30
31# US UTM Zones
32UTM10S = Envelope(-126, 32, -120, 40)
33UTM10T = Envelope(-126, 40, -120, 48)
34UTM10U = Envelope(-126, 48, -120, 56)
35UTM11R = Envelope(-120, 24, -114, 32)
36UTM11S = Envelope(-120, 32, -114, 40)
37UTM11T = Envelope(-120, 40, -114, 48)
38UTM11U = Envelope(-120, 48, -114, 56)
39UTM12R = Envelope(-114, 24, -108, 32)
40UTM12S = Envelope(-114, 32, -108, 40)
41UTM12T = Envelope(-114, 40, -108, 48)
42UTM12U = Envelope(-114, 48, -108, 56)
43UTM13R = Envelope(-108, 24, -102, 32)
44UTM13S = Envelope(-108, 32, -102, 40)
45UTM13T = Envelope(-108, 40, -102, 48)
46UTM13U = Envelope(-108, 48, -102, 56)
47UTM14R = Envelope(-102, 24, -96, 32)
48UTM14S = Envelope(-102, 32, -96, 40)
49UTM14T = Envelope(-102, 40, -96, 48)
50UTM14U = Envelope(-102, 48, -96, 56)
51UTM15R = Envelope(-96, 24, -90, 32)
52UTM15S = Envelope(-96, 32, -90, 40)
53UTM15T = Envelope(-96, 40, -90, 48)
54UTM15U = Envelope(-96, 48, -90, 56)
55UTM16R = Envelope(-90, 24, -84, 32)
56UTM16S = Envelope(-90, 32, -84, 40)
57UTM16T = Envelope(-90, 40, -84, 48)
58UTM16U = Envelope(-90, 48, -84, 56)
59UTM17R = Envelope(-84, 24, -78, 32)
60UTM17S = Envelope(-84, 32, -78, 40)
61UTM17T = Envelope(-84, 40, -78, 48)
62UTM17U = Envelope(-84, 48, -78, 56)
63UTM18R = Envelope(-78, 24, -72, 32)
64UTM18S = Envelope(-78, 32, -72, 40)
65UTM18T = Envelope(-78, 40, -72, 48)
66UTM18U = Envelope(-78, 48, -72, 56)
67UTM19R = Envelope(-72, 24, -66, 32)
68UTM19S = Envelope(-72, 32, -66, 40)
69UTM19T = Envelope(-72, 40, -66, 48)
70UTM19U = Envelope(-72, 48, -66, 56)
71
72# Cities / Metro areas
73Boston = Envelope(-71.36, 42.13, -70.70, 42.60)
74NewYorkCity = Envelope(-74.39, 40.50, -73.56, 41.11)
75Philadelphia = Envelope(-75.43, 39.81, -74.88, 40.19)
76WashingtonDC = Envelope(-77.33, 38.66, -76.79, 39.10)
77Detroit = Envelope(-83.58, 42.04, -82.82, 42.71)
78Chicago = Envelope(-88.54, 41.45, -87.29, 42.42)
79Indianapolis = Envelope(-86.38, 39.61, -85.95, 39.97)
80MinneapolisStPaul = Envelope(-93.72, 44.62, -92.65, 45.33)
81DenverBoulderCoSprings = Envelope(-105.38, 38.66, -104.52, 40.13)
82SaltLakeCityOgdenProvo = Envelope(-112.3, 40.05, -111.34, 41.4)
83SeattlePugetOlympics = Envelope(-124.84, 46.91, -121.32, 48.56)
84Portland = Envelope(-123.19, 45.17, -122.18, 45.89)
85SanFranciscoBay = Envelope(-123.04, 36.93, -121.58, 38.19)
86LosAngeles = Envelope(-120.07, 33.40, -116.88, 34.94)
87SanDiego = Envelope(-117.47, 32.43, -116.83, 33.24)
88Phoenix = Envelope(-112.75, 33.14, -111.43, 33.83)
89LasVegas = Envelope(-115.39, 35.92, -114.69, 36.39)
90SantaFe = Envelope(-106.15, 35.49, -105.76, 35.83)
91Albuquerque = Envelope(-106.87, 34.89, -106.25, 35.34)
92Houston = Envelope(-95.62, 29.53, -94.86, 29.96)
93DallasFortWorth = Envelope(-97.60, 32.53, -96.47, 33.06)
94SanAntonio = Envelope(-98.70, 29.27, -98.32, 29.59)
95NewOrleans = Envelope(-90.64, 29.44, -89.59, 30.46)
96Atlanta = Envelope(-84.64, 33.49, -84.11, 34.02)
97Jacksonville = Envelope(-81.80, 30.11, -81.32, 30.48)
98OrlandoTitusville = Envelope(-81.75, 27.96, -80.38, 28.91)
99FloridaSE = Envelope(-80.65, 24.90, -79.99, 27.96)
100
101Cities = [Boston, NewYorkCity, Philadelphia, WashingtonDC, Detroit,
102    Chicago, Indianapolis, MinneapolisStPaul, DenverBoulderCoSprings,
103    SaltLakeCityOgdenProvo, SeattlePugetOlympics, Portland,
104    SanFranciscoBay, LosAngeles, SanDiego, Phoenix, LasVegas, SantaFe,
105    Albuquerque, Houston, DallasFortWorth, SanAntonio, NewOrleans,
106    Atlanta, Jacksonville, OrlandoTitusville, FloridaSE]
107
108
109# Nature Areas
110YellowstoneTetons = Envelope(-111.26, 43.50, -109.76, 45.13)
111OregonCascades = Envelope(-123.26, 41.94, -119.88, 42.20)
112SierraNevN = Envelope(-122.67, 38.72, -119.64, 42.07)
113SierraNevC = Envelope(-121.35, 36.74, -116.88, 38.77)
114SierraNevS = Envelope(-119.42, 35.29, -116.12, 36.79)
115GrandCanyon = Envelope(-114.92, 35.70, -111.56, 36.93)
116Zion = Envelope(-113.25, 37.12, -112.83, 37.52)
117Bryce = Envelope(-112.31, 37.40, -112.03, 37.74)
118ArchesCanyonlands = Envelope(-110.27, 37.92, -109.26, 38.88)
119CapitolReef = Envelope(-111.45, 37.56, -110.82, 38.56)
120MesaVerde = Envelope(-108.59, 37.12, -108.31, 37.37)
121Glacier = Envelope(-114.51, 48.22, -113.21, 49.02)
122RockyMountains = Envelope(-108.81, 35.84, -104.44, 40.94)
123Acadia = Envelope(-68.48, 44.10, -68.11, 44.48)
124GreatSmokyMountains = Envelope(-84.03, 35.41, -82.99, 35.80)
125GuadulupeCarlsbad = Envelope(-105.2, 31.72, -104.21, 32.55)
126MammothCave = Envelope(-86.40, 37.04, -85.87, 37.35)
127NorthCascades = Envelope(-122.00, 48.18, -120.60, 49.01)
128Badlands = Envelope(-102.98, 43.43, -101.79, 44.00)
129BlackHills = Envelope(-104.78, 43.49, -103.21, 44.69)
130GreatSandDunes = Envelope(-105.74, 37.64, -105.39, 37.95)
131WhiteSands = Envelope(-106.84, 32.28, -105.34, 33.51)
132GreenMountains = Envelope(-73.23, 43.81, -72.61, 44.76)
133WhiteMountains = Envelope(-72.07, 43.73, -70.69, 44.78)
134Adirondacks = Envelope(-75.40, 43.11, -73.35, 44.98)
135EvergladesKeys = Envelope(-81.84, 24.50, -80.22, 25.91)
136NiagaraFalls = Envelope(-79.43, 42.77, -78.66, 43.32)
137
138Nature = [YellowstoneTetons, OregonCascades, SierraNevN,
139    SierraNevC, SierraNevS, GrandCanyon, Zion, Bryce,
140    ArchesCanyonlands, CapitolReef, MesaVerde, Glacier,
141    RockyMountains, Acadia, GreatSmokyMountains,
142    GuadulupeCarlsbad, MammothCave, NorthCascades, Badlands,
143    BlackHills, GreatSandDunes, WhiteSands, GreenMountains,
144    WhiteMountains, Adirondacks, EvergladesKeys, NiagaraFalls]
145
Note: See TracBrowser for help on using the repository browser.