public class PGShapeGeometry extends org.postgresql.util.PGobject implements Shape
GeneralPath
,
Shape
,
PGobject
,
Serialized FormConstructor 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
SQLException
public void setValue(String value) throws SQLException
setValue
in class org.postgresql.util.PGobject
SQLException
public String toString()
toString
in class org.postgresql.util.PGobject
public String getValue()
getValue
in class org.postgresql.util.PGobject
public boolean equals(Object obj)
equals
in class org.postgresql.util.PGobject
public 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 Shape
public Rectangle2D getBounds2D()
getBounds2D
in interface Shape
public boolean contains(Rectangle2D r)
public boolean intersects(Rectangle2D r)
intersects
in interface Shape
public PathIterator getPathIterator(AffineTransform at)
getPathIterator
in interface Shape
public PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator
in interface Shape
Copyright © 2014. All rights reserved.