Package io.github.sebasbaumh.postgis
Class PGbox2d
- java.lang.Object
-
- org.postgresql.util.PGobject
-
- io.github.sebasbaumh.postgis.PGboxbase
-
- io.github.sebasbaumh.postgis.PGbox2d
-
- All Implemented Interfaces:
Serializable,Cloneable
public class PGbox2d extends PGboxbase
BOX2D representing the maximum extents of the geometry.- Author:
- Sebastian Baumhekel
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PGbox2dclone()StringgetPrefix()The Prefix we have in WKT rep.booleanis3d()Checks if this box is 3d.voidsetValue(String value)
-
-
-
Constructor Detail
-
PGbox2d
public PGbox2d()
Constructs an instance.
-
PGbox2d
public PGbox2d(Point llb, Point urt)
Constructs an instance.- Parameters:
llb- lower-left pointurt- upper-right point
-
PGbox2d
public PGbox2d(String value) throws SQLException
Constructs an instance.- Parameters:
value- WKT- Throws:
SQLException
-
-
Method Detail
-
clone
public PGbox2d clone()
- Overrides:
clonein classorg.postgresql.util.PGobject
-
getPrefix
public String getPrefix()
Description copied from class:PGboxbaseThe Prefix we have in WKT rep. I use an abstract method here so we do not need to replicate the String object in every instance.
-
is3d
public boolean is3d()
Description copied from class:PGboxbaseChecks if this box is 3d.
-
setValue
public void setValue(String value) throws SQLException
- Overrides:
setValuein classPGboxbase- Throws:
SQLException
-
-