gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.wmts / org.gvsig.wmts.provider / src / main / java / org / gvsig / wmts / provider / WMTSRasterServerExplorerFactory.java @ 8700
History | View | Annotate | Download (2.55 KB)
1 | 6532 | fdiaz | package org.gvsig.wmts.provider; |
---|---|---|---|
2 | /* gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright ? 2007-2016 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 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 | * 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 | |||
26 | import org.slf4j.Logger; |
||
27 | import org.slf4j.LoggerFactory; |
||
28 | |||
29 | import org.gvsig.fmap.dal.DataServerExplorer; |
||
30 | import org.gvsig.fmap.dal.DataServerExplorerParameters; |
||
31 | import org.gvsig.fmap.dal.DataStoreProviderFactory; |
||
32 | import org.gvsig.fmap.dal.exception.InitializeException; |
||
33 | import org.gvsig.fmap.dal.spi.AbstractDataServerExplorerFactory; |
||
34 | import org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices; |
||
35 | import org.gvsig.tools.dynobject.DynObject; |
||
36 | |||
37 | |||
38 | /**
|
||
39 | * Factory for WMTS server explorer
|
||
40 | * @author fdiaz
|
||
41 | *
|
||
42 | */
|
||
43 | public class WMTSRasterServerExplorerFactory extends AbstractDataServerExplorerFactory { |
||
44 | |||
45 | protected WMTSRasterServerExplorerFactory(String name, String description) { |
||
46 | super(name, description);
|
||
47 | } |
||
48 | |||
49 | private static final Logger logger = LoggerFactory.getLogger(WMTSRasterServerExplorerFactory.class); |
||
50 | |||
51 | |||
52 | @Override
|
||
53 | public DynObject createParameters() {
|
||
54 | return new WMTSRasterServerExplorerParameters(); |
||
55 | } |
||
56 | |||
57 | @Override
|
||
58 | public DataServerExplorer create(DataServerExplorerParameters parameters,
|
||
59 | DataServerExplorerProviderServices providerServices) throws InitializeException {
|
||
60 | 8700 | fdiaz | return new DefaultWMTSRasterServerExplorer(parameters, providerServices); |
61 | 6532 | fdiaz | } |
62 | |||
63 | @Override
|
||
64 | public int allowCreate() { |
||
65 | return DataStoreProviderFactory.NO;
|
||
66 | } |
||
67 | |||
68 | @Override
|
||
69 | public int hasTabularSupport() { |
||
70 | return DataStoreProviderFactory.NO;
|
||
71 | } |
||
72 | |||
73 | @Override
|
||
74 | public int hasVectorialSupport() { |
||
75 | return DataStoreProviderFactory.NO;
|
||
76 | } |
||
77 | |||
78 | @Override
|
||
79 | public int hasRasterSupport() { |
||
80 | return DataStoreProviderFactory.YES;
|
||
81 | } |
||
82 | |||
83 | } |