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/bc02a603-52d3-424d-ac0f-92cbdd62cbf1/?format=api
https://demo.lizard.net/api/v4/rasters/bc02a603-52d3-424d-ac0f-92cbdd62cbf1/?format=api", "uuid": "bc02a603-52d3-424d-ac0f-92cbdd62cbf1", "last_modified": "2024-08-27T10:17:38.845199Z", "created": "2020-12-22T10:26:17.402261Z", "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/db8889dc-a4cc-4528-a3ea-bf5287fabe6f/?format=api", "uuid": "db8889dc-a4cc-4528-a3ea-bf5287fabe6f", "name": "Uptime" }, "access_modifier": "Public", "supplier": "hanneke.schuurmans", "shared_with": [], "writable": false, "is_geoblock": true, "source": { "name": "AHN3 - example", "graph": { "Temp": [ "dask_geomodeling.raster.elemwise.Subtract", "source", 10 ], "Group_1": [ "dask_geomodeling.raster.combine.Group", "Group_2", "Group_3" ], "Group_2": [ "dask_geomodeling.raster.combine.Group", "RasterStoreSource_6", "RasterStoreSource_3", "RasterStoreSource_5", "RasterStoreSource_1" ], "Group_3": [ "dask_geomodeling.raster.combine.Group", "RasterStoreSource_4", "RasterStoreSource_8", "RasterStoreSource_2" ], "source": [ "dask_geomodeling.raster.misc.Clip", "Group_1", "RasterStoreSource_7" ], "AHN3 - example": [ "dask_geomodeling.raster.elemwise.Add", "Temp", 5 ], "RasterStoreSource_1": [ "lizard_nxt.blocks.LizardRasterSource", "2bcffbed-0dd6-4e97-94c1-da2a2dd6b716" ], "RasterStoreSource_2": [ "lizard_nxt.blocks.LizardRasterSource", "b1b7f640-2a4a-4d0b-bee2-7dacd721904e" ], "RasterStoreSource_3": [ "lizard_nxt.blocks.LizardRasterSource", "85c79bb9-5a16-4c8e-9b33-7a052a687161" ], "RasterStoreSource_4": [ "lizard_nxt.blocks.LizardRasterSource", "ba2b8fad-0dbb-441e-8788-f2dc81403afa" ], "RasterStoreSource_5": [ "lizard_nxt.blocks.LizardRasterSource", "ec469dde-deed-438e-b62e-4dfdd0abd5cc" ], "RasterStoreSource_6": [ "lizard_nxt.blocks.LizardRasterSource", "2441d662-472a-418e-b1ec-6f4eb6d29c8b" ], "RasterStoreSource_7": [ "lizard_nxt.blocks.LizardRasterSource", "fe4726a6-77a2-445b-94c2-0891f253a79a" ], "RasterStoreSource_8": [ "lizard_nxt.blocks.LizardRasterSource", "c83618fd-4388-4b44-9b81-7e4255bb6b63" ] } }, "weight": 14, "raster_sources": [ "https://demo.lizard.net/api/v4/rastersources/ec469dde-deed-438e-b62e-4dfdd0abd5cc/?format=api", "https://demo.lizard.net/api/v4/rastersources/2441d662-472a-418e-b1ec-6f4eb6d29c8b/?format=api", "https://demo.lizard.net/api/v4/rastersources/2bcffbed-0dd6-4e97-94c1-da2a2dd6b716/?format=api", "https://demo.lizard.net/api/v4/rastersources/85c79bb9-5a16-4c8e-9b33-7a052a687161/?format=api", "https://demo.lizard.net/api/v4/rastersources/ba2b8fad-0dbb-441e-8788-f2dc81403afa/?format=api", "https://demo.lizard.net/api/v4/rastersources/c83618fd-4388-4b44-9b81-7e4255bb6b63/?format=api", "https://demo.lizard.net/api/v4/rastersources/b1b7f640-2a4a-4d0b-bee2-7dacd721904e/?format=api", "https://demo.lizard.net/api/v4/rastersources/fe4726a6-77a2-445b-94c2-0891f253a79a/?format=api" ], "name": "AHN3 - example", "description": "Test to showcase geoblocks in a ArcGIS Online context", "observation_type": { "url": "https://demo.lizard.net/api/v4/observationtypes/845/?format=api", "id": 845, "code": "Elevation(mMSL)", "parameter": "Elevation", "unit": "m", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "MSL", "compartment": "", "created": "2017-08-21T12:22:55.356966Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, "temporal": false, "layer_collections": [], "first_value_timestamp": "1970-01-01T00:00:00Z", "last_value_timestamp": "1970-01-01T00:00:00Z", "spatial_bounds": { "west": 3.2531467975836432, "east": 7.244177970032486, "north": 53.54518925811533, "south": 50.73367934545144 }, "projection": "EPSG:28992", "origin_x": 13527.899999999994, "origin_y": 306790.05500616226, "upper_bound_x": 278092.9, "upper_bound_y": 619270.0550061623, "pixelsize_x": 0.5, "pixelsize_y": -0.5, "interval": null, "wms_info": { "endpoint": "https://demo.lizard.net/wms/", "layer": "royal-haskoningdhv:ahn3-example" }, "options": { "styles": ":-5:20" }, "colormap": { "data": [ [ -10000, [ 0, 0, 128, 255 ] ], [ -20, [ 128, 128, 255, 255.0 ] ], [ -5, [ 0, 101, 50, 255.0 ] ], [ 0, [ 15, 126, 52, 255.0 ] ], [ 5, [ 39, 152, 58, 255.0 ] ], [ 10, [ 70, 177, 70, 255.0 ] ], [ 20, [ 123, 203, 107, 255.0 ] ], [ 50, [ 177, 228, 152, 255.0 ] ], [ 100, [ 228, 254, 203, 255.0 ] ], [ 200, [ 200, 223, 142, 255 ] ], [ 500, [ 186, 192, 92, 255 ] ], [ 1000, [ 162, 145, 51, 255 ] ], [ 2000, [ 131, 90, 20, 255 ] ], [ 9000, [ 101, 41, 0, 255 ] ] ], "free": false, "type": "GradientColormap", "interp": [ [ -10000, 0.0 ], [ -20, 0.08 ], [ -5, 0.15 ], [ 0, 0.23 ], [ 5, 0.31 ], [ 10, 0.38 ], [ 20, 0.46 ], [ 50, 0.54 ], [ 100, 0.62 ], [ 200, 0.69 ], [ 500, 0.77 ], [ 1000, 0.85 ], [ 2000, 0.92 ], [ 9000, 1.0 ] ] }, "rescalable": false, "aggregation_type": "none", "dtype": "f4", "fill_value": "3.4028234663852886e+38" }{ "url": "