Documentation
¶
Overview ¶
Package tile3d provides the legacy 3D Tiles 1.0 types. Styling types are re-exported from the unified style package.
Index ¶
- Constants
- Variables
- func B3dmFeatureTableDecode(header map[string]interface{}, buff []byte) map[string]interface{}
- func B3dmFeatureTableEncode(header map[string]interface{}, data map[string]interface{}) []byte
- func ComponentTypeSize(tp string) int
- func ContainerTypeSize(tp string) int
- func GeomFeatureTableDecode(header map[string]interface{}, buff []byte) map[string]interface{}
- func GeomFeatureTableEncode(header map[string]interface{}, data map[string]interface{}) []byte
- func I3dmFeatureTableDecode(header map[string]interface{}, buff []byte) map[string]interface{}
- func I3dmFeatureTableEncode(header map[string]interface{}, data map[string]interface{}) []byte
- func IsQuantizable(pos float64, origin float32, scale float32, rangeScale uint16) bool
- func IsQuantized(qpos uint16) bool
- func PntsFeatureTableDecode(header map[string]interface{}, buff []byte) map[string]interface{}
- func PntsFeatureTableEncode(header map[string]interface{}, data map[string]interface{}) []byte
- func Quantize(pos float64, origin float32, scale float32, rangeScale uint16) uint16
- func QuantizePoint3d(pos [3]float64, params *QParams3d) [3]uint16
- func UnQuantize(qpos uint16, origin float32, scale float32, rangeScale uint16) float64
- func UnQuantizePoint3d(qpos [3]uint16, params *QParams3d) [3]float64
- func VctrFeatureTableDecode(header map[string]interface{}, buff []byte) map[string]interface{}
- func VctrFeatureTableEncode(header map[string]interface{}, data map[string]interface{}) []byte
- type Asset
- type B3dm
- func (m *B3dm) CalcSize() int64
- func (m *B3dm) GetBatchTable() *BatchTable
- func (m *B3dm) GetFeatureTable() *FeatureTable
- func (m *B3dm) GetFeatureTableView() B3dmFeatureTableView
- func (m *B3dm) GetHeader() Header
- func (m *B3dm) Read(reader io.ReadSeeker) error
- func (m *B3dm) SetFeatureTable(view B3dmFeatureTableView)
- func (m *B3dm) Write(writer io.Writer) error
- type B3dmFeatureTableView
- type B3dmHeader
- func (h *B3dmHeader) CalcSize() int64
- func (h *B3dmHeader) GetBatchTableBinaryByteLength() uint32
- func (h *B3dmHeader) GetBatchTableJSONByteLength() uint32
- func (h *B3dmHeader) GetByteLength() uint32
- func (h *B3dmHeader) GetFeatureTableBinaryByteLength() uint32
- func (h *B3dmHeader) GetFeatureTableJSONByteLength() uint32
- func (h *B3dmHeader) SetBatchTableBinaryByteLength(n uint32)
- func (h *B3dmHeader) SetBatchTableJSONByteLength(n uint32)
- func (h *B3dmHeader) SetFeatureTableBinaryByteLength(n uint32)
- func (h *B3dmHeader) SetFeatureTableJSONByteLength(n uint32)
- type BatchTable
- type BinaryBodyReference
- type BinaryBodySizeHelper
- type BoundingVolume
- func (b *BoundingVolume) GetBox() []float64
- func (b *BoundingVolume) GetData() []float64
- func (b *BoundingVolume) GetRegion() []float64
- func (b *BoundingVolume) GetSphere() []float64
- func (b *BoundingVolume) SetBox(box []float64) error
- func (b *BoundingVolume) SetRegion(region []float64) error
- func (b *BoundingVolume) SetSphere(sphere []float64) error
- type Cmpt
- type CmptHeader
- func (h *CmptHeader) CalcSize() int64
- func (*CmptHeader) GetBatchTableBinaryByteLength() uint32
- func (*CmptHeader) GetBatchTableJSONByteLength() uint32
- func (h *CmptHeader) GetByteLength() uint32
- func (*CmptHeader) GetFeatureTableBinaryByteLength() uint32
- func (*CmptHeader) GetFeatureTableJSONByteLength() uint32
- func (h *CmptHeader) GetTilesLength() uint32
- func (*CmptHeader) SetBatchTableBinaryByteLength(uint32)
- func (*CmptHeader) SetBatchTableJSONByteLength(uint32)
- func (*CmptHeader) SetFeatureTableBinaryByteLength(uint32)
- func (*CmptHeader) SetFeatureTableJSONByteLength(uint32)
- func (h *CmptHeader) SetTilesLength(n uint32)
- type Content
- type Expression
- type ExpressionNodeType
- type ExpressionType
- type FeatureTable
- type Geom
- func (m *Geom) CalcSize() int64
- func (m *Geom) GetBatchTable() *BatchTable
- func (m *Geom) GetFeatureTable() *FeatureTable
- func (m *Geom) GetFeatureTableView() GeomFeatureTableView
- func (m *Geom) GetHeader() Header
- func (m *Geom) Read(reader io.ReadSeeker) error
- func (m *Geom) SetFeatureTable(view GeomFeatureTableView)
- func (m *Geom) Write(writer io.Writer) error
- type GeomBox
- type GeomCylinder
- type GeomEllipsoid
- type GeomFeatureTableView
- type GeomHeader
- func (h *GeomHeader) CalcSize() int64
- func (h *GeomHeader) GetBatchTableBinaryByteLength() uint32
- func (h *GeomHeader) GetBatchTableJSONByteLength() uint32
- func (h *GeomHeader) GetByteLength() uint32
- func (h *GeomHeader) GetFeatureTableBinaryByteLength() uint32
- func (h *GeomHeader) GetFeatureTableJSONByteLength() uint32
- func (h *GeomHeader) SetBatchTableBinaryByteLength(n uint32)
- func (h *GeomHeader) SetBatchTableJSONByteLength(n uint32)
- func (h *GeomHeader) SetFeatureTableBinaryByteLength(n uint32)
- func (h *GeomHeader) SetFeatureTableJSONByteLength(n uint32)
- type GeomSphere
- type Header
- type I3dm
- func (m *I3dm) CalcSize() int64
- func (m *I3dm) GetBatchTable() *BatchTable
- func (m *I3dm) GetFeatureTable() *FeatureTable
- func (m *I3dm) GetFeatureTableView() I3dmFeatureTableView
- func (m *I3dm) GetHeader() Header
- func (m *I3dm) Read(reader io.ReadSeeker) error
- func (m *I3dm) SetFeatureTable(view I3dmFeatureTableView)
- func (m *I3dm) Write(writer io.Writer) error
- type I3dmFeatureTableView
- type I3dmHeader
- func (h *I3dmHeader) CalcSize() int64
- func (h *I3dmHeader) GetBatchTableBinaryByteLength() uint32
- func (h *I3dmHeader) GetBatchTableJSONByteLength() uint32
- func (h *I3dmHeader) GetByteLength() uint32
- func (h *I3dmHeader) GetFeatureTableBinaryByteLength() uint32
- func (h *I3dmHeader) GetFeatureTableJSONByteLength() uint32
- func (h *I3dmHeader) SetBatchTableBinaryByteLength(n uint32)
- func (h *I3dmHeader) SetBatchTableJSONByteLength(n uint32)
- func (h *I3dmHeader) SetFeatureTableBinaryByteLength(n uint32)
- func (h *I3dmHeader) SetFeatureTableJSONByteLength(n uint32)
- type MultipleContent
- type OctEncodedNormal
- type Pnts
- func (m *Pnts) CalcSize() int64
- func (m *Pnts) GetBatchTable() *BatchTable
- func (m *Pnts) GetFeatureTable() *FeatureTable
- func (m *Pnts) GetFeatureTableView() PntsFeatureTableView
- func (m *Pnts) GetHeader() Header
- func (m *Pnts) Read(reader io.ReadSeeker) error
- func (m *Pnts) SetFeatureTable(view PntsFeatureTableView)
- func (m *Pnts) Write(writer io.Writer) error
- type PntsFeatureTableView
- type PntsHeader
- func (h *PntsHeader) CalcSize() int64
- func (h *PntsHeader) GetBatchTableBinaryByteLength() uint32
- func (h *PntsHeader) GetBatchTableJSONByteLength() uint32
- func (h *PntsHeader) GetByteLength() uint32
- func (h *PntsHeader) GetFeatureTableBinaryByteLength() uint32
- func (h *PntsHeader) GetFeatureTableJSONByteLength() uint32
- func (h *PntsHeader) SetBatchTableBinaryByteLength(n uint32)
- func (h *PntsHeader) SetBatchTableJSONByteLength(n uint32)
- func (h *PntsHeader) SetFeatureTableBinaryByteLength(n uint32)
- func (h *PntsHeader) SetFeatureTableJSONByteLength(n uint32)
- type QParams3d
- type Schema
- type Styling
- type Tile
- type TileModel
- type Tileset
- type Vctr
- func (m *Vctr) CalcSize() int64
- func (m *Vctr) GetBatchTable() *BatchTable
- func (m *Vctr) GetFeatureTable() *FeatureTable
- func (m *Vctr) GetFeatureTableView() VctrFeatureTableView
- func (m *Vctr) GetHeader() Header
- func (m *Vctr) GetIndices() VctrIndices
- func (m *Vctr) GetPoints() VctrPoints
- func (m *Vctr) GetPolygons() VctrPolygons
- func (m *Vctr) GetPolylines() VctrPolylines
- func (m *Vctr) Read(reader io.ReadSeeker) error
- func (m *Vctr) SetFeatureTable(view VctrFeatureTableView)
- func (m *Vctr) Write(writer io.Writer) error
- type VctrFeatureTableView
- type VctrHeader
- func (h *VctrHeader) CalcSize() int64
- func (h *VctrHeader) GetBatchTableBinaryByteLength() uint32
- func (h *VctrHeader) GetBatchTableJSONByteLength() uint32
- func (h *VctrHeader) GetByteLength() uint32
- func (h *VctrHeader) GetFeatureTableBinaryByteLength() uint32
- func (h *VctrHeader) GetFeatureTableJSONByteLength() uint32
- func (h *VctrHeader) GetPointPositionsByteLength() uint32
- func (h *VctrHeader) GetPolygonIndicesByteLength() uint32
- func (h *VctrHeader) GetPolygonPositionsByteLength() uint32
- func (h *VctrHeader) GetPolylinePositionsByteLength() uint32
- func (h *VctrHeader) SetBatchTableBinaryByteLength(n uint32)
- func (h *VctrHeader) SetBatchTableJSONByteLength(n uint32)
- func (h *VctrHeader) SetFeatureTableBinaryByteLength(n uint32)
- func (h *VctrHeader) SetFeatureTableJSONByteLength(n uint32)
- func (h *VctrHeader) SetPointPositionsByteLength(n uint32)
- func (h *VctrHeader) SetPolygonIndicesByteLength(n uint32)
- func (h *VctrHeader) SetPolygonPositionsByteLength(n uint32)
- func (h *VctrHeader) SetPolylinePositionsByteLength(n uint32)
- type VctrIndices
- type VctrPoints
- type VctrPolygons
- type VctrPolylines
Constants ¶
const ( B3DM_PROP_BATCH_LENGTH = "BATCH_LENGTH" B3DM_PROP_RTC_CENTER = "RTC_CENTER" )
const ( BATCH_TABLE_HIERARCHY = "3DTILES_batch_table_hierarchy" HIERARCHY_INSTANCE_LENGTH = "instancesLength" HIERARCHY_CLASSES = "classes" HIERARCHY_CLASSIDS = "classIds" HIERARCHY_CLASSE_NAME = "name" HIERARCHY_CLASSINDEXES = "classIndexes" HIERARCHY_CLASSES_INSTANCES = "instances" HIERARCHY_CLASSES_LENGTH = "length" HIERARCHY_PARENT_COUNTS = "parentCounts" HIERARCHY_PARENTIDS = "parentIds" HIERARCHY_PARENTINDEXES = "parentIndexes" )
const ( COMPONENT_TYPE_BYTE = "BYTE" COMPONENT_TYPE_UNSIGNED_BYTE = "UNSIGNED_BYTE" COMPONENT_TYPE_SHORT = "SHORT" COMPONENT_TYPE_UNSIGNED_SHORT = "UNSIGNED_SHORT" COMPONENT_TYPE_INT = "INT" COMPONENT_TYPE_UNSIGNED_INT = "UNSIGNED_INT" COMPONENT_TYPE_FLOAT = "FLOAT" COMPONENT_TYPE_DOUBLE = "DOUBLE" )
const ( CONTAINER_TYPE_SCALAR = "SCALAR" CONTAINER_TYPE_VEC2 = "VEC2" CONTAINER_TYPE_VEC3 = "VEC3" CONTAINER_TYPE_VEC4 = "VEC4" )
const ( REF_PROP_BYTE_OFFSET = "byteOffset" REF_PROP_COMPONENT_TYPE = "componentType" REF_PROP_TYPE = "type" )
const ( GEOM_PROP_BOXES = "BOXES" GEOM_PROP_BOX_BATCH_IDS = "BOX_BATCH_IDS" GEOM_PROP_CYLINDERS = "CYLINDERS" GEOM_PROP_CYLINDER_BATCH_IDS = "CYLINDER_BATCH_IDS" GEOM_PROP_ELLIPSOIDS = "ELLIPSOIDS" GEOM_PROP_ELLIPSOID_BATCH_IDS = "ELLIPSOID_BATCH_IDS" GEOM_PROP_SPHERES = "SPHERES" GEOM_PROP_SPHERE_BATCH_IDS = "SPHERE_BATCH_IDS" GEOM_PROP_BOXES_LENGTH = "BOXES_LENGTH" GEOM_PROP_CYLINDERS_LENGTH = "CYLINDERS_LENGTH" GEOM_PROP_ELLIPSOIDS_LENGTH = "ELLIPSOIDS_LENGTH" GEOM_PROP_SPHERES_LENGTH = "SPHERES_LENGTH" GEOM_PROP_RTC_CENTER = "RTC_CENTER" )
const ( I3DM_MAGIC = "i3dm" I3DM_GLTF_URI = 0 I3DM_GLTF_EMBEDDED = 1 )
const ( I3DM_PROP_POSITION = "POSITION" I3DM_PROP_POSITION_QUANTIZED = "POSITION_QUANTIZED" I3DM_PROP_QUANTIZED_VOLUME_OFFSET = "QUANTIZED_VOLUME_OFFSET" I3DM_PROP_QUANTIZED_VOLUME_SCALE = "QUANTIZED_VOLUME_SCALE" I3DM_PROP_NORMAL_UP = "NORMAL_UP" I3DM_PROP_NORMAL_RIGHT = "NORMAL_RIGHT" I3DM_PROP_NORMAL_UP_OCT32P = "NORMAL_UP_OCT32P" I3DM_PROP_NORMAL_RIGHT_OCT32P = "NORMAL_RIGHT_OCT32P" I3DM_PROP_SCALE = "SCALE" I3DM_PROP_SCALE_NON_UNIFORM = "SCALE_NON_UNIFORM" I3DM_PROP_BATCH_ID = "BATCH_ID" I3DM_PROP_INSTANCES_LENGTH = "INSTANCES_LENGTH" I3DM_PROP_RTC_CENTER = "RTC_CENTER" I3DM_PROP_EAST_NORTH_UP = "EAST_NORTH_UP" )
const ( PNTS_PROP_BATCH_LENGTH = "BATCH_LENGTH" PNTS_PROP_RTC_CENTER = "RTC_CENTER" PNTS_PROP_POSITION = "POSITION" PNTS_PROP_POSITION_QUANTIZED = "POSITION_QUANTIZED" PNTS_PROP_QUANTIZED_VOLUME_OFFSET = "QUANTIZED_VOLUME_OFFSET" PNTS_PROP_QUANTIZED_VOLUME_SCALE = "QUANTIZED_VOLUME_SCALE" PNTS_PROP_NORMAL = "NORMAL" PNTS_PROP_NORMAL_OCT32P = "NORMAL_OCT32P" PNTS_PROP_POINTS_LENGTH = "POINTS_LENGTH" PNTS_PROP_CONSTANT_RGBA = "CONSTANT_RGBA" PNTS_PROP_RGB = "RGB" PNTS_PROP_RGBA = "RGBA" PNTS_PROP_RGB565 = "RGB565" PNTS_PROP_BATCH_ID = "BATCH_ID" )
const ( PNTS_COLOR_FORMAT_RGB = 0 PNTS_COLOR_FORMAT_RGBA = 1 PNTS_COLOR_FORMAT_RGB565 = 2 PNTS_COLOR_FORMAT_NONE = 3 )
const ( OP_NEGATIVE = style.OP_NEGATIVE OP_POSITIVE = style.OP_POSITIVE OP_NOT = style.OP_NOT )
Unary operator constants
const ( OP_ADD = style.OP_ADD OP_SUB = style.OP_SUB OP_MUL = style.OP_MUL OP_DIV = style.OP_DIV OP_MOD = style.OP_MOD OP_EQ = style.OP_EQ OP_NEQ = style.OP_NEQ OP_GREATER = style.OP_GREATER OP_GREATER_EQ = style.OP_GREATER_EQ OP_LESS = style.OP_LESS OP_LESS_EQ = style.OP_LESS_EQ OP_AND = style.OP_AND OP_OR = style.OP_OR OP_REGEXP_NOT = style.OP_REGEXP_NOT OP_REGEXP = style.OP_REGEXP )
Binary operator constants
const ( FUNC_IS_NAN = style.FUNC_IS_NAN FUNC_IS_FINITE = style.FUNC_IS_FINITE FUNC_IS_EXACTCLASS = style.FUNC_IS_EXACTCLASS FUNC_IS_CLASS = style.FUNC_IS_CLASS FUNC_GET_EXACTCLASSNAME = style.FUNC_GET_EXACTCLASSNAME FUNC_BOOLEAN = style.FUNC_BOOLEAN FUNC_NUMBER = style.FUNC_NUMBER FUNC_STRING = style.FUNC_STRING FUNC_ABS = style.FUNC_ABS FUNC_SQRT = style.FUNC_SQRT FUNC_COS = style.FUNC_COS FUNC_SIN = style.FUNC_SIN FUNC_TAN = style.FUNC_TAN FUNC_ACOS = style.FUNC_ACOS FUNC_ASIN = style.FUNC_ASIN FUNC_ATAN = style.FUNC_ATAN FUNC_RADIANS = style.FUNC_RADIANS FUNC_DEGREES = style.FUNC_DEGREES FUNC_SIGN = style.FUNC_SIGN FUNC_FLOOR = style.FUNC_FLOOR FUNC_CEIL = style.FUNC_CEIL FUNC_ROUND = style.FUNC_ROUND FUNC_EXP = style.FUNC_EXP FUNC_EXP2 = style.FUNC_EXP2 FUNC_LOG = style.FUNC_LOG FUNC_LOG2 = style.FUNC_LOG2 FUNC_FRACT = style.FUNC_FRACT FUNC_LENGTH = style.FUNC_LENGTH FUNC_NORMALIZE = style.FUNC_NORMALIZE )
Single-argument built-in function constants
const ( FUNC_ATAN2 = style.FUNC_ATAN2 FUNC_POW = style.FUNC_POW FUNC_MIN = style.FUNC_MIN FUNC_MAX = style.FUNC_MAX FUNC_DISTANCE = style.FUNC_DISTANCE FUNC_DOT = style.FUNC_DOT FUNC_CROSS = style.FUNC_CROSS )
Two-argument built-in function constants
const ( FUNC_CLAMP = style.FUNC_CLAMP FUNC_MIX = style.FUNC_MIX )
Three-argument built-in function constants
const ( VAR_BOOLEAN = style.VAR_BOOLEAN VAR_NULL = style.VAR_NULL VAR_UNDEFINED = style.VAR_UNDEFINED VAR_NUMBER = style.VAR_NUMBER VAR_STRING = style.VAR_STRING VAR_ARRAY = style.VAR_ARRAY VAR_VEC2 = style.VAR_VEC2 VAR_VEC3 = style.VAR_VEC3 VAR_VEC4 = style.VAR_VEC4 VAR_REGEXP = style.VAR_REGEXP EXP_VARIABLE = style.EXP_VARIABLE EXP_UNARY = style.EXP_UNARY EXP_BINARY = style.EXP_BINARY EXP_TERNARY = style.EXP_TERNARY EXP_CONDITIONAL = style.EXP_CONDITIONAL EXP_MEMBER = style.EXP_MEMBER EXP_FUNCTION_CALL = style.EXP_FUNCTION_CALL EXP_ARRAY = style.EXP_ARRAY EXP_REGEX = style.EXP_REGEX EXP_VARIABLE_IN_STRING = style.EXP_VARIABLE_IN_STRING EXP_LITERAL_NULL = style.EXP_LITERAL_NULL EXP_LITERAL_BOOLEAN = style.EXP_LITERAL_BOOLEAN EXP_LITERAL_NUMBER = style.EXP_LITERAL_NUMBER EXP_LITERAL_STRING = style.EXP_LITERAL_STRING EXP_LITERAL_COLOR = style.EXP_LITERAL_COLOR EXP_LITERAL_VECTOR = style.EXP_LITERAL_VECTOR EXP_LITERAL_REGEX = style.EXP_LITERAL_REGEX EXP_LITERAL_UNDEFINED = style.EXP_LITERAL_UNDEFINED EXP_BUILTIN_VARIABLE = style.EXP_BUILTIN_VARIABLE )
AST node type constants (re-exported)
const ( TILE_REFINE_ADD = "ADD" TILE_REFINE_REPLACE = "REPLACE" )
const ( VCTR_PROP_POLYGONS_LENGTH = "POLYGONS_LENGTH" VCTR_PROP_POLYLINES_LENGTH = "POLYLINES_LENGTH" VCTR_PROP_POINTS_LENGTH = "POINTS_LENGTH" VCTR_PROP_REGION = "REGION" VCTR_PROP_RTC_CENTER = "RTC_CENTER" VCTR_PROP_POLYGON_COUNTS = "POLYGON_COUNTS" VCTR_PROP_POLYGON_COUNT = "POLYGON_COUNT" VCTR_PROP_POLYGON_INDEX_COUNTS = "POLYGON_INDEX_COUNTS" VCTR_PROP_POLYGON_INDEX_COUNT = "POLYGON_INDEX_COUNT" VCTR_PROP_POLYLINE_COUNTS = "POLYLINE_COUNTS" VCTR_PROP_POLYLINE_COUNT = "POLYLINE_COUNT" VCTR_PROP_POLYGON_MINIMUM_HEIGHTS = "POLYGON_MINIMUM_HEIGHTS" VCTR_PROP_POLYGON_MAXIMUM_HEIGHTS = "POLYGON_MAXIMUM_HEIGHTS" VCTR_PROP_POLYGON_BATCH_IDS = "POLYGON_BATCH_IDS" VCTR_PROP_POLYLINE_WIDTHS = "POLYLINE_WIDTHS" VCTR_PROP_POLYLINE_BATCH_IDS = "POLYLINE_BATCH_IDS" VCTR_PROP_POINT_BATCH_IDS = "POINT_BATCH_IDS" )
const (
B3DM_MAGIC = "b3dm"
)
const (
CMPT_MAGIC = "cmpt"
)
const (
GEOM_MAGIC = "geom"
)
const MULTIPLE_CONTENTS = "3DTILES_multiple_contents"
const (
PNTS_MAGIC = "pnts"
)
const (
VCTR_MAGIC = "vctr"
)
Variables ¶
var (
TileDefaultTransform = [16]float64{1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0}
)
Functions ¶
func B3dmFeatureTableDecode ¶
func B3dmFeatureTableEncode ¶
func ComponentTypeSize ¶
func ContainerTypeSize ¶
func GeomFeatureTableDecode ¶
func GeomFeatureTableEncode ¶
func I3dmFeatureTableDecode ¶
func I3dmFeatureTableEncode ¶
func IsQuantizable ¶
func IsQuantized ¶
func PntsFeatureTableDecode ¶
func PntsFeatureTableEncode ¶
func QuantizePoint3d ¶
func UnQuantize ¶
func UnQuantizePoint3d ¶
func VctrFeatureTableDecode ¶
func VctrFeatureTableEncode ¶
Types ¶
type B3dm ¶
type B3dm struct {
Header B3dmHeader
FeatureTable FeatureTable
BatchTable BatchTable
Model *gltf.Document
}
func (*B3dm) GetBatchTable ¶
func (m *B3dm) GetBatchTable() *BatchTable
func (*B3dm) GetFeatureTable ¶
func (m *B3dm) GetFeatureTable() *FeatureTable
func (*B3dm) GetFeatureTableView ¶
func (m *B3dm) GetFeatureTableView() B3dmFeatureTableView
func (*B3dm) SetFeatureTable ¶
func (m *B3dm) SetFeatureTable(view B3dmFeatureTableView)
type B3dmFeatureTableView ¶
type B3dmHeader ¶
type B3dmHeader struct {
Magic [4]byte
Version uint32
ByteLength uint32
FeatureTableJSONByteLength uint32
FeatureTableBinaryByteLength uint32
BatchTableJSONByteLength uint32
BatchTableBinaryByteLength uint32
}
func (*B3dmHeader) CalcSize ¶
func (h *B3dmHeader) CalcSize() int64
func (*B3dmHeader) GetBatchTableBinaryByteLength ¶
func (h *B3dmHeader) GetBatchTableBinaryByteLength() uint32
func (*B3dmHeader) GetBatchTableJSONByteLength ¶
func (h *B3dmHeader) GetBatchTableJSONByteLength() uint32
func (*B3dmHeader) GetByteLength ¶
func (h *B3dmHeader) GetByteLength() uint32
func (*B3dmHeader) GetFeatureTableBinaryByteLength ¶
func (h *B3dmHeader) GetFeatureTableBinaryByteLength() uint32
func (*B3dmHeader) GetFeatureTableJSONByteLength ¶
func (h *B3dmHeader) GetFeatureTableJSONByteLength() uint32
func (*B3dmHeader) SetBatchTableBinaryByteLength ¶
func (h *B3dmHeader) SetBatchTableBinaryByteLength(n uint32)
func (*B3dmHeader) SetBatchTableJSONByteLength ¶
func (h *B3dmHeader) SetBatchTableJSONByteLength(n uint32)
func (*B3dmHeader) SetFeatureTableBinaryByteLength ¶
func (h *B3dmHeader) SetFeatureTableBinaryByteLength(n uint32)
func (*B3dmHeader) SetFeatureTableJSONByteLength ¶
func (h *B3dmHeader) SetFeatureTableJSONByteLength(n uint32)
type BatchTable ¶
func (*BatchTable) CalcSize ¶
func (h *BatchTable) CalcSize(header Header) int64
func (*BatchTable) GetProperty ¶
func (h *BatchTable) GetProperty(property string, batchId int) interface{}
func (*BatchTable) Read ¶
func (h *BatchTable) Read(reader io.ReadSeeker, header Header, batchLength int) error
type BinaryBodyReference ¶
type BinaryBodyReference struct {
ByteOffset uint32 `json:"byteOffset"`
ComponentType string `json:"componentType,omitempty"`
ContainerType string `json:"type,omitempty"`
}
func (*BinaryBodyReference) FromMap ¶
func (r *BinaryBodyReference) FromMap(d map[string]interface{})
func (*BinaryBodyReference) GetMap ¶
func (r *BinaryBodyReference) GetMap() map[string]interface{}
type BinaryBodySizeHelper ¶
type BoundingVolume ¶
type BoundingVolume struct {
Region *[]float64 `json:"region,omitempty"`
Box *[]float64 `json:"box,omitempty"`
Sphere *[]float64 `json:"sphere,omitempty"`
}
func (*BoundingVolume) GetBox ¶
func (b *BoundingVolume) GetBox() []float64
func (*BoundingVolume) GetData ¶
func (b *BoundingVolume) GetData() []float64
func (*BoundingVolume) GetRegion ¶
func (b *BoundingVolume) GetRegion() []float64
func (*BoundingVolume) GetSphere ¶
func (b *BoundingVolume) GetSphere() []float64
func (*BoundingVolume) SetBox ¶
func (b *BoundingVolume) SetBox(box []float64) error
func (*BoundingVolume) SetRegion ¶
func (b *BoundingVolume) SetRegion(region []float64) error
func (*BoundingVolume) SetSphere ¶
func (b *BoundingVolume) SetSphere(sphere []float64) error
type Cmpt ¶
type Cmpt struct {
Header CmptHeader
Tiles []TileModel
}
type CmptHeader ¶
func (*CmptHeader) CalcSize ¶
func (h *CmptHeader) CalcSize() int64
func (*CmptHeader) GetBatchTableBinaryByteLength ¶
func (*CmptHeader) GetBatchTableBinaryByteLength() uint32
func (*CmptHeader) GetBatchTableJSONByteLength ¶
func (*CmptHeader) GetBatchTableJSONByteLength() uint32
func (*CmptHeader) GetByteLength ¶
func (h *CmptHeader) GetByteLength() uint32
func (*CmptHeader) GetFeatureTableBinaryByteLength ¶
func (*CmptHeader) GetFeatureTableBinaryByteLength() uint32
func (*CmptHeader) GetFeatureTableJSONByteLength ¶
func (*CmptHeader) GetFeatureTableJSONByteLength() uint32
func (*CmptHeader) GetTilesLength ¶
func (h *CmptHeader) GetTilesLength() uint32
func (*CmptHeader) SetBatchTableBinaryByteLength ¶
func (*CmptHeader) SetBatchTableBinaryByteLength(uint32)
func (*CmptHeader) SetBatchTableJSONByteLength ¶
func (*CmptHeader) SetBatchTableJSONByteLength(uint32)
func (*CmptHeader) SetFeatureTableBinaryByteLength ¶
func (*CmptHeader) SetFeatureTableBinaryByteLength(uint32)
func (*CmptHeader) SetFeatureTableJSONByteLength ¶
func (*CmptHeader) SetFeatureTableJSONByteLength(uint32)
func (*CmptHeader) SetTilesLength ¶
func (h *CmptHeader) SetTilesLength(n uint32)
type Expression ¶
type Expression = style.Expression
Expression is a 3D Tiles style expression string.
type ExpressionNodeType ¶
type ExpressionNodeType = style.ExpressionNodeType
ExpressionNodeType defines the AST node type for a parsed style expression.
type ExpressionType ¶
type ExpressionType = style.ExpressionType
ExpressionType defines the result type of a style expression.
type FeatureTable ¶
type FeatureTable struct {
Header map[string]interface{}
Data map[string]interface{}
// contains filtered or unexported fields
}
func (*FeatureTable) CalcSize ¶
func (h *FeatureTable) CalcSize(header Header) int64
func (*FeatureTable) GetBatchLength ¶
func (h *FeatureTable) GetBatchLength() int
func (*FeatureTable) Read ¶
func (h *FeatureTable) Read(reader io.ReadSeeker, header Header) error
type Geom ¶
type Geom struct {
Header GeomHeader
FeatureTable FeatureTable
BatchTable BatchTable
}
func (*Geom) GetBatchTable ¶
func (m *Geom) GetBatchTable() *BatchTable
func (*Geom) GetFeatureTable ¶
func (m *Geom) GetFeatureTable() *FeatureTable
func (*Geom) GetFeatureTableView ¶
func (m *Geom) GetFeatureTableView() GeomFeatureTableView
func (*Geom) SetFeatureTable ¶
func (m *Geom) SetFeatureTable(view GeomFeatureTableView)
type GeomCylinder ¶
type GeomCylinder [16]float32
type GeomEllipsoid ¶
type GeomEllipsoid [16]float32
type GeomFeatureTableView ¶
type GeomFeatureTableView struct {
Boxs []GeomBox
BoxBatchId interface{}
Cylinders []GeomCylinder
CylinderBatchId interface{}
Ellipsoids []GeomEllipsoid
EllipsoidBatchId interface{}
Spheres []GeomSphere
SphereBatchId interface{}
RtcCenter [3]float64
}
type GeomHeader ¶
type GeomHeader struct {
Magic [4]byte
Version uint32
ByteLength uint32
FeatureTableJSONByteLength uint32
FeatureTableBinaryByteLength uint32
BatchTableJSONByteLength uint32
BatchTableBinaryByteLength uint32
}
func (*GeomHeader) CalcSize ¶
func (h *GeomHeader) CalcSize() int64
func (*GeomHeader) GetBatchTableBinaryByteLength ¶
func (h *GeomHeader) GetBatchTableBinaryByteLength() uint32
func (*GeomHeader) GetBatchTableJSONByteLength ¶
func (h *GeomHeader) GetBatchTableJSONByteLength() uint32
func (*GeomHeader) GetByteLength ¶
func (h *GeomHeader) GetByteLength() uint32
func (*GeomHeader) GetFeatureTableBinaryByteLength ¶
func (h *GeomHeader) GetFeatureTableBinaryByteLength() uint32
func (*GeomHeader) GetFeatureTableJSONByteLength ¶
func (h *GeomHeader) GetFeatureTableJSONByteLength() uint32
func (*GeomHeader) SetBatchTableBinaryByteLength ¶
func (h *GeomHeader) SetBatchTableBinaryByteLength(n uint32)
func (*GeomHeader) SetBatchTableJSONByteLength ¶
func (h *GeomHeader) SetBatchTableJSONByteLength(n uint32)
func (*GeomHeader) SetFeatureTableBinaryByteLength ¶
func (h *GeomHeader) SetFeatureTableBinaryByteLength(n uint32)
func (*GeomHeader) SetFeatureTableJSONByteLength ¶
func (h *GeomHeader) SetFeatureTableJSONByteLength(n uint32)
type GeomSphere ¶
type GeomSphere [4]float32
type Header ¶
type Header interface {
CalcSize() int64
GetByteLength() uint32
GetFeatureTableJSONByteLength() uint32
GetFeatureTableBinaryByteLength() uint32
GetBatchTableJSONByteLength() uint32
GetBatchTableBinaryByteLength() uint32
SetFeatureTableJSONByteLength(uint32)
SetFeatureTableBinaryByteLength(uint32)
SetBatchTableJSONByteLength(uint32)
SetBatchTableBinaryByteLength(uint32)
}
type I3dm ¶
type I3dm struct {
Header I3dmHeader
FeatureTable FeatureTable
BatchTable BatchTable
GltfUri string
Model *gltf.Document
}
func (*I3dm) GetBatchTable ¶
func (m *I3dm) GetBatchTable() *BatchTable
func (*I3dm) GetFeatureTable ¶
func (m *I3dm) GetFeatureTable() *FeatureTable
func (*I3dm) GetFeatureTableView ¶
func (m *I3dm) GetFeatureTableView() I3dmFeatureTableView
func (*I3dm) SetFeatureTable ¶
func (m *I3dm) SetFeatureTable(view I3dmFeatureTableView)
type I3dmFeatureTableView ¶
type I3dmFeatureTableView struct {
Position [][3]float32
PositionQuantized [][3]uint16
NormalRight [][3]float32
NormalUp [][3]float32
NormalRightOCT16P [][2]uint16
NormalUpOCT16P [][2]uint16
Scale []float32
ScaleNONUniform [][3]float32
BatchId interface{}
InstanceLength int
RtcCenter []float64
QuantizedVolumeOffset []float32
QuantizedVolumeScale []float32
EastNorthUp *bool
}
type I3dmHeader ¶
type I3dmHeader struct {
Magic [4]byte
Version uint32
ByteLength uint32
FeatureTableJSONByteLength uint32
FeatureTableBinaryByteLength uint32
BatchTableJSONByteLength uint32
BatchTableBinaryByteLength uint32
GltfFormat uint32
}
func (*I3dmHeader) CalcSize ¶
func (h *I3dmHeader) CalcSize() int64
func (*I3dmHeader) GetBatchTableBinaryByteLength ¶
func (h *I3dmHeader) GetBatchTableBinaryByteLength() uint32
func (*I3dmHeader) GetBatchTableJSONByteLength ¶
func (h *I3dmHeader) GetBatchTableJSONByteLength() uint32
func (*I3dmHeader) GetByteLength ¶
func (h *I3dmHeader) GetByteLength() uint32
func (*I3dmHeader) GetFeatureTableBinaryByteLength ¶
func (h *I3dmHeader) GetFeatureTableBinaryByteLength() uint32
func (*I3dmHeader) GetFeatureTableJSONByteLength ¶
func (h *I3dmHeader) GetFeatureTableJSONByteLength() uint32
func (*I3dmHeader) SetBatchTableBinaryByteLength ¶
func (h *I3dmHeader) SetBatchTableBinaryByteLength(n uint32)
func (*I3dmHeader) SetBatchTableJSONByteLength ¶
func (h *I3dmHeader) SetBatchTableJSONByteLength(n uint32)
func (*I3dmHeader) SetFeatureTableBinaryByteLength ¶
func (h *I3dmHeader) SetFeatureTableBinaryByteLength(n uint32)
func (*I3dmHeader) SetFeatureTableJSONByteLength ¶
func (h *I3dmHeader) SetFeatureTableJSONByteLength(n uint32)
type MultipleContent ¶
type MultipleContent []*Content
type OctEncodedNormal ¶
type OctEncodedNormal struct {
// contains filtered or unexported fields
}
func NewOctEncodedNormal ¶
func NewOctEncodedNormal(v [3]float32) *OctEncodedNormal
func (*OctEncodedNormal) Decode ¶
func (n *OctEncodedNormal) Decode() [3]float32
type Pnts ¶
type Pnts struct {
Header PntsHeader
FeatureTable FeatureTable
BatchTable BatchTable
}
func (*Pnts) GetBatchTable ¶
func (m *Pnts) GetBatchTable() *BatchTable
func (*Pnts) GetFeatureTable ¶
func (m *Pnts) GetFeatureTable() *FeatureTable
func (*Pnts) GetFeatureTableView ¶
func (m *Pnts) GetFeatureTableView() PntsFeatureTableView
func (*Pnts) SetFeatureTable ¶
func (m *Pnts) SetFeatureTable(view PntsFeatureTableView)
type PntsFeatureTableView ¶
type PntsFeatureTableView struct {
Position [][3]float32
PositionQuantized [][3]uint16
RGBA [][4]uint8
RGB [][3]uint8
RGB565 []uint16
Normal [][3]float32
NormalOCT16P [][2]uint8
BatchId interface{}
PointsLength uint32
RtcCenter []float64
QuantizedVolumeOffset []float32
QuantizedVolumeScale []float32
ConstantRGBA []uint8
BatchLength *uint32
}
type PntsHeader ¶
type PntsHeader struct {
Magic [4]byte
Version uint32
ByteLength uint32
FeatureTableJSONByteLength uint32
FeatureTableBinaryByteLength uint32
BatchTableJSONByteLength uint32
BatchTableBinaryByteLength uint32
}
func (*PntsHeader) CalcSize ¶
func (h *PntsHeader) CalcSize() int64
func (*PntsHeader) GetBatchTableBinaryByteLength ¶
func (h *PntsHeader) GetBatchTableBinaryByteLength() uint32
func (*PntsHeader) GetBatchTableJSONByteLength ¶
func (h *PntsHeader) GetBatchTableJSONByteLength() uint32
func (*PntsHeader) GetByteLength ¶
func (h *PntsHeader) GetByteLength() uint32
func (*PntsHeader) GetFeatureTableBinaryByteLength ¶
func (h *PntsHeader) GetFeatureTableBinaryByteLength() uint32
func (*PntsHeader) GetFeatureTableJSONByteLength ¶
func (h *PntsHeader) GetFeatureTableJSONByteLength() uint32
func (*PntsHeader) SetBatchTableBinaryByteLength ¶
func (h *PntsHeader) SetBatchTableBinaryByteLength(n uint32)
func (*PntsHeader) SetBatchTableJSONByteLength ¶
func (h *PntsHeader) SetBatchTableJSONByteLength(n uint32)
func (*PntsHeader) SetFeatureTableBinaryByteLength ¶
func (h *PntsHeader) SetFeatureTableBinaryByteLength(n uint32)
func (*PntsHeader) SetFeatureTableJSONByteLength ¶
func (h *PntsHeader) SetFeatureTableJSONByteLength(n uint32)
type Tile ¶
type Tile struct {
Content *Content `json:"content,omitempty"`
Contents []Content `json:"contents,omitempty"`
BoundingVolume BoundingVolume `json:"boundingVolume,omitempty"`
ViewerRequestVolume *BoundingVolume `json:"viewerRequestVolume,omitempty"`
GeometricError float64 `json:"geometricError"`
Refine string `json:"refine"`
Transform *[16]float64 `json:"transform,omitempty"`
Children []Tile `json:"children,omitempty"`
Extensions map[string]interface{} `json:"extensions,omitempty"`
Extras map[string]interface{} `json:"extras,omitempty"`
}
type TileModel ¶
type TileModel interface {
GetHeader() Header
GetFeatureTable() *FeatureTable
GetBatchTable() *BatchTable
CalcSize() int64
Read(reader io.ReadSeeker) error
Write(writer io.Writer) error
}
type Tileset ¶
type Tileset struct {
Asset Asset `json:"asset"`
GeometricError float64 `json:"geometricError"`
Root Tile `json:"root"`
Properties map[string]Schema `json:"properties,omitempty"`
ExtensionsUsed []string `json:"extensionsUsed,omitempty"`
ExtensionsRequired []string `json:"extensionsRequired,omitempty"`
Extensions map[string]interface{} `json:"extensions,omitempty"`
Extras map[string]interface{} `json:"extras,omitempty"`
}
func TilesetFromJson ¶
type Vctr ¶
type Vctr struct {
Header VctrHeader
FeatureTable FeatureTable
BatchTable BatchTable
Indices VctrIndices
Polygons VctrPolygons
Polylines VctrPolylines
Points VctrPoints
}
func (*Vctr) GetBatchTable ¶
func (m *Vctr) GetBatchTable() *BatchTable
func (*Vctr) GetFeatureTable ¶
func (m *Vctr) GetFeatureTable() *FeatureTable
func (*Vctr) GetFeatureTableView ¶
func (m *Vctr) GetFeatureTableView() VctrFeatureTableView
func (*Vctr) GetIndices ¶
func (m *Vctr) GetIndices() VctrIndices
func (*Vctr) GetPoints ¶
func (m *Vctr) GetPoints() VctrPoints
func (*Vctr) GetPolygons ¶
func (m *Vctr) GetPolygons() VctrPolygons
func (*Vctr) GetPolylines ¶
func (m *Vctr) GetPolylines() VctrPolylines
func (*Vctr) SetFeatureTable ¶
func (m *Vctr) SetFeatureTable(view VctrFeatureTableView)
type VctrFeatureTableView ¶
type VctrFeatureTableView struct {
Region *[6]float32
RtcCenter [3]float64
PointsLength uint32
PointBatchId interface{}
PolygonsLength uint32
PolylinesLength uint32
PolylineBatchId interface{}
PolylineWidths []uint16
PolylineCounts []uint32
PolygonBatchId interface{}
PolygonMinimumHeight []float32
PolygonMaximumHeight []float32
PolygonIndexCounts []uint32
PolygonCounts []uint32
}
type VctrHeader ¶
type VctrHeader struct {
Magic [4]byte
Version uint32
ByteLength uint32
FeatureTableJSONByteLength uint32
FeatureTableBinaryByteLength uint32
BatchTableJSONByteLength uint32
BatchTableBinaryByteLength uint32
PolygonIndicesByteLength uint32
PolygonPositionsByteLength uint32
PolylinePositionsByteLength uint32
PointPositionsByteLength uint32
}
func (*VctrHeader) CalcSize ¶
func (h *VctrHeader) CalcSize() int64
func (*VctrHeader) GetBatchTableBinaryByteLength ¶
func (h *VctrHeader) GetBatchTableBinaryByteLength() uint32
func (*VctrHeader) GetBatchTableJSONByteLength ¶
func (h *VctrHeader) GetBatchTableJSONByteLength() uint32
func (*VctrHeader) GetByteLength ¶
func (h *VctrHeader) GetByteLength() uint32
func (*VctrHeader) GetFeatureTableBinaryByteLength ¶
func (h *VctrHeader) GetFeatureTableBinaryByteLength() uint32
func (*VctrHeader) GetFeatureTableJSONByteLength ¶
func (h *VctrHeader) GetFeatureTableJSONByteLength() uint32
func (*VctrHeader) GetPointPositionsByteLength ¶
func (h *VctrHeader) GetPointPositionsByteLength() uint32
func (*VctrHeader) GetPolygonIndicesByteLength ¶
func (h *VctrHeader) GetPolygonIndicesByteLength() uint32
func (*VctrHeader) GetPolygonPositionsByteLength ¶
func (h *VctrHeader) GetPolygonPositionsByteLength() uint32
func (*VctrHeader) GetPolylinePositionsByteLength ¶
func (h *VctrHeader) GetPolylinePositionsByteLength() uint32
func (*VctrHeader) SetBatchTableBinaryByteLength ¶
func (h *VctrHeader) SetBatchTableBinaryByteLength(n uint32)
func (*VctrHeader) SetBatchTableJSONByteLength ¶
func (h *VctrHeader) SetBatchTableJSONByteLength(n uint32)
func (*VctrHeader) SetFeatureTableBinaryByteLength ¶
func (h *VctrHeader) SetFeatureTableBinaryByteLength(n uint32)
func (*VctrHeader) SetFeatureTableJSONByteLength ¶
func (h *VctrHeader) SetFeatureTableJSONByteLength(n uint32)
func (*VctrHeader) SetPointPositionsByteLength ¶
func (h *VctrHeader) SetPointPositionsByteLength(n uint32)
func (*VctrHeader) SetPolygonIndicesByteLength ¶
func (h *VctrHeader) SetPolygonIndicesByteLength(n uint32)
func (*VctrHeader) SetPolygonPositionsByteLength ¶
func (h *VctrHeader) SetPolygonPositionsByteLength(n uint32)
func (*VctrHeader) SetPolylinePositionsByteLength ¶
func (h *VctrHeader) SetPolylinePositionsByteLength(n uint32)
type VctrIndices ¶
type VctrIndices struct {
// contains filtered or unexported fields
}
func (*VctrIndices) Add ¶
func (m *VctrIndices) Add(pt [3]uint32)
func (VctrIndices) CalcSize ¶
func (m VctrIndices) CalcSize(header Header) uint32
func (*VctrIndices) Read ¶
func (m *VctrIndices) Read(reader io.ReadSeeker, header Header) error
type VctrPoints ¶
type VctrPoints struct {
// contains filtered or unexported fields
}
func (*VctrPoints) Add ¶
func (m *VctrPoints) Add(pt [3]int)
func (*VctrPoints) CalcSize ¶
func (m *VctrPoints) CalcSize(header Header) uint32
func (*VctrPoints) Read ¶
func (m *VctrPoints) Read(reader io.ReadSeeker, header Header) error
type VctrPolygons ¶
type VctrPolygons struct {
// contains filtered or unexported fields
}
func (*VctrPolygons) Add ¶
func (m *VctrPolygons) Add(pt [2]int)
func (*VctrPolygons) CalcSize ¶
func (m *VctrPolygons) CalcSize(header Header) uint32
func (*VctrPolygons) Read ¶
func (m *VctrPolygons) Read(reader io.ReadSeeker, header Header) error
type VctrPolylines ¶
type VctrPolylines struct {
// contains filtered or unexported fields
}
func (*VctrPolylines) Add ¶
func (m *VctrPolylines) Add(pt [3]int)
func (*VctrPolylines) CalcSize ¶
func (m *VctrPolylines) CalcSize(header Header) uint32
func (*VctrPolylines) Read ¶
func (m *VctrPolylines) Read(reader io.ReadSeeker, header Header) error