@opengis/gis 0.2.126 → 0.2.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/gis",
3
- "version": "0.2.126",
3
+ "version": "0.2.127",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "./dist/index.js",
@@ -31,6 +31,7 @@ message RenderTileRequest {
31
31
  string path = 2;
32
32
  repeated double bbox = 3; // [minx, miny, maxx, maxy]
33
33
  int32 width = 4;
34
+ string ttl = 5; // "5m", "1h", "1d" or "0"
34
35
  string debug = 6;
35
36
  }
36
37
 
@@ -45,7 +45,6 @@ export default async function checkXML(req, reply) {
45
45
 
46
46
  const rasterInfo = await GetRasterInfo({
47
47
  path: row.source_path,
48
- ttl: '0',
49
48
  }).catch(err => ({ err }));
50
49
 
51
50
  if (rasterInfo.err) {
@@ -5,7 +5,7 @@ import mapnik from '../../../plugins/mapnik/funcs/mapnik.js';
5
5
  const { GetStat } = mapnik();
6
6
 
7
7
  export default async function mapnikStat({
8
- params, query,
8
+ params,
9
9
  }, reply) {
10
10
  if (!config.mapnik?.server) {
11
11
  return reply.status(400).send({ error: 'mapnik server address needed', code: 400 });
@@ -13,7 +13,6 @@ export default async function mapnikStat({
13
13
 
14
14
  const stat = await GetStat({
15
15
  period: params.period,
16
- ttl: query.nocache ? '0' : undefined,
17
16
  });
18
17
 
19
18
  return reply.status(200).send(stat);
@@ -36,7 +36,6 @@ export default async function rasterInfo({
36
36
  const { data, cache, error } = await GetRasterInfo({
37
37
  path: relpath,
38
38
  proj4,
39
- ttl: query.nocache ? '0' : '1h',
40
39
  }).catch(err => ({ error: err.toString() }));
41
40
 
42
41
  if (query.debug) {