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

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.

  • This looks like a good answer, but maybe you could expand on it a bit? – John Powell Jun 10 '16 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 – jjzd2w Jun 28 '16 at 20:24
  • 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 – jjzd2w Jun 28 '16 at 21:04
  • can you edit you answer and add your comments – nmtoken Sep 18 '17 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.