svn-gvsig-desktop / branches / v2_0_0_prep / extensions / org.gvsig.geocoding.extension / src / org / gvsig / geocoding / utils / LayerUpThread.java @ 32526
History | View | Annotate | Download (2.54 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 |
* 2009 Prodevelop S.L vsanjaime programador
|
26 |
*/
|
27 |
|
28 |
package org.gvsig.geocoding.utils; |
29 |
|
30 |
import java.io.File; |
31 |
import java.util.List; |
32 |
|
33 |
import org.gvsig.fmap.dal.feature.Feature; |
34 |
import org.slf4j.Logger; |
35 |
import org.slf4j.LoggerFactory; |
36 |
|
37 |
/**
|
38 |
* This class generates a Layer from feature store
|
39 |
*
|
40 |
* @author Jorge Gaspar Sanz Salinas (jsanz@prodevelop.es)
|
41 |
* @author Vicente Sanjaime Calvet (vsanjaime@prodevelop.es)
|
42 |
*
|
43 |
*/
|
44 |
|
45 |
public class LayerUpThread extends Thread { |
46 |
|
47 |
@SuppressWarnings("unused") |
48 |
private Logger log = LoggerFactory.getLogger(LayerUpThread.class); |
49 |
private File file = null; |
50 |
private boolean apto = true; |
51 |
|
52 |
/**
|
53 |
* Constructor
|
54 |
*/
|
55 |
public LayerUpThread() {
|
56 |
super();
|
57 |
} |
58 |
|
59 |
/**
|
60 |
* Constructor with file
|
61 |
*
|
62 |
* @param file
|
63 |
*/
|
64 |
public LayerUpThread(File file) { |
65 |
this();
|
66 |
this.file = file;
|
67 |
} |
68 |
|
69 |
/**
|
70 |
* Run
|
71 |
*/
|
72 |
public void run() { |
73 |
// //name
|
74 |
// String name = this.file.getName();
|
75 |
// //layerdefinition
|
76 |
// LayerDefinition def = new LayerDefinition();
|
77 |
// def.setShapeType(FShape.POINT);
|
78 |
// def.setProjection(GeocoUtils.getCurrentView().getProjection());
|
79 |
// //Features
|
80 |
// List<IFeature> features = createFeatures();
|
81 |
// ////Driver
|
82 |
// VectorialDriver driver = new FeatureCollectionMemoryDriver(name,
|
83 |
// features, def);
|
84 |
// FLyrVect lyr = new FLyrVect();
|
85 |
|
86 |
|
87 |
|
88 |
} |
89 |
|
90 |
/**
|
91 |
* @return the apto
|
92 |
*/
|
93 |
public boolean isApto() { |
94 |
return apto;
|
95 |
} |
96 |
|
97 |
/**
|
98 |
* @return the file
|
99 |
*/
|
100 |
public File getFile() { |
101 |
return file;
|
102 |
} |
103 |
|
104 |
/**
|
105 |
*
|
106 |
* @return
|
107 |
*/
|
108 |
private List<Feature> createFeatures() { |
109 |
|
110 |
return null; |
111 |
} |
112 |
|
113 |
} |