@loaders.gl/flatgeobuf
Advanced tools
Comparing version 4.1.0-alpha.9 to 4.1.0-alpha.10
import { parseFlatGeobuf, parseFlatGeobufInBatches } from "./lib/parse-flatgeobuf.js"; | ||
const VERSION = typeof "4.1.0-alpha.9" !== 'undefined' ? "4.1.0-alpha.9" : 'latest'; | ||
const VERSION = typeof "4.1.0-alpha.10" !== 'undefined' ? "4.1.0-alpha.10" : 'latest'; | ||
const FGB_MAGIC_NUMBER = [0x66, 0x67, 0x62, 0x03, 0x66, 0x67, 0x62, 0x01]; | ||
@@ -4,0 +4,0 @@ export const FlatGeobufWorkerLoader = { |
@@ -1,2 +0,2 @@ | ||
import { ColumnType } from './flat-geobuf/column-type.js'; | ||
import { ColumnType } from './flat-geobuf/column-type'; | ||
export default interface ColumnMeta { | ||
@@ -3,0 +3,0 @@ name: string; |
@@ -6,5 +6,5 @@ import flatbuffers from 'flatbuffers'; | ||
import { readFileSync, writeFileSync } from 'fs'; | ||
import { magicbytes, SIZE_PREFIX_LEN } from './constants.js'; | ||
import { fromByteBuffer } from './header-meta.js'; | ||
import { calcTreeSize, generateLevelBounds } from './packedrtree.js'; | ||
import { magicbytes, SIZE_PREFIX_LEN } from "./constants.js"; | ||
import { fromByteBuffer } from "./header-meta.js"; | ||
import { calcTreeSize, generateLevelBounds } from "./packedrtree.js"; | ||
const buffer = readFileSync('./test/data/tiger_roads.fgb'); | ||
@@ -11,0 +11,0 @@ const bytes = new Uint8Array(buffer); |
@@ -1,2 +0,2 @@ | ||
export * as FlatGeobuf from './flat-geobuf.js'; | ||
export * as FlatGeobuf from './flat-geobuf'; | ||
//# sourceMappingURL=feature.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import * as _FlatGeobuf from './flat-geobuf.js'; | ||
import * as _FlatGeobuf from "./flat-geobuf/index.js"; | ||
export { _FlatGeobuf as FlatGeobuf }; | ||
//# sourceMappingURL=feature.js.map |
@@ -1,6 +0,6 @@ | ||
export { Column } from './flat-geobuf/column.js'; | ||
export { ColumnType } from './flat-geobuf/column-type.js'; | ||
export { Crs } from './flat-geobuf/crs.js'; | ||
export { GeometryType } from './flat-geobuf/geometry-type.js'; | ||
export { Header } from './flat-geobuf/header.js'; | ||
export { Column } from './flat-geobuf/column'; | ||
export { ColumnType } from './flat-geobuf/column-type'; | ||
export { Crs } from './flat-geobuf/crs'; | ||
export { GeometryType } from './flat-geobuf/geometry-type'; | ||
export { Header } from './flat-geobuf/header'; | ||
//# sourceMappingURL=flat-geobuf.d.ts.map |
@@ -1,6 +0,6 @@ | ||
export { Column } from './flat-geobuf/column.js'; | ||
export { ColumnType } from './flat-geobuf/column-type.js'; | ||
export { Crs } from './flat-geobuf/crs.js'; | ||
export { GeometryType } from './flat-geobuf/geometry-type.js'; | ||
export { Header } from './flat-geobuf/header.js'; | ||
export { Column } from "./flat-geobuf/column.js"; | ||
export { ColumnType } from "./flat-geobuf/column-type.js"; | ||
export { Crs } from "./flat-geobuf/crs.js"; | ||
export { GeometryType } from "./flat-geobuf/geometry-type.js"; | ||
export { Header } from "./flat-geobuf/header.js"; | ||
//# sourceMappingURL=flat-geobuf.js.map |
import * as flatbuffers from 'flatbuffers'; | ||
import { ColumnType } from '../flat-geobuf/column-type.js'; | ||
import { ColumnType } from '../flat-geobuf/column-type'; | ||
export declare class Column { | ||
@@ -4,0 +4,0 @@ bb: flatbuffers.ByteBuffer | null; |
import * as flatbuffers from 'flatbuffers'; | ||
import { ColumnType } from '../flat-geobuf/column-type.js'; | ||
import { ColumnType } from "../flat-geobuf/column-type.js"; | ||
export class Column { | ||
@@ -4,0 +4,0 @@ constructor() { |
import * as flatbuffers from 'flatbuffers'; | ||
import { Column } from '../flat-geobuf/column.js'; | ||
import { Geometry } from '../flat-geobuf/geometry.js'; | ||
import { Column } from '../flat-geobuf/column'; | ||
import { Geometry } from '../flat-geobuf/geometry'; | ||
export declare class Feature { | ||
@@ -5,0 +5,0 @@ bb: flatbuffers.ByteBuffer | null; |
import * as flatbuffers from 'flatbuffers'; | ||
import { Column } from '../flat-geobuf/column.js'; | ||
import { Geometry } from '../flat-geobuf/geometry.js'; | ||
import { Column } from "../flat-geobuf/column.js"; | ||
import { Geometry } from "../flat-geobuf/geometry.js"; | ||
export class Feature { | ||
@@ -5,0 +5,0 @@ constructor() { |
import * as flatbuffers from 'flatbuffers'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type'; | ||
export declare class Geometry { | ||
@@ -4,0 +4,0 @@ bb: flatbuffers.ByteBuffer | null; |
import * as flatbuffers from 'flatbuffers'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { GeometryType } from "../flat-geobuf/geometry-type.js"; | ||
export class Geometry { | ||
@@ -4,0 +4,0 @@ constructor() { |
import * as flatbuffers from 'flatbuffers'; | ||
import { Column } from '../flat-geobuf/column.js'; | ||
import { Crs } from '../flat-geobuf/crs.js'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { Column } from '../flat-geobuf/column'; | ||
import { Crs } from '../flat-geobuf/crs'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type'; | ||
export declare class Header { | ||
@@ -6,0 +6,0 @@ bb: flatbuffers.ByteBuffer | null; |
import * as flatbuffers from 'flatbuffers'; | ||
import { Column } from '../flat-geobuf/column.js'; | ||
import { Crs } from '../flat-geobuf/crs.js'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { Column } from "../flat-geobuf/column.js"; | ||
import { Crs } from "../flat-geobuf/crs.js"; | ||
import { GeometryType } from "../flat-geobuf/geometry-type.js"; | ||
export class Header { | ||
@@ -6,0 +6,0 @@ constructor() { |
@@ -1,5 +0,5 @@ | ||
import { FromFeatureFn } from './generic/featurecollection.js'; | ||
import { Rect } from './packedrtree.js'; | ||
import { IFeature } from './generic/feature.js'; | ||
import HeaderMeta from './header-meta.js'; | ||
import { FromFeatureFn } from './generic/featurecollection'; | ||
import { Rect } from './packedrtree'; | ||
import { IFeature } from './generic/feature'; | ||
import HeaderMeta from './header-meta'; | ||
export type HeaderMetaFn = (headerMeta: HeaderMeta) => void; | ||
@@ -13,5 +13,5 @@ /** | ||
export declare function deserialize(input: Uint8Array | ReadableStream | string, fromFeature: FromFeatureFn, rect?: Rect): any[] | AsyncGenerator<IFeature>; | ||
export { serialize } from './generic/featurecollection.js'; | ||
export { GeometryType } from './flat-geobuf/geometry-type.js'; | ||
export { ColumnType } from './flat-geobuf/column-type.js'; | ||
export { serialize } from './generic/featurecollection'; | ||
export { GeometryType } from './flat-geobuf/geometry-type'; | ||
export { ColumnType } from './flat-geobuf/column-type'; | ||
//# sourceMappingURL=generic.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { deserialize as deserializeArray, deserializeStream, deserializeFiltered } from './generic/featurecollection.js'; | ||
import { deserialize as deserializeArray, deserializeStream, deserializeFiltered } from "./generic/featurecollection.js"; | ||
export function deserialize(input, fromFeature, rect) { | ||
@@ -6,5 +6,5 @@ if (input instanceof Uint8Array) return deserializeArray(input, fromFeature);else if (input instanceof ReadableStream) return deserializeStream(input, fromFeature); | ||
} | ||
export { serialize } from './generic/featurecollection.js'; | ||
export { GeometryType } from './flat-geobuf/geometry-type.js'; | ||
export { ColumnType } from './flat-geobuf/column-type.js'; | ||
export { serialize } from "./generic/featurecollection.js"; | ||
export { GeometryType } from "./flat-geobuf/geometry-type.js"; | ||
export { ColumnType } from "./flat-geobuf/column-type.js"; | ||
//# sourceMappingURL=generic.js.map |
@@ -1,5 +0,5 @@ | ||
import ColumnMeta from '../column-meta.js'; | ||
import { Feature } from '../flat-geobuf/feature.js'; | ||
import HeaderMeta from '../header-meta.js'; | ||
import { ISimpleGeometry, ICreateGeometry, IParsedGeometry } from './geometry.js'; | ||
import ColumnMeta from '../column-meta'; | ||
import { Feature } from '../flat-geobuf/feature'; | ||
import HeaderMeta from '../header-meta'; | ||
import { ISimpleGeometry, ICreateGeometry, IParsedGeometry } from './geometry'; | ||
export interface IFeature { | ||
@@ -6,0 +6,0 @@ getGeometry?(): ISimpleGeometry; |
import * as flatbuffers from 'flatbuffers'; | ||
import { ColumnType } from '../flat-geobuf/column-type.js'; | ||
import { Feature } from '../flat-geobuf/feature.js'; | ||
import { buildGeometry } from './geometry.js'; | ||
import { ColumnType } from "../flat-geobuf/column-type.js"; | ||
import { Feature } from "../flat-geobuf/feature.js"; | ||
import { buildGeometry } from "./geometry.js"; | ||
const textEncoder = new TextEncoder(); | ||
@@ -6,0 +6,0 @@ const textDecoder = new TextDecoder(); |
@@ -1,7 +0,7 @@ | ||
import ColumnMeta from '../column-meta.js'; | ||
import { Feature } from '../flat-geobuf/feature.js'; | ||
import HeaderMeta from '../header-meta.js'; | ||
import { IFeature } from './feature.js'; | ||
import { Rect } from '../packedrtree.js'; | ||
import { HeaderMetaFn } from '../generic.js'; | ||
import ColumnMeta from '../column-meta'; | ||
import { Feature } from '../flat-geobuf/feature'; | ||
import HeaderMeta from '../header-meta'; | ||
import { IFeature } from './feature'; | ||
import { Rect } from '../packedrtree'; | ||
import { HeaderMetaFn } from '../generic'; | ||
export type FromFeatureFn = (feature: Feature, header: HeaderMeta) => IFeature; | ||
@@ -8,0 +8,0 @@ /** |
import * as flatbuffers from 'flatbuffers'; | ||
import slice from 'slice-source'; | ||
import { Header } from '../flat-geobuf/header.js'; | ||
import { Column } from '../flat-geobuf/column.js'; | ||
import { ColumnType } from '../flat-geobuf/column-type.js'; | ||
import { Feature } from '../flat-geobuf/feature.js'; | ||
import { fromByteBuffer } from '../header-meta.js'; | ||
import { buildFeature } from './feature.js'; | ||
import { HttpReader } from '../http-reader.js'; | ||
import Logger from '../logger.js'; | ||
import { calcTreeSize } from '../packedrtree.js'; | ||
import { parseGeometry } from './geometry.js'; | ||
import { magicbytes, SIZE_PREFIX_LEN } from '../constants.js'; | ||
import { inferGeometryType } from './header.js'; | ||
import { Header } from "../flat-geobuf/header.js"; | ||
import { Column } from "../flat-geobuf/column.js"; | ||
import { ColumnType } from "../flat-geobuf/column-type.js"; | ||
import { Feature } from "../flat-geobuf/feature.js"; | ||
import { fromByteBuffer } from "../header-meta.js"; | ||
import { buildFeature } from "./feature.js"; | ||
import { HttpReader } from "../http-reader.js"; | ||
import Logger from "../logger.js"; | ||
import { calcTreeSize } from "../packedrtree.js"; | ||
import { parseGeometry } from "./geometry.js"; | ||
import { magicbytes, SIZE_PREFIX_LEN } from "../constants.js"; | ||
import { inferGeometryType } from "./header.js"; | ||
export function serialize(features) { | ||
@@ -16,0 +16,0 @@ const headerMeta = introspectHeaderMeta(features); |
import * as flatbuffers from 'flatbuffers'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { Geometry } from '../flat-geobuf/geometry.js'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type'; | ||
import { Geometry } from '../flat-geobuf/geometry'; | ||
export interface IParsedGeometry { | ||
@@ -5,0 +5,0 @@ xy: number[]; |
@@ -1,3 +0,3 @@ | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { Geometry } from '../flat-geobuf/geometry.js'; | ||
import { GeometryType } from "../flat-geobuf/geometry-type.js"; | ||
import { Geometry } from "../flat-geobuf/geometry.js"; | ||
export function buildGeometry(builder, parsedGeometry) { | ||
@@ -4,0 +4,0 @@ const { |
@@ -1,5 +0,5 @@ | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { IFeature } from './feature.js'; | ||
import { IGeoJsonFeature } from '../geojson/feature.js'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type'; | ||
import { IFeature } from './feature'; | ||
import { IGeoJsonFeature } from '../geojson/feature'; | ||
export declare function inferGeometryType(features: (IFeature | IGeoJsonFeature)[]): GeometryType; | ||
//# sourceMappingURL=header.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { toGeometryType } from '../generic/geometry.js'; | ||
import { GeometryType } from "../flat-geobuf/geometry-type.js"; | ||
import { toGeometryType } from "../generic/geometry.js"; | ||
function featureGeomType(feature) { | ||
@@ -4,0 +4,0 @@ if (feature.getGeometry) { |
import { FeatureCollection as GeoJsonFeatureCollection } from 'geojson'; | ||
import { Rect } from './packedrtree.js'; | ||
import { IGeoJsonFeature } from './geojson/feature.js'; | ||
import { HeaderMetaFn } from './generic.js'; | ||
import { Rect } from './packedrtree'; | ||
import { IGeoJsonFeature } from './geojson/feature'; | ||
import { HeaderMetaFn } from './generic'; | ||
/** | ||
@@ -6,0 +6,0 @@ * Serialize GeoJSON to FlatGeobuf |
@@ -1,2 +0,2 @@ | ||
import { deserialize as fcDeserialize, deserializeStream as fcDeserializeStream, deserializeFiltered as fcDeserializeFiltered, serialize as fcSerialize } from './geojson/featurecollection.js'; | ||
import { deserialize as fcDeserialize, deserializeStream as fcDeserializeStream, deserializeFiltered as fcDeserializeFiltered, serialize as fcSerialize } from "./geojson/featurecollection.js"; | ||
export function serialize(geojson) { | ||
@@ -3,0 +3,0 @@ const bytes = fcSerialize(geojson); |
@@ -1,4 +0,4 @@ | ||
import { Feature } from '../flat-geobuf/feature.js'; | ||
import HeaderMeta from '../header-meta.js'; | ||
import { IFeature } from '../generic/feature.js'; | ||
import { Feature } from '../flat-geobuf/feature'; | ||
import HeaderMeta from '../header-meta'; | ||
import { IFeature } from '../generic/feature'; | ||
import { Feature as GeoJsonFeature } from 'geojson'; | ||
@@ -5,0 +5,0 @@ export interface IGeoJsonFeature extends IFeature, GeoJsonFeature { |
@@ -1,3 +0,3 @@ | ||
import { fromGeometry } from './geometry.js'; | ||
import { parseProperties } from '../generic/feature.js'; | ||
import { fromGeometry } from "./geometry.js"; | ||
import { parseProperties } from "../generic/feature.js"; | ||
export function fromFeature(feature, header) { | ||
@@ -4,0 +4,0 @@ const columns = header.columns; |
@@ -1,3 +0,3 @@ | ||
import { Rect } from '../packedrtree.js'; | ||
import { HeaderMetaFn } from '../generic.js'; | ||
import { Rect } from '../packedrtree'; | ||
import { HeaderMetaFn } from '../generic'; | ||
import { FeatureCollection as GeoJsonFeatureCollection } from 'geojson'; | ||
@@ -4,0 +4,0 @@ export declare function serialize(featurecollection: GeoJsonFeatureCollection): Uint8Array; |
@@ -1,7 +0,7 @@ | ||
import { fromFeature } from './feature.js'; | ||
import { parseGeometry, parseGC } from './geometry.js'; | ||
import { buildHeader, deserialize as genericDeserialize, deserializeStream as genericDeserializeStream, deserializeFiltered as genericDeserializeFiltered, mapColumn } from '../generic/featurecollection.js'; | ||
import { buildFeature } from '../generic/feature.js'; | ||
import { magicbytes } from '../constants.js'; | ||
import { inferGeometryType } from '../generic/header.js'; | ||
import { fromFeature } from "./feature.js"; | ||
import { parseGeometry, parseGC } from "./geometry.js"; | ||
import { buildHeader, deserialize as genericDeserialize, deserializeStream as genericDeserializeStream, deserializeFiltered as genericDeserializeFiltered, mapColumn } from "../generic/featurecollection.js"; | ||
import { buildFeature } from "../generic/feature.js"; | ||
import { magicbytes } from "../constants.js"; | ||
import { inferGeometryType } from "../generic/header.js"; | ||
export function serialize(featurecollection) { | ||
@@ -8,0 +8,0 @@ const headerMeta = introspectHeaderMeta(featurecollection); |
@@ -1,5 +0,5 @@ | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { Geometry } from '../flat-geobuf/geometry.js'; | ||
import { GeometryType } from '../flat-geobuf/geometry-type'; | ||
import { Geometry } from '../flat-geobuf/geometry'; | ||
import { Geometry as GeoJsonGeometry, Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection } from 'geojson'; | ||
import { IParsedGeometry } from '../generic/geometry.js'; | ||
import { IParsedGeometry } from '../generic/geometry'; | ||
export interface IGeoJsonGeometry { | ||
@@ -6,0 +6,0 @@ type: string; |
@@ -1,3 +0,3 @@ | ||
import { GeometryType } from '../flat-geobuf/geometry-type.js'; | ||
import { flat, pairFlatCoordinates, toGeometryType } from '../generic/geometry.js'; | ||
import { GeometryType } from "../flat-geobuf/geometry-type.js"; | ||
import { flat, pairFlatCoordinates, toGeometryType } from "../generic/geometry.js"; | ||
export function parseGeometry(geometry) { | ||
@@ -4,0 +4,0 @@ const cs = geometry.coordinates; |
import * as flatbuffers from 'flatbuffers'; | ||
import ColumnMeta from './column-meta.js'; | ||
import CrsMeta from './crs-meta.js'; | ||
import { GeometryType } from './flat-geobuf/geometry-type.js'; | ||
import ColumnMeta from './column-meta'; | ||
import CrsMeta from './crs-meta'; | ||
import { GeometryType } from './flat-geobuf/geometry-type'; | ||
export default interface HeaderMeta { | ||
@@ -6,0 +6,0 @@ geometryType: GeometryType; |
@@ -1,2 +0,2 @@ | ||
import { Header } from './flat-geobuf/header.js'; | ||
import { Header } from "./flat-geobuf/header.js"; | ||
export function fromByteBuffer(bb) { | ||
@@ -3,0 +3,0 @@ const header = Header.getRootAsHeader(bb); |
@@ -1,2 +0,2 @@ | ||
export * as FlatGeobuf from './flat-geobuf.js'; | ||
export * as FlatGeobuf from './flat-geobuf'; | ||
//# sourceMappingURL=header.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import * as _FlatGeobuf from './flat-geobuf.js'; | ||
import * as _FlatGeobuf from "./flat-geobuf/index.js"; | ||
export { _FlatGeobuf as FlatGeobuf }; | ||
//# sourceMappingURL=header.js.map |
@@ -1,4 +0,4 @@ | ||
import { Rect } from './packedrtree.js'; | ||
import HeaderMeta from './header-meta.js'; | ||
import { Feature } from './flat-geobuf/feature.js'; | ||
import { Rect } from './packedrtree'; | ||
import HeaderMeta from './header-meta'; | ||
import { Feature } from './flat-geobuf/feature'; | ||
export declare class HttpReader { | ||
@@ -5,0 +5,0 @@ private headerClient; |
import * as flatbuffers from 'flatbuffers'; | ||
import { Repeater } from '@repeaterjs/repeater'; | ||
import { calcTreeSize, DEFAULT_NODE_SIZE, NODE_ITEM_BYTE_LEN, streamSearch } from './packedrtree.js'; | ||
import { magicbytes, SIZE_PREFIX_LEN } from './constants.js'; | ||
import Config from './config.js'; | ||
import Logger from './logger.js'; | ||
import { fromByteBuffer } from './header-meta.js'; | ||
import { Feature } from './flat-geobuf/feature.js'; | ||
import { calcTreeSize, DEFAULT_NODE_SIZE, NODE_ITEM_BYTE_LEN, streamSearch } from "./packedrtree.js"; | ||
import { magicbytes, SIZE_PREFIX_LEN } from "./constants.js"; | ||
import Config from "./config.js"; | ||
import Logger from "./logger.js"; | ||
import { fromByteBuffer } from "./header-meta.js"; | ||
import { Feature } from "./flat-geobuf/feature.js"; | ||
export class HttpReader { | ||
@@ -10,0 +10,0 @@ constructor(headerClient, header, headerLength, indexLength) { |
@@ -1,14 +0,14 @@ | ||
export * as generic from './generic.js'; | ||
export * as geojson from './geojson.js'; | ||
export { Column } from './flat-geobuf/column.js'; | ||
export { Geometry } from './flat-geobuf/geometry.js'; | ||
export { Feature } from './flat-geobuf/feature.js'; | ||
export { ISimpleGeometry } from './generic/geometry.js'; | ||
export { IFeature } from './generic/feature.js'; | ||
export { FromFeatureFn } from './generic/featurecollection.js'; | ||
export { IGeoJsonFeature } from './geojson/feature.js'; | ||
export { default as HeaderMeta } from './header-meta.js'; | ||
export { default as ColumnMeta } from './column-meta.js'; | ||
export { default as CrsMeta } from './crs-meta.js'; | ||
export { Rect } from './packedrtree.js'; | ||
export * as generic from './generic'; | ||
export * as geojson from './geojson'; | ||
export { Column } from './flat-geobuf/column'; | ||
export { Geometry } from './flat-geobuf/geometry'; | ||
export { Feature } from './flat-geobuf/feature'; | ||
export { ISimpleGeometry } from './generic/geometry'; | ||
export { IFeature } from './generic/feature'; | ||
export { FromFeatureFn } from './generic/featurecollection'; | ||
export { IGeoJsonFeature } from './geojson/feature'; | ||
export { default as HeaderMeta } from './header-meta'; | ||
export { default as ColumnMeta } from './column-meta'; | ||
export { default as CrsMeta } from './crs-meta'; | ||
export { Rect } from './packedrtree'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,16 +0,16 @@ | ||
import * as _generic from './generic.js'; | ||
import * as _generic from "./generic/index.js"; | ||
export { _generic as generic }; | ||
import * as _geojson from './geojson.js'; | ||
import * as _geojson from "./geojson/index.js"; | ||
export { _geojson as geojson }; | ||
export { Column } from './flat-geobuf/column.js'; | ||
export { Geometry } from './flat-geobuf/geometry.js'; | ||
export { Feature } from './flat-geobuf/feature.js'; | ||
export { ISimpleGeometry } from './generic/geometry.js'; | ||
export { IFeature } from './generic/feature.js'; | ||
export { FromFeatureFn } from './generic/featurecollection.js'; | ||
export { IGeoJsonFeature } from './geojson/feature.js'; | ||
export { default as HeaderMeta } from './header-meta.js'; | ||
export { default as ColumnMeta } from './column-meta.js'; | ||
export { default as CrsMeta } from './crs-meta.js'; | ||
export { Rect } from './packedrtree.js'; | ||
export { Column } from "./flat-geobuf/column.js"; | ||
export { Geometry } from "./flat-geobuf/geometry.js"; | ||
export { Feature } from "./flat-geobuf/feature.js"; | ||
export { ISimpleGeometry } from "./generic/geometry.js"; | ||
export { IFeature } from "./generic/feature.js"; | ||
export { FromFeatureFn } from "./generic/featurecollection.js"; | ||
export { IGeoJsonFeature } from "./geojson/feature.js"; | ||
export { default as HeaderMeta } from "./header-meta.js"; | ||
export { default as ColumnMeta } from "./column-meta.js"; | ||
export { default as CrsMeta } from "./crs-meta.js"; | ||
export { Rect } from "./packedrtree.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import Config from './config.js'; | ||
import Logger from './logger.js'; | ||
import Config from "./config.js"; | ||
import Logger from "./logger.js"; | ||
export const NODE_ITEM_BYTE_LEN = 8 * 4 + 8; | ||
@@ -4,0 +4,0 @@ export const NODE_ITEM_LEN = NODE_ITEM_BYTE_LEN; |
@@ -5,4 +5,4 @@ import { Proj4Projection } from '@math.gl/proj4'; | ||
import { getSchemaFromFGBHeader } from "./get-schema-from-fgb-header.js"; | ||
import * as geojson from '../flatgeobuf/3.27.2/geojson.js'; | ||
import * as generic from '../flatgeobuf/3.27.2/generic.js'; | ||
import * as geojson from "../flatgeobuf/3.27.2/geojson/index.js"; | ||
import * as generic from "../flatgeobuf/3.27.2/generic/index.js"; | ||
import { parseProperties as parsePropertiesBinary } from "../flatgeobuf/3.27.2/generic/feature.js"; | ||
@@ -9,0 +9,0 @@ const deserializeGeoJson = geojson.deserialize; |
{ | ||
"name": "@loaders.gl/flatgeobuf", | ||
"description": "Loader for FlatGeobuf", | ||
"version": "4.1.0-alpha.9", | ||
"version": "4.1.0-alpha.10", | ||
"license": "MIT", | ||
@@ -29,5 +29,5 @@ "type": "module", | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
"require": "./dist/index.cjs" | ||
} | ||
@@ -47,4 +47,4 @@ }, | ||
"dependencies": { | ||
"@loaders.gl/gis": "4.1.0-alpha.9", | ||
"@loaders.gl/loader-utils": "4.1.0-alpha.9", | ||
"@loaders.gl/gis": "4.1.0-alpha.10", | ||
"@loaders.gl/loader-utils": "4.1.0-alpha.10", | ||
"@math.gl/proj4": "^4.0.0", | ||
@@ -56,3 +56,3 @@ "flatgeobuf": "3.27.2" | ||
}, | ||
"gitHead": "0291d4d78d71202385d0368942f84778d6aafa82" | ||
"gitHead": "19f43c2d90d8b50860c3f8e487429779a386287d" | ||
} |
@@ -1,2 +0,2 @@ | ||
import {ColumnType} from './flat-geobuf/column-type.js'; | ||
import {ColumnType} from './flat-geobuf/column-type'; | ||
@@ -3,0 +3,0 @@ export default interface ColumnMeta { |
@@ -10,5 +10,5 @@ // tool to dump spatial index tree | ||
import {magicbytes, SIZE_PREFIX_LEN} from './constants.js'; | ||
import {fromByteBuffer} from './header-meta.js'; | ||
import {calcTreeSize, generateLevelBounds} from './packedrtree.js'; | ||
import {magicbytes, SIZE_PREFIX_LEN} from './constants'; | ||
import {fromByteBuffer} from './header-meta'; | ||
import {calcTreeSize, generateLevelBounds} from './packedrtree'; | ||
@@ -15,0 +15,0 @@ const buffer = readFileSync('./test/data/tiger_roads.fgb'); |
// automatically generated by the FlatBuffers compiler, do not modify | ||
export * as FlatGeobuf from './flat-geobuf.js'; | ||
export * as FlatGeobuf from './flat-geobuf'; |
// automatically generated by the FlatBuffers compiler, do not modify | ||
export {Column} from './flat-geobuf/column.js'; | ||
export {ColumnType} from './flat-geobuf/column-type.js'; | ||
export {Crs} from './flat-geobuf/crs.js'; | ||
export {GeometryType} from './flat-geobuf/geometry-type.js'; | ||
export {Header} from './flat-geobuf/header.js'; | ||
export {Column} from './flat-geobuf/column'; | ||
export {ColumnType} from './flat-geobuf/column-type'; | ||
export {Crs} from './flat-geobuf/crs'; | ||
export {GeometryType} from './flat-geobuf/geometry-type'; | ||
export {Header} from './flat-geobuf/header'; |
@@ -5,3 +5,3 @@ // automatically generated by the FlatBuffers compiler, do not modify | ||
import {ColumnType} from '../flat-geobuf/column-type.js'; | ||
import {ColumnType} from '../flat-geobuf/column-type'; | ||
@@ -8,0 +8,0 @@ export class Column { |
@@ -5,4 +5,4 @@ // automatically generated by the FlatBuffers compiler, do not modify | ||
import {Column} from '../flat-geobuf/column.js'; | ||
import {Geometry} from '../flat-geobuf/geometry.js'; | ||
import {Column} from '../flat-geobuf/column'; | ||
import {Geometry} from '../flat-geobuf/geometry'; | ||
@@ -9,0 +9,0 @@ export class Feature { |
@@ -5,3 +5,3 @@ // automatically generated by the FlatBuffers compiler, do not modify | ||
import {GeometryType} from '../flat-geobuf/geometry-type.js'; | ||
import {GeometryType} from '../flat-geobuf/geometry-type'; | ||
@@ -8,0 +8,0 @@ export class Geometry { |
@@ -5,5 +5,5 @@ // automatically generated by the FlatBuffers compiler, do not modify | ||
import {Column} from '../flat-geobuf/column.js'; | ||
import {Crs} from '../flat-geobuf/crs.js'; | ||
import {GeometryType} from '../flat-geobuf/geometry-type.js'; | ||
import {Column} from '../flat-geobuf/column'; | ||
import {Crs} from '../flat-geobuf/crs'; | ||
import {GeometryType} from '../flat-geobuf/geometry-type'; | ||
@@ -10,0 +10,0 @@ export class Header { |
@@ -6,7 +6,7 @@ import { | ||
FromFeatureFn | ||
} from './generic/featurecollection.js'; | ||
} from './generic/featurecollection'; | ||
import {Rect} from './packedrtree.js'; | ||
import {IFeature} from './generic/feature.js'; | ||
import HeaderMeta from './header-meta.js'; | ||
import {Rect} from './packedrtree'; | ||
import {IFeature} from './generic/feature'; | ||
import HeaderMeta from './header-meta'; | ||
@@ -31,5 +31,5 @@ export type HeaderMetaFn = (headerMeta: HeaderMeta) => void; | ||
export {serialize} from './generic/featurecollection.js'; | ||
export {serialize} from './generic/featurecollection'; | ||
export {GeometryType} from './flat-geobuf/geometry-type.js'; | ||
export {ColumnType} from './flat-geobuf/column-type.js'; | ||
export {GeometryType} from './flat-geobuf/geometry-type'; | ||
export {ColumnType} from './flat-geobuf/column-type'; |
import * as flatbuffers from 'flatbuffers'; | ||
import ColumnMeta from '../column-meta.js'; | ||
import {ColumnType} from '../flat-geobuf/column-type.js'; | ||
import {Feature} from '../flat-geobuf/feature.js'; | ||
import HeaderMeta from '../header-meta.js'; | ||
import {buildGeometry, ISimpleGeometry, ICreateGeometry, IParsedGeometry} from './geometry.js'; | ||
import ColumnMeta from '../column-meta'; | ||
import {ColumnType} from '../flat-geobuf/column-type'; | ||
import {Feature} from '../flat-geobuf/feature'; | ||
import HeaderMeta from '../header-meta'; | ||
import {buildGeometry, ISimpleGeometry, ICreateGeometry, IParsedGeometry} from './geometry'; | ||
@@ -9,0 +9,0 @@ const textEncoder = new TextEncoder(); |
import * as flatbuffers from 'flatbuffers'; | ||
import slice from 'slice-source'; | ||
import ColumnMeta from '../column-meta.js'; | ||
import ColumnMeta from '../column-meta'; | ||
import {Header} from '../flat-geobuf/header.js'; | ||
import {Header} from '../flat-geobuf/header'; | ||
import {Column} from '../flat-geobuf/column.js'; | ||
import {ColumnType} from '../flat-geobuf/column-type.js'; | ||
import {Feature} from '../flat-geobuf/feature.js'; | ||
import HeaderMeta, {fromByteBuffer} from '../header-meta.js'; | ||
import {Column} from '../flat-geobuf/column'; | ||
import {ColumnType} from '../flat-geobuf/column-type'; | ||
import {Feature} from '../flat-geobuf/feature'; | ||
import HeaderMeta, {fromByteBuffer} from '../header-meta'; | ||
import {buildFeature, IFeature} from './feature.js'; | ||
import {HttpReader} from '../http-reader.js'; | ||
import Logger from '../logger.js'; | ||
import {Rect, calcTreeSize} from '../packedrtree.js'; | ||
import {parseGeometry} from './geometry.js'; | ||
import {HeaderMetaFn} from '../generic.js'; | ||
import {magicbytes, SIZE_PREFIX_LEN} from '../constants.js'; | ||
import {inferGeometryType} from './header.js'; | ||
import {buildFeature, IFeature} from './feature'; | ||
import {HttpReader} from '../http-reader'; | ||
import Logger from '../logger'; | ||
import {Rect, calcTreeSize} from '../packedrtree'; | ||
import {parseGeometry} from './geometry'; | ||
import {HeaderMetaFn} from '../generic'; | ||
import {magicbytes, SIZE_PREFIX_LEN} from '../constants'; | ||
import {inferGeometryType} from './header'; | ||
@@ -22,0 +22,0 @@ export type FromFeatureFn = (feature: Feature, header: HeaderMeta) => IFeature; |
import * as flatbuffers from 'flatbuffers'; | ||
import {GeometryType} from '../flat-geobuf/geometry-type.js'; | ||
import {Geometry} from '../flat-geobuf/geometry.js'; | ||
import {GeometryType} from '../flat-geobuf/geometry-type'; | ||
import {Geometry} from '../flat-geobuf/geometry'; | ||
@@ -5,0 +5,0 @@ export interface IParsedGeometry { |
@@ -1,5 +0,5 @@ | ||
import {GeometryType} from '../flat-geobuf/geometry-type.js'; | ||
import {toGeometryType} from '../generic/geometry.js'; | ||
import {IFeature} from './feature.js'; | ||
import {IGeoJsonFeature} from '../geojson/feature.js'; | ||
import {GeometryType} from '../flat-geobuf/geometry-type'; | ||
import {toGeometryType} from '../generic/geometry'; | ||
import {IFeature} from './feature'; | ||
import {IGeoJsonFeature} from '../geojson/feature'; | ||
@@ -6,0 +6,0 @@ function featureGeomType(feature: IFeature | IGeoJsonFeature): GeometryType { |
@@ -6,9 +6,9 @@ import { | ||
serialize as fcSerialize | ||
} from './geojson/featurecollection.js'; | ||
} from './geojson/featurecollection'; | ||
import {FeatureCollection as GeoJsonFeatureCollection} from 'geojson'; | ||
import {Rect} from './packedrtree.js'; | ||
import {IGeoJsonFeature} from './geojson/feature.js'; | ||
import {HeaderMetaFn} from './generic.js'; | ||
import {Rect} from './packedrtree'; | ||
import {IGeoJsonFeature} from './geojson/feature'; | ||
import {HeaderMetaFn} from './generic'; | ||
@@ -15,0 +15,0 @@ /** |
@@ -1,6 +0,6 @@ | ||
import {Feature} from '../flat-geobuf/feature.js'; | ||
import {Geometry} from '../flat-geobuf/geometry.js'; | ||
import HeaderMeta from '../header-meta.js'; | ||
import {fromGeometry} from './geometry.js'; | ||
import {IFeature, parseProperties} from '../generic/feature.js'; | ||
import {Feature} from '../flat-geobuf/feature'; | ||
import {Geometry} from '../flat-geobuf/geometry'; | ||
import HeaderMeta from '../header-meta'; | ||
import {fromGeometry} from './geometry'; | ||
import {IFeature, parseProperties} from '../generic/feature'; | ||
@@ -7,0 +7,0 @@ import {Feature as GeoJsonFeature} from 'geojson'; |
@@ -1,6 +0,6 @@ | ||
import ColumnMeta from '../column-meta.js'; | ||
import HeaderMeta from '../header-meta.js'; | ||
import ColumnMeta from '../column-meta'; | ||
import HeaderMeta from '../header-meta'; | ||
import {fromFeature} from './feature.js'; | ||
import {parseGeometry, parseGC} from './geometry.js'; | ||
import {fromFeature} from './feature'; | ||
import {parseGeometry, parseGC} from './geometry'; | ||
import { | ||
@@ -12,8 +12,8 @@ buildHeader, | ||
mapColumn | ||
} from '../generic/featurecollection.js'; | ||
import {Rect} from '../packedrtree.js'; | ||
import {buildFeature, IProperties} from '../generic/feature.js'; | ||
import {HeaderMetaFn} from '../generic.js'; | ||
import {magicbytes} from '../constants.js'; | ||
import {inferGeometryType} from '../generic/header.js'; | ||
} from '../generic/featurecollection'; | ||
import {Rect} from '../packedrtree'; | ||
import {buildFeature, IProperties} from '../generic/feature'; | ||
import {HeaderMetaFn} from '../generic'; | ||
import {magicbytes} from '../constants'; | ||
import {inferGeometryType} from '../generic/header'; | ||
@@ -20,0 +20,0 @@ import { |
@@ -1,3 +0,3 @@ | ||
import {GeometryType} from '../flat-geobuf/geometry-type.js'; | ||
import {Geometry} from '../flat-geobuf/geometry.js'; | ||
import {GeometryType} from '../flat-geobuf/geometry-type'; | ||
import {Geometry} from '../flat-geobuf/geometry'; | ||
@@ -15,3 +15,3 @@ import { | ||
import {IParsedGeometry, flat, pairFlatCoordinates, toGeometryType} from '../generic/geometry.js'; | ||
import {IParsedGeometry, flat, pairFlatCoordinates, toGeometryType} from '../generic/geometry'; | ||
@@ -18,0 +18,0 @@ export interface IGeoJsonGeometry { |
import * as flatbuffers from 'flatbuffers'; | ||
import ColumnMeta from './column-meta.js'; | ||
import CrsMeta from './crs-meta.js'; | ||
import {GeometryType} from './flat-geobuf/geometry-type.js'; | ||
import {Header} from './flat-geobuf/header.js'; | ||
import ColumnMeta from './column-meta'; | ||
import CrsMeta from './crs-meta'; | ||
import {GeometryType} from './flat-geobuf/geometry-type'; | ||
import {Header} from './flat-geobuf/header'; | ||
@@ -8,0 +8,0 @@ export default interface HeaderMeta { |
// automatically generated by the FlatBuffers compiler, do not modify | ||
export * as FlatGeobuf from './flat-geobuf.js'; | ||
export * as FlatGeobuf from './flat-geobuf'; |
@@ -10,8 +10,8 @@ import * as flatbuffers from 'flatbuffers'; | ||
streamSearch | ||
} from './packedrtree.js'; | ||
import {magicbytes, SIZE_PREFIX_LEN} from './constants.js'; | ||
import Config from './config.js'; | ||
import Logger from './logger.js'; | ||
import HeaderMeta, {fromByteBuffer} from './header-meta.js'; | ||
import {Feature} from './flat-geobuf/feature.js'; | ||
} from './packedrtree'; | ||
import {magicbytes, SIZE_PREFIX_LEN} from './constants'; | ||
import Config from './config'; | ||
import Logger from './logger'; | ||
import HeaderMeta, {fromByteBuffer} from './header-meta'; | ||
import {Feature} from './flat-geobuf/feature'; | ||
@@ -18,0 +18,0 @@ export class HttpReader { |
@@ -1,19 +0,19 @@ | ||
export * as generic from './generic.js'; | ||
export * as geojson from './geojson.js'; | ||
// export * as ol from './ol.js'; | ||
export * as generic from './generic'; | ||
export * as geojson from './geojson'; | ||
// export * as ol from './ol'; | ||
export {Column} from './flat-geobuf/column.js'; | ||
export {Geometry} from './flat-geobuf/geometry.js'; | ||
export {Feature} from './flat-geobuf/feature.js'; | ||
export {Column} from './flat-geobuf/column'; | ||
export {Geometry} from './flat-geobuf/geometry'; | ||
export {Feature} from './flat-geobuf/feature'; | ||
export {ISimpleGeometry} from './generic/geometry.js'; | ||
export {IFeature} from './generic/feature.js'; | ||
export {FromFeatureFn} from './generic/featurecollection.js'; | ||
export {ISimpleGeometry} from './generic/geometry'; | ||
export {IFeature} from './generic/feature'; | ||
export {FromFeatureFn} from './generic/featurecollection'; | ||
export {IGeoJsonFeature} from './geojson/feature.js'; | ||
export {IGeoJsonFeature} from './geojson/feature'; | ||
export {default as HeaderMeta} from './header-meta.js'; | ||
export {default as ColumnMeta} from './column-meta.js'; | ||
export {default as CrsMeta} from './crs-meta.js'; | ||
export {default as HeaderMeta} from './header-meta'; | ||
export {default as ColumnMeta} from './column-meta'; | ||
export {default as CrsMeta} from './crs-meta'; | ||
export {Rect} from './packedrtree.js'; | ||
export {Rect} from './packedrtree'; |
@@ -1,3 +0,3 @@ | ||
import Config from './config.js'; | ||
import Logger from './logger.js'; | ||
import Config from './config'; | ||
import Logger from './logger'; | ||
@@ -4,0 +4,0 @@ export const NODE_ITEM_BYTE_LEN: number = 8 * 4 + 8; |
@@ -15,4 +15,4 @@ // loaders.gl | ||
import * as fgb from '../flatgeobuf/3.27.2'; | ||
import * as geojson from '../flatgeobuf/3.27.2/geojson.js'; | ||
import * as generic from '../flatgeobuf/3.27.2/generic.js'; | ||
import * as geojson from '../flatgeobuf/3.27.2/geojson'; | ||
import * as generic from '../flatgeobuf/3.27.2/generic'; | ||
import {parseProperties as parsePropertiesBinary} from '../flatgeobuf/3.27.2/generic/feature'; | ||
@@ -19,0 +19,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1136311
+ Added@loaders.gl/gis@4.1.0-alpha.10(transitive)
+ Added@loaders.gl/loader-utils@4.1.0-alpha.10(transitive)
+ Added@loaders.gl/schema@4.1.0-alpha.10(transitive)
+ Added@loaders.gl/worker-utils@4.1.0-alpha.10(transitive)
- Removed@loaders.gl/gis@4.1.0-alpha.9(transitive)
- Removed@loaders.gl/loader-utils@4.1.0-alpha.9(transitive)
- Removed@loaders.gl/schema@4.1.0-alpha.9(transitive)
- Removed@loaders.gl/worker-utils@4.1.0-alpha.9(transitive)