Revision 424
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.gpx/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
3 |
|
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.gdal.app.gpx</artifactId> |
|
6 |
<packaging>jar</packaging> |
|
7 |
<name>${project.artifactId}</name> |
|
8 |
<parent> |
|
9 |
<groupId>org.gvsig</groupId> |
|
10 |
<artifactId>org.gvsig.gdal.app</artifactId> |
|
11 |
<version>1.0.16-SNAPSHOT</version> |
|
12 |
</parent> |
|
13 |
<dependencies> |
|
14 |
|
|
15 |
<dependency> |
|
16 |
<groupId>org.gvsig</groupId> |
|
17 |
<artifactId>org.gvsig.gdal.gpx</artifactId> |
|
18 |
</dependency> |
|
19 |
|
|
20 |
<dependency> |
|
21 |
<groupId>org.gdal</groupId> |
|
22 |
<artifactId>gdal</artifactId> |
|
23 |
</dependency> |
|
24 |
<dependency> |
|
25 |
<groupId>org.gvsig</groupId> |
|
26 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
27 |
<scope>compile</scope> |
|
28 |
</dependency> |
|
29 |
<dependency> |
|
30 |
<groupId>org.gvsig</groupId> |
|
31 |
<artifactId>org.gvsig.andami</artifactId> |
|
32 |
<scope>compile</scope> |
|
33 |
</dependency> |
|
34 |
<dependency> |
|
35 |
<groupId>org.gvsig</groupId> |
|
36 |
<artifactId>org.gvsig.app.mainplugin</artifactId> |
|
37 |
<scope>compile</scope> |
|
38 |
</dependency> |
|
39 |
</dependencies> |
|
40 |
<modules> |
|
41 |
</modules> |
|
42 |
|
|
43 |
<properties> |
|
44 |
<!-- Package info property values --> |
|
45 |
<!-- Default values in org.gvsig.desktop --> |
|
46 |
<gvsig.package.info.name>Formats: GPX</gvsig.package.info.name> |
|
47 |
<gvsig.package.info.state>testing</gvsig.package.info.state> |
|
48 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
49 |
<gvsig.package.info.dependencies>required: org.gvsig.gdal.app.mainplugin -ge 1.0.0-A</gvsig.package.info.dependencies> |
|
50 |
<gvsig.package.info.categories>Formats,Vector</gvsig.package.info.categories> |
|
51 |
<gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-gdal/pool/</gvsig.package.info.poolURL> |
|
52 |
<gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem> |
|
53 |
<gvsig.package.info.architecture>all</gvsig.package.info.architecture> |
|
54 |
<gvsig.install.plugin>true</gvsig.install.plugin> |
|
55 |
</properties> |
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
<build> |
|
61 |
<plugins> |
|
62 |
|
|
63 |
<plugin> |
|
64 |
<!-- Skip compilation tests --> |
|
65 |
<groupId>org.apache.maven.plugins</groupId> |
|
66 |
<artifactId>maven-compiler-plugin</artifactId> |
|
67 |
<executions> |
|
68 |
<execution> |
|
69 |
<id>default-testCompile</id> |
|
70 |
<phase>process-test-sources</phase> |
|
71 |
<goals> |
|
72 |
<goal>testCompile</goal> |
|
73 |
</goals> |
|
74 |
<configuration> |
|
75 |
<skip>true</skip> |
|
76 |
</configuration> |
|
77 |
</execution> |
|
78 |
</executions> |
|
79 |
</plugin> |
|
80 |
|
|
81 |
<plugin> |
|
82 |
<!-- Skip test execution --> |
|
83 |
<groupId>org.apache.maven.plugins</groupId> |
|
84 |
<artifactId>maven-surefire-plugin</artifactId> |
|
85 |
<configuration> |
|
86 |
<skipTests>true</skipTests> |
|
87 |
</configuration> |
|
88 |
</plugin> |
|
89 |
|
|
90 |
</plugins> |
|
91 |
</build> |
|
92 |
</project> |
|
0 | 93 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.gpx/buildNumber.properties | ||
---|---|---|
1 |
#Thu Jan 14 23:01:01 CET 2016 |
|
2 |
buildNumber=21 |
|
0 | 3 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.gpx/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>gvsig-plugin-package</id> |
|
3 |
<formats> |
|
4 |
<format>zip</format> |
|
5 |
</formats> |
|
6 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
7 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
8 |
<files> |
|
9 |
<file> |
|
10 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
11 |
<outputDirectory>lib</outputDirectory> |
|
12 |
</file> |
|
13 |
<file> |
|
14 |
<source>target/package.info</source> |
|
15 |
</file> |
|
16 |
</files> |
|
17 |
|
|
18 |
<fileSets> |
|
19 |
<fileSet> |
|
20 |
<directory>src/main/resources-plugin</directory> |
|
21 |
<outputDirectory>.</outputDirectory> |
|
22 |
</fileSet> |
|
23 |
</fileSets> |
|
24 |
|
|
25 |
<dependencySets> |
|
26 |
<dependencySet> |
|
27 |
<useProjectArtifact>false</useProjectArtifact> |
|
28 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
29 |
<outputDirectory>lib</outputDirectory> |
|
30 |
<includes> |
|
31 |
<include>org.gvsig:org.gvsig.gdal.gpx</include> |
|
32 |
</includes> |
|
33 |
</dependencySet> |
|
34 |
</dependencySets> |
|
35 |
|
|
36 |
</assembly> |
|
0 | 37 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.gpx/src/main/java/org/gvsig/gdal/app/gpx/gui/GPXWizard.java | ||
---|---|---|
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 |
package org.gvsig.gdal.app.gpx.gui; |
|
23 |
|
|
24 |
import java.awt.FlowLayout; |
|
25 |
import java.awt.GridBagConstraints; |
|
26 |
import java.awt.GridBagLayout; |
|
27 |
import java.awt.event.MouseEvent; |
|
28 |
import java.awt.event.MouseListener; |
|
29 |
import java.io.File; |
|
30 |
import java.net.URL; |
|
31 |
import java.util.List; |
|
32 |
|
|
33 |
import javax.swing.JButton; |
|
34 |
import javax.swing.JLabel; |
|
35 |
import javax.swing.JPanel; |
|
36 |
import javax.swing.JScrollPane; |
|
37 |
import javax.swing.JTextArea; |
|
38 |
|
|
39 |
import org.gdal.gdal.gdal; |
|
40 |
import org.gdal.ogr.DataSource; |
|
41 |
import org.gdal.ogr.Feature; |
|
42 |
import org.gdal.ogr.FeatureDefn; |
|
43 |
import org.gdal.ogr.FieldDefn; |
|
44 |
import org.gdal.ogr.Layer; |
|
45 |
import org.gdal.ogr.ogr; |
|
46 |
import org.gvsig.andami.PluginServices; |
|
47 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
48 |
import org.gvsig.app.ApplicationLocator; |
|
49 |
import org.gvsig.app.ApplicationManager; |
|
50 |
import org.gvsig.app.gui.WizardPanel; |
|
51 |
import org.gvsig.app.gui.wizards.WizardListener; |
|
52 |
import org.gvsig.app.gui.wizards.WizardListenerSupport; |
|
53 |
import org.gvsig.app.project.ProjectManager; |
|
54 |
import org.gvsig.app.project.documents.view.ViewDocument; |
|
55 |
import org.gvsig.app.project.documents.view.gui.AbstractViewPanel; |
|
56 |
import org.gvsig.fmap.dal.DALLocator; |
|
57 |
import org.gvsig.fmap.dal.DataManager; |
|
58 |
import org.gvsig.fmap.dal.DataStoreParameters; |
|
59 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
60 |
import org.gvsig.fmap.dal.exception.OpenException; |
|
61 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
|
62 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
|
63 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
64 |
import org.gvsig.fmap.dal.store.gpx.OGRStoreParameters; |
|
65 |
import org.gvsig.fmap.dal.store.gpx.OGRStoreProvider; |
|
66 |
import org.gvsig.fmap.dal.store.gpx.OGRStoreProviderFactory; |
|
67 |
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException; |
|
68 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
69 |
import org.gvsig.gdal.app.gpx.gui.utils.JFileField; |
|
70 |
import org.slf4j.Logger; |
|
71 |
import org.slf4j.LoggerFactory; |
|
72 |
|
|
73 |
/** |
|
74 |
* Wizard panel to add a new OSM raster layer |
|
75 |
* @author Jos? Bad?a (jbadia@scolab.es) |
|
76 |
*/ |
|
77 |
public class GPXWizard extends WizardPanel implements MouseListener { |
|
78 |
private static final long serialVersionUID = 1L; |
|
79 |
private static final String TAB_NAME = "GDAL/OGR"; |
|
80 |
private static Logger logger = LoggerFactory.getLogger(GPXWizard.class.getName()); |
|
81 |
private AbstractViewPanel view = null; |
|
82 |
private WizardListenerSupport listenerSupport = null; |
|
83 |
|
|
84 |
private JPanel chooserPanel; |
|
85 |
private JPanel jPanel1; |
|
86 |
private JFileField cmbHost; |
|
87 |
private JButton btnConnect; |
|
88 |
private JPanel jPanel; |
|
89 |
private JScrollPane jScrollPane; |
|
90 |
private JTextArea txtAbstract; |
|
91 |
private JPanel pnlName; |
|
92 |
private JLabel jLabel1; |
|
93 |
private JLabel lblTitle; |
|
94 |
|
|
95 |
private DataSource poDS = null; |
|
96 |
private File file = null; |
|
97 |
private OGRStoreParameters ogrStoreParameters; |
|
98 |
|
|
99 |
|
|
100 |
public GPXWizard() { |
|
101 |
super(); |
|
102 |
initialize(); |
|
103 |
} |
|
104 |
|
|
105 |
/** |
|
106 |
* This method initializes this |
|
107 |
* |
|
108 |
* @return void |
|
109 |
*/ |
|
110 |
private void initialize() { |
|
111 |
setTabName(PluginServices.getText(this, TAB_NAME)); |
|
112 |
setLayout(new GridBagLayout()); |
|
113 |
|
|
114 |
gdal.AllRegister(); |
|
115 |
ogr.RegisterAll(); |
|
116 |
|
|
117 |
IWindow iw = PluginServices.getMDIManager().getActiveWindow(); |
|
118 |
|
|
119 |
if (iw == null) { |
|
120 |
return; |
|
121 |
} |
|
122 |
|
|
123 |
if (!(iw instanceof AbstractViewPanel)) { |
|
124 |
return; |
|
125 |
} |
|
126 |
|
|
127 |
view = (AbstractViewPanel) iw; |
|
128 |
setMapCtrl(view.getMapControl()); |
|
129 |
|
|
130 |
GridBagConstraints gridBagConstraints = new GridBagConstraints(); |
|
131 |
gridBagConstraints.fill = GridBagConstraints.BOTH; |
|
132 |
gridBagConstraints.weightx = 1.0; |
|
133 |
gridBagConstraints.weighty = 1.0; |
|
134 |
gridBagConstraints.gridx = 0; |
|
135 |
gridBagConstraints.gridy = 0; |
|
136 |
add(getFileChooserPanel(), gridBagConstraints); |
|
137 |
|
|
138 |
gridBagConstraints.weightx = 1.0; |
|
139 |
gridBagConstraints.gridy = 1; |
|
140 |
gridBagConstraints.weighty = 4; |
|
141 |
add(getDescriptionPanel(), gridBagConstraints); |
|
142 |
} |
|
143 |
|
|
144 |
private WizardListenerSupport getWizardListenerSupport() { |
|
145 |
if(listenerSupport == null) |
|
146 |
listenerSupport = new WizardListenerSupport(); |
|
147 |
return listenerSupport; |
|
148 |
} |
|
149 |
|
|
150 |
/** |
|
151 |
* This method checks for the options selected within the configuration |
|
152 |
* dialog are correct. |
|
153 |
* |
|
154 |
* @return true if you're done, false if not. |
|
155 |
*/ |
|
156 |
public boolean areSettingsValid() { |
|
157 |
return true; |
|
158 |
} |
|
159 |
|
|
160 |
public void addWizardListener(WizardListener listener) { |
|
161 |
getWizardListenerSupport().addWizardListener(listener); |
|
162 |
getWizardListenerSupport().callStateChanged(false); |
|
163 |
} |
|
164 |
|
|
165 |
public void removeWizardListener(WizardListener listener) { |
|
166 |
getWizardListenerSupport().removeWizardListener(listener); |
|
167 |
} |
|
168 |
|
|
169 |
@Override |
|
170 |
public void close() { |
|
171 |
} |
|
172 |
|
|
173 |
@Override |
|
174 |
public void execute() { |
|
175 |
if(this.file != null){ |
|
176 |
isFileSupported(this.file); |
|
177 |
|
|
178 |
// Si el fichero es soportado por OGR |
|
179 |
if(poDS != null){ |
|
180 |
DataManager dataManager = DALLocator.getDataManager(); |
|
181 |
OGRStoreProviderFactory provFact = (OGRStoreProviderFactory) dataManager.getStoreProviderFactory(OGRStoreProvider.NAME); |
|
182 |
OGRStoreParameters params = (OGRStoreParameters) provFact.createParameters(); |
|
183 |
|
|
184 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
185 |
ProjectManager projectManager = application.getProjectManager(); |
|
186 |
ViewDocument view = (ViewDocument) projectManager.getCurrentProject().getActiveDocument(); |
|
187 |
|
|
188 |
try { |
|
189 |
|
|
190 |
FLyrVect layer = (FLyrVect) application.getMapContextManager().createLayer("prueba-ogr", openFile(this.file)); |
|
191 |
view.getMapContext().getLayers().addLayer(layer); |
|
192 |
} catch (LoadLayerException e) { |
|
193 |
e.printStackTrace(); |
|
194 |
} |
|
195 |
} |
|
196 |
}else{ |
|
197 |
// TODO mensaje de error que no hay fichero escogido |
|
198 |
} |
|
199 |
|
|
200 |
|
|
201 |
} |
|
202 |
|
|
203 |
private void isFileSupported(File path) { |
|
204 |
if(path != null){ |
|
205 |
lblTitle.setText(path.getAbsolutePath()); |
|
206 |
}else{ |
|
207 |
poDS = null; |
|
208 |
lblTitle.setText("-"); |
|
209 |
return ; |
|
210 |
} |
|
211 |
|
|
212 |
String aux = "Running under GDAL/OGR "+ gdal.VersionInfo() +" version.\n\n"; |
|
213 |
txtAbstract.setText(aux); |
|
214 |
|
|
215 |
if(ogr.GetDriverCount() != 0){ |
|
216 |
poDS = ogr.Open(path.getAbsolutePath(), false); |
|
217 |
if(poDS != null){ |
|
218 |
aux = aux + "Opened file '"+ path.getName() +"' with "+ poDS.GetDriver().getName() +" driver.\n"; |
|
219 |
}else{ |
|
220 |
aux = aux + "ERROR: This file cannot be opened. Available drivers are the following:\n"; |
|
221 |
for(int i = 0; i<ogr.GetDriverCount(); i++){ |
|
222 |
aux = aux + ogr.GetDriver(i).getName(); |
|
223 |
if(i+1<ogr.GetDriverCount()){ |
|
224 |
aux = aux + ", "; |
|
225 |
} |
|
226 |
} |
|
227 |
txtAbstract.setText(aux); |
|
228 |
return; |
|
229 |
} |
|
230 |
}else{ |
|
231 |
aux = aux + "ERROR: GDAL/OGR driver are not initialized"; |
|
232 |
} |
|
233 |
txtAbstract.setText(aux); |
|
234 |
} |
|
235 |
|
|
236 |
private JPanel getFileChooserPanel() { |
|
237 |
if (chooserPanel == null) { |
|
238 |
chooserPanel = new javax.swing.JPanel(); |
|
239 |
chooserPanel.setLayout(null); |
|
240 |
chooserPanel.setPreferredSize(new java.awt.Dimension(480, 220)); |
|
241 |
chooserPanel.setVisible(true); |
|
242 |
chooserPanel.setBounds(15, 5, 480, 407); |
|
243 |
chooserPanel.add(getFilePanel(), null); |
|
244 |
} |
|
245 |
|
|
246 |
return chooserPanel; |
|
247 |
} |
|
248 |
|
|
249 |
private JPanel getFilePanel() { |
|
250 |
if (jPanel1 == null) { |
|
251 |
jPanel1 = new javax.swing.JPanel(); |
|
252 |
jPanel1.setLayout(null); |
|
253 |
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder( |
|
254 |
null, PluginServices.getText(this, "file"), |
|
255 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
|
256 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
|
257 |
jPanel1.setBounds(2, 5, 477, 85); |
|
258 |
jPanel1.add(getTxtHost(), null); |
|
259 |
jPanel1.add(getBtnConnect(), null); |
|
260 |
} |
|
261 |
|
|
262 |
return jPanel1; |
|
263 |
} |
|
264 |
|
|
265 |
private JFileField getTxtHost() { |
|
266 |
if (cmbHost == null) { |
|
267 |
cmbHost = new JFileField(null, "..."); |
|
268 |
cmbHost.setMode(JFileField.MODE_OPEN); |
|
269 |
cmbHost.getFileChooser().setCurrentDirectory(new File(System.getProperty("user.home"))); |
|
270 |
cmbHost.setPreferredSize(new java.awt.Dimension(350, 40)); |
|
271 |
cmbHost.setBounds(11, 26, 470, 30); |
|
272 |
//cmbHost.setEditable(true); |
|
273 |
} |
|
274 |
return cmbHost; |
|
275 |
} |
|
276 |
|
|
277 |
private JButton getBtnConnect() { |
|
278 |
if (btnConnect == null) { |
|
279 |
btnConnect = new JButton(); |
|
280 |
btnConnect.setPreferredSize(new java.awt.Dimension(100, 20)); |
|
281 |
btnConnect.setBounds(366, 60, 100, 20); |
|
282 |
btnConnect.setText(PluginServices.getText(this, "Cargar")); |
|
283 |
btnConnect.addActionListener(new java.awt.event.ActionListener() { |
|
284 |
|
|
285 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
286 |
file = cmbHost.getFileChooser().getSelectedFile(); |
|
287 |
isFileSupported(file); |
|
288 |
|
|
289 |
String aux = txtAbstract.getText(); |
|
290 |
|
|
291 |
DataManager dataManager = DALLocator.getDataManager(); |
|
292 |
|
|
293 |
OGRStoreProviderFactory provFact = (OGRStoreProviderFactory) dataManager.getStoreProviderFactory(OGRStoreProvider.NAME); |
|
294 |
OGRStoreParameters params = (OGRStoreParameters) provFact.createParameters(); |
|
295 |
params.setFile(file); |
|
296 |
|
|
297 |
OGRStoreProvider provider = null; |
|
298 |
try { |
|
299 |
provider = (OGRStoreProvider) provFact.createProvider(params, null); |
|
300 |
} catch (InitializeException e1) { |
|
301 |
// TODO Auto-generated catch block |
|
302 |
e1.printStackTrace(); |
|
303 |
} |
|
304 |
|
|
305 |
if(provider != null){ |
|
306 |
aux.concat("Running under GDAL/OGR "+ provider.getOGRVersion() +" version.\n"); |
|
307 |
try { |
|
308 |
provider.open(); |
|
309 |
if(((OGRStoreParameters)provider.getParameters()).getDriver() != null){ |
|
310 |
aux.concat("Opened file '"+ file.getName() +"' with "+ ((OGRStoreParameters)provider.getParameters()).getDriver() +" driver.\n"); |
|
311 |
}else{ |
|
312 |
List<String> availableDrivers = provider.getAvailableDrivers(); |
|
313 |
aux.concat("ERROR: This file cannot be opened. Available drivers are the following:\n"); |
|
314 |
for(int i = 0; i<provider.getDriverCount(); i++){ |
|
315 |
aux.concat(provider.getDriver(i)+" "); |
|
316 |
} |
|
317 |
} |
|
318 |
} catch (OpenException e1) { |
|
319 |
// TODO Auto-generated catch block |
|
320 |
e1.printStackTrace(); |
|
321 |
} |
|
322 |
} |
|
323 |
|
|
324 |
|
|
325 |
for(int index = 0; index < poDS.GetLayerCount();index++){ |
|
326 |
Layer layer = poDS.GetLayer(index); |
|
327 |
for(int feats = 0; feats < layer.GetFeatureCount();feats++){ |
|
328 |
Feature feat = layer.GetFeature(feats); |
|
329 |
FeatureDefn definition = feat.GetDefnRef(); |
|
330 |
for(int fields = 0; fields < definition.GetFieldCount();fields++){ |
|
331 |
FieldDefn field = definition.GetFieldDefn(fields); |
|
332 |
String fieldName = field.GetName(); |
|
333 |
int fieldType = field.GetFieldType(); |
|
334 |
switch(fieldType){ |
|
335 |
// Ejemplo -> Type 1 : Integer |
|
336 |
case 1: |
|
337 |
// Crear una feature en la vista |
|
338 |
int feature = feat.GetFieldAsInteger(field.GetFieldTypeName(fieldType)); |
|
339 |
|
|
340 |
// A?adirla |
|
341 |
break; |
|
342 |
default: |
|
343 |
break; |
|
344 |
} |
|
345 |
} |
|
346 |
} |
|
347 |
} |
|
348 |
|
|
349 |
|
|
350 |
|
|
351 |
} |
|
352 |
|
|
353 |
}); |
|
354 |
} |
|
355 |
|
|
356 |
return btnConnect; |
|
357 |
} |
|
358 |
|
|
359 |
private JPanel getDescriptionPanel() { |
|
360 |
if (jPanel == null) { |
|
361 |
jPanel = new JPanel(); |
|
362 |
jPanel.setLayout(null); |
|
363 |
jPanel.setPreferredSize(new java.awt.Dimension(480, 330)); |
|
364 |
jPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, |
|
365 |
PluginServices.getText(this, "descripcion"), |
|
366 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
|
367 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
|
368 |
jPanel.setBounds(15, 5, 480, 407); |
|
369 |
jPanel.add(getJScrollPane(), null); |
|
370 |
jPanel.add(getPnlName(), null); |
|
371 |
} |
|
372 |
|
|
373 |
return jPanel; |
|
374 |
} |
|
375 |
|
|
376 |
private JScrollPane getJScrollPane() { |
|
377 |
if (jScrollPane == null) { |
|
378 |
jScrollPane = new JScrollPane(); |
|
379 |
jScrollPane.setViewportView(getTxtAbstract()); |
|
380 |
jScrollPane.setPreferredSize(new java.awt.Dimension(450, 60)); |
|
381 |
jScrollPane.setBounds(10, 47, 457, 247); |
|
382 |
} |
|
383 |
|
|
384 |
return jScrollPane; |
|
385 |
} |
|
386 |
|
|
387 |
private JTextArea getTxtAbstract() { |
|
388 |
if (txtAbstract == null) { |
|
389 |
txtAbstract = new JTextArea(); |
|
390 |
txtAbstract.setWrapStyleWord(true); |
|
391 |
txtAbstract.setColumns(30); |
|
392 |
txtAbstract.setLineWrap(true); |
|
393 |
txtAbstract.setEditable(false); |
|
394 |
} |
|
395 |
|
|
396 |
return txtAbstract; |
|
397 |
} |
|
398 |
|
|
399 |
private JPanel getPnlName() { |
|
400 |
if (pnlName == null) { |
|
401 |
pnlName = new JPanel(); |
|
402 |
pnlName.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 0)); |
|
403 |
pnlName.setBounds(new java.awt.Rectangle(9, 19, 452, 24)); |
|
404 |
pnlName.add(getJLabel1(), null); |
|
405 |
pnlName.add(getLblTitle(), null); |
|
406 |
} |
|
407 |
return pnlName; |
|
408 |
} |
|
409 |
|
|
410 |
private JLabel getJLabel1() { |
|
411 |
if (jLabel1 == null) { |
|
412 |
jLabel1 = new javax.swing.JLabel(); |
|
413 |
jLabel1.setText(PluginServices.getText(this, "nombre") + ":"); |
|
414 |
jLabel1.setBounds(15, 26, 65, 15); |
|
415 |
} |
|
416 |
|
|
417 |
return jLabel1; |
|
418 |
} |
|
419 |
|
|
420 |
private JLabel getLblTitle() { |
|
421 |
if (lblTitle == null) { |
|
422 |
lblTitle = new javax.swing.JLabel(); |
|
423 |
lblTitle.setText("-"); |
|
424 |
lblTitle.setPreferredSize(new java.awt.Dimension(350, 16)); |
|
425 |
lblTitle.setBounds(82, 26, 350, 16); |
|
426 |
} |
|
427 |
|
|
428 |
return lblTitle; |
|
429 |
} |
|
430 |
|
|
431 |
@Override |
|
432 |
public DataStoreParameters[] getParameters() { |
|
433 |
return null; |
|
434 |
} |
|
435 |
|
|
436 |
@Override |
|
437 |
public void initWizard() { |
|
438 |
|
|
439 |
} |
|
440 |
|
|
441 |
public void mouseClicked(MouseEvent e) { |
|
442 |
|
|
443 |
} |
|
444 |
|
|
445 |
public void mouseEntered(MouseEvent e) { |
|
446 |
|
|
447 |
} |
|
448 |
|
|
449 |
public void mouseExited(MouseEvent e) { |
|
450 |
|
|
451 |
} |
|
452 |
|
|
453 |
public void mousePressed(MouseEvent e) { |
|
454 |
getWizardListenerSupport().callStateChanged(true); |
|
455 |
} |
|
456 |
|
|
457 |
public void mouseReleased(MouseEvent e) { |
|
458 |
|
|
459 |
} |
|
460 |
|
|
461 |
/** |
|
462 |
* Get a resource as a File from a path name in the |
|
463 |
* class path. |
|
464 |
* |
|
465 |
* @param pathname |
|
466 |
* |
|
467 |
* @return resource as a File |
|
468 |
*/ |
|
469 |
private File getResource(String pathname) { |
|
470 |
URL res = this.getClass().getClassLoader().getResource(pathname); |
|
471 |
return new File(res.getPath()); |
|
472 |
} |
|
473 |
|
|
474 |
private FeatureStore openFile(File shape) { |
|
475 |
// try { |
|
476 |
// |
|
477 |
// DataStoreParameters parameters; |
|
478 |
// DataManager manager = DALLocator.getDataManager(); |
|
479 |
// |
|
480 |
// parameters = manager.createStoreParameters("Shape"); |
|
481 |
// parameters.setDynValue("shpfile", shape); |
|
482 |
// parameters.setDynValue("crs", "EPSG:23030"); |
|
483 |
// return (FeatureStore) manager.openStore("Shape", parameters); |
|
484 |
// |
|
485 |
// } catch (InitializeException e) { |
|
486 |
// logger.error(e.getMessageStack()); |
|
487 |
// throw new RuntimeException(e); |
|
488 |
// } catch (ProviderNotRegisteredException e) { |
|
489 |
// logger.error(e.getMessageStack()); |
|
490 |
// throw new RuntimeException(e); |
|
491 |
// } catch (ValidateDataParametersException e) { |
|
492 |
// logger.error(e.getMessageStack()); |
|
493 |
// throw new RuntimeException(e); |
|
494 |
// } |
|
495 |
|
|
496 |
DataManager dataManager = DALLocator.getDataManager(); |
|
497 |
|
|
498 |
|
|
499 |
try { |
|
500 |
if(this.ogrStoreParameters == null){ |
|
501 |
this.ogrStoreParameters = |
|
502 |
(OGRStoreParameters) dataManager.createStoreParameters(OGRStoreProvider.NAME); |
|
503 |
} |
|
504 |
this.ogrStoreParameters.setFile(file); |
|
505 |
return (FeatureStore) dataManager.openStore( |
|
506 |
OGRStoreProvider.NAME, this.ogrStoreParameters); |
|
507 |
} catch (ValidateDataParametersException e) { |
|
508 |
e.printStackTrace(); |
|
509 |
} catch (InitializeException e) { |
|
510 |
e.printStackTrace(); |
|
511 |
} catch (ProviderNotRegisteredException e) { |
|
512 |
e.printStackTrace(); |
|
513 |
} |
|
514 |
return null; |
|
515 |
|
|
516 |
} |
|
517 |
} |
|
0 | 518 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.gpx/src/main/java/org/gvsig/gdal/app/gpx/gui/utils/JFileField.java | ||
---|---|---|
1 |
package org.gvsig.gdal.app.gpx.gui.utils; |
|
2 |
|
|
3 |
import java.awt.Dimension; |
|
4 |
import java.awt.FlowLayout; |
|
5 |
import java.awt.Rectangle; |
|
6 |
import java.awt.event.ActionEvent; |
|
7 |
import java.awt.event.ActionListener; |
|
8 |
|
|
9 |
import javax.swing.JButton; |
|
10 |
import javax.swing.JFileChooser; |
|
11 |
import javax.swing.JLabel; |
|
12 |
import javax.swing.JPanel; |
|
13 |
import javax.swing.JTextField; |
|
14 |
|
|
15 |
public class JFileField extends JPanel { |
|
16 |
private String textFieldLabel; |
|
17 |
private String buttonLabel; |
|
18 |
|
|
19 |
private JLabel label; |
|
20 |
private JTextField textField; |
|
21 |
private JButton button; |
|
22 |
|
|
23 |
private JFileChooser fileChooser; |
|
24 |
|
|
25 |
private int mode; |
|
26 |
public static final int MODE_OPEN = 1; |
|
27 |
public static final int MODE_SAVE = 2; |
|
28 |
|
|
29 |
public JFileField(String textFieldLabel, String buttonLabel) { |
|
30 |
this.textFieldLabel = textFieldLabel; |
|
31 |
this.buttonLabel = buttonLabel; |
|
32 |
|
|
33 |
fileChooser = new JFileChooser(); |
|
34 |
|
|
35 |
setLayout(new FlowLayout(FlowLayout.CENTER, 2, 0)); |
|
36 |
|
|
37 |
if(textFieldLabel!=null){ |
|
38 |
label = new JLabel(textFieldLabel); |
|
39 |
add(label); |
|
40 |
} |
|
41 |
|
|
42 |
textField = new JTextField(37); |
|
43 |
textField.setEditable(false); |
|
44 |
button = new JButton(buttonLabel); |
|
45 |
button.setPreferredSize(new Dimension(35, 22)); |
|
46 |
|
|
47 |
button.addActionListener(new ActionListener() { |
|
48 |
public void actionPerformed(ActionEvent evt) { |
|
49 |
buttonActionPerformed(evt); |
|
50 |
} |
|
51 |
}); |
|
52 |
|
|
53 |
add(textField); |
|
54 |
add(button); |
|
55 |
|
|
56 |
} |
|
57 |
|
|
58 |
private void buttonActionPerformed(ActionEvent evt) { |
|
59 |
if (mode == MODE_OPEN) { |
|
60 |
if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { |
|
61 |
textField.setText(fileChooser.getSelectedFile().getName()); |
|
62 |
} |
|
63 |
} else if (mode == MODE_SAVE) { |
|
64 |
if (fileChooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) { |
|
65 |
textField.setText(fileChooser.getSelectedFile().getName()); |
|
66 |
} |
|
67 |
} |
|
68 |
} |
|
69 |
|
|
70 |
public void addFileTypeFilter(String extension, String description) { |
|
71 |
FileTypeFilter filter = new FileTypeFilter(extension, description); |
|
72 |
fileChooser.addChoosableFileFilter(filter); |
|
73 |
} |
|
74 |
|
|
75 |
public void setMode(int mode) { |
|
76 |
this.mode = mode; |
|
77 |
} |
|
78 |
|
|
79 |
public String getSelectedFilePath() { |
|
80 |
return textField.getText(); |
|
81 |
} |
|
82 |
|
|
83 |
public JFileChooser getFileChooser() { |
|
84 |
return this.fileChooser; |
|
85 |
} |
|
86 |
} |
|
0 | 87 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.gpx/src/main/java/org/gvsig/gdal/app/gpx/gui/utils/FileTypeFilter.java | ||
---|---|---|
1 |
package org.gvsig.gdal.app.gpx.gui.utils; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
import javax.swing.filechooser.FileFilter; |
|
5 |
|
|
6 |
public class FileTypeFilter extends FileFilter { |
|
7 |
|
|
8 |
private String extension; |
|
9 |
private String description; |
|
10 |
|
|
11 |
public FileTypeFilter(String extension, String description) { |
|
12 |
this.extension = extension; |
|
13 |
this.description = description; |
|
14 |
} |
|
15 |
|
|
16 |
@Override |
|
17 |
public boolean accept(File file) { |
|
18 |
if (file.isDirectory()) { |
|
19 |
return true; |
|
20 |
} |
|
21 |
return file.getName().toLowerCase().endsWith(extension); |
|
22 |
} |
|
23 |
|
|
24 |
public String getDescription() { |
|
25 |
return description + String.format(" (*%s)", extension); |
|
26 |
} |
|
27 |
} |
|
0 | 28 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.gpx/src/main/java/org/gvsig/gdal/app/gpx/GPXClientExtension.java | ||
---|---|---|
1 |
/* |
|
2 |
* Geographic Information System of the Valencian Government |
|
3 |
* |
|
4 |
* Copyright (C) 2012 |
|
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 |
package org.gvsig.gdal.app.gpx; |
|
23 |
|
|
24 |
import org.gvsig.andami.plugins.Extension; |
|
25 |
import org.slf4j.Logger; |
|
26 |
import org.slf4j.LoggerFactory; |
|
27 |
|
|
28 |
/** |
|
29 |
* Extension for adding driver support to gvSIG. |
|
30 |
* @author Jos? Bad?a (jbadia@scolab.es) |
|
31 |
*/ |
|
32 |
public class GPXClientExtension extends Extension { |
|
33 |
private Logger log = LoggerFactory.getLogger(GPXClientExtension.class); |
|
34 |
|
|
35 |
public void initialize() { |
|
36 |
// IconThemeHelper.registerIcon(null, "icon-layer-osm", this); |
|
37 |
} |
|
38 |
|
|
39 |
/* |
|
40 |
* (non-Javadoc) |
|
41 |
* @see org.gvsig.andami.plugins.Extension#postInitialize() |
|
42 |
*/ |
|
43 |
public void postInitialize() { |
|
44 |
// addAboutInfo(); |
|
45 |
// AddLayer.addWizard(OGRWizard.class); |
|
46 |
// |
|
47 |
// DataManagerProviderServices dataman = (DataManagerProviderServices) DALLocator |
|
48 |
// .getDataManager(); |
|
49 |
// try { |
|
50 |
// if (!dataman.getStoreProviders().contains(OGRStoreProvider.NAME)) { |
|
51 |
// dataman.registerStoreProviderFactory( |
|
52 |
// new OGRStoreProviderFactory( |
|
53 |
// OGRStoreProvider.NAME, |
|
54 |
// OGRStoreProvider.DESCRIPTION)); |
|
55 |
// } |
|
56 |
// } catch (RuntimeException e) { |
|
57 |
// log.debug(e.getMessage()); |
|
58 |
// } |
|
59 |
// |
|
60 |
// try { |
|
61 |
// DALFileLocator.getFilesystemServerExplorerManager() |
|
62 |
// .registerProvider(OGRStoreProvider.NAME, |
|
63 |
// OGRStoreProvider.DESCRIPTION, |
|
64 |
// OGRFilesystemServerProvider.class); |
|
65 |
// } catch (RuntimeException e) { |
|
66 |
// log.debug(e.getMessage()); |
|
67 |
// } |
|
68 |
|
|
69 |
} |
|
70 |
|
|
71 |
public void execute(String actionCommand) { |
|
72 |
|
|
73 |
} |
|
74 |
|
|
75 |
public boolean isEnabled() { |
|
76 |
return true; |
|
77 |
} |
|
78 |
|
|
79 |
public boolean isVisible() { |
|
80 |
return true; |
|
81 |
} |
|
82 |
|
|
83 |
// private void addAboutInfo() { |
|
84 |
// ApplicationManager application = ApplicationLocator.getManager(); |
|
85 |
// |
|
86 |
// AboutManager about = application.getAbout(); |
|
87 |
// about.addDeveloper("Nacho Brodin", getClass().getClassLoader() |
|
88 |
// .getResource("about/osm-about.html"), 2); |
|
89 |
// |
|
90 |
// AboutParticipant participant = about.getDeveloper("Nacho Brodin"); |
|
91 |
// participant.addContribution( |
|
92 |
// "OSM", |
|
93 |
// "Open Street Map client for gvSIG", |
|
94 |
// 2012,1,1, |
|
95 |
// 2012,1,15 |
|
96 |
// ); |
|
97 |
// } |
|
98 |
} |
|
0 | 99 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.gpx/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<libraries library-dir="lib"> |
|
4 |
</libraries> |
|
5 |
<depends plugin-name="org.gvsig.app.mainplugin"/> |
|
6 |
<depends plugin-name="org.gvsig.gdal.app.mainplugin"/> |
|
7 |
<resourceBundle name="text"/> |
|
8 |
<extensions> |
|
9 |
<extension class-name="org.gvsig.gdal.app.gpx.GPXClientExtension" |
|
10 |
description="GDAL GPX Driver" |
|
11 |
active="true"> |
|
12 |
</extension> |
|
13 |
</extensions> |
|
14 |
</plugin-config> |
|
0 | 15 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
3 |
|
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.gdal.app</artifactId> |
|
6 |
<packaging>pom</packaging> |
|
7 |
<name>org.gvsig.gdal.app</name> |
|
8 |
<parent> |
|
9 |
<groupId>org.gvsig</groupId> |
|
10 |
<artifactId>org.gvsig.gdal</artifactId> |
|
11 |
<version>1.0.66</version> |
|
12 |
</parent> |
|
13 |
|
|
14 |
<properties> |
|
15 |
<gvsig.install.plugin>false</gvsig.install.plugin> |
|
16 |
<gvsig.install.plugin.package>true</gvsig.install.plugin.package> |
|
17 |
<gvsig.package.info.state>testing</gvsig.package.info.state> |
|
18 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
19 |
<gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem> |
|
20 |
<gvsig.package.info.architecture>all</gvsig.package.info.architecture> |
|
21 |
<gvsig.package.info.categories>Formats</gvsig.package.info.categories> |
|
22 |
<gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-gdal/pool/</gvsig.package.info.poolURL> |
|
23 |
<gvsig.package.info.dependencies /> |
|
24 |
<gvsig.package.info.codealias /> |
|
25 |
</properties> |
|
26 |
|
|
27 |
<modules> |
|
28 |
<module>org.gvsig.gdal.app.mainplugin</module> |
|
29 |
<!-- |
|
30 |
<module>org.gvsig.gdal.app.gpx</module> |
|
31 |
--> |
|
32 |
<module>org.gvsig.gdal.app.ogr.gml</module> |
|
33 |
<module>org.gvsig.gdal.app.ogr.mainplugin</module> |
|
34 |
</modules> |
|
35 |
</project> |
|
0 | 36 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.mainplugin/org.gvsig.gdal.app.mainplugin.lin_ubuntu_14.04.x86/buildNumber.properties | ||
---|---|---|
1 |
#Thu Oct 03 13:17:19 CEST 2019 |
|
2 |
buildNumber=70 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.mainplugin/org.gvsig.gdal.app.mainplugin.lin_ubuntu_14.04.x86/src/main/resources-plugin/autorun.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# |
|
3 |
# gvSIG. Desktop Geographic Information System. |
|
4 |
# |
|
5 |
# Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
# |
|
7 |
# This program is free software; you can redistribute it and/or |
|
8 |
# modify it under the terms of the GNU General Public License |
|
9 |
# as published by the Free Software Foundation; either version 3 |
|
10 |
# of the License, or (at your option) any later version. |
|
11 |
# |
|
12 |
# This program is distributed in the hope that it will be useful, |
|
13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
# GNU General Public License for more details. |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License |
|
18 |
# along with this program; if not, write to the Free Software |
|
19 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
# MA 02110-1301, USA. |
|
21 |
# |
|
22 |
# For any additional information, do not hesitate to contact us |
|
23 |
# at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
# |
|
25 |
|
|
26 |
|
|
27 |
# |
|
28 |
# Plugin autorun |
|
29 |
# |
|
30 |
|
|
31 |
PLUGIN_NAME=$(basename "$PLUGIN_FOLDER") |
|
32 |
|
|
33 |
logger_info "Using gdal from OSGEO live 9.0 (Ubuntu 14.04.3 x86_64)" |
|
34 |
|
|
35 |
add_library_path "${PLUGIN_FOLDER}/gdal" |
|
36 |
add_classpath "${PLUGIN_FOLDER}/gdal/java/gdal.jar" |
|
37 |
#export GDAL_DATA="${PLUGIN_FOLDER}/gdal/data-1.11.2" |
|
38 |
export GDAL_DATA="${PLUGIN_FOLDER}/gdal/data-2.2.1" |
|
39 |
|
|
40 |
list_shared_library_dependencies "$PLUGIN_FOLDER/gdal/libgdaljni.so" |
|
41 |
list_shared_library_dependencies "$PLUGIN_FOLDER/gdal/libgdalconstjni.so" |
|
42 |
list_shared_library_dependencies "$PLUGIN_FOLDER/gdal/libogrjni.so" |
|
43 |
list_shared_library_dependencies "$PLUGIN_FOLDER/gdal/libosrjni.so" |
|
44 |
list_shared_library_dependencies "$PLUGIN_FOLDER/gdal/libproj.so.0" |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.mainplugin/org.gvsig.gdal.app.mainplugin.lin_ubuntu_14.04.x86/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
|
|
27 |
<assembly> |
|
28 |
<id>gvsig-plugin-package</id> |
|
29 |
<formats> |
|
30 |
<format>zip</format> |
|
31 |
</formats> |
|
32 |
<baseDirectory>${gvsig.package.info.code}</baseDirectory> |
|
33 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
34 |
<files> |
|
35 |
<file> |
|
36 |
<source>target/package.info</source> |
|
37 |
</file> |
|
38 |
</files> |
|
39 |
|
|
40 |
<fileSets> |
|
41 |
<fileSet> |
|
42 |
<directory>target/org.gvsig.gdal.app.mainplugin.common</directory> |
|
43 |
<outputDirectory>.</outputDirectory> |
|
44 |
<excludes> |
|
45 |
<exclude>package.info</exclude> |
|
46 |
</excludes> |
|
47 |
</fileSet> |
|
48 |
<fileSet> |
|
49 |
<directory>target/native/gdal</directory> |
|
50 |
<outputDirectory>./gdal</outputDirectory> |
|
51 |
<excludes> |
|
52 |
<exclude>**/libdl.so.2</exclude> |
|
53 |
</excludes> |
|
54 |
</fileSet> |
|
55 |
<fileSet> |
|
56 |
<directory>src/main/resources-plugin</directory> |
|
57 |
<outputDirectory>.</outputDirectory> |
|
58 |
</fileSet> |
|
59 |
</fileSets> |
|
60 |
|
|
61 |
</assembly> |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.mainplugin/org.gvsig.gdal.app.mainplugin.lin_ubuntu_14.04.x86/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.gdal.app.mainplugin.lin_ubuntu_14.04.x86</artifactId> |
|
5 |
<packaging>jar</packaging> |
|
6 |
|
|
7 |
<parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.gdal.app.mainplugin</artifactId> |
|
10 |
<version>1.0.66</version> |
|
11 |
</parent> |
|
12 |
|
|
13 |
|
|
14 |
<properties> |
|
15 |
<gvsig.package.info.operatingSystem>lin_ubuntu_14.04</gvsig.package.info.operatingSystem> |
|
16 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
17 |
|
|
18 |
<gdal.classifier>osgeolive-9.0-ubuntu-14.04.3-i686</gdal.classifier> |
|
19 |
<gdal.version>1.11.2.5</gdal.version> |
|
20 |
</properties> |
|
21 |
|
|
22 |
<dependencyManagement> |
|
23 |
<dependencies> |
|
24 |
<dependency> |
|
25 |
<groupId>org.gdal</groupId> |
|
26 |
<artifactId>gdal</artifactId> |
|
27 |
<version>${gdal.version}</version> |
|
28 |
<classifier>${gdal.classifier}</classifier> |
|
29 |
<scope>runtime</scope> |
|
30 |
<type>tar.gz</type> |
|
31 |
</dependency> |
|
32 |
<dependency> |
|
33 |
<groupId>org.gdal</groupId> |
|
34 |
<artifactId>gdal</artifactId> |
|
35 |
<version>${gdal.version}</version> |
|
36 |
<!-- |
|
37 |
<classifier>${gdal.classifier}</classifier> |
|
38 |
--> |
|
39 |
<scope>runtime</scope> |
|
40 |
<type>jar</type> |
|
41 |
</dependency> |
|
42 |
</dependencies> |
|
43 |
</dependencyManagement> |
|
44 |
|
|
45 |
|
|
46 |
<dependencies> |
|
47 |
<dependency> |
|
48 |
<groupId>org.gvsig</groupId> |
|
49 |
<artifactId>org.gvsig.gdal.app.mainplugin.common</artifactId> |
|
50 |
<type>zip</type> |
|
51 |
</dependency> |
|
52 |
<dependency> |
|
53 |
<groupId>org.gdal</groupId> |
|
54 |
<artifactId>gdal</artifactId> |
|
55 |
<classifier>${gdal.classifier}</classifier> |
|
56 |
<scope>runtime</scope> |
|
57 |
<type>tar.gz</type> |
|
58 |
</dependency> |
|
59 |
<dependency> |
|
60 |
<groupId>org.gdal</groupId> |
|
61 |
<artifactId>gdal</artifactId> |
|
62 |
<!-- |
|
63 |
<classifier>${gdal.classifier}</classifier> |
|
64 |
--> |
|
65 |
<scope>runtime</scope> |
|
66 |
<type>jar</type> |
|
67 |
</dependency> |
|
68 |
</dependencies> |
|
69 |
|
|
70 |
|
|
71 |
<build> |
|
72 |
<plugins> |
|
73 |
|
|
74 |
<plugin> |
|
75 |
<groupId>org.apache.maven.plugins</groupId> |
|
76 |
<artifactId>maven-dependency-plugin</artifactId> |
|
77 |
<executions> |
|
78 |
<execution> |
|
79 |
<id>unpack</id> |
|
80 |
<phase>process-sources</phase> |
|
81 |
<goals> |
|
82 |
<goal>unpack</goal> |
|
83 |
</goals> |
|
84 |
<configuration> |
|
85 |
<artifactItems> |
|
86 |
<artifactItem> |
|
87 |
<groupId>org.gvsig</groupId> |
|
88 |
<artifactId>org.gvsig.gdal.app.mainplugin.common</artifactId> |
|
89 |
<type>zip</type> |
|
90 |
<overWrite>true</overWrite> |
|
91 |
<outputDirectory>target</outputDirectory> |
|
92 |
</artifactItem> |
|
93 |
<artifactItem> |
|
94 |
<groupId>org.gdal</groupId> |
|
95 |
<artifactId>gdal</artifactId> |
|
96 |
<version>${gdal.version}</version> |
|
97 |
<classifier>${gdal.classifier}</classifier> |
|
98 |
<type>tar.gz</type> |
|
99 |
<overWrite>true</overWrite> |
|
100 |
<outputDirectory>target/native/gdal</outputDirectory> |
|
101 |
</artifactItem> |
|
102 |
</artifactItems> |
|
103 |
</configuration> |
|
104 |
</execution> |
|
105 |
</executions> |
|
106 |
</plugin> |
|
107 |
|
|
108 |
</plugins> |
|
109 |
</build> |
|
110 |
|
|
111 |
<profiles> |
|
112 |
<profile> |
|
113 |
<id>install_plugin_for_linux_x86</id> |
|
114 |
<activation> |
|
115 |
<os> |
|
116 |
<family>Linux</family> |
|
117 |
<arch>x86</arch> |
|
118 |
</os> |
|
119 |
</activation> |
|
120 |
<properties> |
|
121 |
<gvsig.install.plugin>true</gvsig.install.plugin> |
|
122 |
</properties> |
|
123 |
</profile> |
|
124 |
</profiles> |
|
125 |
|
|
126 |
</project> |
|
0 | 127 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.mainplugin/org.gvsig.gdal.app.mainplugin.all.all/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.gdal.app.mainplugin.all.all</artifactId> |
|
5 |
<packaging>jar</packaging> |
|
6 |
|
|
7 |
<parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.gdal.app.mainplugin</artifactId> |
|
10 |
<version>1.0.66</version> |
|
11 |
</parent> |
|
12 |
|
|
13 |
<dependencies> |
|
14 |
<dependency> |
|
15 |
<groupId>org.gvsig</groupId> |
|
16 |
<artifactId>org.gvsig.gdal.app.mainplugin.common</artifactId> |
|
17 |
<type>zip</type> |
|
18 |
</dependency> |
|
19 |
<dependency> |
|
20 |
<groupId>org.gdal</groupId> |
|
21 |
<artifactId>gdal</artifactId> |
|
22 |
<scope>runtime</scope> |
|
23 |
</dependency> |
|
24 |
</dependencies> |
|
25 |
|
|
26 |
<properties> |
|
27 |
<!-- Package info property values --> |
|
28 |
<!-- Default values in org.gvsig.desktop --> |
|
29 |
<gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem> |
|
30 |
<gvsig.package.info.architecture>all</gvsig.package.info.architecture> |
|
31 |
<gvsig.install.plugin>true</gvsig.install.plugin> |
|
32 |
<gvsig.install.plugin.package>true</gvsig.install.plugin.package> |
|
33 |
</properties> |
|
34 |
|
|
35 |
<build> |
|
36 |
<plugins> |
|
37 |
|
|
38 |
<plugin> |
|
39 |
<groupId>org.apache.maven.plugins</groupId> |
|
40 |
<artifactId>maven-dependency-plugin</artifactId> |
|
41 |
<executions> |
|
42 |
<execution> |
|
43 |
<id>unpack</id> |
|
44 |
<phase>process-sources</phase> |
|
45 |
<goals> |
|
46 |
<goal>unpack</goal> |
|
47 |
</goals> |
|
48 |
<configuration> |
|
49 |
<artifactItems> |
|
50 |
<artifactItem> |
|
51 |
<groupId>org.gvsig</groupId> |
|
52 |
<artifactId>org.gvsig.gdal.app.mainplugin.common</artifactId> |
|
53 |
<type>zip</type> |
|
54 |
<overWrite>true</overWrite> |
|
55 |
<outputDirectory>target</outputDirectory> |
|
56 |
</artifactItem> |
|
57 |
</artifactItems> |
|
58 |
</configuration> |
|
59 |
</execution> |
|
60 |
</executions> |
|
61 |
</plugin> |
|
62 |
|
|
63 |
</plugins> |
|
64 |
</build> |
|
65 |
|
|
66 |
</project> |
|
67 |
|
|
0 | 68 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.mainplugin/org.gvsig.gdal.app.mainplugin.all.all/buildNumber.properties | ||
---|---|---|
1 |
#Thu Oct 03 13:17:19 CEST 2019 |
|
2 |
buildNumber=73 |
|
0 | 3 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.mainplugin/org.gvsig.gdal.app.mainplugin.all.all/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${gvsig.package.info.code}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/package.info</source> |
|
36 |
</file> |
|
37 |
</files> |
|
38 |
|
|
39 |
<fileSets> |
|
40 |
<fileSet> |
|
41 |
<directory>target/org.gvsig.gdal.app.mainplugin.common</directory> |
|
42 |
<outputDirectory>.</outputDirectory> |
|
43 |
<excludes> |
|
44 |
<exclude>package.info</exclude> |
|
45 |
</excludes> |
|
46 |
</fileSet> |
|
47 |
<fileSet> |
|
48 |
<directory>src/main/resources-plugin</directory> |
|
49 |
<outputDirectory>.</outputDirectory> |
|
50 |
</fileSet> |
|
51 |
</fileSets> |
|
52 |
|
|
53 |
|
|
54 |
<dependencySets> |
|
55 |
<dependencySet> |
|
56 |
<useProjectArtifact>false</useProjectArtifact> |
|
57 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
58 |
<outputDirectory>lib</outputDirectory> |
|
59 |
<includes> |
|
60 |
<include>org.gdal:gdal:jar</include> |
|
61 |
</includes> |
|
62 |
</dependencySet> |
|
63 |
</dependencySets> |
|
64 |
|
|
65 |
</assembly> |
|
66 |
|
|
67 |
|
|
68 |
|
|
0 | 69 |
tags/org.gvsig.gdal-1.0.66/org.gvsig.gdal.app/org.gvsig.gdal.app.mainplugin/org.gvsig.gdal.app.mainplugin.all.all/src/main/java/org/gvsig/gdal/app/mainplugin/all/all/GdalExtension.java | ||
---|---|---|
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 |
*/ |
Also available in: Unified diff