Revision 10626 trunk/extensions/extCAD/src/com/iver/cit/gvsig/project/documents/table/operators/PointY.java
PointY.java | ||
---|---|---|
3 | 3 |
import org.apache.bsf.BSFException; |
4 | 4 |
import org.apache.bsf.BSFManager; |
5 | 5 |
|
6 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
6 | 7 |
import com.iver.cit.gvsig.ExpresionFieldExtension; |
8 |
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileReadException; |
|
7 | 9 |
import com.iver.cit.gvsig.fmap.core.FShape; |
8 | 10 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
9 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
|
10 | 11 |
import com.iver.cit.gvsig.fmap.layers.ReadableVectorial; |
11 | 12 |
import com.iver.cit.gvsig.project.documents.table.GraphicOperator; |
12 | 13 |
import com.iver.cit.gvsig.project.documents.table.IOperator; |
... | ... | |
19 | 20 |
public String addText(String s) { |
20 | 21 |
return s.concat(toString()+"()"); |
21 | 22 |
} |
22 |
public double process(Index index) throws DriverIOException {
|
|
23 |
public double process(Index index) throws ReadDriverException, ExpansionFileReadException {
|
|
23 | 24 |
ReadableVectorial adapter = getLayer().getSource(); |
24 | 25 |
IGeometry geom=adapter.getShape(index.get()); |
25 | 26 |
Double[][] xsys=getXY(geom); |
... | ... | |
39 | 40 |
int type=FShape.POINT; |
40 | 41 |
try { |
41 | 42 |
type=adapter.getShapeType(); |
42 |
} catch (DriverIOException e) { |
|
43 |
} catch (ReadDriverException e) { |
|
44 |
// TODO Auto-generated catch block |
|
43 | 45 |
e.printStackTrace(); |
44 | 46 |
} |
45 | 47 |
return (getType()==IOperator.NUMBER && type==FShape.POINT); |
Also available in: Unified diff