@opengis/gis 0.2.59 → 0.2.60
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/dist/index.css +1 -1
- package/dist/index.js +3282 -3272
- package/dist/index.umd.cjs +20 -20
- package/package.json +1 -1
- package/server/routes/mapnik/controllers/rasterInfo.js +4 -2
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export default async function rtile({
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const raster = pg.pk?.['gis.rasters']
|
|
17
|
-
? await pg.query('select raster_id, source_path from gis.rasters where raster_id=$1::text', [params.id])
|
|
17
|
+
? await pg.query('select raster_id, source_path, name, description, raster_key, is_active, is_public from gis.rasters where raster_id=$1::text', [params.id])
|
|
18
18
|
.then(el => el.rows?.[0] || {})
|
|
19
19
|
: {};
|
|
20
20
|
|
|
@@ -32,5 +32,7 @@ export default async function rtile({
|
|
|
32
32
|
ttl: query.nocache ? '0' : '1h',
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
return {
|
|
35
|
+
return {
|
|
36
|
+
...data, ...raster, cache, url: `${prefix}/gis-rtile/${Buffer.from(raster.source_path).toString('base64url')}/{z}/{x}/{y}.png`,
|
|
37
|
+
};
|
|
36
38
|
}
|