Revision 19196 trunk/prototypes/mobile/desktop/extensions/extExportMobile/src/es/prodevelop/gvsig/exportMobile/layerexporters/WMSExporter.java
WMSExporter.java | ||
---|---|---|
10 | 10 |
import es.prodevelop.gvsig.exportMobile.xml.XMLwms; |
11 | 11 |
|
12 | 12 |
/** |
13 |
* Create a new xml file with the WMSCONFIG into the output directory selected
|
|
13 |
* Exports a gvsig wms layer to a gvsig mobile wms layer
|
|
14 | 14 |
* @author Anabel Moreno |
15 | 15 |
* |
16 | 16 |
*/ |
17 | 17 |
public class WMSExporter extends ExporterSubTask{ |
18 | 18 |
|
19 |
/** |
|
20 |
* Constructor with all the required attributes |
|
21 |
* @param parentProcess |
|
22 |
* @param layer |
|
23 |
* @param rect |
|
24 |
* @param xml |
|
25 |
*/ |
|
19 | 26 |
public WMSExporter(AbstractMonitorableTask parentProcess, FLayer layer, |
20 | 27 |
Rectangle2D rect, XmlBuilder xml) { |
21 | 28 |
super(parentProcess, layer, rect, xml); |
... | ... | |
24 | 31 |
|
25 | 32 |
|
26 | 33 |
/** |
27 |
* export the new xml file |
|
28 |
* @param layerWMS |
|
29 |
* @param outfile |
|
30 |
* @param boxWMS |
|
34 |
* Adds to the xml the layer attributes |
|
31 | 35 |
*/ |
32 | 36 |
public void export(){ |
33 | 37 |
initXML(); |
... | ... | |
39 | 43 |
closeXML(); |
40 | 44 |
} |
41 | 45 |
|
42 |
@Override |
|
46 |
/** |
|
47 |
* Number of steps the layer will report |
|
48 |
*/ |
|
43 | 49 |
public int getFinalStep() { |
44 |
// TODO Auto-generated method stub |
|
45 | 50 |
return 100; |
46 | 51 |
} |
47 | 52 |
|
48 |
@Override |
|
53 |
/** |
|
54 |
* Starts the exportation task |
|
55 |
*/ |
|
49 | 56 |
public void run() { |
50 |
// TODO Auto-generated method stub |
|
51 | 57 |
export(); |
52 | 58 |
} |
53 | 59 |
} |
Also available in: Unified diff