@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
74 lines (73 loc) • 1.93 kB
TypeScript
type ClassificationColor = {
color: string;
name: string;
value: string;
visible: number;
};
type PointAttribute = {
name: string;
value: string;
elements: number;
bytes: number;
visible: number;
};
type MaxLevel = {
max: number;
width: number;
};
export type PytreeConfig = {
debug: boolean;
gmf_url: string;
pointclouds: string[];
default_point_cloud: string;
width: number;
point_size: number;
max_point_number: number;
vertical_pan_tolerance: number;
initialLOD: number;
classification_colors: {
[key: string]: ClassificationColor;
};
default_color: string;
default_attribute: string;
default_point_attribute: string;
point_attributes: {
[key: string]: PointAttribute;
};
max_levels: {
[key: string]: MaxLevel;
};
};
export type PotreePointAttribute = 'POSITION_CARTESIAN' | 'RGB' | 'COLOR_PACKED' | 'INTENSITY' | 'CLASSIFICATION' | 'POSITION_PROJECTED_PROFILE';
export type PotreeMetadata = {
boundingBox: {
lx: number;
ly: number;
lz: number;
ux: number;
uy: number;
uz: number;
};
bytesPerPoint: number;
durationMS: number;
nodesProcessed: number;
pointAttributes: PotreePointAttribute[];
points: number;
pointsProcessed: number;
scale: number;
};
export declare class PytreeManager {
baseURL: string;
config: PytreeConfig | null;
constructor(theBaseURL: string);
getConfig(): Promise<void>;
private readPotreeAttributes;
getData(pointCloudName: string, minLOD: number, maxLOD: number, profileWidth: number, coordinates: string, abortSignal: AbortSignal): Promise<{
data: {};
metadata: any;
} | undefined>;
getClassificationColor(classification: Uint8Array, colorScheme: {
[key: string]: ClassificationColor;
}): Uint8Array;
}
export {};