Changeset 760 for trunk/demo/python
- Timestamp:
- 11/16/08 16:36:23 (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/demo/python/rundemo.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/demo/python/rundemo.py
r749 r760 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 # 1 4 # $Id$ 2 5 # … … 97 100 98 101 provpoly_rule_qc = Rule() 99 provpoly_rule_qc.filter = Filter("[N AME_EN] = 'Quebec'")102 provpoly_rule_qc.filter = Filter("[NOM_FR] = 'Québec'") 100 103 provpoly_rule_qc.symbols.append(PolygonSymbolizer(Color(217, 235, 203))) 101 104 provpoly_style.rules.append(provpoly_rule_qc) … … 307 310 # Draw map 308 311 309 # Set the initial extent of the map. 310 print m.envelope() 311 m.zoom_all() 312 #m.zoom_to_box(Envelope(1405120.04127408,-247003.813399447,1706357.31328276,-25098.593149577)) 312 # Set the initial extent of the map in 'master' spherical Mercator projection 313 m.zoom_to_box(Envelope(-8024477.28459,5445190.38849,-7381388.20071,5662941.44855)) 313 314 314 315 # Render two maps, two PNGs, one JPEG.
