Klasse BinaryWriter
java.lang.Object
io.github.sebasbaumh.postgis.binary.BinaryWriter
A writer for building a binary or hex string representation of geometries.
- Autor:
- Sebastian Baumhekel
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic byte[]
writeBinary
(Geometry geom) Write a binary encoded geometry.static String
writeHexed
(Geometry geom) Write a hex encoded geometry.
-
Methodendetails
-
writeBinary
Write a binary encoded geometry. The geometry you put in must be consistent, geom.checkConsistency() must return true. If not, the result may be invalid WKB.- Parameter:
geom
- the geometry to be written- Gibt zurück:
- byte arrray containing the encoded geometry
- Siehe auch:
-
writeHexed
Write a hex encoded geometry. The geometry you put in must be consistent, geom.checkConsistency() must return true. If not, the result may be invalid WKB.- Parameter:
geom
- the geometry to be written- Gibt zurück:
- String containing the hex encoded geometry
- Siehe auch:
-