Revision 10626 trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/convexhull/fmap/ScalableConvexHullVisitor.java
ScalableConvexHullVisitor.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.1 2006-06-20 18:20:45 azabala |
|
48 |
* Revision 1.2 2007-03-06 16:47:58 caballero |
|
49 |
* Exceptions |
|
50 |
* |
|
51 |
* Revision 1.1 2006/06/20 18:20:45 azabala |
|
49 | 52 |
* first version in cvs |
50 | 53 |
* |
51 | 54 |
* Revision 1.2 2006/06/02 18:21:28 azabala |
... | ... | |
73 | 76 |
*/ |
74 | 77 |
package com.iver.cit.gvsig.geoprocess.impl.convexhull.fmap; |
75 | 78 |
|
79 |
import com.iver.cit.gvsig.exceptions.visitors.ProcessVisitorException; |
|
80 |
import com.iver.cit.gvsig.exceptions.visitors.StartVisitorException; |
|
81 |
import com.iver.cit.gvsig.exceptions.visitors.VisitorException; |
|
76 | 82 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
77 | 83 |
import com.iver.cit.gvsig.fmap.core.v02.FConverter; |
78 | 84 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
79 | 85 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.VectorialData; |
80 |
import com.iver.cit.gvsig.fmap.operations.strategies.VisitException; |
|
81 | 86 |
import com.vividsolutions.jts.geom.Geometry; |
82 | 87 |
import com.vividsolutions.jts.geom.GeometryCollection; |
83 | 88 |
import com.vividsolutions.jts.geom.GeometryFactory; |
... | ... | |
101 | 106 |
return geometry; |
102 | 107 |
} |
103 | 108 |
|
104 |
public void visit(IGeometry g, int index) throws VisitException { |
|
109 |
public void visit(IGeometry g, int index) throws VisitorException, ProcessVisitorException {
|
|
105 | 110 |
if(g == null) |
106 | 111 |
return; |
107 | 112 |
Geometry actualGeometry = g.toJTSGeometry(); |
... | ... | |
117 | 122 |
} |
118 | 123 |
} |
119 | 124 |
|
120 |
public void stop(FLayer layer) { |
|
125 |
public void stop(FLayer layer) throws VisitorException {
|
|
121 | 126 |
} |
122 | 127 |
|
123 |
public boolean start(FLayer layer) { |
|
128 |
public boolean start(FLayer layer) throws StartVisitorException {
|
|
124 | 129 |
return layer instanceof VectorialData; |
125 | 130 |
} |
126 | 131 |
|
Also available in: Unified diff