Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / wfs / filters / operations / WFSSpatialFilterOperation.java @ 40769

History | View | Annotate | Download (2.58 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
 
25
package org.gvsig.remoteclient.wfs.filters.operations;
26

    
27
import org.gvsig.remoteclient.wfs.filters.AbstractFilter;
28

    
29
/**
30
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
31
 */
32
public class WFSSpatialFilterOperation extends WFSFilterOperation{
33
        protected int operation = AbstractFilter.GEOMETRIC_OPERATOR_INTERSECT;
34
        protected String attributeName = null;
35
        protected String nameSpacePrefix = null;
36
        protected String nameSpaceLocation = null;
37
        protected String srs = null;
38
                
39
        /**
40
         * @param operation
41
         * @param attributeName
42
         * @param srs
43
         */
44
        public WFSSpatialFilterOperation(int operation, String attributeName, 
45
            String nameSpacePrefix, String nameSpaceLocation, String srs) {
46
                super();        
47
                this.operation = operation;
48
                this.attributeName = attributeName;
49
                this.nameSpacePrefix = nameSpacePrefix;
50
                this.nameSpaceLocation = nameSpaceLocation;
51
                this.srs = srs;                
52
        }
53

    
54
        
55
    /**
56
     * @return the nameSpacePrefix
57
     */
58
    public String getNameSpacePrefix() {
59
        return nameSpacePrefix;
60
    }
61

    
62
    
63
    /**
64
     * @return the nameSpaceLocation
65
     */
66
    public String getNameSpaceLocation() {
67
        return nameSpaceLocation;
68
    }
69

    
70
    /**
71
         * @return the operation
72
         */
73
        public int getOperation() {
74
                return operation;
75
        }
76

    
77
        /**
78
         * @return the attributeName
79
         */
80
        public String getAttributeName() {
81
                return attributeName;
82
        }
83
        
84
        /**
85
     * @return the attributeName
86
     */
87
    public String getAttributeFullName() {
88
        if (nameSpacePrefix != null){
89
            return nameSpacePrefix + ":" + attributeName;
90
        }
91
        return attributeName;
92
    }
93
    
94

    
95
        /**
96
         * @return the srs
97
         */
98
        public String getSrsName() {
99
                return srs;
100
        }                
101
}
102