Difference between revisions of "Sf wfs spat"

From ARK
Jump to: navigation, search
(Example Configuration)
Line 37: Line 37:
 
</pre>
 
</pre>
  
 +
<pre>
 +
$conf_mcd_spat =
 +
    array(
 +
        'view_state' => 'max',
 +
        'edit_state' => 'view',
 +
        'sf_title' => 'spat_data',
 +
        'sf_html_id' => 'cxt_spat_display',
 +
        'sf_nav_type' => 'name',
 +
        'script' => 'php/subforms/sf_wfs_spat.php',
 +
        'query_layers' =>
 +
            array(
 +
            'contexts' => array(
 +
                'mod' => 'cxt',
 +
                'geom' => 'pgn',
 +
                'url' => 'http://ark.lparchaeology.com/ark_devel/php/map/ark_wxs_server.php?'
 +
        ),
 +
        ),
 +
        'background_map' => 'Google Overlay',
 +
        'op_buffer' => 1,
 +
    );
 +
</pre>
 
[[category:Administrator]]
 
[[category:Administrator]]

Revision as of 12:19, 25 February 2011

Description

The sf_wfs_spat is the subform for displaying spatial data. It calls on layers as defined in the wfs (active) and wms (background) maps.

Additional Fields

The sf_wfs_spat requires the following additional fields:

  • wfs_layers - layers from the mapserver/mapfiles/ark_wfs.map to use in this subform
  • wms_layers - layers from the mapserver/mapfiles/ark_wms.map to use in this subform
  • op_buffer - the buffer in selected units around main item shape in subform

The wms_layers acts as the background data while the wfs_layers contains the layers to be zoomed to.

Example Configuration

$conf_mcd_spat = 
    array(
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_title' => 'spat_data', 
        'sf_html_id' => 'cxt_spat_display',
        'sf_nav_type' => 'name',
        'script' => 'php/subforms/sf_wfs_spat.php',
        'wfs_layers' =>
            array (
                'cxt_schm',
                'cxt_pl',
                'cxt_pg',
                'cxt_levels',
		),
	    'wms_layers' =>
            array (
                'os_data',
		'grid_pl',
		'secant_wall',
		),
	    'op_buffer' => 2,
	    );
$conf_mcd_spat = 
    array(
        'view_state' => 'max',
        'edit_state' => 'view',
        'sf_title' => 'spat_data', 
        'sf_html_id' => 'cxt_spat_display',
        'sf_nav_type' => 'name',
        'script' => 'php/subforms/sf_wfs_spat.php',
        'query_layers' =>
            array(
            	'contexts' => array(
                'mod' => 'cxt',
                'geom' => 'pgn',
                'url' => 'http://ark.lparchaeology.com/ark_devel/php/map/ark_wxs_server.php?'
        ),
        ),
        'background_map' => 'Google Overlay',
        'op_buffer' => 1,
     );