Statistics
| Revision:

svn-gvsig-desktop / branches / v02_desarrollo / libraries / sld / temp / org.gvsig.sldsupport.lib.api / src / main / java / org / gvsig / sldsupport / layer / SLDUserLayer.java @ 40779

History | View | Annotate | Download (3.2 KB)

1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib��ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package org.gvsig.sldsupport.layer;
42

    
43
import java.io.IOException;
44
import java.net.URL;
45
import java.util.ArrayList;
46

    
47
import org.gvsig.sldsupport.exception.SLDReadException;
48
import org.xmlpull.v1.XmlPullParser;
49
import org.xmlpull.v1.XmlPullParserException;
50

    
51
/**
52
 * Implements the User-Defined Layer element of an SLD implementation specification
53
 * .<p>
54
 * 
55
 * In addition to using named layers, it is also useful to be able to define custom
56
 * user-defined layers for rendering.<p>
57
 * Since a layer is defined as a collection of potentially mixed-type features, the
58
 * UserLayer element must provide the means to identify the features to be used. All
59
 * features to be rendered are assumed to be fetched from a Web Feature Server (WFS) or a
60
 * Web Coverage Service (WCS, in which case the term �features� is used loosely).
61
 * 
62
 * The remote server to be used is identified by RemoteOWS (OGC Web Service) element.
63
 * 
64
 * @see SLDLayer
65
 * @see SLDNamedLayer
66
 * @see http://portal.opengeospatial.org/files/?artifact_id=1188
67
 * 
68
 * @author pepe vidal salvador - jose.vidal.salvador@iver.es
69
 */
70
public abstract class SLDUserLayer extends AbstractSLDLayer{
71

    
72

    
73
        protected ArrayList<URL> remoteOWSOnlineResource= new ArrayList<URL>() ;
74
        protected String remoteOWSService;
75

    
76
        
77
        public abstract void parse(XmlPullParser parser)
78
                        throws IOException, XmlPullParserException, SLDReadException;
79
        
80
        public abstract String toXML();
81

    
82
        public ArrayList<URL> getRemoteOWSOnlineResource() {
83
                return remoteOWSOnlineResource;
84
        }
85

    
86
        public void setRemoteOWSOnlineResource(ArrayList<URL> remoteOWSOnlineResource) {
87
                this.remoteOWSOnlineResource = remoteOWSOnlineResource;
88
        }
89
        
90
        public void addRemoteOWSOnlineResource(URL myURL) {
91
                this.remoteOWSOnlineResource.add(myURL);
92
                
93
        }
94
        
95
        public String getRemoteOWSService() {
96
                return remoteOWSService;
97
        }
98

    
99
        public void setRemoteOWSService(String remoteOWSService) {
100
                this.remoteOWSService = remoteOWSService;
101
        }
102
        
103
        
104
}