1

I am working on an Android application for a school project.

I am converting shapefiles (examples) into SQLite databases using SpatiaLite and performing queries on those databases on the mobile with SpatiaLite-Android.

I am still looking for a way to visually display the map data on Android for user interaction. For example, I would like the user be able to zoom in/out and pan the map around. I also intend show the user her current location with respect to the map.

It would be great if my app can draw maps directly from the SQLite database with SpatiaLite. Can anyone offer tips on this? If this is not possible or not advisable, can anyone suggest alternatives?

NOTE: My app needs to function in offline mode.

1 Answer 1

1

You can use a local db create from a .shp using tile format stored in db called .mbtiles and for spatial querys still use spatialite. You can use ESRI sdk for android for maps visibility.

5
  • This looks like a good answer, but maybe you could expand on it a bit? Commented Jun 10, 2016 at 15:31
  • if you need make spatial querys you can convert a single shp file in sqlite spatialite using spatialite-gui using a query like sp_touch yes like postgis Commented Jun 28, 2016 at 20:24
  • url is github.com/Esri/arcgis-runtime-samples-android/tree/master/… Commented Jun 28, 2016 at 21:04
  • using a free tool tilemill you can offline map (tiles stored in sqlite files ) based a shp file and create custom render style yes like a mapfile and using that file you can upload to emulator o download into devices android into de sdcard now you can read this file from map sdk like example esri sdk Commented Jun 28, 2016 at 21:04
  • can you edit you answer and add your comments Commented Sep 18, 2017 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.