Revision 26601 tmp/trunk/cliente/WorkSpace_WPSClient/extWPSCallejero/src/es/logex/gvsig/streetsmap/core/impl_1_0_0/SMProtocolHandlerImpl_1_0_0.java

View differences:

SMProtocolHandlerImpl_1_0_0.java
1 1
package es.logex.gvsig.streetsmap.core.impl_1_0_0;
2 2

  
3
import java.awt.geom.Rectangle2D;
3

  
4 4
import java.io.File;
5 5
import java.net.URL;
6 6
import java.util.ArrayList;
7 7
import java.util.List;
8 8

  
9
import javax.swing.JDialog;
10 9

  
10

  
11 11
import org.apache.log4j.Logger;
12
import org.cresques.cts.IProjection;
13
import org.cresques.cts.ICoordTrans;
12

  
14 13
import com.iver.andami.PluginServices;
15 14
import com.iver.cit.gvsig.fmap.MapContext;
16
import com.iver.cit.gvsig.fmap.ViewPort;
17
import com.iver.cit.gvsig.fmap.crs.CRSFactory;
15

  
18 16
import com.iver.cit.gvsig.project.documents.view.gui.View;
19 17

  
20
import es.logex.gvsig.fmap.drivers.WPSException;
21
import es.logex.gvsig.fmap.drivers.wps.FMapWPSDriver;
22
import es.logex.gvsig.fmap.drivers.wps.FMapWPSDriverFactory;
18

  
23 19
import es.logex.gvsig.fmap.layers.FLyrWPS;
24 20
import es.logex.gvsig.fmap.layers.FLyrWPSFactory;
25 21
import es.logex.gvsig.fmap.layers.SMLayerInfo;
26 22
import es.logex.gvsig.fmap.layers.SMapLayerInfoImpl_1_0_0;
27 23
import es.logex.gvsig.streetsmap.core.SMProtocolHandler;
28
import es.logex.gvsig.wps.client.WPSClient;
29 24

  
30
import  es.logex.gvsig.fmap.layers.LegendManager;
31 25

  
32 26
/**
33 27
 * @uml.dependency supplier="es.logex.gvsig.streetsmap.core.StreetsMapTocListener"
......
35 29
public class SMProtocolHandlerImpl_1_0_0 implements
36 30
		SMProtocolHandler {
37 31

  
32
	@SuppressWarnings("unused")
38 33
	private static Logger logger = Logger
39 34
			.getLogger(SMProtocolHandlerImpl_1_0_0.class.getName());
40 35

  
41
	private ViewPort v = null;
42 36
	private MapContext mapContext = null;
43 37
	private List<SMLayerInfo> listLayers = null;
44 38

  
45 39
	private URL host = null;
46 40
	// parĂ¡metros obtenidos del servidor de callejeros.
47
	private Rectangle2D maxExtent;
41

  
48 42
	
49 43
	private String crsDefault;
50 44

  
......
130 124
			+ File.separator
131 125
			+ smlInfo.getId().toLowerCase() + ".gvl";
132 126
		
133
		FLyrWPS flyr = new FLyrWPSFactory().getFLyrWPS(smlInfo,defaultLegendPath,  false, false);
127
		FLyrWPS flyr = new FLyrWPSFactory().getFLyrWPS(layerId,layerName,
128
				crsDefault,host,minScale,maxScale,geometryType,
129
				defaultLegendPath);
134 130
		
135 131
		
136 132
		flyr.load(this.mapContext.getViewPort().getExtent(),this.mapContext.getViewPort().getProjection(),"SAMPLE");

Also available in: Unified diff