Documentation ¶
Index ¶
- Constants
- Variables
- func ForEachTile(ts *tiles.Tileset, iterFn TileIterFn) error
- func Map(elem []interface{}, f func(interface{}) (float64, error)) ([]float64, error)
- func ReadTilesetFeatures(ctx context.Context, ts *tiles.Tileset, config *Config, fsys FS, debug bool) (map[string]TilesetFeature, error)
- func Retry(RetriableFunc RetriableFunc) error
- type Cartesian3
- type Cartographic
- type CesiumRTC
- type Config
- type DelayTypeFunc
- type EnumIndex
- type EnumIndexBuilder
- type EnumValue
- type FS
- type FSFS
- type HTTPFS
- type Ids
- type Index
- type IndexBuilder
- type IndexRoot
- type Indexer
- type NopCloser
- type OSOutputFS
- type OutputFS
- type Rectangle
- type Result
- type ResultData
- type RetriableFunc
- type RetryConfig
- type TileIterFn
- type TilesetFeature
- type WriteCloser
- type Writer
- func (w *Writer) Write(ctx context.Context, r Result) error
- func (w *Writer) WriteIndex(ctx context.Context, enumBuilder EnumIndexBuilder, fileId int) (_ *EnumIndex, err error)
- func (w *Writer) WriteIndexes(ctx context.Context, indexBuilders []IndexBuilder) (_ map[string]any, err error)
- func (w *Writer) WriteResultsData(ctx context.Context, data ResultData) (string, error)
- func (w *Writer) WriteValueIndex(ctx context.Context, fileId int, valueId int, ids []Ids) (*EnumValue, error)
- type ZipFS
- type ZipOutputFS
Constants ¶
View Source
const ( Pi = math.Pi TwoPi = 2 * math.Pi DegreesPerRadian = 180.0 / math.Pi Epsilon1 = 0.1 Epsilon12 = 0.000000000001 Epsilon14 = 0.00000000000001 )
View Source
const ( AxisX = 0 AxisY = 1 AxisZ = 2 )
View Source
const DRACO_EXT = "KHR_draco_mesh_compression" // draco.ExtensionName
Variables ¶
View Source
var ( Wgs84OneOverRadii = Cartesian3{ X: 1.0 / 6378137.0, Y: 1.0 / 6378137.0, Z: 1.0 / 6356752.3142451793, } Wgs84OneOverRadiiSquared = Cartesian3{ X: 1.0 / (6378137.0 * 6378137.0), Y: 1.0 / (6378137.0 * 6378137.0), Z: 1.0 / (6356752.3142451793 * 6356752.3142451793), } Wgs84CenterToleranceSquared = Epsilon1 )
View Source
var (
ScaleToGeodeticSurfaceGradient = &Cartesian3{}
)
Functions ¶
func ForEachTile ¶
func ForEachTile(ts *tiles.Tileset, iterFn TileIterFn) error
func ReadTilesetFeatures ¶
func Retry ¶
func Retry(RetriableFunc RetriableFunc) error
Types ¶
type Cartesian3 ¶
type Cartographic ¶
type DelayTypeFunc ¶
type DelayTypeFunc func(n uint, err error, config *RetryConfig) time.Duration
type EnumIndexBuilder ¶
func (EnumIndexBuilder) AddIndexValue ¶
func (enumBuilder EnumIndexBuilder) AddIndexValue(dataRowId int, value string)
func (EnumIndexBuilder) GetValueIds ¶
func (enumBuilder EnumIndexBuilder) GetValueIds() *map[string][]Ids
type IndexBuilder ¶
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
type NopCloser ¶
type NopCloser struct {
// contains filtered or unexported fields
}
func NewNopCloser ¶
type OSOutputFS ¶
type OSOutputFS struct {
// contains filtered or unexported fields
}
func NewOSOutputFS ¶
func NewOSOutputFS(base string) *OSOutputFS
func (*OSOutputFS) Open ¶
func (f *OSOutputFS) Open(ctx context.Context, name string) (w WriteCloser, err error)
type OutputFS ¶
type OutputFS interface {
Open(ctx context.Context, name string) (WriteCloser, error)
}
type Result ¶
type Result struct { IndexBuilders []IndexBuilder Data ResultData }
type ResultData ¶
type RetriableFunc ¶
type RetriableFunc func() error
type RetryConfig ¶
type RetryConfig struct {
// contains filtered or unexported fields
}
type TilesetFeature ¶
type TilesetFeature struct { Properties map[string]interface{} Position Cartographic }
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteIndex ¶
func (*Writer) WriteIndexes ¶
func (w *Writer) WriteIndexes(ctx context.Context, indexBuilders []IndexBuilder) (_ map[string]any, err error)
Write indexes using the index builders and returns a IndexRoot.indexes map
func (*Writer) WriteResultsData ¶
Writes the data.csv file and returns its path.
type ZipOutputFS ¶
type ZipOutputFS struct {
// contains filtered or unexported fields
}
func NewZipOutputFS ¶
func NewZipOutputFS(w *zip.Writer, base string) *ZipOutputFS
func (*ZipOutputFS) Open ¶
func (f *ZipOutputFS) Open(ctx context.Context, name string) (WriteCloser, error)
Click to show internal directories.
Click to hide internal directories.