Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Update resources.md
Browse files Browse the repository at this point in the history
Added Resampling parameter description.
  • Loading branch information
ladislavhorky authored Oct 18, 2017
1 parent e89e10e commit aa51f13
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions docs/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,28 @@ a JSON file on disk (for JSON resource backend) or a python data tree.
* `Boolean`: boolean JSON/python value
* `Array<type>`: 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 {
<GDAL-supported resampling algorithms>
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
Expand Down Expand Up @@ -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'
}
```
Expand Down

0 comments on commit aa51f13

Please sign in to comment.