[ka-Map-users] Handling large raster data sets

Paul Spencer pspencer at dmsolutions.ca
Tue Jun 6 22:20:25 EDT 2006


The changes in config.php also affect init.php and tile.php.  At the  
same time as the config changes, I made a change to how the _map and  
_layer constructor functions accepted arguments, so that affected  
kaMap.js.  I don't think there were changes beyond that.

Cheers

Paul

On 6-Jun-06, at 8:56 PM, Base Bloc wrote:

> Hi Tim,
>
>
>
> Thanks for the quick response, it appears that would be the  
> problem. I’m afraid to say I have kept up with the CVS since the  
> 0.2 release through fear of interference with some of the custom  
> features we have added ourselves for customers. I am using what I  
> now know is the old style config.php:
>
>
>
> $aszMapFiles = array("laos_elev-0.1"   => array( "Elevation Map",  
> "../data/laos_elev.map",
>
>                      array( 900000, 700000, 300000, 100000, 50000 ),
>
>                      "PNG")
>
>
>
> This seems like quite a major change which I guess impacts more  
> than just config.php; if I was to migrate to this new method in  
> order to make use of precache, which other files would need to be  
> changed aside from config.php in order to accommodate the change?  
> Most of my mods are on the client side, mainly within startup.js.
>
>
>
> Thanks,
>
>
>
> Chris
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Christopher Brown
>
> Head of Internet Development
>
> Base Bloc Cambodia
>
> #33, 123, Phnom Penh, Cambodia.
>
> P.O. Box 2086
>
> www.basebloc.com
>
> Mobile (+855) 12 315 302
>
> Office (+855) 23 222 015
>
>
>
> From: Tim Schaub [mailto:tim at commenspace.org]
> Sent: 07 June 2006 00:17
> To: ka-map-users at lists.maptools.org
> Cc: Base Bloc
> Subject: RE: [ka-Map-users] Handling large raster data sets
>
>
>
> Hey Chris-
>
>
>
> The 'scales' index was added to the array that defines your maps in  
> config.php some time ago.  Check out the config.dist.php for an  
> example of how a map is defined.
>
>
>
>  $aszGMap = array (
>          'title' => 'GMap 75',
>          'path' => '../../gmap/htdocs/gmap75.map',
>          'scales' => array( 40000000, 25000000, 12000000, 7500000,  
> 3000000, 1000000 ),
>          'format' =>'PNG'
>  );
>
>
>
> In the above example, the 'scales' index is an array of the  
> available map scales.  If your config.php does not define the map  
> arrays in this way, then precache2.php won't work (nor tile.php etc).
>
>
>
> If your config.php has the correct map array definition, let me  
> know - there could be another problem.
>
>
>
> Tim
>
>
>
>
>
> From: ka-map-users-bounces at lists.maptools.org [mailto:ka-map-users- 
> bounces at lists.maptools.org] On Behalf Of Base Bloc
> Sent: Tuesday, June 06, 2006 5:52 AM
> To: ka-map-users at lists.maptools.org
> Subject: [ka-Map-users] Handling large raster data sets
>
> Has anyone discovered what the root of this error is? I have a  
> similar problem when running precache2 and this is one tool that I  
> seriously want to get working as the performance hit for users  
> every a dataset is updated and the cache cleared is huge. I get the  
> error:
>
>
>
> PHP Notice:  Undefined index:  scales in /var/www-alpha/laos/htdocs/ 
> precache2.php on line 122PHP Warning:  Invalid argument supplied  
> for foreach() in /var/www-alpha/laos/htdocs/precache2.php on line  
> 123PHP Notice:  Undefined index:  path in /var/www-alpha/laos/ 
> htdocs/precache2.php on line 88
>
>
> Looking into phpcache2.php I get the feeling this is a mapfile  
> issue rather than a ka-map mod issue. Here is my usual mapfile  
> setup at its most basic level; can anyone see anything missing here  
> that could be causing the problem? I am only using shape files and  
> geotif’s.
>
>
>
> NAME GMAP_DEMO
>
> STATUS ON
>
> SIZE 730 620 #size for print view only
>
> EXTENT         404283 1852082 673099 2034115
>
> UNITS METERS
>
> IMAGECOLOR 255 255 255
>
> FONTSET ../htdocs/etc/fonts.txt
>
>
>
> WEB
>
>   MINSCALE 25000
>
>   MAXSCALE 3000000
>
>
>
>   IMAGEPATH "../htdocs/tmp/" #image path used for print view only
>
> END
>
>
>
> Any thoughts guys?
>
>
>
> Chris
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Christopher Brown
>
> Head of Internet Development
>
> Base Bloc Cambodia
>
> #33, 123, Phnom Penh, Cambodia.
>
> P.O. Box 2086
>
> www.basebloc.com
>
> Mobile (+855) 12 315 302
>
> Office (+855) 23 222 015
>
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+







More information about the ka-Map-users mailing list