Procedural File: map_functions.php

Source Location: /php/map/map_functions.php



Classes:

Page Details:

map/map_functions.php

holds the functions for the mapping within ARK

PHP versions 4 and 5

LICENSE: ARK - The Archaeological Recording Kit. An open-source framework for displaying and working with archaeological data Copyright (C) 2008 L - P : Partnership Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Tags:





chkSpat

void chkSpat( $map, $layer_array, $item_key, $item_value)

[line 383]

Parameters

  • $map -
  • $layer_array -
  • $item_key -
  • $item_value -

[ Top ]

drawCustomRefMap

void drawCustomRefMap( $map, $zoomtype, [ $scale = NULL], [ $width = 200], [ $height = 200], [ $layer = NULL], [ $item_key = NULL], [ $item_value = NULL], [ $return_mode = 'url'])

[line 656]

Parameters

  • $map -
  • $zoomtype -
  • $scale -
  • $width -
  • $height -
  • $layer -
  • $item_key -
  • $item_value -
  • $return_mode -

[ Top ]

drawMap

void drawMap( $map, [ $width = 200], [ $height = 200])

[line 610]

Parameters

  • $map -
  • $width -
  • $height -

[ Top ]

drawRefMap

void drawRefMap( $map, [ $width = 200], [ $height = 200])

[line 628]

Parameters

  • $map -
  • $width -
  • $height -

[ Top ]

getSingleShape

void getSingleShape( $layerObj, $item_key, $item_value)

[line 335]

Parameters

  • $layerObj -
  • $item_key -
  • $item_value -

[ Top ]

loopMapfileAttr

void loopMapfileAttr( $map_object, $db, $resultset, $att_table, $att_section)

[line 45]

map/map_functions.php

holds the functions for the mapping within ARK

PHP versions 4 and 5

LICENSE: ARK - The Archaeological Recording Kit. An open-source framework for displaying and working with archaeological data Copyright (C) 2008 L - P : Partnership Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Tags:

Parameters

  • $map_object -
  • $db -
  • $resultset -
  • $att_table -
  • $att_section -

[ Top ]

pointSpatQ

array pointSpatQ( object $layerObj, object $pointObj, string $field, [ $proj_in = FALSE], [ $proj_out = FALSE], [string $expression = FALSE], string $map_proj, string $point_proj)

[line 791]

runs a spatial query on a single map layer using a pointObj.

Tags:

  • return - array containing the results of the spatial query(or FALSE on error)
  • author - Stuart Eve
  • since - 0.6

Parameters

  • object $layerObj - The layer that contains the shapes to be queried
  • object $pointObj - The pointObj that is to be used to query the layer
  • string $field - The fieldname in the layerObj attribute table that contains the field that we want to pull back
  • string $map_proj - OPTIONAL The map proj should only be sent if the shape is from a layer that is in a different geographic projection from the main map This is the result of $mapObj->getProjection();
  • string $point_proj - OPTIONAL The shape proj should only be sent if the shape is from a layer that is in a different geographic projection from the main map This is the result of $layerObj->getProjection();
  • string $expression - this is an optional expression that can be passed to run on the layer it needs to be in a format understandable by mapserver
  • $proj_in -
  • $proj_out -

[ Top ]

printExtents

void printExtents( $rectObj)

[line 720]

Parameters

  • $rectObj -

[ Top ]

setColour

void setColour( $map_object, $att_name, $colour_value)

[line 166]

Parameters

  • $map_object -
  • $att_name -
  • $colour_value -

[ Top ]

singleShapeSpatQ

array singleShapeSpatQ( object $layerObj, object $shapeObj, string $field, [string $map_proj = FALSE], [string $shape_proj = FALSE], [string $expression = FALSE])

[line 198]

runs a spatial query on a single map layer using a single shape. It uses the GEOS library to run a contains function.

Tags:

  • return - array containing the results of the spatial query(or FALSE on error)
  • author - Stuart Eve
  • since - 0.1

Parameters

  • object $layerObj - The layer that contains the shapes to be queried
  • object $shapeObj - The single shape that is to be used to query the layer
  • string $field - The fieldname in the layerObj attribute table that contains the field that we want to pull back
  • string $map_proj - OPTIONAL The map proj should only be sent if the shape is from a layer that is in a different geographic projection from the main map This is the result of $mapObj->getProjection();
  • string $shape_proj - OPTIONAL The shape proj should only be sent if the shape is from a layer that is in a different geographic projection from the main map This is the result of $layerObj->getProjection();
  • string $expression - this is an optional expression that can be passed to run on the layer it needs to be in a format understandable by mapserver

[ Top ]

turnOffLayers

void turnOffLayers( $map, [ $layer_array = FALSE])

[line 736]

Parameters

  • $map -
  • $layer_array -

[ Top ]

zoomSingleSpat

void zoomSingleSpat( $map, $spat_array, $item_key, $item_value, [ $filter = FALSE], [ $buffer = 2])

[line 419]

Parameters

  • $map -
  • $spat_array -
  • $item_key -
  • $item_value -
  • $filter -
  • $buffer -

[ Top ]


Documentation generated on Thu, 26 Feb 2009 16:48:32 +0000 by phpDocumentor 1.4.1