Procedural File: map_functions2.php

Source Location: /php/map/map_functions2.php



Classes:

Page Details:

map_functions2.php

map functions (utilising WMS and WFS)

PHP versions 4 and 5

LICENSE: ARK - The Archaeological Recording Kit. An open-source framework for displaying and working with archaeological data Copyright (C) 2007 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:





createSLDFile

string createSLDFile( array $wms_qlayers, array $results_array)

[line 734]

writes an SLD file that styles the query results

Tags:

  • return - the path to the sld file
  • since - 0.6
  • access - public

Parameters

  • array $wms_qlayers - the layer names (in the wms map) to query
  • array $results_array - the results array

[ Top ]

createWFSFilterString

string createWFSFilterString( array $wfs_qlayer, array $results_array)

[line 844]

writes a string that can be used to filter a WFS layer

Tags:

  • return - the string to append to the URL
  • since - 0.6
  • access - public

Parameters

  • array $wfs_qlayer - the layer name (in the wfs map) to query
  • array $results_array - the results array

[ Top ]

mkFilterMap

string mkFilterMap( array $wfs_layers, array $wms_layers, $wfs_qlayers, array $results_array, [int $buffer = FALSE], [boolean $transclude = FALSE], [mixed $filter = FALSE], array $wms_qlayers)

[line 345]

makes an embedded map showing the results of a filter (or results_array())

generates a stand-alone html <object> that contains an Openlayers map zoomed and filtered to the the results array. It uses the OGC filter functionality to filter a pre-defined WMS map. NOTE: $ark_dir, $tilecache_path and $map_scales are globaled so need to be set

Tags:

  • return - a fully resolved html string
  • since - 0.6
  • access - public

Parameters

  • array $wfs_layers - the layer names (in the wfs map) to display
  • array $wms_layers - the layer names (in the wms map) to display
  • array $wms_qlayers - the layer names (in the wms map) to query
  • array $results_array - the results array
  • int $buffer - an optional buffer value (in map units) to buffer the results
  • boolean $transclude - value representing if the function is being called as part of a transclusion routine
  • mixed $filter - optional filter name or id - if this is being transcluded then the filter needs to be built from scratch
  • $wfs_qlayers -

[ Top ]

mkMapView

string mkMapView( array $mapview_layers, [boolean $transclude = FALSE])

[line 621]

displays all of the layers as part of the map_view

generates a stand-alone html <object> that contains an Openlayers map zoomed and filtered to the the results array. It uses the OGC filter functionality to filter a pre-defined WMS map. NOTE: $ark_dir, $tilecache_path and $map_scales are globaled so need to be set

Tags:

  • return - a fully resolved html string
  • since - 0.6
  • access - public

Parameters

  • array $mapview_layers - the layer names (in the wfs map) to display
  • boolean $transclude - value representing if the function is being called as part of a transclusion routine

[ Top ]

mkSingleMap

string mkSingleMap( array $wfs_layers, array $wms_layers, string $item_val, [int $buffer = FALSE], [boolean $transclude = FALSE])

[line 54]

makes an embedded map showing the geometry of a single item

generates a stand-alone html <object> that contains an Openlayers map zoomed and filtered to the item. It uses the OGC filter functionality to filter a pre-defined WFS map. NOTE: $ark_wms_map and $ark_wfs_map are globaled so need to be set

Tags:

  • return - a fully resolved html string
  • since - 0.6
  • access - public

Parameters

  • array $wfs_layers - the layer names (in the wfs map) to display and query
  • array $wms_layers - the layer names (in the wms map) to display and query
  • string $item_val - the itemval to search for
  • int $buffer - an optional buffer value (in map units)
  • boolean $transclude - value representing if the function is being called as part of a transclusion routine

[ Top ]


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