mapbox / shp-write

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

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

Closed YuWebGIS closed 2 years 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 2 years ago

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

Thank you! I will try it.