Raster Instance
API endpoint for rasterlayer objects.
Rasterlayers visualise raster data. The actual data is contained in
rastersources. To connect a rasterlayer to a rastersource, configure the
rasterlayer's source
field as follows:
{
"graph": {
"rastersource": [
"lizard_nxt.blocks.LizardRasterSource",
"<uuid of a rastersource object>"
]
},
"name": "rastersource"
}
Note that the organisations of the rastersource and rasterlayer should be
equal. The raster_sources
field cannot be used to configure the source:
it is merely a (read-only) hyperlink to the /rastersources endpoint.
GeoBlocks
Instead of directly visualising a raster source, raster layers can also
perform on-the-fly operations on multiple raster sources. This can be done
by extending the above example for the source
field. See
https://docs.lizard.net. Note that the rasterlayers's organisation must
have geoblocks-permissions to be able to use this feature.
Deletion
If a rasterlayer is deleted, its raster sources (see /rastersources endpoint) will remain available. These need to be cleaned up seperately, or else they will keep using space.
If a rastersource was deleted while there was a rasterlayer referencing it,
the rasterlayer will become broken. In this case, the deleted rastersources
will be listed in the source.deleted_sources
field.
Query parameters:
name
Text filter on the name
field. All text field filter methods,
like startswith
, endswith
, icontains
are supported.
uuid
Filter on uuid
field. UUIDs must be separated by commas and must be
specified in their canonical textual representation (in their
8-4-4-4-12 form, that is). Filtering is case insensitive and may be
done across relationships.
organisation
Filter on Organisations
.
observation_type
Filter on ObservationType
.
layer_collections
Filter on LayerCollection
.
first_value_timestamp
Temporal filter on first_value_timestamp
.
last_value_timestamp
Temporal filter on last_value_timestamp
.
raster_sources__uuid
Show rasters that make use of a raster_source
with given uuid.
access_modifier
Filter on access_modifier
, options are 'Public', 'Private', 'Common', or 'Hidden'.
ordering
Show the results in a specific order.
You can order them by name
, last_modified
, supplier
,
temporal
, access_modifier
, first_value_timestamp
,
last_value_timestamp
, observation_type
, observation_type__code
,
observation_type__parameter
, observation_type__unit
, and
organisation__name
. Add a -
in front to reverse the order.
created:
Temporal filter on created
. Supports various lookup types
(exact
, lt
, lte
, gt
, gte
; created__exact by default).
Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
last_modified:
Temporal filter on last_modified
. Supports various lookup types
(exact
, lt
, lte
, gt
, gte
; last_modified__exact by default).
Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
Examples
?name__icontains=Elevation
?organisation__name=DDSC
?organisation__uuid=61f5a464c35044c19bc7d4b42d7f58cb
?organisation__name__startswith=Nelen
?organisation__name__icontains=Schuur
?observation_type__code=HOOGTEmNAP
?observation_type__parameter=Hoogte
?uuid=10415ccb-ec31-4d43-bdb3-db597061527b,
4a544b7a-772b-45fb-9aa4-a69447f34f52
?first_value_timestamp=2016-06-21T06:05:00Z
?first_value_timestamp__lt=2016-06-21T06:05:00Z
?layer_collections__slug=10855cc
?raster_sources__uuid=10415ccb-ec31-4d43-bdb3-db597061527b
?access_modifier=Private
?access_modifier=100
?ordering=name
?ordering=-last_modified
?created__gte=2017-01-01T00:00:00Z
?last_modified__lt=2018-01-01T00:00:00Z
GET /api/v4/rasters/a2ceb4c4-558c-4acd-9b3b-dfe3b6b98e80/?format=api
https://demo.lizard.net/api/v4/rasters/a2ceb4c4-558c-4acd-9b3b-dfe3b6b98e80/?format=api", "uuid": "a2ceb4c4-558c-4acd-9b3b-dfe3b6b98e80", "last_modified": "2024-06-05T09:30:43.882594Z", "created": "2020-02-20T09:24:18.175432Z", "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/0258eefa-4043-409f-879c-601740340654/?format=api", "uuid": "0258eefa-4043-409f-879c-601740340654", "name": "Waterpanel Noord" }, "access_modifier": "Public", "supplier": "chris.kerklaan", "shared_with": [], "writable": false, "is_geoblock": true, "source": { "name": "Clip", "graph": { "Add": [ "dask_geomodeling.raster.elemwise.Add", "Multiply_2", "Multiply_3" ], "Clip": [ "dask_geomodeling.raster.misc.Clip", "LizardRasterSource", "Reclassify_3" ], "Mask": [ "dask_geomodeling.raster.misc.Mask", "RasterStoreSource_6", 254 ], "Group_1": [ "dask_geomodeling.raster.combine.Group", "RasterStoreSource_2", "Reclassify_2", "Mask" ], "Group_2": [ "dask_geomodeling.raster.combine.Group", "RasterStoreSource_1", "RasterStoreSource_5" ], "Divide": [ "dask_geomodeling.raster.elemwise.Divide", "Subtract_1", 254 ], "Multiply_1": [ "dask_geomodeling.raster.elemwise.Multiply", -33.33, "Subtract_2" ], "Multiply_2": [ "dask_geomodeling.raster.elemwise.Multiply", 0.1374, "Divide" ], "Multiply_3": [ "dask_geomodeling.raster.elemwise.Multiply", 1.73, "Reclassify_1" ], "Subtract_1": [ "dask_geomodeling.raster.elemwise.Subtract", 254, "Group_2" ], "Subtract_2": [ "dask_geomodeling.raster.elemwise.Subtract", "Add", 1.85 ], "Reclassify_1": [ "dask_geomodeling.raster.misc.Reclassify", "Group_1", [ [ 1, 0.904 ], [ 2, 0.898 ], [ 3, 0.914 ], [ 4, 0.978 ], [ 5, 0.965 ], [ 6, 0.946 ], [ 7, 0.914 ], [ 8, 0.978 ], [ 9, 0.99 ], [ 10, 0.978 ], [ 11, 0.978 ], [ 12, 0.99 ], [ 13, 0.978 ], [ 14, 0.99 ], [ 15, 0.938 ], [ 16, 0.97 ], [ 17, 0.978 ], [ 18, 0.99 ], [ 19, 0.99 ], [ 20, 0.99 ], [ 21, 0.99 ], [ 22, 0.99 ], [ 23, 0.97 ], [ 26, 0.978 ], [ 27, 0.978 ], [ 28, 0.985 ], [ 29, 0.985 ], [ 30, 0.978 ], [ 254, 0.985 ], [ 200, 0.914 ], [ 202, 0.902 ], [ 203, 0.897 ], [ 204, 0.95 ], [ 150, 0.946 ], [ 160, 0.9236 ] ], true ], "Reclassify_2": [ "dask_geomodeling.raster.misc.Reclassify", "RasterStoreSource_3", [ [ 2, 202 ], [ 3, 203 ], [ 4, 203 ], [ 5, 203 ], [ 6, 203 ], [ 7, 204 ], [ 8, 203 ], [ 9, 203 ], [ 10, 203 ], [ 11, 203 ], [ 12, 203 ], [ 13, 203 ], [ 14, 203 ], [ 15, 150 ], [ 16, 160 ] ], true ], "Reclassify_3": [ "dask_geomodeling.raster.misc.Reclassify", "RasterStoreSource_4", [ [ 83, 1 ], [ 99, 1 ], [ 175, 1 ], [ 104, 1 ], [ 251, 1 ], [ 285, 1 ], [ 153, 1 ], [ 32, 1 ], [ 88, 1 ], [ 204, 1 ], [ 242, 1 ], [ 304, 1 ], [ 345, 1 ], [ 268, 1 ], [ 380, 1 ], [ 50000, 0 ] ], true ], "RasterStoreSource_1": [ "lizard_nxt.blocks.LizardRasterSource", "5da5c9cc-9cf6-4f9d-abbe-afe8475ac57f" ], "RasterStoreSource_2": [ "lizard_nxt.blocks.LizardRasterSource", "3bf0d3d6-ba2a-402f-afc5-a3df79a1a1e7" ], "RasterStoreSource_3": [ "lizard_nxt.blocks.LizardRasterSource", "f88c9bb2-d0d9-4962-906f-074c9b40f23d" ], "RasterStoreSource_4": [ "lizard_nxt.blocks.LizardRasterSource", "501e1d53-0bdc-4aa3-9298-a6d5ab5ddb39" ], "RasterStoreSource_5": [ "lizard_nxt.blocks.LizardRasterSource", "b52a0a0d-0445-4b4a-a61b-90c6a946f802" ], "RasterStoreSource_6": [ "lizard_nxt.blocks.LizardRasterSource", "ca3ad2ac-d56b-463d-a4b1-95f81482d397" ], "LizardRasterSource": [ "dask_geomodeling.raster.spatial.Smooth", "Multiply_1", 50, 4.5 ] } }, "weight": 21, "raster_sources": [ "https://demo.lizard.net/api/v4/rastersources/ca3ad2ac-d56b-463d-a4b1-95f81482d397/?format=api", "https://demo.lizard.net/api/v4/rastersources/f88c9bb2-d0d9-4962-906f-074c9b40f23d/?format=api", "https://demo.lizard.net/api/v4/rastersources/3bf0d3d6-ba2a-402f-afc5-a3df79a1a1e7/?format=api", "https://demo.lizard.net/api/v4/rastersources/5da5c9cc-9cf6-4f9d-abbe-afe8475ac57f/?format=api", "https://demo.lizard.net/api/v4/rastersources/b52a0a0d-0445-4b4a-a61b-90c6a946f802/?format=api", "https://demo.lizard.net/api/v4/rastersources/501e1d53-0bdc-4aa3-9298-a6d5ab5ddb39/?format=api" ], "name": "Hittestress", "description": "", "observation_type": { "url": "https://demo.lizard.net/api/v4/observationtypes/466/?format=api", "id": 466, "code": "Hittestress", "parameter": "Hittestress", "unit": "", "scale": "ordinal", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-11-19T10:41:29.395081Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, "temporal": false, "layer_collections": [ { "url": "https://demo.lizard.net/api/v4/layercollections/wpn_klimaatatlas/?format=api", "slug": "wpn_klimaatatlas", "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/0258eefa-4043-409f-879c-601740340654/?format=api", "uuid": "0258eefa-4043-409f-879c-601740340654", "name": "Waterpanel Noord" }, "access_modifier": "Public", "supplier": "chris.kerklaan", "created": "2020-02-19T14:04:29.578191Z", "last_modified": "2020-02-19T15:56:26.731593Z" } ], "first_value_timestamp": "1970-01-01T00:00:00Z", "last_value_timestamp": "1970-01-01T00:00:00Z", "spatial_bounds": { "west": 3.253713155100211, "east": 7.243161224559517, "north": 53.51966937141186, "south": 50.73417297437435 }, "projection": "EPSG:28992", "origin_x": 13564.399999999994, "origin_y": 306844.0, "upper_bound_x": 278026.4, "upper_bound_y": 616443.0, "pixelsize_x": 0.5, "pixelsize_y": -0.5, "interval": null, "wms_info": { "endpoint": "https://demo.lizard.net/wms/", "layer": "waterpanel-noord-wpn:hittestress" }, "options": { "styles": "heat-klimaat" }, "colormap": {}, "rescalable": false, "aggregation_type": "curve", "dtype": "f8", "fill_value": "1.7976931348623157e+308" }{ "url": "