Personal tools
You are here: Home Documentation References PHP/Mapscript Class Reference Classes GridObj Class

4.4. GridObj Class

Document Actions
Up one level
Constructor, members, and methods.
  • Constant names and class member variable names are case-sensitive in PHP.
  • Several MapScript functions (all those that access files in the back end such as ms_newMapObj(), drawMap(), etc.) will affect the value of the current working directory (CWD) in the PHP environment. This will be fixed eventually but in the meantime you should be careful about these side-effects.
Constructor :

  The grid is always embedded inside a layer object defined as
  a grid (layer->connectiontype = MS_GRATICULE)
  (for more docs : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerGrid)

  A layer can become a grid layer by adding a grid object to it using :
     ms_newGridObj(layerObj layer)

 Example :   $oLayer = ms_newlayerobj($oMap);
             $oLayer->set("name", "GRID");
             ms_newgridobj($oLayer);
             $oLayer->grid->set("labelformat", "DDMMSS");


Members:

  double    minsubdivide;
  double    maxsubdivide;
  double    minarcs;
  double    maxacrs;
  double    mininterval;
  double    maxinterval;
  string    labelformat;
 

Method :

  int set(string property_name, new_value)
       Set object property to a new value. 
by Jeff McKenna last modified 2008-07-15 10:27

Powered by Plone