Commit Graph

22 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
544aabd020 [core] Add requiredTileCount to OfflineRegionStatus 2019-08-29 18:22:59 +03:00
Andrew Harvey
1a3b865eee improve offline cli help page
The GeoJSON file can't be a FeatureCollection, it must be a single Feature GeoJSON, with simple geometry
2019-06-07 10:23:06 -07:00
Konstantin Käfer
3ceabcd3ec [core] clang-tidy fixes 2019-04-05 11:49:17 +02:00
Bruno de Oliveira Abinader
c397fd853c [core] Bump args to 6.2.2 (does not use RTTI) 2019-03-25 22:52:40 +02:00
Chris Loer
990e3874f4 [core] Expose "includeIdeographs" in offline download command line tool. 2018-12-21 15:13:48 -08:00
Konstantin Käfer
a0b8f01c1b [build] use newer compiler versions for some builds 2018-11-28 14:49:44 +01:00
Konstantin Käfer
8bf66ef7a7 [core] remove some uses of <iostream> and <sstream> 2018-10-23 12:23:40 +02:00
Asheem Mamoowala
065f5ca87e [core] Add DefaultFileSource::mergeRegions API and CLI support in the mbgl-offline tool. 2018-08-28 07:14:54 -07:00
Ivo van Dongen
fcb68041d5 [offline] Add option to pass geojson input file 2018-08-20 22:49:01 +03:00
Konstantin Käfer
6e06e55b95 WIP: use expected<T, E> for passing on errors 2018-08-14 17:03:46 -07:00
Zsolt Bölöny
bc6094eb55 [core] Fix GCC8's new -Wcatch-value warnings
Polymorphic types shouldn't be caught by value, as the warning message says. Catch them by constant reference instead.
2018-06-25 10:07:04 -07:00
Chris Loer
3c18610d1f [core] Add 'apiBaseURL' argument to mbgl-offline util. 2018-03-27 15:26:38 -07:00
Bruno de Oliveira Abinader
6a838eeffb [build] Replace boost_libprogram_options with args 2017-12-18 16:40:29 +02:00
Konstantin Käfer
68e032e505 [core] Remove private header includes from CLI utilities 2017-03-28 13:53:19 +02:00
Konstantin Käfer
cd65a43855 [core] move from microsecond precision timestamp to integer second precision 2016-05-13 17:24:22 +02:00
John Firebaugh
def2c804e5 [test] Fix crash in offline binary 2016-03-15 15:53:42 -07:00
John Firebaugh
12993531c0 [bin] Add explicit ^C handling to bin/offline, to test deactivation 2016-03-07 21:09:46 -08:00
John Firebaugh
55c5c3c891 [bin] Print message when tile count limit is exceeded 2016-03-04 15:15:10 -08:00
Thiago Marcos P. Santos
2b0749e3c6 [offline] Accept parameters
The defaults remains the same: Bay area at zoom 15.
The key, if not supplied, is taken from the environment.

```
Allowed options:
  -s [ --style ] URL                    Map stylesheet
  --north degrees (=37.200000000000003) North latitude
  --west degrees (=-122.8)              West longitude
  --south degrees (=38.100000000000001) South latitude
  --east degrees (=-121.7)              East longitude
  --minZoom number (=0)                 Min zoom level
  --maxZoom number (=15)                Max zoom level
  --pixelRatio number (=1)              Pixel ratio
  -t [ --token ] key                    Mapbox access token
  -o [ --output ] file (=offline.db)    Output database file name
```
2016-03-02 15:30:37 -03:00
John Firebaugh
65c06e6270 [core] status.requiredResourceCountIsIndeterminate ⇢ status.requiredResourceCountIsPrecise
Change the name and reverse the sense. Naming things in the positive is better than naming them in the negative.
2016-02-24 13:38:14 -08:00
John Firebaugh
40ecdeb0b6 [core] Optimize offline database schema
* Under the hood, SQLite creates surrogate keys (ROWID) anyway. We may as well take advantage of this and use the surrogates for foreign keys as well, since they are simpler and more efficient than compound foreign keys.
* Create indexes for efficient eviction queries
2016-02-10 15:40:20 -08:00
John Firebaugh
c91b44b02f Add binary for smoke-testing offline downloads 2016-02-10 15:40:20 -08:00