fillMetadata method
void
fillMetadata()
Populate the metadata table.
@param n nord bound. @param s south bound. @param w west bound. @param e east bound. @param name name of the dataset. @param format format of the images. png or jpg. @param minZoom lowest zoomlevel. @param maxZoom highest zoomlevel. @throws Exception
Implementation
void fillMetadata(double n, double s, double w, double e, String name,
String format, int minZoom, int maxZoom) {
Transaction(database).runInTransaction((db) {
db.execute("delete from $TABLE_METADATA");
String query = toMetadataQuery("name", name);
db.execute(query);
query = toMetadataQuery("description", name);
db.execute(query);
query = toMetadataQuery("format", format);
db.execute(query);
query = toMetadataQuery("minZoom", minZoom.toString());
db.execute(query);
query = toMetadataQuery("maxZoom", maxZoom.toString());
db.execute(query);
query = toMetadataQuery("type", "baselayer");
db.execute(query);
query = toMetadataQuery("version", "1.1");
db.execute(query);
// left, bottom, right, top
query = toMetadataQuery("bounds", "$w,$s,$e,$n");
db.execute(query);
});
}