Changeset 36
- Timestamp:
- 01/10/08 14:37:44
- Files:
-
- cached_images/trunk/cached_images/CacheBot.pm (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cached_images/trunk/cached_images/CacheBot.pm
r25 r36 9 9 =head1 NAME 10 10 11 Se acoos::CacheBot, cache_wms_map_image, cache_php_map_image - SEACOOSstatic map image cache'r11 Secoora::CacheBot, cache_wms_map_image, cache_php_map_image - Secoora static map image cache'r 12 12 13 13 =head1 AUTHOR … … 17 17 =head1 SYNOPSIS 18 18 19 use Se acoos::CacheBot;20 Se acoos::CacheBot::cache_wms_map_image(west=>'signed_decimal_longitude',19 use Secoora::CacheBot; 20 Secoora::CacheBot::cache_wms_map_image(west=>'signed_decimal_longitude', 21 21 south=>'signed_decimal_latitude', 22 22 east=>'signed_decimal_logitude', … … 30 30 debug=>"yes"); 31 31 32 Seacoos::CacheBot::cache_php_map_image(west=>'signed_decimal_longitude',33 south=>'signed_decimal_latitude',34 east=>'signed_decimal_logitude',35 north=>'signed_decimal_latitude',36 layers=>'layers_list',37 use_scale=>'scale_flag',38 degree_units=>'degree_code'.39 velocity_units=>'velocity_code'40 width=>'unsigned_integer_#_of_pixels',41 web_service=>'URI_of_web_web_service',42 time_out=>'unsigned_integer_#_of_seconds_to_wait_on_server',43 output=>'image_file_path',44 debug=>"yes");45 32 46 33 =head1 DESCRIPTION 47 34 48 Se acoos:CacheBot is a Perl module to generate a single map image file for serving from a cache.35 Secoora:CacheBot is a Perl module to generate a single map image file for serving from a cache. 49 36 Ideally, the functions within should be invoked from a cron job. 50 37 … … 53 40 =over 4 54 41 55 =item Se acoos::CacheBot::cache_wms_map_image(%query_parameters)42 =item Secoora::CacheBot::cache_wms_map_image(%query_parameters) 56 43 57 44 I<cache_wms_map_image> generates a map image file via an OpenGIS Consortium (OGC; http://www.opengis.org ) Web Map Service (WMS) compliant web service open standards implementation. … … 93 80 The default is to suppress standard output diagnostics. 94 81 95 =item Se acoos::CacheBot::cache_php_map_image(%query_parameters)82 =item Secoora::CacheBot::cache_php_map_image(%query_parameters) 96 83 97 84 I<cache_php_map_image> generates a map image file via a proprietary PHP enabled remote front-end to map services. … … 114 101 =head1 EXAMPLES 115 102 116 Se acoos::CacheBot::cache_wms_map_image(west=>'-88',103 Secoora::CacheBot::cache_wms_map_image(west=>'-88', 117 104 south=>'22.2', 118 105 east=>'-70.5', … … 126 113 debug=>'yes'); 127 114 128 Seacoos::CacheBot::cache_php_map_image(west=>'-88',129 south=>'22.2',130 east=>'-70.5',131 north=>'36.8',132 layers=>'world_filled,us_filled,world_outline,us_outline,country_names,world_capitals,us_big_cities,avhrr_sst',133 use_scale=>'1',134 degree_units=>'F',135 velocity_units=>'KNOTS',136 width=>'288',137 web_service=>'http://www.yourmapserver.org/yourfolder/yourtemplate.php',138 time_out=>'30',139 output=>'/home/fubu/public_html/test.png',140 debug=>'yes');141 142 115 =head1 SOURCE 143 116 … … 171 144 1.04 9/13/04 CBC cleanup for IPM environment 172 145 173 1.05 03/05 JC added elapsed time handling for php routine 174 175 1.06 05/03/05 JC modified for WMS only - rm'd much php only code 146 1.05 03/05 JC added elapsed time handling for php routine 147 148 1.06 05/03/05 JC modified for WMS only - rm'd much php only code 149 150 2.0 12/20/07 JC Changed naming to SECOORA 176 151 177 152 =cut 178 153 179 package Se acoos::CacheBot;154 package Secoora::CacheBot; 180 155 181 156 use strict; … … 195 170 196 171 my $debug = ''; 197 my $agent = 'Se acoos CacheBot/1.06';172 my $agent = 'Secoora CacheBot/2.0'; 198 173 my $default_time_out = 15; 199 174 #rm scale variables
