Class VectorTileBuilder
java.lang.Object
com.github.basking2.sdsai.marchinesquares.VectorTileBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a newVectorTile
or throw aRuntimeException
.static VectorTile
buildConstantTile
(byte value, int height, int width) Build a tile that has no contours because it is composed of solid values.RunsTile.isoband()
and callsbuild()
.
-
Constructor Details
-
VectorTileBuilder
-
-
Method Details
-
buildIsoband
RunsTile.isoband()
and callsbuild()
.- Returns:
- A built vector tile.
- Throws:
RuntimeException
- on errors that prevent object construction.
-
build
Build a newVectorTile
or throw aRuntimeException
. The tile should have hadTile.isoband()
run on it already.- Returns:
- A built vector tile.
- Throws:
RuntimeException
- on errors that prevent object construction.
-
buildConstantTile
Build a tile that has no contours because it is composed of solid values. What this does is creates the 4 sides of the tile, all sides not having any points, only the cell value. This may be used byVectorTileGroup
to close off a collection of tiles.- Parameters:
value
- The value that this tile should be considered to be comprised of.height
- The height of the tile.width
- The width of the tile.- Returns:
- A newly built tile with no features and top, bottom, left, and right side lists defined..
-