Skip to content

@orillusion/core


Class: GeoJsonUtil

Defined in: src/loader/parser/gis/GeoJsonUtil.ts.ts:11

Helper utilities for converting parsed GeoJSON structures into engine geometry data (e.g. polylines / polygon outlines in world space).

Constructors

Constructor

new GeoJsonUtil(): GeoJsonUtil

Returns

GeoJsonUtil

Methods

getPath()

static getPath(data): Vector3[][]

Defined in: src/loader/parser/gis/GeoJsonUtil.ts.ts:17

Extract polyline paths from a GeoJSON structure.

Parameters

data

GeoJsonStruct

Parsed GeoJSON feature collection.

Returns

Vector3[][]

Arrays of Vector3 points, one array per matching feature.

Released under the MIT License