CorePlugins
[ class tree: CorePlugins ] [ index: CorePlugins ] [ all elements ]

Class: ServerImages

Source Location: /coreplugins/images/server/ServerImages.php

Class Overview

PluginBase
   |
   --ServerPlugin
      |
      --ServerImages

Server part of Images plugin


Variables

Constants

Methods


Inherited Variables

Inherited Methods


Class Details

[line 28]
Server part of Images plugin



[ Top ]


Class Variables

$log =

[line 44]



Tags:

access:  private

Type:   Logger
Overrides:   Array


[ Top ]



Class Methods


constructor __construct [line 49]

ServerImages __construct( )

Constructor



Tags:

access:  public


Overrides ServerPlugin::__construct() (Constructor)

[ Top ]

method checkMapDimensions [line 74]

void checkMapDimensions( ImagesRequest $requ)

Checks main map dimensions

If limit mainmap dimensions are available, checks if asked map dims fit, else sets them to max authorized sizes.




Tags:

access:  private


Parameters:

ImagesRequest   $requ  

[ Top ]

method checkMaxImages [line 197]

void checkMaxImages( ServerContext $serverContext)

Checks number of images in directory

Adds a developper message if too many images.




Tags:

access:  private


Parameters:

ServerContext   $serverContext  

[ Top ]

method drawMainmap [line 164]

void drawMainmap( ImagesRequest $requ)

Draws mainmap

Uses MapServer draw() or drawQuery().




Tags:

access:  public


Parameters:

ImagesRequest   $requ  

[ Top ]

method getImage [line 115]

Image getImage( ms_Image $ms_image)

Draws an image and returns an Image object



Tags:

access:  private


Parameters:

ms_Image   $ms_image   MapServer image

[ Top ]

method getImageBaseUrl [line 87]

The getImageBaseUrl( )



Tags:

return:  base URL where the generated images can be found.
access:  private


[ Top ]

method getImageType [line 150]

string getImageType( )

Returns the image type for main map. Image type is the outputformat identifier declared in mapfile.

Gets the information from Layers plugin.




Tags:

return:  The image type to use for drawing.
access:  private
see:  ServerLayers::getImageType()


[ Top ]

method getImageUrl [line 101]

string getImageUrl( string $imagePath)

Returns the complete URL to the imge which is sent to the client. It uses the ResourceHandler to build this URL.



Tags:

return:  The complete URL of the generated image.
access:  private


Parameters:

string   $imagePath   the original path to the image

[ Top ]

method handleCorePlugin [line 215]

void handleCorePlugin( mixed $requ)



Tags:

access:  public
see:  CoreProvider::handleCorePlugin()


[ Top ]

method isDrawQuery [line 134]

boolean isDrawQuery( )

Returns true if query must be drawn using MapServer

Gets the information from Query plugin.




Tags:

access:  private
see:  ServerQuery::drawQuery()


[ Top ]

method setupSizes [line 58]

void setupSizes( ImagesRequest $requ)

Sets main map dimensions into MapObj



Tags:

access:  public


Parameters:

ImagesRequest   $requ  

[ Top ]


Class Constants

IMAGES_WRITE_PATH =  'images/'

[line 39]

Path where to write images, relative to the writable server path.


[ Top ]

MAX_IMAGES_WARNING =  500

[line 34]

the number of generated images before issuing a warning


[ Top ]



Documentation generated on Wed, 6 Apr 2005 12:06:57 +0200 by phpDocumentor 1.3.0RC3