diff --git a/IGN-slopes.txt b/IGN-slopes.txt new file mode 100644 index 0000000..506d463 --- /dev/null +++ b/IGN-slopes.txt @@ -0,0 +1,10 @@ +PRAGMA foreign_keys=OFF; +BEGIN TRANSACTION; +CREATE TABLE IF NOT EXISTS "tiles" ("x" INTEGER NOT NULL, "y" INTEGER NOT NULL, "z" INTEGER NOT NULL, "s" INTEGER, "image" BLOB, "time" INTEGER, PRIMARY KEY ("x", "y", "z")); +CREATE TABLE IF NOT EXISTS "info" ("useragent" TEXT, "minzoom" TEXT, "maxzoom" TEXT, "url" TEXT, "randoms" TEXT, "referer" TEXT, "ellipsoid" INTEGER, "inverted_y" INTEGER, "tilesize" TEXT, "timeSupported" TEXT, "timecolumn" TEXT, "expireminutes" TEXT, "tilenumbering" TEXT); +INSERT INTO info VALUES('OsmAnd Maps CFNetwork','6','16','https://wxs.ign.fr/altimetrie/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.SLOPES.MOUNTAIN&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={0}&TILEROW={2}&TILECOL={1}&FORMAT=image/png','','',0,0,'256','yes','yes','43200','simple'); +CREATE INDEX "index_tiles_on_x" ON "tiles" ("x"); +CREATE INDEX "index_tiles_on_y" ON "tiles" ("y"); +CREATE INDEX "index_tiles_on_z" ON "tiles" ("z"); +CREATE INDEX "index_tiles_on_s" ON "tiles" ("s"); +COMMIT; diff --git a/Makefile b/Makefile index f069bfd..d9aca51 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ all: rm *.sqlitedb sqlite3 "IGN Scan25.sqlitedb" < IGN-scan25.txt - sqlite3 "IGN maps.sqlitedb" < IGN-maps.txt + sqlite3 "IGN Maps.sqlitedb" < IGN-maps.txt + sqlite3 "IGN Slopes.sqlitedb" < IGN-slopes.txt