Changeset 5932 for trunk/gui/scripts/map.tcl
- Timestamp:
- Nov 6, 2015 1:22:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/map.tcl
r5917 r5932 43 43 public method setAttribution { attribution } 44 44 public method setCamera { camera } 45 public method setExtents { xmin ymin xmax ymax }45 public method setExtents { xmin ymin xmax ymax {srs "wgs84"} } 46 46 public method setLabel { label } 47 47 public method setProjection { projection } … … 253 253 # FIXME: Add test for valid file path 254 254 $_tree set $child "ogr.url" $file 255 } 256 foreach key { connection geometry geometry_url layer ogr_driver build_spatial_index } { 257 set value [$layers get $layer.ogr.$key] 258 if { $value != "" } { 259 $_tree set $child "ogr.$key" $value 260 } 255 261 } 256 262 $_tree set $child "driver" "ogr" … … 425 431 } 426 432 427 itcl::body Rappture::Map::setExtents { xmin ymin xmax ymax } {428 $_tree set root "extents" "$xmin $ymin $xmax $ymax"433 itcl::body Rappture::Map::setExtents { xmin ymin xmax ymax {srs "wgs84"} } { 434 $_tree set root "extents" [list $xmin $ymin $xmax $ymax $srs] 429 435 } 430 436
Note: See TracChangeset
for help on using the changeset viewer.