svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / WFSAdapter.java @ 408
History | View | Annotate | Download (2.1 KB)
1 |
package com.iver.cit.gvsig.fmap.layers; |
---|---|
2 |
|
3 |
import java.awt.geom.Rectangle2D; |
4 |
import java.net.URL; |
5 |
|
6 |
import com.hardcode.gdbms.engine.data.DataSource; |
7 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
8 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
9 |
import com.iver.cit.gvsig.fmap.drivers.wfs.WFSDriver; |
10 |
import com.iver.cit.gvsig.fmap.rendering.indexes.IndexNotExistsException; |
11 |
|
12 |
/**
|
13 |
* Adapta un driver de WFS a la interfaz vectorial, manteniendo adem?s el estado necesario por una capa vectorial WFS (URL del host, estado del protocolo)
|
14 |
*/
|
15 |
public class WFSAdapter extends VectorialAdapter { |
16 |
/**
|
17 |
* incrementa el contador de las veces que se ha abierto el fichero. Solamente cuando el contador est? a cero pide al driver que conecte con el servidor WFS
|
18 |
*/
|
19 |
public void start(){ } |
20 |
|
21 |
public void stop(){ } |
22 |
|
23 |
public void setDriver(WFSDriver driver) { |
24 |
} |
25 |
|
26 |
/**
|
27 |
* Establece el adaptador que se usar? para acceder a los datos temporales obtenidos del servidor
|
28 |
*/
|
29 |
private void createTempFile(VectorialFileAdapter adapter) { |
30 |
} |
31 |
|
32 |
private URL host; |
33 |
private VectorialAdapter tempAdapter;
|
34 |
/**
|
35 |
* @see com.iver.cit.gvsig.fmap.layers.ReadableVectorial#getShape(int)
|
36 |
*/
|
37 |
public IGeometry getShape(int index) throws DriverIOException { |
38 |
return null; |
39 |
} |
40 |
|
41 |
/**
|
42 |
* @see com.iver.cit.gvsig.fmap.layers.ReadableVectorial#getShapeCount()
|
43 |
*/
|
44 |
public int getShapeCount() throws DriverIOException { |
45 |
return 0; |
46 |
} |
47 |
|
48 |
/**
|
49 |
* @see com.iver.cit.gvsig.fmap.layers.ReadableVectorial#getFullExtent()
|
50 |
*/
|
51 |
public Rectangle2D getFullExtent() throws DriverIOException { |
52 |
return null; |
53 |
} |
54 |
|
55 |
/**
|
56 |
* @see com.iver.cit.gvsig.fmap.rendering.indexes.Index#getRecordIndexes(java.awt.geom.Rectangle2D)
|
57 |
*/
|
58 |
public int[] getRecordIndexes(Rectangle2D rect) throws DriverIOException, IndexNotExistsException { |
59 |
return null; |
60 |
} |
61 |
|
62 |
/**
|
63 |
* @see com.iver.cit.gvsig.fmap.layers.ReadableVectorial#getShapeType()
|
64 |
*/
|
65 |
public int getShapeType() throws DriverIOException { |
66 |
return 0; |
67 |
} |
68 |
|
69 |
/**
|
70 |
* @see com.iver.cit.gvsig.fmap.layers.VectorialAdapter#getRecordset()
|
71 |
*/
|
72 |
public DataSource getRecordset(String name) { |
73 |
return null; |
74 |
} |
75 |
} |