Revision 2183 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/FGeometry.java
FGeometry.java | ||
---|---|---|
56 | 56 |
import com.vividsolutions.jts.geom.Geometry; |
57 | 57 |
|
58 | 58 |
import org.cresques.cts.ICoordTrans; |
59 |
import org.geotools.data.postgis.attributeio.WKBEncoder; |
|
59 | 60 |
|
60 | 61 |
import java.awt.Graphics2D; |
61 | 62 |
import java.awt.geom.AffineTransform; |
62 | 63 |
import java.awt.geom.Rectangle2D; |
64 |
import java.io.IOException; |
|
65 |
import java.io.Serializable; |
|
63 | 66 |
|
64 | 67 |
|
65 | 68 |
/** |
... | ... | |
208 | 211 |
public boolean fastIntersects(double x, double y, double w, double h) { |
209 | 212 |
return shp.intersects(x,y,w,h); |
210 | 213 |
} |
214 |
|
|
215 |
public byte[] toWKB() throws IOException{ |
|
216 |
return WKBEncoder.encodeGeometry(toJTSGeometry()); |
|
217 |
} |
|
211 | 218 |
} |
Also available in: Unified diff