Revision 7136 trunk/extensions/extPublish/src/org/gvsig/remoteservices/conf/mapserver/MapServer.java

View differences:

MapServer.java
44 44
 *
45 45
 * $Id$
46 46
 * $Log$
47
 * Revision 1.14  2006-09-08 07:12:03  luisw2
47
 * Revision 1.15  2006-09-08 10:14:04  luisw2
48
 * IRSLayer Added
49
 *
50
 * Revision 1.14  2006/09/08 07:12:03  luisw2
48 51
 * Minor corrections for raster; abstract added
49 52
 *
50 53
 * Revision 1.13  2006/09/07 19:25:01  luisw2
......
91 94
import java.util.ArrayList;
92 95
import java.util.Iterator;
93 96

  
97
import org.gvsig.remoteservices.conf.IRSLayer;
98

  
94 99
/**
95
 * Genera un .MAP
96
 * ... como este:
97
 MAP
100
 * Allows to write a .map Mapserver configuration file.
101
 *
102
 * @author David Gilsanz
103
 * @author "Luis W. Sevilla" <sevilla_lui@gva.es>
104
 */
105

  
106
/* MAP
98 107
	NAME test_postgis
99 108
	STATUS ON
100 109
	SIZE 400 300
......
127 136
  		NAME "autopistas"
128 137
  		DATA "the_geom from autopistas"
129 138
		CONNECTIONTYPE POSTGIS
130
		CONNECTION "user=david password=chkdsk dbname=betel host=localhost port=5434"
139
		CONNECTION "user=david password=pwd dbname=betel host=localhost port=5434"
131 140
		STATUS ON
132 141
		TYPE LINE
133 142
		METADATA
......
147 156
    END 
148 157

  
149 158
END # Map File    
150

  
151
 * @author david
152
 */
153

  
159
*/
154 160
public abstract class MapServer {
155 161
	public static final String SHP_TYPE_LINE = "LINE";
156 162
	public static final String SHP_TYPE_POLYLINE = "POLYLINE";
......
394 400
		}
395 401
	}
396 402
	
397
	public abstract static class MapLayer extends MapServer {
403
	public abstract static class MapLayer extends MapServer
404
		implements IRSLayer {
398 405
		public String name;
399 406
		public String title=null;
400 407
		public String status = "ON";
......
475 482
		}
476 483
		
477 484
		public abstract void layerToMap();
485

  
486
		public String getName() {
487
			return name;
488
		}
489

  
490
		public void setName(String name) {
491
			this.name = name;
492
		}
493

  
494
		public String getTitle() {
495
			return title;
496
		}
497

  
498
		public void setTitle(String title) {
499
			this.title = title;
500
		}
478 501
	}
479 502
	
480 503
	public static class ShpLayer extends MapLayer {		

Also available in: Unified diff