/** 
 * @fileoverview Definicion de capas para hacer una petici&oacute;n WMS
 *
 * @author Esteban; Yohana;
 * @version 0.1 
 */

/**
 * Una capa debe reflejar los siguientes par&aacute;metros:
 * - URL: url del servidor.
 * - ServiceName: Nombre del servicio.
 * - VERSION: 1.1.0 a 1.1.3.
 * - REQUEST: GetMap es el valor por defecto.
 * - LAYERS: Un vector con las capas de informaci&oacute;n disponibles.
 * - FORMAT: Formato de imagen.
 * - SRS: Sistema de referencia.
 * - STYLES: Lista de estilos.
 * - BBOX: [xmin,ymin,xmax,ymax]
 * - QUALITY: Calidad de la imagen. Valor por defecto: 75,
 * - TRANSPARENT: 'TRUE',
 * - EXCEPTIONS: 'application/vnd.ogc.se_inimage'
 */

//Capa por defecto:
var _default = {
      URL: 'http://wms.jpl.nasa.gov/wms.cgi?', // url of WMS server
      VERSION: '1.1.1', // 1.1.1 is default, not needed
      REQUEST: 'GetMap', // GetMap is default, not needed
      LAYERS: ['global_mosaic'],  // an array of the layers to get
      FORMAT: 'image/png', // this is often just 'png' or 'jpg'
      SRS: 'EPSG:4326',    // 4326 is the default
      STYLES: [],     // A list of styles, see layer def
      BBOX: [-180,-90,180,90], // [xmin,ymin,xmax,ymax]
      TRANSPARENT: 'TRUE',
      EXCEPTIONS: 'application/vnd.ogc.se_inimage'
      //on error, return empty image
};

var SIGRID = {
//			URL: 'http://cartomur.acotelsa.com/SgdWms/SgdWms.dll/WMS?',
      URL: 'http://www.stereowebmap.com/SgdWms/SgdWms.dll/WMS?',
      VERSION: '1.1.1',
      REQUEST: 'GetMap',
      LAYERS: ['ALL'],
      FORMAT: 'image/jpeg',
      SRS: 'EPSG:23031',
      STYLES: ['SGD_StereoModel::ShowAnaglyphicOff|SGD_StereoModel::MirrorRightImageOn'],
      TRANSPARENT: 'TRUE',  
      EXCEPTIONS: 'application/vnd.ogc.se_inimage'
};

var Orto5000 = {
      URL: 'http://shagrat.icc.cat/lizardtech/iserv/ows?',
      VERSION: '1.1.1',
      REQUEST: 'GetMap',
      LAYERS: ['orto5m'],
      FORMAT: 'image/jpeg',
      SRS: 'EPSG:23031',
      STYLES: [''],
      TRANSPARENT: 'TRUE',  
      EXCEPTIONS: 'application/vnd.ogc.se_xml'
};
 

var CATASTRO = {
      URL: 'http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx?',
      VERSION: '1.1.1',
      REQUEST: 'GetMap',
      LAYERS: ['catastro'],
      FORMAT: 'image/png',
      SRS: 'EPSG:23031',
      STYLES: ['Auto'],
      BBOX: [456000,4678000,607700,4830200], // [xmin,ymin,xmax,ymax]
      TRANSPARENT: 'TRUE',
      EXCEPTIONS: 'application/vnd.ogc.se_inimage'
      //on error, return empty image
};

var PNOA = {
		URL: 'http://www.idee.es/wms/PNOA/PNOA?',
		//ServiceName: 'PNOA',
		VERSION: '1.1.1',
		REQUEST: 'GetMap',		
		LAYERS: ['PNOA'],
		FORMAT: 'image/jpeg',
		//&SERVICE=WMS&
		//SRS: 'EPSG:4230',
		SRS: 'EPSG:23031',
		STYLES: ['Auto'],
		BBOX: [456000,4678000,607700,4830200],
		BGCOLOR: '0xFFFFFF',
		TRANSPARENT: 'TRUE',
		EXCEPTIONS: 'application/vnd.ogc.se_inimage'
};	

