ngageoint / geopackage-js

GeoPackage JavaScript Library
http://ngageoint.github.io/geopackage-js/
MIT License
308 stars 78 forks source link

GeoJSONToGeoPackage is undefined #148

Closed achmadk closed 4 years ago

achmadk commented 4 years ago

I want to convert GeoPackage data into GeoJSON with your app. I have uploaded Indonesia GeoPackage from GADM, which has around 450MB file size uncompressed. After its feature table is loaded, I want to download layer as GeoJSON. I have click that link but unfortunately I have error GeoJSONToGeoPackage is undefined in log console.

danielbarela commented 4 years ago

I will look into and fix it up today.

danielbarela commented 4 years ago

OK, I fixed the issue with the GeoJSON converter and deployed the corrected version. However, your GeoPackage is very big with tables that contain a lot of data. We do not run on a server so everything takes place in the browser, including the data conversion. In order to download the file, we first convert the GeoJSON into a blob and use FileSaver.js to download the file to the computer. This blob has a size limit and your very large table exceeds that. I was able to download every table except the largest one. I will have to continue to find a different way to save the data from the browser for large tables.