mapbox / shp-write

create and write to shapefiles in pure javascript
BSD 3-Clause "New" or "Revised" License
290 stars 186 forks source link

The result of zip(geojson) isn't ArrayBuffer but Base64 by deafult. #86

Closed YuWebGIS closed 1 year ago

neon-ninja commented 2 years ago

Here's how you can convert it: Uint8Array.from(atob(base64_string), c => c.charCodeAt(0))

YuWebGIS commented 1 year ago

Here's how you can convert it: Uint8Array.from(atob(base64_string), c => c.charCodeAt(0))

Thank you! I will try it.