public class PGShapeGeometry extends org.postgresql.util.PGobject implements Shape
GeneralPath,
Shape,
PGobject,
Serialized Form| Constructor and Description |
|---|
PGShapeGeometry()
Constructor called by JDBC drivers. call setValue afterwards to fill with
Geometry data.
|
PGShapeGeometry(GeneralPath path,
int srid)
Construct directly from a General Path
|
PGShapeGeometry(String value)
Reads the HexWKB representation
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y) |
boolean |
contains(double x,
double y,
double w,
double h) |
boolean |
contains(Point2D p) |
boolean |
contains(Rectangle2D r) |
boolean |
equals(Object obj) |
Rectangle |
getBounds() |
Rectangle2D |
getBounds2D() |
PathIterator |
getPathIterator(AffineTransform at) |
PathIterator |
getPathIterator(AffineTransform at,
double flatness) |
int |
getSRID()
Return the SRID or Geometry.UNKNOWN_SRID if none was available
|
String |
getValue()
We currently have read-only support, so this method returns null
|
boolean |
intersects(double x,
double y,
double w,
double h) |
boolean |
intersects(Rectangle2D r) |
void |
setValue(String value)
Reads the HexWKB representation - to be called by the jdbc drivers.
|
String |
toString() |
public PGShapeGeometry()
public PGShapeGeometry(GeneralPath path, int srid)
public PGShapeGeometry(String value) throws SQLException
SQLExceptionpublic void setValue(String value) throws SQLException
setValue in class org.postgresql.util.PGobjectSQLExceptionpublic String toString()
toString in class org.postgresql.util.PGobjectpublic String getValue()
getValue in class org.postgresql.util.PGobjectpublic boolean equals(Object obj)
equals in class org.postgresql.util.PGobjectpublic int getSRID()
public boolean contains(double x,
double y,
double w,
double h)
public boolean intersects(double x,
double y,
double w,
double h)
intersects in interface Shapepublic Rectangle2D getBounds2D()
getBounds2D in interface Shapepublic boolean contains(Rectangle2D r)
public boolean intersects(Rectangle2D r)
intersects in interface Shapepublic PathIterator getPathIterator(AffineTransform at)
getPathIterator in interface Shapepublic PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator in interface ShapeCopyright © 2014. All rights reserved.