Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Frequent Contributor
Posts: 118
Registered: ‎10-13-2015
Accepted Solution

How distribute a Geopackage database inside the app

Hi,

 

We are interesting to distribute a geopackage database inside the App.

We done the next steps:

 

  • Created the app
  • For example in android
    • grunt android
    • grunt runandroid

After this steps we have an apk application.

Our questions are:

 

  • Is possible to distribute the geopackage data inside the app?
  • What are the steps to do in android, ios and windows
Frequent Contributor
Posts: 118
Registered: ‎10-13-2015

Re: How distribute a Geopackage database inside the app

Another question related.

 

How update the geopackage data without upload a new App in the Apple store, ...

Have you analyzed any procediment.

 

 

Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: How distribute a Geopackage database inside the app

Hi,

 

yes it's possible.

 

If you add the file to the assets, it should be embedded inside of the APK.

The problem is reading the file. In the configuration there are relative paths, to:

  • Android: <sdcard>/Android/data/<app-id>/files
  • iOS: /var/mobile/Applications/<UUID>/Documents/NoCloud

Providing absolute paths in the configuration isn't supported.

What you can do is. Check on the app start, if the file is present in the target directory. If it isn't present, move it from your asset directory to the target directory.

Highlighted
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: How distribute a Geopackage database inside the app

In the next release of the SDK we will add GeoPackage synchronization. If there is synchronization required and configured. There will be a syncronize button visible. Synchronize button triggers GeoPackage download if necessary.

 

If you want to avoid app upload, maybe a simple service exposing your GeoPackage would work. The app checks on app start if the data is present, if not it retreives it from the service.

Polls
Please register to vote
Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.