Package io.github.sebasbaumh.postgis
Klasse PGboxbase
java.lang.Object
org.postgresql.util.PGobject
io.github.sebasbaumh.postgis.PGboxbase
- Alle implementierten Schnittstellen:
Serializable,Cloneable
@NonNullByDefault({PARAMETER,RETURN_TYPE})
public abstract class PGboxbase
extends org.postgresql.util.PGobject
Base class for bounding boxes.
- Autor:
- Sebastian Baumhekel
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected PointThe lower left bottom corner of the box.protected PointThe upper right top corner of the box.Von Klasse geerbte Felder org.postgresql.util.PGobject
type, value -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleangetLLB()Returns the lower left bottom corner of the box as a Point objectprotected abstract StringThe Prefix we have in WKT rep.intgetSrid()The OGIS geometry type number of this geometry.getURT()Returns the upper right top corner of the box as a Point objectgetValue()inthashCode()abstract booleanis3d()Checks if this box is 3d.booleanisEmpty()Ist this box empty, so does it contain no coordinates?voidsetSrid(int srid) Recursively sets the srid on this geometry and all contained subgeometriesvoidtoString()Unlike geometries, toString() does _not_ contain the srid, as server-side PostGIS cannot parse this.Von Klasse geerbte Methoden org.postgresql.util.PGobject
clone, equals, getType, isNull, setType
-
Felddetails
-
llb
The lower left bottom corner of the box. -
urt
The upper right top corner of the box.
-
-
Konstruktordetails
-
PGboxbase
Constructs an instance.- Parameter:
type- type of thisPGobject
-
PGboxbase
Constructs an instance. -
PGboxbase
Constructs an instance.- Parameter:
type- type of thisPGobjectvalue- WKT- Löst aus:
SQLException
-
-
Methodendetails
-
equals
- Setzt außer Kraft:
equalsin Klasseorg.postgresql.util.PGobject
-
getLLB
Returns the lower left bottom corner of the box as a Point object- Gibt zurück:
- lower left bottom corner of this box
-
getPrefix
The 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.- Gibt zurück:
- the prefix, as a string
-
getSrid
public int getSrid()The OGIS geometry type number of this geometry.- Gibt zurück:
- the SRID of this geometry
-
getURT
Returns the upper right top corner of the box as a Point object- Gibt zurück:
- upper right top corner of this box
-
getValue
- Setzt außer Kraft:
getValuein Klasseorg.postgresql.util.PGobject
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCodein Klasseorg.postgresql.util.PGobject
-
is3d
public abstract boolean is3d()Checks if this box is 3d.- Gibt zurück:
- true on success, else false
-
isEmpty
public boolean isEmpty()Ist this box empty, so does it contain no coordinates?- Gibt zurück:
- true on success, else false
-
setSrid
public void setSrid(int srid) Recursively sets the srid on this geometry and all contained subgeometries- Parameter:
srid- the SRID for this geometry
-
setValue
- Setzt außer Kraft:
setValuein Klasseorg.postgresql.util.PGobject- Löst aus:
SQLException
-
toString
Unlike geometries, toString() does _not_ contain the srid, as server-side PostGIS cannot parse this.- Setzt außer Kraft:
toStringin Klasseorg.postgresql.util.PGobject- Gibt zurück:
- String representation of this box
-