@opengis/gis 0.2.56 → 0.2.58

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.56",
3
+ "version": "0.2.58",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "./dist/index.js",
@@ -143,6 +143,7 @@ message GetLogsOut {
143
143
  message GetRasterInfoRequest {
144
144
  string path = 1;
145
145
  string ttl = 2;
146
+ int64 srid = 3;
146
147
  }
147
148
 
148
149
  message FileItem {
@@ -27,10 +27,10 @@ export default async function rtile({
27
27
  Object.assign(raster, { source_path: decodedPath });
28
28
  }
29
29
 
30
- const data = await GetRasterInfo({
30
+ const { data, cache } = await GetRasterInfo({
31
31
  path: raster.source_path,
32
32
  ttl: query.nocache ? '0' : '1h',
33
33
  });
34
34
 
35
- return { ...data, url: `${prefix}/gis-rtile/${Buffer.from(raster.source_path).toString('base64url')}/{z}/{x}/{y}.png` };
35
+ return { ...data, cache, url: `${prefix}/gis-rtile/${Buffer.from(raster.source_path).toString('base64url')}/{z}/{x}/{y}.png` };
36
36
  }