gvsig-projects-pool / org.gvsig.lidar.app / org.gvsig.lidar.app.mainplugin / src / main / java / org / gvsig / exportto / swing / prov / lidar / ExporttoLASProviderFactory.java @ 281
History | View | Annotate | Download (2.54 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2016 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or modify it under
|
7 |
* the terms of the GNU General Public License as published by the Free Software
|
8 |
* Foundation; either version 3 of the License, or (at your option) any later
|
9 |
* version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful, but WITHOUT
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
13 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
14 |
* details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License along with
|
17 |
* this program; if not, write to the Free Software Foundation, Inc., 51
|
18 |
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us at info AT
|
21 |
* gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
package org.gvsig.exportto.swing.prov.lidar; |
24 |
|
25 |
import org.cresques.cts.IProjection; |
26 |
import org.gvsig.exportto.swing.ExporttoSwingManager; |
27 |
import org.gvsig.exportto.swing.spi.AbstractExporttoProviderFactory; |
28 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
29 |
import org.gvsig.i18n.Messages; |
30 |
import org.gvsig.tools.dynobject.DynObject; |
31 |
import org.gvsig.tools.service.ServiceException; |
32 |
import org.gvsig.tools.service.spi.Provider; |
33 |
import org.gvsig.tools.service.spi.ProviderServices; |
34 |
|
35 |
/**
|
36 |
* Factory of file {@link ExportoProvider} objects.
|
37 |
*
|
38 |
* @author <a href="mailto:cmartinez@scolab.es">Cesar Martinez Izquierdo</a>
|
39 |
*/
|
40 |
public class ExporttoLASProviderFactory extends |
41 |
AbstractExporttoProviderFactory { |
42 |
|
43 |
private static final String PROVIDER_NAME = "LAS"; |
44 |
|
45 |
public ExporttoLASProviderFactory() {
|
46 |
super(new int[]{ |
47 |
ExporttoSwingManager.VECTORIAL_TABLE_WITHOUT_GEOMETRY, |
48 |
ExporttoSwingManager.VECTORIAL_TABLE_WITH_GEOMETRY}); |
49 |
} |
50 |
|
51 |
public String getName() { |
52 |
return PROVIDER_NAME;
|
53 |
} |
54 |
|
55 |
public String getDescription() { |
56 |
return Messages.getText("general_exporter_description", |
57 |
new String[]{"LAS file"}); |
58 |
} |
59 |
|
60 |
public String getLabel() { |
61 |
return Messages.getText("general_exporter_label", |
62 |
new String[]{"LAS file"}); |
63 |
} |
64 |
|
65 |
|
66 |
public Provider create(DynObject parameters, ProviderServices services) throws ServiceException { |
67 |
return new ExporttoLASProvider(services, |
68 |
(FeatureStore) parameters.getDynValue(PARAMETER_FEATURESTORE), |
69 |
(IProjection) parameters.getDynValue(PARAMETER_PROJECTION)); |
70 |
} |
71 |
|
72 |
} |