From aa51f13e81e2690752707272345242d4726697fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Hork=C3=BD?= Date: Wed, 18 Oct 2017 17:06:46 +0200 Subject: [PATCH] Update resources.md Added Resampling parameter description. --- docs/resources.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/docs/resources.md b/docs/resources.md index 8e0728a..5840d08 100644 --- a/docs/resources.md +++ b/docs/resources.md @@ -24,17 +24,28 @@ a JSON file on disk (for JSON resource backend) or a python data tree. * `Boolean`: boolean JSON/python value * `Array`: array of given type(s) * `Optional` given entry is optional + * `Enum` string data type limited to enumerated values * `?` no fixed name Complex datatypes: ```javascript -ResourceId`: { +ResourceId: { String group // group this resource belongs to String id // resource identifier (withing group) } ``` +```javascript +Resampling: Enum { + + texture + dem +} +``` +Where `texture` is resampling suitable for rextures (`average` for scales smaller than 0.5, `cubic` otherwise) +and `dem` is suitable for terrain (`average` for scales smaller than 0.5, `cubicspline` otherwise). + Basic resource layout: ```javascript @@ -92,10 +103,11 @@ Raster-based bound layer generator. Uses any raster GDAL dataset as its data sou ```javascript definition = { - String dataset // path to GDAL dataset - Optional String mask // path to RF mask or masking GDAL dataset - Optional String format // output image format, "jpg" or "png" (defaults to "jpg") - Optional Boolean transparent // Boundlayer is transparent, forces format to "png" + String dataset // path to GDAL dataset + Optional String mask // path to RF mask or masking GDAL dataset + Optional String format // output image format, "jpg" or "png" (defaults to "jpg") + Optional Boolean transparent // Boundlayer is transparent, forces format to "png" + Optional Resampling resampling // Resampling to use for tile texture generation, default 'texture' } ```