terraformer-js / terraformer

A geographic toolkit for dealing with geometry, geography, formats, and building geodatabases
MIT License
182 stars 28 forks source link

wkt not support GEOMETRYCOLLECTION #82

Closed yudonghai200 closed 2 years ago

yudonghai200 commented 2 years ago

Uncaught Error: Unable to parse: Error: Parse error on line 1: GEOMETRYCOLLECTION(P ^ Expecting 'POINT', 'LINESTRING', 'POLYGON', 'MULTIPOINT', 'MULTILINESTRING', 'MULTIPOLYGON', got 'INVALID'

yudonghai200 commented 2 years ago

use wktToGeoJSON function params is GEOMETRYCOLLECTION(POINT(4 6),LINESTRING(4 6,7 10))

jgravois commented 2 years ago

a PR that introduces support for this would be welcome.

yudonghai200 commented 2 years ago

thx

jgravois commented 2 years ago

closing, but a PR at any point in the future would be welcome.