<?php
/* This notice must be untouched at all times.
AppForMap v. 0.6
The latest version is available at
http://sourceforge.net/projects/appformap/
Copyright (c) 2003-2006 Martin Høgh. All rights reserved.
Created 17. 6. 2003 by Martin Høgh <hide@address.com>
Main configuration file for the MapLink client.
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 2
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.
See the GNU General Public License
at http://www.gnu.org/copyleft/gpl.html for more details.
*/
/************************************************************************/
/* Load of PHP modules */
/* */
/************************************************************************/
// Look in conf/load_modules.php for details
include_once("load_modules.php");
/************************************************************************/
/* Preload of WMS / WFS */
/* */
/************************************************************************/
$server_0="http://wms.mapuse.net/cgi-bin/mapserv?map=/var/gisdata/itasca/itasca2.map&version=1.1.0&";// WMS
//$server_1="Another one";// WMS
$wfs_0="http://wms.mapuse.net/cgi-bin/mapserv?map=/var/gisdata/itasca/itasca2.map&version=1.0.0&service=wfs&"; //WFS
//$wfs_1="Another one";// WFS
/************************************************************************/
/* Main configuration */
/* */
/* These parameters are system depended */
/************************************************************************/
//Path to the AJAX server. Use a global url - localhost only for test setups
$ajaxServer="http://localhost/appformap/http_request_server.phtml";
//path to the map image. Better use absolute url, because mapscript module change the workingdir
$workingDir="C:\\Programmer\\Apache Group\\Apache\\htdocs\\ms_tmp\\";
//url to the map image. Use a global url - localhost only for test setups
$imageUrl="http://localhost/ms_tmp/";
//path to MapServer map-file. Do not use this for pure wms.
//if (!$mapfileUrl) $mapfileUrl="C:\\Programmer\\Apache Group\\Apache\\htdocs\\data\\itasca\\itasca.map";
//Url to xml-file containing layer definitions for MapScript interface. Do not use this for pure wms.
//if (!$layerXml) $layerXml="http://localhost/appformap/conf/browserconfig.xml?";
// PostGIS connection parameters
//if (!$postgishost) $postgishost="192.168.1.40";
//if (!$postgisuser) $postgisuser="postgres";
//if (!$postgisdb) $postgisdb="itasca";
//if (!$postgisport) $postgisport="";
//if (!$postgispw) $postgispw="";
/************************************************************************/
/* Configuration of map parameters */
/* */
/* These parameters are not system depended */
/************************************************************************/
//path to language file
@include("language/language_en.php");
//Map text placed in upper left corner of map. Optional
$imageLabel="Create by AppForMap at ".time();
//Requested wms output format when using wmsGetFeatureInfo. 'text/plain' or 'gml'
$infoFormat="text/plain";
//Use of avanced reference map. Default is yes. Set this to true if you dont want the reference map
$doNotUseRefMap=false;
// Projection EPSG code
if (!$proj) $proj="26915";
//Units. Either "xy" or "degrees"
if (!$units)$units="xy";
/************************************************************************/
/* Configuration of which database server to use for CRS info */
/* */
/* Default is PostGreSql - alternativ MySQL */
/************************************************************************/
// Uncomment this if you want to use a MySQL database with coordinate reference systems
//$CRSdatabase="mysql";
/************************************************************************/
/* Configuration of GUI */
/* */
/* Rename and switch on/off tabs and set available mapsizes */
/************************************************************************/
// Which of the main tabs will be visible
$mainTabStatus[1]=true;
$mainTabStatus[2]=false;
$mainTabStatus[3]=true;
$mainTabStatus[4]=false;
$mainTabStatus[5]=true;
$mainTabStatus[6]=true;
// Titles of tabs. Comes from the language file
$mainTabName[1]=$languageText[map];
$mainTabName[2]=$languageText[help];
$mainTabName[3]=$languageText[crs];
$mainTabName[4]=$languageText[postgis];
$mainTabName[5]=$languageText[export];
$mainTabName[6]=$languageText[wms];
// Which of the secondary tabs will be visible
$secondaryTabStatus[1]=true;
$secondaryTabStatus[2]=false;
$secondaryTabStatus[3]=false;
$secondaryTabStatus[4]=false;
$secondaryTabStatus[5]=false;
$secondaryTabStatus[6]=true;
// Titles of tabs. Comes from the language file
$secondaryTabName[1]=$languageText[layer];
$secondaryTabName[2]=$languageText[legend];
$secondaryTabName[3]="";
$secondaryTabName[4]=$languageText[query];
$secondaryTabName[5]=$languageText[search];
$secondaryTabName[6]=$languageText[referencemap];
// Available mapsizes
$mapSizeOption[0]="440x350";
$mapSizeValue[0][x]=440;
$mapSizeValue[0][y]=400;
$mapSizeOption[1]="550x500";
$mapSizeValue[1][x]=550;
$mapSizeValue[1][y]=500;
$mapSizeOption[2]="800x600";
$mapSizeValue[2][x]=800;
$mapSizeValue[2][y]=600;
$mapSizeOption[3]="1024x768";
$mapSizeValue[3][x]=1024;
$mapSizeValue[3][y]=768;
$mapSizeOption[4]="1280x1024";
$mapSizeValue[4][x]=1280;
$mapSizeValue[4][y]=1024;
$mapSizeOption[5]="2000x1700";
$mapSizeValue[5][x]=2000;
$mapSizeValue[5][y]=1700;
// default mapsize
if (!$mapSize) $mapSize=$mapSizeOption[0];
$avancedSearch=true;//Enables the avanced query tools
$themeQuery=false;//Theme query on. Enables to make a query using an other theme
$SFSQLselect=false;//SFSQL select box on
$wmsClient=true; //wmsGetFeatureInfo available. Set this to true if you want to query wms
$featureEdit=false;//Feature edit available
$geoTypeText=true;//Show geo type of tables
/************************************************************************/
/* Configuration of output from PostGis */
/* */
/* Here it's possible to change how table- and field */
/* names appear and hide specific fields */
/************************************************************************/
// Below are the different attributes a table can be asigned. You can alter the output from a postGIS query in many ways.
// IMPORTANT: Use always CAP then writing LAYERNAMES and FIELDNAMES as they appear in the database table
//$postGisQueryName[MYLAYER]="Mylayertext"; // Rename table in output
//$postGisQueryFieldRow[MYLAYER]="FIELD1,FIELD2,FIELD3,..."; // limit the search to these fields
//$postGisQueryFieldName[MYLAYER][FIELD1]="Fieldname1"; // Rename field title
//$postGisQueryFieldName[MYLAYER][FIELD2]="Fieldname2"; // Rename field title
//$postGisQueryFieldName[MYLAYER][FIELD2]="Fieldname3"; // Rename field title
//$postGisQueryColor[MYLAYER]="#FF0000"; // Color of outline and table title
//$postGisQueryFieldLink[MYLAYER][FIELD]="attrupdate.phtml";// Hyperlink this field to attribute updatescript.
//$postGisQueryLinkTarget[MYLAYER]="target='blank'";// Open links in new windows
//$postGisQueryNotEditAttr[MYLAYER][THE_GEOM]=true;// Do not enable edit of this field in attribute updatescript
//$postGisQueryNotEditAttr[MYLAYER][GID]=true;// Do not enable edit of this field in attribute updatescript
//$postGisQueryEditGeom[MYLAYER][GID]=true;// Enable edit of geometry for this table
//$postGisQueryContentLink[MYLAYER]='FIELD';// This field contains an URL and will put in a <a> tag
//$postGisQueryDataPrefix[MYLAYER]='http://';If url in above lacks of 'http://' when use this
//$postGisQueryUrlEncode[MYLAYER]="FIELD";// URLencode this fields because it contains strange chars
//$postGisQueryLinkStyle[MYLAYER]='style=\'color:red\'';// Put an other style on links
//$postGisQuerySubstitute[MYLAYER]='mylayer_view';//Substitute the table with an other eg. a view
//$postGisQuerable[MYLAYER]="false"; // Not available.
/************************************************************************/
/* Configuration of pdf-print */
/* */
/* Set values for the pdf-generator function */
/************************************************************************/
$pdfPaperSize[a4][l][x]=1350; // l for landscape
$pdfPaperSize[a4][l][y]=920;
$pdfPaperSize[a4][p][x]=850; // p for portrait
$pdfPaperSize[a4][p][y]=1420;
$pdfPaperSize[a3][l][x]=2000;
$pdfPaperSize[a3][l][y]=1400;
$pdfPaperSize[a3][p][x]=1350;
$pdfPaperSize[a3][p][y]=2115;
if(!$orientation) $orientation="l"; // default orientation
if(!$text) $text="Write a comment";
$text2= $imageLabel;
$pdfPaperSizeOption[0]="A4";
$pdfPaperSizeValue[0]="a4";
$pdfPaperSizeOption[1]="A3";
$pdfPaperSizeValue[1]="a3";
if(!$paper) $paper=$pdfPaperSizeValue[0];// default papersize
/************************************************************************/
/* Configuration of quick search */
/* */
/************************************************************************/
$viewRegionText="Quick search";
$viewRegionSelect="
<SELECT NAME='viewRegion' onChange='update();'>
<OPTION value=''>$viewRegionText</OPTION>
<OPTION value=''>- - - - - - - - - - - - - - -</OPTION>
<OPTION VALUE='388107.634400379,5203120.88405952,500896.339019834,5310243.30613897'>Full extent</OPTION>
</SELECT >";
?>