transform-to-geojson
Transforms WKT/WKB/Google Maps Encoded polygons /Google Maps Polygons to GeoJSON
Current Supported Formats
Google Maps Encoded Polygons
Can be an string:
path: '!}!&qA8272ja@*&...'
or an object:
Google Maps Polygons
Can handle an array of coordinates:
coordinates: [[-85.75584,38.22601], [-85.70709,38.22594], [-85.67413,38.17522]]
or a polygon object with lat and long values:
WKB
Can either be an object with WKB data:
or a minimal array of WKB data:
wkbs: ['aaaa', 'bbbb', 'cccc', ...]
WKT
Can currently handle a minimal array input with WKT data:
wkts: ['MULTIPOLYGON(1 2 3 4 ...)', 'MULTIPOLYGON(23 4 2 32...)']