Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / org.gvsig.arcims / src / org / gvsig / remoteclient / arcims / ArcImsFeatureClient.java @ 32367

History | View | Annotate | Download (2.95 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
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 2
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
 */
22

    
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2010 Prodevelop S.L. main development
26
 * http://www.prodevelop.es
27
 */
28

    
29
package org.gvsig.remoteclient.arcims;
30

    
31
import java.awt.geom.Rectangle2D;
32
import java.util.List;
33

    
34
import org.gvsig.remoteclient.arcims.exceptions.ArcImsException;
35
import org.gvsig.remoteclient.exceptions.ServerErrorException;
36

    
37
/**
38
 * Class that connects with ArcIMS and retrieves a Feature Layer
39
 * 
40
 * @author jsanz
41
 * 
42
 */
43
public class ArcImsFeatureClient extends ArcImsClient {
44
        /**
45
         * Constructor
46
         * 
47
         * @param host
48
         * @param service
49
         * @param serviceType
50
         */
51
        public ArcImsFeatureClient(String host, String service, String serviceType) {
52
                super(host, service, serviceType);
53

    
54
        }
55

    
56
        /**
57
         * Requests a map
58
         * 
59
         * @param status
60
         * @return
61
         * @throws ArcImsException
62
         * @throws ServerErrorException
63
         */
64
        public List getMap(ArcImsVectStatus status) throws ArcImsException,
65
                        ServerErrorException {
66
                return ((ArcImsProtFeatureHandler) handler).getMap(status);
67
        }
68

    
69
        /**
70
         * Requests service extent in view coordinates
71
         * 
72
         * @param status
73
         * @param subfields
74
         * @return
75
         * @throws ArcImsException
76
         * @throws ServerErrorException
77
         */
78
        public Rectangle2D getLayerExtent(ArcImsVectStatus status)
79
                        throws ArcImsException, ServerErrorException {
80
                return ((ArcImsProtFeatureHandler) handler).getLayerExtent(status);
81
        }
82

    
83
        /**
84
         * @param status
85
         * @param subfields
86
         * @param where
87
         * @param envelope
88
         * @return
89
         * @throws ArcImsException
90
         */
91
        public List getAttributes(ArcImsVectStatus status, String[] subfields,
92
                        String where, Rectangle2D envelope) throws ArcImsException {
93
                return ((ArcImsProtFeatureHandler) handler).getAttributes(status,
94
                                subfields, where, envelope);
95
        }
96

    
97
        /**
98
         * @param status
99
         * @param subfields
100
         * @param where
101
         * @param envelope
102
         * @return
103
         * @throws ArcImsException
104
         */
105
        public List getAttributesWithEnvelope(ArcImsVectStatus status,
106
                        String[] subfields, String where, Rectangle2D envelope)
107
                        throws ArcImsException {
108
                return ((ArcImsProtFeatureHandler) handler).getAttributesWithEnvelope(
109
                                status, subfields, where, envelope);
110
        }
111
}