-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example: Create a new GeoPackage #185
Comments
In the docs for using it with node, it says you have to import setCanvasKitWasmLocateFile and then use it and return the path to the file like this
Your example would change to:
However, I have done this and it still doesn't work. I still get |
So it looks like you don't need the canvas stuff if all you want is to create a geopackage with geojson features in it, which is what I needed to do. You can just make it think it's initialized by using index.mjs
geoJson.json
These are the resources I used to figure this out: Example: https://github.com/ngageoint/geopackage-csv-js/blob/main/index.ts Useful Docs: |
Hello — thank you for this awesome library!
I am a new user and would like to know how to create a new, empty GeoPackage. I'm having some trouble hunting down an example of how to do this. I see there a method
GeoPackageAPI.create()
, but it's not entirely clear to me how to use it. When I run this code:I get
Error: Unable to initialize canvas.
Having a minimal example of this would be super helpful — thank you!
The text was updated successfully, but these errors were encountered: