Revision 3156 branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizard/WizardWMS.java
WizardWMS.java | ||
---|---|---|
49 | 49 |
import java.awt.geom.Rectangle2D; |
50 | 50 |
import java.net.MalformedURLException; |
51 | 51 |
import java.net.URL; |
52 |
import java.util.ArrayList; |
|
53 |
import java.util.HashSet; |
|
54 |
import java.util.Iterator; |
|
55 |
import java.util.TreeSet; |
|
56 | 52 |
|
57 | 53 |
import javax.swing.DefaultComboBoxModel; |
58 |
import javax.swing.DefaultListModel; |
|
59 | 54 |
import javax.swing.JPanel; |
60 |
import javax.swing.JTextField; |
|
61 | 55 |
import javax.swing.tree.TreePath; |
62 | 56 |
|
63 | 57 |
import org.apache.log4j.Logger; |
64 | 58 |
|
65 | 59 |
import com.iver.andami.PluginServices; |
66 | 60 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
67 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory;
|
|
61 |
import com.iver.cit.gvsig.fmap.layers.FLyrWMS;
|
|
68 | 62 |
import com.iver.cit.gvsig.gui.WMSDataSourceAdapter; |
69 | 63 |
import com.iver.cit.gvsig.gui.WizardPanel; |
70 | 64 |
import com.iver.cit.gvsig.gui.panels.WMSParamsPanel; |
71 |
import com.iver.cit.gvsig.gui.wizards.FormatListModel; |
|
72 |
import com.iver.cit.gvsig.gui.wizards.LayerInfo; |
|
73 |
import com.iver.cit.gvsig.gui.wizards.LayerListModel; |
|
74 |
import com.iver.cit.gvsig.gui.wizards.LayerTreeModel; |
|
75 | 65 |
import com.iver.cit.gvsig.gui.wizards.WizardData; |
76 | 66 |
import com.iver.cit.gvsig.gui.wizards.WizardDataSource; |
77 | 67 |
import com.iver.cit.gvsig.gui.wizards.WizardListener; |
... | ... | |
572 | 562 |
*/ |
573 | 563 |
public FLayer getLayer() { |
574 | 564 |
WizardWMS wms = this; |
575 |
return LayerFactory.createLayer(wms.getLayerName(), |
|
576 |
wms.getLayersRectangle(), wms.getHost(), |
|
577 |
wms.getFormat(), wms.getLayersQuery(), |
|
578 |
wms.getQueryableLayerQuery(), wms.getSRS()); |
|
565 |
FLyrWMS layer = new FLyrWMS(); |
|
566 |
layer.setHost(wms.getHost()); |
|
567 |
layer.setFullExtent(wms.getLayersRectangle()); |
|
568 |
layer.setFormat(wms.getFormat()); |
|
569 |
layer.setLayerQuery(wms.getLayersQuery()); |
|
570 |
layer.setInfoLayerQuery(wms.getQueryableLayerQuery()); |
|
571 |
layer.setSRS(wms.getSRS()); |
|
572 |
layer.setName(wms.getLayerName()); |
|
573 |
return layer; |
|
579 | 574 |
} |
580 | 575 |
|
581 | 576 |
/** |
Also available in: Unified diff