- /
- /
- /
SQLiteDB Output Provider
The SQLiteDB Output Provider is an output provider that writes the tiles in a SQLite database file instead of directly to the file system.
This SQLiteDB can be used in third party tools like Locus for offline maps.
The connection to the SQLiteDB file is configured like the DB connection. However since it is an outgoing connection it is not placed in the datasource but in the datatarget tag.
MapRender will open or create the .sqlitedb file on startup and close it before shutting down. Internally it is handled quite like a regular db connection so the rendering threads reuse an already existing connection.
In case a .sqlitedb file already exists and is reused in another rendering run it will not get deleted but the content gets updated.
<maprender> <datasource> ...</datasource> <bounds>...</bounds> <processing>...</processing> <datatarget> <sqlitedb> <file>C:\maprender\output\sqlite\demo.sqlitedb</file> <provider>12345</provider> </sqlitedb> </datatarget> <jobs> <job name="demo"> <configuration>C:\maprender\configs\osm-styles\style-demo.xml</configuration> <output imagetype="jpeg"> <sqlitedb></sqlitedb> </output> </job> </jobs> </maprender>
The <provider> tag is for the use with Locus, since locus requires a map to provide a unique ID which identifies the provider of the map.