{ "program": "Ographis", "version": "0.96.7", "model": { "format": "ographis/1", "about": "A model is a JSON file (.ographis) with nodes and the connections between their ports. Each node has a type from node_types, an id that is unique in the model, a comment that says what it does in this model (keep the name of the tool, without a name of its own), x and y on the canvas, and params by the keys of its type. A connection goes from [node id, output port] to [node id, input port]. An input port may take several connections: their streams are put together, except on ports that keep them apart, such as Layers of Draw map. Settings that are not given take their default. $(name) in a setting is the value of the variable name. Check a model with og check.", "example": { "format": "ographis/1", "name": "Towns as points", "variables": [ { "name": "folder", "value": "out" } ], "nodes": [ { "id": "towns", "type": "Reader", "name": "Towns", "x": 20, "y": 20, "params": { "path": "towns.csv", "x": "lon", "y": "lat", "crs": "EPSG:4326" } }, { "id": "big", "type": "Tester", "name": "Large towns", "x": 280, "y": 20, "params": { "test": "population >= 10000" } }, { "id": "out", "type": "Writer", "name": "Result", "x": 540, "y": 20, "params": { "path": "$(folder)/towns.gpkg" } } ], "edges": [ { "from": [ "towns", "Output" ], "to": [ "big", "Input" ] }, { "from": [ "big", "Passed" ], "to": [ "out", "Input" ] } ] } }, "expressions": { "about": "As the field calculator of QGIS: attributes by name or in \"double quotes\", text in 'single quotes'. Operators: + - * / // % || = <> < <= > >= AND OR NOT IS NULL IN LIKE ILIKE, CASE WHEN … THEN … ELSE … END. $area, $length and $perimeter in m² and m, $x, $y and $id.", "functions": [ { "name": "round", "min_args": 1, "max_args": 2, "help": "round(number, decimals) rounds" }, { "name": "abs", "min_args": 1, "max_args": 1, "help": "abs(number) gives the absolute value" }, { "name": "sqrt", "min_args": 1, "max_args": 1, "help": "sqrt(number) gives the square root" }, { "name": "floor", "min_args": 1, "max_args": 1, "help": "floor(number) rounds down" }, { "name": "ceil", "min_args": 1, "max_args": 1, "help": "ceil(number) rounds up" }, { "name": "min", "min_args": 1, "max_args": 99, "help": "min(a, b, …) gives the smallest number" }, { "name": "max", "min_args": 1, "max_args": 99, "help": "max(a, b, …) gives the largest number" }, { "name": "upper", "min_args": 1, "max_args": 1, "help": "upper(text) gives upper case" }, { "name": "format_number", "min_args": 1, "max_args": 3, "help": "format_number(number, decimals, 'en') writes a number to be read: format_number(7936.7) gives 7 937, format_number(1234.5, 1) 1 234,5, and with 'en' 1,234.5" }, { "name": "newline", "min_args": 0, "max_args": 0, "help": "newline() breaks the line, as in name || newline() || area for a label of two lines" }, { "name": "lower", "min_args": 1, "max_args": 1, "help": "lower(text) gives lower case" }, { "name": "url_encode", "min_args": 1, "max_args": 1, "help": "url_encode(text) makes text safe to put in a web address, such as a value after ?q=: url_encode('Rock & Roll') gives Rock%20%26%20Roll" }, { "name": "initcap", "min_args": 1, "max_args": 1, "help": "initcap(text) makes every word begin with a capital: Lilla Edet" }, { "name": "length", "min_args": 1, "max_args": 1, "help": "length(text) gives the number of characters" }, { "name": "trim", "min_args": 1, "max_args": 1, "help": "trim(text) removes whitespace at both ends" }, { "name": "substr", "min_args": 2, "max_args": 3, "help": "substr(text, start, length) gives part of the text, start counts from 1" }, { "name": "replace", "min_args": 3, "max_args": 3, "help": "replace(text, search, replacement)" }, { "name": "left", "min_args": 2, "max_args": 2, "help": "left(text, n) gives the first n characters" }, { "name": "right", "min_args": 2, "max_args": 2, "help": "right(text, n) gives the last n characters" }, { "name": "lpad", "min_args": 3, "max_args": 3, "help": "lpad(text, width, fill) pads on the left" }, { "name": "rpad", "min_args": 3, "max_args": 3, "help": "rpad(text, width, fill) pads on the right" }, { "name": "concat", "min_args": 1, "max_args": 99, "help": "concat(a, b, …) joins text, null counts as empty" }, { "name": "coalesce", "min_args": 1, "max_args": 99, "help": "coalesce(a, b, …) gives the first value that is not null" }, { "name": "if", "min_args": 3, "max_args": 3, "help": "if(condition, if_true, if_false)" }, { "name": "to_int", "min_args": 1, "max_args": 1, "help": "to_int(value) converts to an integer" }, { "name": "to_real", "min_args": 1, "max_args": 1, "help": "to_real(value) converts to a decimal number" }, { "name": "to_string", "min_args": 1, "max_args": 1, "help": "to_string(value) converts to text" }, { "name": "now", "min_args": 0, "max_args": 1, "help": "now(format) gives the date and time of the run, such as now('%Y-%m-%d') for 2026-10-15" }, { "name": "format_time", "min_args": 1, "max_args": 3, "help": "format_time(time, format, zone) writes a time from an API in Swedish time, or 'utc': ISO 8601 such as 2026-10-17T06:00:00Z, or seconds or milliseconds since 1970 as ArcGIS gives them. format_time(Changed, '%Y-%m-%d %H:%M')" }, { "name": "epoch", "min_args": 1, "max_args": 1, "help": "epoch(time) gives seconds since 1970 for a time in ISO 8601, to count with: (epoch(end) - epoch(start)) / 60 is minutes" }, { "name": "power", "min_args": 2, "max_args": 2, "help": "power(number, exponent), the same as number ^ exponent" }, { "name": "exp", "min_args": 1, "max_args": 1, "help": "exp(number) gives e raised to the number" }, { "name": "ln", "min_args": 1, "max_args": 1, "help": "ln(number) gives the natural logarithm" }, { "name": "log10", "min_args": 1, "max_args": 1, "help": "log10(number) gives the logarithm with base 10" }, { "name": "log", "min_args": 2, "max_args": 2, "help": "log(base, number) gives the logarithm with that base" }, { "name": "sin", "min_args": 1, "max_args": 1, "help": "sin(angle) of an angle in radians; sin(radians(30)) for degrees" }, { "name": "cos", "min_args": 1, "max_args": 1, "help": "cos(angle) of an angle in radians" }, { "name": "tan", "min_args": 1, "max_args": 1, "help": "tan(angle) of an angle in radians" }, { "name": "asin", "min_args": 1, "max_args": 1, "help": "asin(number) gives the angle in radians" }, { "name": "acos", "min_args": 1, "max_args": 1, "help": "acos(number) gives the angle in radians" }, { "name": "atan", "min_args": 1, "max_args": 1, "help": "atan(number) gives the angle in radians" }, { "name": "atan2", "min_args": 2, "max_args": 2, "help": "atan2(dy, dx) gives the angle in radians of a direction" }, { "name": "pi", "min_args": 0, "max_args": 0, "help": "pi() gives 3.14159…" }, { "name": "radians", "min_args": 1, "max_args": 1, "help": "radians(degrees) converts degrees to radians" }, { "name": "degrees", "min_args": 1, "max_args": 1, "help": "degrees(radians) converts radians to degrees" }, { "name": "clamp", "min_args": 3, "max_args": 3, "help": "clamp(minimum, number, maximum) keeps the number within the two" }, { "name": "strpos", "min_args": 2, "max_args": 2, "help": "strpos(text, search) gives where the search begins, counted from 1, or 0" }, { "name": "starts_with", "min_args": 2, "max_args": 2, "help": "starts_with(text, beginning) is true when the text begins so" }, { "name": "ends_with", "min_args": 2, "max_args": 2, "help": "ends_with(text, end) is true when the text ends so" }, { "name": "nullif", "min_args": 2, "max_args": 2, "help": "nullif(value, other) gives null when the two are equal, else the value: nullif(code, '-')" }, { "name": "regexp_replace", "min_args": 3, "max_args": 3, "help": "regexp_replace(text, pattern, replacement) replaces what a regular expression finds; \\1 in the replacement is the first group" }, { "name": "regexp_match", "min_args": 2, "max_args": 2, "help": "regexp_match(text, pattern) gives where the regular expression is first found, counted from 1, or 0" }, { "name": "regexp_substr", "min_args": 2, "max_args": 2, "help": "regexp_substr(text, pattern) gives what the regular expression finds, or its first group: regexp_substr(address, '(\\d{3} ?\\d{2})')" }, { "name": "year", "min_args": 1, "max_args": 1, "help": "year(time) of a date or time, in Swedish time when the zone is given" }, { "name": "month", "min_args": 1, "max_args": 1, "help": "month(time), 1 to 12" }, { "name": "day", "min_args": 1, "max_args": 1, "help": "day(time), the day of the month" }, { "name": "hour", "min_args": 1, "max_args": 1, "help": "hour(time), 0 to 23" }, { "name": "minute", "min_args": 1, "max_args": 1, "help": "minute(time), 0 to 59" }, { "name": "second", "min_args": 1, "max_args": 1, "help": "second(time), 0 to 59" }, { "name": "day_of_week", "min_args": 1, "max_args": 1, "help": "day_of_week(time), 1 for Monday to 7 for Sunday" }, { "name": "week", "min_args": 1, "max_args": 1, "help": "week(time) gives the week number as in Sweden (ISO 8601)" }, { "name": "date_add", "min_args": 3, "max_args": 3, "help": "date_add(time, amount, unit) adds 'seconds', 'minutes', 'hours', 'days' or 'weeks': date_add('2026-10-21T08:00', 15, 'minutes')" }, { "name": "date_diff", "min_args": 2, "max_args": 3, "help": "date_diff(end, start, unit) gives the time between, in 'seconds', 'minutes', 'hours' or 'days' (the default)" } ] }, "node_types": [ { "type": "AttributeFileReader", "title": "Read files named in an attribute", "group": "tool", "category": "Input and output", "description": "Reads the file whose path is in an attribute of each feature, such as the answers HTTP request keeps as files: GeoJSON, GeoTIFF and anything Input reads. The features of each file get the attributes of its row; grids are put together into one.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": false, "params": [ { "key": "attribute", "label": "Path in", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "_file", "hint": "The attribute with the path of each file, such as _file from HTTP request" }, { "key": "raster_as", "label": "Cells as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "points", "label": "Points, one per cell" }, { "value": "cells", "label": "Squares, one per cell" }, { "value": "extent", "label": "The outline of the raster" }, { "value": "image", "label": "An image: shown as a picture, a click gives the values of a cell" }, { "value": "grid", "label": "Heights or other values on a grid, for terrain" } ], "default": "grid", "hint": "For rasters, such as GeoTIFF. Grids of several files are put together into one" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "For files that do not say. Empty: as the files say" } ] }, { "type": "Reader", "title": "Input", "group": "input", "category": "", "description": "Reads a file, a folder of files or a web address: geodata, tables, rasters, CAD drawings, city and building models, 3D models and point clouds. The formats are listed when nothing is selected. With a stream connected to Paths, it reads the file each feature names instead, such as the answers HTTP request keeps as files; the features of each file get the attributes of its row, and grids are put together into one.", "inputs": [ "Paths" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "path", "label": "File or folder", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "A file, also zipped; a folder, whose files that match the filter are read as one; or a web address (https://…)" }, { "key": "path_attribute", "label": "Paths from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Paths", "default": "_file", "hint": "With a stream connected to Paths: the attribute with the path of each file to read, such as _file from HTTP request. The file or folder above is then not used" }, { "key": "web_as", "label": "The address is", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As the address shows" }, { "value": "file", "label": "A file: fetched, then read" }, { "value": "ogcapi", "label": "OGC API Features" }, { "value": "wfs", "label": "WFS" }, { "value": "arcgis", "label": "ArcGIS feature service (FeatureServer, MapServer)" }, { "value": "wcs", "label": "WCS: a raster, read within the rectangle" }, { "value": "3dtiles", "label": "3D Tiles (a tileset.json)" }, { "value": "vectortiles", "label": "Vector tiles ({z}/{x}/{y}.pbf)" }, { "value": "cog", "label": "Cloud Optimized GeoTIFF: read where it is" }, { "value": "copc", "label": "COPC point cloud: read where it is" } ], "default": "auto", "hint": "A service is read through its own pages, and only what reaches into a rectangle when one is set: OGC API Features (/collections), WFS, or an ArcGIS FeatureServer. A WCS gives its coverages as rasters, read within the rectangle. A GeoTIFF (.tif) and a COPC point cloud (.copc.laz) are read where they are: only the rectangle, and a GeoTIFF from its overviews when read coarser" }, { "key": "connection", "label": "API connection", "kind": "api_connection", "shape": "the name of an API connection in the settings of the user", "default": "", "hint": "A key or a login for the address, kept in the settings. Where the key goes in the address, write {{key}}" }, { "key": "keep_download", "label": "Keep the fetched file", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "No fetches the file again in every run. Yes fetches it once and reads the copy after that" }, { "key": "pattern", "label": "Files in the folder", "kind": "text", "shape": "a string", "default": "*.shp", "hint": "A filter such as *.shp. Several are separated by semicolons" }, { "key": "recursive", "label": "Include subfolders", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false" }, { "key": "duckdb_sql", "label": "Query", "kind": "text", "shape": "a string", "default": "", "hint": "In place of a table: SQL that DuckDB runs, also on other files, such as SELECT * FROM read_parquet('buildings/*.parquet') WHERE height > 20. A geometry column comes with it" }, { "key": "zip_file", "label": "File in the zip", "kind": "text", "shape": "a string", "default": "", "hint": "Such as roads.gpkg, data/roads.gpkg or *.gpkg. Empty: the Shapefiles in it, or else the first data file" }, { "key": "layer", "label": "Layers", "kind": "layers", "shape": "names of layers of the file in path, separated by commas; empty reads the first, * all", "default": "", "hint": "Tables in a GeoPackage, sheets in Excel. Empty reads the first one, * reads all" }, { "key": "header", "label": "First row has names (Excel)", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true" }, { "key": "within", "label": "Read", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "all", "label": "Everything" }, { "value": "rectangle", "label": "Only within a rectangle" } ], "default": "all", "hint": "Only what reaches into a rectangle is read. In a GeoPackage, through its spatial index, which is quick" }, { "key": "min_x", "label": "West, smallest x", "kind": "text", "shape": "a string", "default": "", "hint": "A number such as 290000, or a variable of the model such as $(xmin)" }, { "key": "min_y", "label": "South, smallest y", "kind": "text", "shape": "a string", "default": "", "hint": "Such as 6390000 or $(ymin)" }, { "key": "max_x", "label": "East, largest x", "kind": "text", "shape": "a string", "default": "", "hint": "Such as 340000 or $(xmax)" }, { "key": "max_y", "label": "North, largest y", "kind": "text", "shape": "a string", "default": "", "hint": "Such as 6420000 or $(ymax)" }, { "key": "within_crs", "label": "Rectangle in", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "The coordinate system of the rectangle. Empty: that of the data" }, { "key": "limit", "label": "Largest number of features", "kind": "text", "shape": "a string", "default": "", "hint": "Reads only the first ones, for example 1000, to try a model out on large data. Empty reads all" }, { "key": "raster_as", "label": "Cells as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "points", "label": "Points, one per cell" }, { "value": "cells", "label": "Squares, one per cell" }, { "value": "extent", "label": "The outline of the raster" }, { "value": "image", "label": "An image: shown as a picture, a click gives the values of a cell" }, { "value": "grid", "label": "Heights or other values on a grid, for terrain" } ], "default": "points", "hint": "Points and squares get the values of the bands. The outline is one area with the size of the raster. An image is shown as a picture on the map under the canvas, and a click on it tells the values of the cell in every band; a large raster is read smaller. A grid keeps the values of the first band for Shade terrain and Quick terrain view" }, { "key": "tiles_detail", "label": "Level of detail", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "coarsest", "label": "The coarsest: the first tiles from the top" }, { "value": "error", "label": "Down to a largest error" }, { "value": "finest", "label": "The finest: the tiles at the bottom" } ], "default": "coarsest", "hint": "Which tiles of the tree are read. The finest of a large tileset can be very many: read within a rectangle, or down to an error" }, { "key": "tiles_error", "label": "Largest error, in metres", "kind": "text", "shape": "a string", "default": "1", "hint": "Tiles are read down to where the tileset says they are this close to the finest. A smaller number is more detail and more tiles" }, { "key": "tiles_most", "label": "At most this many tiles", "kind": "text", "shape": "a string", "default": "500", "hint": "More is an error that says so, rather than a long wait" }, { "key": "vt_zoom", "label": "Zoom level of the vector tiles", "kind": "text", "shape": "a string", "default": "", "hint": "Such as 14. A higher level has more detail and more tiles. Empty: the most detailed in a file, 14 on the web" }, { "key": "vt_pieces", "label": "Features the tiles cut apart", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "join", "label": "Put together" }, { "value": "keep", "label": "Kept as pieces, one per tile" } ], "default": "join", "hint": "Tiles cut a lake or a road at their edges. Put together, each is one feature again: the pieces with the same mvt_id and values" }, { "key": "tiles_crs", "label": "Coordinate system to place them in", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Such as EPSG:3006 for SWEREF 99 TM. Empty is the UTM zone where the tiles are" }, { "key": "tiles_dz", "label": "Move the heights by", "kind": "text", "shape": "a string", "default": "0", "hint": "3D Tiles have their heights above the ellipsoid. In Sweden the geoid lies some 20 to 40 metres above it, so for heights in RH 2000 write the geoid height of the place with a minus, such as −32" }, { "key": "las_classes", "label": "Only these classes", "kind": "text", "shape": "a string", "default": "", "hint": "Such as 2 for the ground, or 2, 6, 9 for ground, buildings and water. Empty reads all: 1 unclassified, 3 to 5 vegetation, 7 and 18 noise, 17 bridges" }, { "key": "las_every", "label": "Every n-th point", "kind": "text", "shape": "a string", "default": "1", "hint": "Thins a dense cloud: 10 reads one point in ten. 1 reads all" }, { "key": "las_spacing", "label": "Spacing between points (COPC)", "kind": "text", "shape": "a string", "default": "", "hint": "For a COPC file: only the levels of its octree down to about this many metres between points, such as 2 for an overview. Empty reads all. With a rectangle, only that part is read, also from the web" }, { "key": "obj_unit", "label": "Units of the model", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As the format says, or from its size" }, { "value": "m", "label": "Metres" }, { "value": "cm", "label": "Centimetres" }, { "value": "mm", "label": "Millimetres" }, { "value": "ft", "label": "Feet" }, { "value": "in", "label": "Inches" } ], "default": "auto", "hint": "glTF is in metres, and 3MF and STEP say theirs. OBJ files do not say: more than 200 across is taken as centimetres. STL is taken as millimetres" }, { "key": "obj_up", "label": "Upwards in the model", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As the format says: y for glTF, z for OBJ, STL, 3MF and STEP" }, { "value": "z", "label": "z, as on maps" }, { "value": "y", "label": "y, as in many 3D programs" } ], "default": "auto", "hint": "A building lying on its side has the other" }, { "key": "dxf_blocks", "label": "Blocks", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "points", "label": "Points with their attributes" }, { "value": "drawn", "label": "Drawn out in lines" } ], "default": "points", "hint": "A block, such as a well or a tree, as a point with its name and the values of its attributes as columns, or drawn out in lines" }, { "key": "dxf_closed", "label": "Closed polylines", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "areas", "label": "As areas" }, { "value": "lines", "label": "As lines" } ], "default": "areas", "hint": "Such as the outlines of buildings" }, { "key": "city_lod", "label": "Level of detail", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "finest", "label": "The finest each has" }, { "value": "coarsest", "label": "The coarsest each has" }, { "value": "0", "label": "LoD0" }, { "value": "1", "label": "LoD1" }, { "value": "2", "label": "LoD2" }, { "value": "3", "label": "LoD3" } ], "default": "finest", "hint": "Of each city object in CityGML and CityJSON: LoD1 is blocks, LoD2 has roof shapes, LoD3 windows and more" }, { "key": "ifc_openings", "label": "Openings", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "cut", "label": "Cut out" }, { "value": "leave", "label": "Left as they are" } ], "default": "cut", "hint": "For windows and doors: cut out of the walls and slabs where they are boxes or other convex shapes" }, { "key": "ifc_spaces", "label": "Spaces", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "Left out" }, { "value": "true", "label": "Read, as volumes" } ], "default": "false", "hint": "The rooms as volumes. They fill the building, so they are left out unless asked for" }, { "key": "ifc_properties", "label": "Property sets", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "all", "label": "All, as attributes" }, { "value": "none", "label": "None" } ], "default": "all", "hint": "Each property as an attribute, such as Pset_WallCommon.IsExternal, also quantities and those of the type" }, { "key": "splat_up", "label": "Upwards in the scene", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As the format says: y down for PLY, y up for SPZ" }, { "value": "-y", "label": "y down, as COLMAP and the training of splats" }, { "value": "y", "label": "y up, as three.js and many viewers" }, { "value": "z", "label": "z up, as on maps" } ], "default": "auto", "hint": "Gaussian splats and PLY points: which axis of the file points up" }, { "key": "splat_scale", "label": "Metres for a unit of the scene", "kind": "text", "shape": "a string", "default": "1", "hint": "Splats made from photos have no scale of their own: such as 2.5 when a distance of 4 m in the world measures 1.6 in the scene" }, { "key": "obj_east", "label": "Origin of the model, east", "kind": "text", "shape": "a string", "default": "0", "hint": "Where 0, 0, 0 of the model goes on the map, such as 319500 in SWEREF 99 TM" }, { "key": "obj_north", "label": "Origin of the model, north", "kind": "text", "shape": "a string", "default": "0", "hint": "Such as 6399800" }, { "key": "obj_height", "label": "Origin of the model, height", "kind": "text", "shape": "a string", "default": "0", "hint": "The height of the ground, such as 52.5" }, { "key": "obj_rotation", "label": "Turned clockwise, in degrees", "kind": "text", "shape": "a string", "default": "0", "hint": "Seen from above, around the origin" }, { "key": "osm_tags", "label": "Tags as attributes", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "common", "label": "The common ones; the rest stay in other_tags" }, { "value": "all", "label": "All of them" }, { "value": "false", "label": "None; all stay in other_tags" } ], "default": "common", "hint": "Each tag of OpenStreetMap, such as amenity or opening_hours, can become an attribute of its own. A whole country has thousands of different tags, so by default only those on at least one feature in a hundred get a column, and the rest stay together in other_tags, as GDAL reads them" }, { "key": "json_records", "label": "Records at (JSON, XML)", "kind": "text", "shape": "a string", "default": "", "hint": "Where the list of records is in the file, such as results or data.items, or in XML the elements by their path, such as Fastigheter.Fastighet. Empty finds it: the list itself, or a list such as results" }, { "key": "json_nested", "label": "Objects in a record (JSON, XML)", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "flatten", "label": "Attributes of their own, lists as JSON text" }, { "value": "columns", "label": "Attributes of their own, lists too" }, { "value": "text", "label": "JSON text" } ], "default": "flatten", "hint": "An address inside a record becomes adress.gata and adress.ort, or stays as JSON text for Flatten JSON" }, { "key": "step", "label": "Time step", "kind": "text", "shape": "a string", "default": "", "hint": "NetCDF and Zarr: the time read as a grid or a picture, by its number from 1 or its date, such as 2026-07. Empty: the first. As points or squares, each time is an attribute" }, { "key": "cell_size", "label": "Cell size", "kind": "text", "shape": "a string", "default": "", "hint": "Reads the grid at coarser cells, such as 10 for 10 metres, which saves memory. Empty reads it as it is, or coarser when it is very large" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Used when the file does not state its own" }, { "key": "encoding", "label": "Encoding", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "Detect" }, { "value": "utf-8", "label": "UTF-8" }, { "value": "windows-1252", "label": "Windows-1252: Western Europe, as Swedish files from Windows" }, { "value": "iso-8859-15", "label": "ISO-8859-15: Western Europe, with €" }, { "value": "windows-1250", "label": "Windows-1250: Central Europe" }, { "value": "windows-1251", "label": "Windows-1251: Cyrillic" }, { "value": "windows-1257", "label": "Windows-1257: the Baltic" } ], "default": "", "hint": "For CSV and DXF, and for Shapefiles without .cpg. A DWG says its own" }, { "key": "x", "label": "X column (CSV)", "kind": "text", "shape": "a string", "default": "", "hint": "Empty looks for x, lon, e, east" }, { "key": "y", "label": "Y column (CSV)", "kind": "text", "shape": "a string", "default": "", "hint": "Empty looks for y, lat, n, north" }, { "key": "wkt", "label": "WKT column (CSV)", "kind": "text", "shape": "a string", "default": "", "hint": "Empty looks for wkt, geom, geometry" }, { "key": "delimiter", "label": "Delimiter (CSV)", "kind": "text", "shape": "a string", "default": "", "hint": "Empty detects ; , tab or |" }, { "key": "filename_attr", "label": "Add the file name as an attribute", "kind": "optional_name", "shape": "the name of an attribute to add, or empty for none", "default": "", "hint": "Each feature gets an attribute that says which file it came from. The name of the attribute can be changed" }, { "key": "filename_part", "label": "File name as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "stem", "label": "Name without extension" }, { "value": "name", "label": "Name with extension" }, { "value": "path", "label": "Full path" } ], "default": "stem" }, { "key": "layer_attr", "label": "Add the layer name as an attribute", "kind": "optional_name", "shape": "the name of an attribute to add, or empty for none", "default": "", "hint": "Each feature gets an attribute with the name of the layer or sheet it came from. The name of the attribute can be changed" } ] }, { "type": "Viewer", "title": "View", "group": "output", "category": "", "description": "A place to look at data: connect as many streams as you like to it, from anywhere in the model. Click it, and each connection is shown under the canvas, in the table and on the map, by its number and name. It writes nothing.", "inputs": [ "Input" ], "outputs": [], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "ZipWriter", "title": "Make zip file", "group": "output", "category": "", "description": "Packs what the outputs of the model wrote in the run into one zip file, all or those named, with other files and folders you choose, such as a description or terms of use. It runs when everything else in the model has run, and needs no connection.", "inputs": [], "outputs": [], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "path", "label": "Zip file", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "Such as out/result.zip. {now('%Y-%m-%d')} puts the date in the name" }, { "key": "outputs", "label": "From the outputs", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "all", "label": "Everything the outputs wrote" }, { "value": "named", "label": "What the outputs named below wrote" }, { "value": "none", "label": "Nothing, only the files below" } ], "default": "all", "hint": "The files they wrote in this run, all of a Shapefile together" }, { "key": "names", "label": "Outputs by name", "kind": "text", "shape": "a string", "default": "", "hint": "The names of the outputs, separated by ;" }, { "key": "extra", "label": "Other files and folders", "kind": "paths", "shape": "files and folders: a list of strings, or one string separated by ;; relative paths start at the folder of the model", "default": "", "hint": "Such as README.txt, docs/terms.pdf or the folder styles, which goes in with all it holds. A new row comes when one is filled in" }, { "key": "places", "label": "In the zip file", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "folders", "label": "In their folders, as under the folder of the model" }, { "value": "flat", "label": "All in the top of the zip file" } ], "default": "folders" } ] }, { "type": "Writer", "title": "Output", "group": "output", "category": "", "description": "Writes the stream to GeoPackage, Shapefile, GeoJSON, Excel, LibreOffice Calc, CSV or txt. A file that already exists is overwritten, but in a GeoPackage or a workbook only the layer or sheet that is written. A Shapefile holds one geometry type, so mixed streams are split into several files. A workbook can be given a font, a bold and locked top row and colours. A map from Draw map is written as PNG, JPG, WebP, GeoTIFF or a PDF page.", "inputs": [ "Input" ], "outputs": [], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "path", "label": "File", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "An attribute or an expression in braces gives a file for each value: out/{municipality}.gpkg, or stops_{now('%Y-%m-%d')}.xlsx" }, { "key": "format", "label": "Format", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "From the file name" }, { "value": "csv", "label": "CSV (.csv)" }, { "value": "xlsx", "label": "Excel (.xlsx)" }, { "value": "ods", "label": "LibreOffice Calc (.ods)" }, { "value": "gsheet", "label": "Google Sheets" }, { "value": "txt", "label": "Text (.txt)" }, { "value": "json", "label": "JSON: a list of objects (.json)" }, { "value": "xml", "label": "XML (.xml)" }, { "value": "gpkg", "label": "GeoPackage (.gpkg)" }, { "value": "shp", "label": "Shapefile (.shp)" }, { "value": "geojson", "label": "GeoJSON (.geojson)" }, { "value": "fgb", "label": "FlatGeobuf (.fgb)" }, { "value": "parquet", "label": "GeoParquet (.parquet)" }, { "value": "arrow", "label": "GeoArrow (.arrow)" }, { "value": "duckdb", "label": "DuckDB database (.duckdb)" }, { "value": "gml", "label": "GML 3.2 (.gml)" }, { "value": "kml", "label": "KML for Google Earth (.kml)" }, { "value": "kmz", "label": "KMZ for Google Earth (.kmz)" }, { "value": "gpx", "label": "GPX for GPS units (.gpx)" }, { "value": "postgis", "label": "PostGIS table" }, { "value": "png", "label": "PNG image (.png)" }, { "value": "jpg", "label": "JPEG image (.jpg)" }, { "value": "webp", "label": "WebP image (.webp)" }, { "value": "tif", "label": "GeoTIFF image (.tif)" }, { "value": "cog", "label": "Cloud Optimized GeoTIFF (.tif)" }, { "value": "pdf", "label": "PDF (.pdf)" }, { "value": "geopdf", "label": "GeoSpatial PDF with layers (.pdf)" }, { "value": "svg", "label": "SVG drawing of a map (.svg)" }, { "value": "webmap", "label": "Web map with Leaflet or MapLibre (a folder)" }, { "value": "pmtiles", "label": "PMTiles vector tiles (.pmtiles)" }, { "value": "qgis", "label": "QGIS project with its layers (.qgz)" }, { "value": "pptx", "label": "PowerPoint slides (.pptx)" }, { "value": "odp", "label": "LibreOffice Impress slides (.odp)" }, { "value": "glb", "label": "glTF 3D model (.glb)" }, { "value": "obj", "label": "OBJ 3D model (.obj)" }, { "value": "citygml", "label": "CityGML 2.0 buildings (.gml)" }, { "value": "3dtiles", "label": "3D Tiles 1.1 (a folder with tileset.json)" }, { "value": "walk", "label": "3D walk-through in the browser (a folder)" }, { "value": "usda", "label": "OpenUSD (.usda)" }, { "value": "usdz", "label": "OpenUSD package with textures (.usdz)" }, { "value": "landxml", "label": "LandXML surface and points (.xml)" }, { "value": "las", "label": "LAS point cloud (.las)" }, { "value": "laz", "label": "LAZ point cloud (.laz)" }, { "value": "ply", "label": "Gaussian splats or points, PLY (.ply)" }, { "value": "spz", "label": "Gaussian splats, compressed SPZ (.spz)" }, { "value": "dxf", "label": "AutoCAD DXF drawing (.dxf)" }, { "value": "dwg", "label": "AutoCAD DWG drawing (.dwg)" }, { "value": "step", "label": "STEP for CAD (.step)" }, { "value": "stl", "label": "STL for 3D printing (.stl)" }, { "value": "3mf", "label": "3MF for 3D printing (.3mf)" } ], "default": "", "hint": "The file gets the extension of the format" }, { "key": "layer", "label": "Layer", "kind": "text", "shape": "a string", "default": "", "hint": "Table in a GeoPackage, sheet in a workbook. Empty uses the file name. Other layers and sheets in the file are kept. {municipality} gives one for each value" }, { "key": "encoding", "label": "Encoding", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "utf-8", "label": "UTF-8" }, { "value": "utf-8-bom", "label": "UTF-8 with BOM (Excel)" }, { "value": "windows-1252", "label": "Windows-1252" } ], "default": "utf-8", "hint": "For Shapefile and CSV" }, { "key": "delimiter", "label": "Delimiter (CSV)", "kind": "text", "shape": "a string", "default": ";" }, { "key": "decimal_comma", "label": "Decimal comma (CSV)", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false" }, { "key": "geometry", "label": "Geometry (CSV, Excel)", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "xy", "label": "x and y, for points" }, { "value": "wkt", "label": "WKT" }, { "value": "auto", "label": "x and y for points, WKT for the rest" } ], "default": "none", "hint": "These formats have no geometry of their own, so it is left out. Points can be written as x and y columns, and any geometry as WKT text" }, { "key": "mode", "label": "If it is already there", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "overwrite", "label": "Overwrite it" }, { "value": "append", "label": "Add the features to it" } ], "default": "overwrite", "hint": "The table in a GeoPackage, the sheet in a workbook, or the file. New features are matched to the attributes that are there by name" }, { "key": "key", "label": "Primary key", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "new", "label": "A new column of numbers" }, { "value": "attribute", "label": "An attribute" } ], "default": "new", "hint": "The column that tells the rows apart" }, { "key": "key_name", "label": "Key column", "kind": "text", "shape": "a string", "default": "fid", "hint": "The name of the new column of numbers" }, { "key": "key_attribute", "label": "Key attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Its values must all be different and none empty. In GeoPackage whole numbers are the key; other values get an index that keeps them apart" }, { "key": "font", "label": "Font", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "Standard" }, { "value": "Aptos", "label": "Aptos" }, { "value": "Arial", "label": "Arial" }, { "value": "Calibri", "label": "Calibri" }, { "value": "Consolas", "label": "Consolas" }, { "value": "Liberation Sans", "label": "Liberation Sans" }, { "value": "Segoe UI", "label": "Segoe UI" }, { "value": "Times New Roman", "label": "Times New Roman" } ], "default": "" }, { "key": "bold_header", "label": "Bold top row", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false" }, { "key": "freeze", "label": "Lock the top row", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "The names stay in view when the sheet is scrolled" }, { "key": "colors", "label": "Colours", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "None" }, { "value": "grey", "label": "Grey" }, { "value": "blue", "label": "Blue" }, { "value": "green", "label": "Green" }, { "value": "sand", "label": "Sand" }, { "value": "magenta", "label": "Magenta" } ], "default": "", "hint": "The top row filled, and every second row tinted to make the rows easier to follow" }, { "key": "gltf_name", "label": "Object names", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "", "hint": "glTF: the name of each object in Blender, such as the attribute name or address. Empty: as the model has them" }, { "key": "gltf_group", "label": "Group by", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "", "hint": "glTF: the objects of each value under a parent of its own, such as the kind of building, to show and hide together in Blender" }, { "key": "gltf_material", "label": "Materials by", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "", "hint": "glTF: a material named after each value, such as the material of the roof, to give them all a new look at once in Blender" }, { "key": "gltf_origin", "label": "Origin", "kind": "text", "shape": "a string", "default": "", "hint": "glTF and OBJ: x, y and z the model is written around, the same for files that are to fit together, such as 418300, 6472550, 0. none, or 0, 0, 0: the coordinates as they are, without moving the model. Empty: near its middle" }, { "key": "gltf_georef", "label": "Where it lies", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "true", "label": "Kept for BlenderGIS: the coordinate system and the origin" }, { "value": "false", "label": "Not kept" } ], "default": "true", "hint": "glTF: BlenderGIS can then add maps and terrain in their place" }, { "key": "gltf_sun", "label": "Sun and camera", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "sun", "label": "A sun" }, { "value": "both", "label": "A sun and a camera" }, { "value": "camera", "label": "A camera" } ], "default": "none", "hint": "glTF: a sun where it stands at the time below, and a camera looking from the south-west" }, { "key": "gltf_compress", "label": "Packed", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "glTF and the walk-through: smaller files, with the model packed by meshoptimizer and opaque textures as JPEG, for the web and game engines. Read by three.js, Babylon.js, Cesium and glTFast; not every 3D program reads it" }, { "key": "gltf_when", "label": "Time of the sun", "kind": "text", "shape": "a string", "default": "", "hint": "Swedish time, such as 2026-06-21 15:00; for the walk-through, the clock of Hours from UTC, and the time it opens at. Empty: midsummer at three in the afternoon" }, { "key": "t3_most", "label": "Triangles in a tile", "kind": "text", "shape": "a string", "default": "100000", "hint": "3D Tiles: the objects are split into tiles of at most this many triangles, which load quickly" }, { "key": "t3_lod", "label": "Coarser further away", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "3D Tiles: tiles of tiles with a lighter model of what they hold, fewer triangles and without the smallest objects, shown from afar until one comes near; the viewer streams the detail as it is needed" }, { "key": "t3_dz", "label": "Height added", "kind": "text", "shape": "a string", "default": "0", "hint": "3D Tiles: metres added to every height. The globe has heights above the ellipsoid: in Sweden add about 20 to 40 m to heights above the sea" }, { "key": "citygml_lod", "label": "Level of detail", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "2", "label": "LoD2: ground, walls and roofs" }, { "value": "1", "label": "LoD1: one solid" } ], "default": "2", "hint": "CityGML: LoD1 is each building as one solid, LoD2 its ground, walls and roofs" }, { "key": "pm_min", "label": "From zoom level", "kind": "text", "shape": "a string", "default": "0", "hint": "PMTiles: the smallest zoom level with tiles. 0 is the whole world in one tile" }, { "key": "pm_max", "label": "To zoom level", "kind": "text", "shape": "a string", "default": "14", "hint": "PMTiles: the largest, at most 16. 14 has tiles of about 2 km, and maps zoom in beyond it" }, { "key": "connection", "label": "API connection", "kind": "api_connection", "shape": "the name of an API connection in the settings of the user", "default": "", "hint": "Google Sheets: a connection with the key of a Google service account that the sheet is shared with, as an editor" }, { "key": "walk_eye", "label": "Height of the eyes", "kind": "text", "shape": "a string", "default": "1.7", "hint": "Walk-through: in metres above the ground" }, { "key": "walk_speed", "label": "Speed", "kind": "text", "shape": "a string", "default": "3", "hint": "Walk-through: in metres a second when walking; Shift goes four times as fast, and flying five times, or across a fortieth of the model a second in a large one. The wheel and + and − change it in the page" }, { "key": "walk_start", "label": "Begin at", "kind": "text", "shape": "a string", "default": "", "hint": "Walk-through: x, y in the coordinates of the model. Empty: at the middle of the south edge, looking north" }, { "key": "walk_utc", "label": "Hours from UTC", "kind": "text", "shape": "a string", "default": "", "hint": "Walk-through: of the clock that Time of the sun is in, such as -10 for Hawaii. Empty: Swedish time in and near Sweden, else by the longitude" }, { "key": "print_scale", "label": "Scale", "kind": "text", "shape": "a string", "default": "", "hint": "STL, 3MF and STEP, in millimetres from the lowest corner: the denominator, such as 1000 for 1:1000, or 1 for real size. Empty: the largest side 180 mm, as a printer plate takes" }, { "key": "cad_template", "label": "Template drawing", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "DXF and DWG: a drawing whose layers, line types, text styles and blocks are used, such as the CAD standard of the client. Empty: a drawing of its own" }, { "key": "cad_keep", "label": "Keep what the template draws", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Such as a frame and a title block in model space; no keeps only its tables and blocks" }, { "key": "cad_layer", "label": "Layer by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "DXF and DWG: the attribute that names the CAD layer of each feature; a layer the template lacks is made. Empty: layer 0" }, { "key": "cad_colour", "label": "Colour by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "A colour as #rrggbb or a number of the AutoCAD colours, 1 to 255. Empty: the colour of the layer" }, { "key": "cad_linetype", "label": "Line type by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The name of a line type of the template, such as DASHED. Empty: that of the layer" }, { "key": "cad_block", "label": "Block by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Points as the block of the template this attribute names, its attributes filled in from the attributes of the same names, such as DJUP. Points without a block are points" }, { "key": "cad_rotation", "label": "Rotation of blocks", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "In degrees counterclockwise. Empty: 0" }, { "key": "cad_text", "label": "Text by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "A text beside each feature: at a point, inside an area, halfway along a line" }, { "key": "cad_text_height", "label": "Height of texts", "kind": "text", "shape": "a string", "default": "2.5", "hint": "In the units of the drawing, usually metres" }, { "key": "cad_version", "label": "AutoCAD version", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "2018", "label": "AutoCAD 2018" }, { "value": "2013", "label": "AutoCAD 2013" }, { "value": "2010", "label": "AutoCAD 2010" } ], "default": "2018", "hint": "The version the drawing is saved as, for those who open it in an older program" }, { "key": "splat_up", "label": "Upwards in the file", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As the format says: y down for PLY, y up for SPZ" }, { "value": "-y", "label": "y down, as COLMAP and the training of splats" }, { "value": "y", "label": "y up, as three.js and many viewers" }, { "value": "z", "label": "z up, as on maps" } ], "default": "auto", "hint": "Gaussian splats: y down for PLY and y up for SPZ, as most viewers expect, or z up as on maps" }, { "key": "usd_layers", "label": "Layers by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "OpenUSD: a layer for each value, such as buildings, roads and trees, each a file the main file takes in. Empty: one" }, { "key": "usd_variants", "label": "Variants by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "OpenUSD: a variant for each value, such as today and plan, to switch between in the 3D program. Empty: none" }, { "key": "xml_root", "label": "Outer element", "kind": "text", "shape": "a string", "default": "features", "hint": "XML: the element around all of it" }, { "key": "xml_row", "label": "Element of a feature", "kind": "text", "shape": "a string", "default": "feature", "hint": "XML: the element of each feature. Names with a dot become elements within it" }, { "key": "xml_geometry", "label": "Geometry in XML", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "Left out" }, { "value": "wkt", "label": "As WKT, in geometry" } ], "default": "none" }, { "key": "json_shape", "label": "JSON as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "list", "label": "A list of objects, one for each feature" }, { "value": "lines", "label": "JSON Lines: an object on each line" }, { "value": "first", "label": "The object of the first feature alone" } ], "default": "list", "hint": "Names with a dot become objects within the object, and attributes that hold JSON, such as from Build JSON, are written as JSON" }, { "key": "json_list_name", "label": "List under the name", "kind": "text", "shape": "a string", "default": "", "hint": "Puts the list in an object under this name, such as {\"items\": [...]}. Empty writes the list as it is" }, { "key": "json_geometry", "label": "Geometry in JSON", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "Left out" }, { "value": "geojson", "label": "As GeoJSON, in geometry" }, { "value": "wkt", "label": "As WKT, in geometry" } ], "default": "none", "hint": "In the coordinates of the stream" }, { "key": "schema_files", "label": "Schema and TypeScript types", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "Writes name.schema.json (JSON Schema) and name.d.ts (TypeScript) beside the file, with each attribute, its type and whether it can be empty, for those who use the file in code" }, { "key": "geojson_crs", "label": "Coordinates", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "wgs84", "label": "In WGS 84, as GeoJSON is to be" }, { "value": "keep", "label": "In the coordinate system of the stream" } ], "default": "wgs84", "hint": "GeoJSON is in degrees in WGS 84 (RFC 7946), which web maps take for granted. Other coordinate systems are named in the file in the older way" }, { "key": "gpkg_version", "label": "GeoPackage version", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "As GDAL chooses" }, { "value": "1.4", "label": "1.4" }, { "value": "1.3", "label": "1.3" }, { "value": "1.2", "label": "1.2, for older programs" } ], "default": "", "hint": "Of a new GeoPackage. GDAL chooses the oldest version that holds the data. A file that is there keeps its own" }, { "key": "img_dpi", "label": "Pixels to the inch", "kind": "text", "shape": "a string", "default": "", "hint": "PNG, JPEG and GeoTIFF: how large the picture prints, kept in the file, such as 300. It does not change the picture, and makes it no sharper: for that, draw it for print in Draw map, which then gives its resolution here by itself. Empty takes that of the picture, or none" }, { "key": "img_quality", "label": "Picture quality", "kind": "text", "shape": "a string", "default": "92", "hint": "1 to 100: more is sharper and larger. For JPEG, WebP and GeoTIFF packed as JPEG. WebP at 100 keeps every pixel" }, { "key": "tif_compress", "label": "GeoTIFF packed as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "deflate", "label": "Deflate, lossless" }, { "value": "lzw", "label": "LZW, lossless, read by the most programs" }, { "value": "jpeg", "label": "JPEG, small but lossy" }, { "value": "none", "label": "Not packed" } ], "default": "deflate", "hint": "For pictures, also Cloud Optimized. JPEG suits aerial photos, not maps with lines and text" }, { "key": "pdf_as", "label": "A map as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "shapes", "label": "Lines, areas and text as shapes, sharp at any size, placed on the map" }, { "value": "picture", "label": "A picture of pixels, placed on the map" } ], "default": "shapes", "hint": "For a map from Draw map or a chart. As shapes it prints sharp and can be edited in Illustrator or Inkscape; as a picture a GIS can place it" }, { "key": "pdf_size", "label": "Page size", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "a4", "label": "A4" }, { "value": "a3", "label": "A3" }, { "value": "a2", "label": "A2" }, { "value": "a1", "label": "A1" }, { "value": "a0", "label": "A0" }, { "value": "a5", "label": "A5" }, { "value": "letter", "label": "Letter" }, { "value": "legal", "label": "Legal" }, { "value": "tabloid", "label": "Tabloid" }, { "value": "custom", "label": "A size of my own" }, { "value": "fit", "label": "As large as the picture" } ], "default": "a4" }, { "key": "pdf_width", "label": "Page width in mm", "kind": "text", "shape": "a string", "default": "210" }, { "key": "pdf_height", "label": "Page height in mm", "kind": "text", "shape": "a string", "default": "297" }, { "key": "pdf_dpi", "label": "Pixels to the inch", "kind": "text", "shape": "a string", "default": "150", "hint": "How large the picture is printed: 300 is sharp in print, 150 enough for a screen" }, { "key": "pdf_compress", "label": "Picture packed as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "deflate", "label": "Lossless: every pixel kept" }, { "value": "jpeg", "label": "JPEG: smaller, for photos and shaded relief" } ], "default": "deflate", "hint": "Lossless suits maps with lines and text; JPEG makes a large picture much smaller" }, { "key": "pdf_quality", "label": "JPEG quality", "kind": "text", "shape": "a string", "default": "85", "hint": "1 to 100: more is sharper and larger" }, { "key": "pdf_orientation", "label": "Orientation", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "After the picture" }, { "value": "portrait", "label": "Portrait" }, { "value": "landscape", "label": "Landscape" } ], "default": "auto", "hint": "After the picture: landscape when the picture is wider than it is high" }, { "key": "pdf_margin", "label": "Margin in mm", "kind": "text", "shape": "a string", "default": "10" }, { "key": "pdf_bleed", "label": "Bleed in mm", "kind": "text", "shape": "a string", "default": "0", "hint": "For a printer: the page reaches this far past where it is cut, often 3 mm" }, { "key": "pdf_marks", "label": "Crop marks", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "no", "hint": "Short lines outside the page that show the printer where to cut" }, { "key": "pdf_title", "label": "Title", "kind": "text", "shape": "a string", "default": "", "hint": "Written above the picture. Empty gives none" }, { "key": "pdf_title_align", "label": "Title placed", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "left", "label": "Left" }, { "value": "center", "label": "Center" }, { "value": "right", "label": "Right" } ], "default": "left", "hint": "Along the top edge of the picture: at the left, in the middle or at the right" }, { "key": "fields", "label": "Data types and sizes", "kind": "object", "shape": "an object {attribute: {\"type\": \"text\" | \"integer\" | \"decimal\", \"length\", \"decimals\"}}", "port": "Input", "default": "", "hint": "Write an attribute as another type, cut text at a length, or round to a number of decimals" } ] }, { "type": "SlideWriter", "title": "Slides", "group": "output", "category": "", "description": "Writes the pictures connected to Pictures as slides for PowerPoint (.pptx) or LibreOffice Impress (.odp), a slide for each: maps from Draw map, charts and 3D scenes, as large as fits, with the name of the tool each comes from as its title. A first slide with a title of its own, wide or standard slides and a background colour.", "inputs": [ "Pictures" ], "outputs": [], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "path", "label": "File", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "A .pptx file for PowerPoint or an .odp file for LibreOffice Impress" }, { "key": "format", "label": "Format", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "From the file name" }, { "value": "csv", "label": "CSV (.csv)" }, { "value": "xlsx", "label": "Excel (.xlsx)" }, { "value": "ods", "label": "LibreOffice Calc (.ods)" }, { "value": "gsheet", "label": "Google Sheets" }, { "value": "txt", "label": "Text (.txt)" }, { "value": "json", "label": "JSON: a list of objects (.json)" }, { "value": "xml", "label": "XML (.xml)" }, { "value": "gpkg", "label": "GeoPackage (.gpkg)" }, { "value": "shp", "label": "Shapefile (.shp)" }, { "value": "geojson", "label": "GeoJSON (.geojson)" }, { "value": "fgb", "label": "FlatGeobuf (.fgb)" }, { "value": "parquet", "label": "GeoParquet (.parquet)" }, { "value": "arrow", "label": "GeoArrow (.arrow)" }, { "value": "duckdb", "label": "DuckDB database (.duckdb)" }, { "value": "gml", "label": "GML 3.2 (.gml)" }, { "value": "kml", "label": "KML for Google Earth (.kml)" }, { "value": "kmz", "label": "KMZ for Google Earth (.kmz)" }, { "value": "gpx", "label": "GPX for GPS units (.gpx)" }, { "value": "postgis", "label": "PostGIS table" }, { "value": "png", "label": "PNG image (.png)" }, { "value": "jpg", "label": "JPEG image (.jpg)" }, { "value": "webp", "label": "WebP image (.webp)" }, { "value": "tif", "label": "GeoTIFF image (.tif)" }, { "value": "cog", "label": "Cloud Optimized GeoTIFF (.tif)" }, { "value": "pdf", "label": "PDF (.pdf)" }, { "value": "geopdf", "label": "GeoSpatial PDF with layers (.pdf)" }, { "value": "svg", "label": "SVG drawing of a map (.svg)" }, { "value": "webmap", "label": "Web map with Leaflet or MapLibre (a folder)" }, { "value": "pmtiles", "label": "PMTiles vector tiles (.pmtiles)" }, { "value": "qgis", "label": "QGIS project with its layers (.qgz)" }, { "value": "pptx", "label": "PowerPoint slides (.pptx)" }, { "value": "odp", "label": "LibreOffice Impress slides (.odp)" }, { "value": "glb", "label": "glTF 3D model (.glb)" }, { "value": "obj", "label": "OBJ 3D model (.obj)" }, { "value": "citygml", "label": "CityGML 2.0 buildings (.gml)" }, { "value": "3dtiles", "label": "3D Tiles 1.1 (a folder with tileset.json)" }, { "value": "walk", "label": "3D walk-through in the browser (a folder)" }, { "value": "usda", "label": "OpenUSD (.usda)" }, { "value": "usdz", "label": "OpenUSD package with textures (.usdz)" }, { "value": "landxml", "label": "LandXML surface and points (.xml)" }, { "value": "las", "label": "LAS point cloud (.las)" }, { "value": "laz", "label": "LAZ point cloud (.laz)" }, { "value": "ply", "label": "Gaussian splats or points, PLY (.ply)" }, { "value": "spz", "label": "Gaussian splats, compressed SPZ (.spz)" }, { "value": "dxf", "label": "AutoCAD DXF drawing (.dxf)" }, { "value": "dwg", "label": "AutoCAD DWG drawing (.dwg)" }, { "value": "step", "label": "STEP for CAD (.step)" }, { "value": "stl", "label": "STL for 3D printing (.stl)" }, { "value": "3mf", "label": "3MF for 3D printing (.3mf)" } ], "default": "pptx" }, { "key": "cover", "label": "Title of the first slide", "kind": "text", "shape": "a string", "default": "", "hint": "Empty: no first slide of its own" }, { "key": "cover_note", "label": "Under the title", "kind": "text", "shape": "a string", "default": "", "hint": "Such as a date, or who made it" }, { "key": "titles", "label": "Titles above the pictures", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "The name of the tool each picture comes from, or its comment when it has no name of its own" }, { "key": "size", "label": "Slides", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "wide", "label": "Wide, 16:9" }, { "value": "standard", "label": "Standard, 4:3" } ], "default": "wide" }, { "key": "background", "label": "Background colour", "kind": "text", "shape": "a string", "default": "", "hint": "As #rrggbb. Empty: white" } ] }, { "type": "LayeredPdfWriter", "title": "GeoSpatial PDF output", "group": "output", "category": "", "description": "Writes the streams connected to Layers as a geospatial PDF where each is a layer that can be turned on and off in the PDF reader, with the attributes of the features. The order of the layers and how each looks are set in the form, as in Draw map. Pictures, such as shaded terrain, can be layers too.", "inputs": [ "Layers" ], "outputs": [], "outputs_follow_settings": false, "offered": false, "params": [ { "key": "path", "label": "File", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "A .pdf file" }, { "key": "format", "label": "Format", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "From the file name" }, { "value": "csv", "label": "CSV (.csv)" }, { "value": "xlsx", "label": "Excel (.xlsx)" }, { "value": "ods", "label": "LibreOffice Calc (.ods)" }, { "value": "gsheet", "label": "Google Sheets" }, { "value": "txt", "label": "Text (.txt)" }, { "value": "json", "label": "JSON: a list of objects (.json)" }, { "value": "xml", "label": "XML (.xml)" }, { "value": "gpkg", "label": "GeoPackage (.gpkg)" }, { "value": "shp", "label": "Shapefile (.shp)" }, { "value": "geojson", "label": "GeoJSON (.geojson)" }, { "value": "fgb", "label": "FlatGeobuf (.fgb)" }, { "value": "parquet", "label": "GeoParquet (.parquet)" }, { "value": "arrow", "label": "GeoArrow (.arrow)" }, { "value": "duckdb", "label": "DuckDB database (.duckdb)" }, { "value": "gml", "label": "GML 3.2 (.gml)" }, { "value": "kml", "label": "KML for Google Earth (.kml)" }, { "value": "kmz", "label": "KMZ for Google Earth (.kmz)" }, { "value": "gpx", "label": "GPX for GPS units (.gpx)" }, { "value": "postgis", "label": "PostGIS table" }, { "value": "png", "label": "PNG image (.png)" }, { "value": "jpg", "label": "JPEG image (.jpg)" }, { "value": "webp", "label": "WebP image (.webp)" }, { "value": "tif", "label": "GeoTIFF image (.tif)" }, { "value": "cog", "label": "Cloud Optimized GeoTIFF (.tif)" }, { "value": "pdf", "label": "PDF (.pdf)" }, { "value": "geopdf", "label": "GeoSpatial PDF with layers (.pdf)" }, { "value": "svg", "label": "SVG drawing of a map (.svg)" }, { "value": "webmap", "label": "Web map with Leaflet or MapLibre (a folder)" }, { "value": "pmtiles", "label": "PMTiles vector tiles (.pmtiles)" }, { "value": "qgis", "label": "QGIS project with its layers (.qgz)" }, { "value": "pptx", "label": "PowerPoint slides (.pptx)" }, { "value": "odp", "label": "LibreOffice Impress slides (.odp)" }, { "value": "glb", "label": "glTF 3D model (.glb)" }, { "value": "obj", "label": "OBJ 3D model (.obj)" }, { "value": "citygml", "label": "CityGML 2.0 buildings (.gml)" }, { "value": "3dtiles", "label": "3D Tiles 1.1 (a folder with tileset.json)" }, { "value": "walk", "label": "3D walk-through in the browser (a folder)" }, { "value": "usda", "label": "OpenUSD (.usda)" }, { "value": "usdz", "label": "OpenUSD package with textures (.usdz)" }, { "value": "landxml", "label": "LandXML surface and points (.xml)" }, { "value": "las", "label": "LAS point cloud (.las)" }, { "value": "laz", "label": "LAZ point cloud (.laz)" }, { "value": "ply", "label": "Gaussian splats or points, PLY (.ply)" }, { "value": "spz", "label": "Gaussian splats, compressed SPZ (.spz)" }, { "value": "dxf", "label": "AutoCAD DXF drawing (.dxf)" }, { "value": "dwg", "label": "AutoCAD DWG drawing (.dwg)" }, { "value": "step", "label": "STEP for CAD (.step)" }, { "value": "stl", "label": "STL for 3D printing (.stl)" }, { "value": "3mf", "label": "3MF for 3D printing (.3mf)" } ], "default": "geopdf" }, { "key": "layers", "label": "Layers", "kind": "list", "shape": "a list of layers, one per stream connected to the port: {\"from\": \"node:port, the id of the node and its output port\", \"fill\": \"#rrggbb\", \"stroke\", \"width\", \"size\", \"label\": attribute, …}", "port": "Layers", "default": "", "hint": "The top row is drawn on top. A layer that is not ticked is in the PDF, but off when it is opened" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Of the map. Empty uses that of the first layer. The others are reprojected to it" }, { "key": "margin", "label": "Margin in %", "kind": "text", "shape": "a string", "default": "5", "hint": "Room around the features, as a share of the larger side" }, { "key": "pdf_size", "label": "Page size", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "a4", "label": "A4" }, { "value": "a3", "label": "A3" }, { "value": "a2", "label": "A2" }, { "value": "a1", "label": "A1" }, { "value": "a0", "label": "A0" }, { "value": "a5", "label": "A5" }, { "value": "letter", "label": "Letter" }, { "value": "legal", "label": "Legal" }, { "value": "tabloid", "label": "Tabloid" }, { "value": "custom", "label": "A size of my own" }, { "value": "fit", "label": "As large as the picture" } ], "default": "a4" }, { "key": "pdf_width", "label": "Page width in mm", "kind": "text", "shape": "a string", "default": "210" }, { "key": "pdf_height", "label": "Page height in mm", "kind": "text", "shape": "a string", "default": "297" }, { "key": "pdf_orientation", "label": "Orientation", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "After the picture" }, { "value": "portrait", "label": "Portrait" }, { "value": "landscape", "label": "Landscape" } ], "default": "auto" }, { "key": "pdf_margin", "label": "Page margin in mm", "kind": "text", "shape": "a string", "default": "10" }, { "key": "pdf_title", "label": "Title", "kind": "text", "shape": "a string", "default": "", "hint": "Written above the map. Empty gives none" }, { "key": "pdf_title_align", "label": "Title placed", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "left", "label": "Left" }, { "value": "center", "label": "Center" }, { "value": "right", "label": "Right" } ], "default": "left" } ] }, { "type": "ReportWriter", "title": "Report", "group": "output", "category": "", "description": "Writes a report of what the model made, as a web page with the pictures in it or as a PDF of A4 pages: a title, a text first and last of your own, and a section for each stream connected to Sections, in the order they were connected, under the name of the tool it comes from. Maps, charts and 3D scenes are shown as pictures; other streams as tables of their attributes.", "inputs": [ "Sections" ], "outputs": [], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "path", "label": "File", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "A web page (.html) with the pictures in it, or a PDF. {now('%Y-%m-%d')} puts the date in the name" }, { "key": "format", "label": "Format", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "html", "label": "A web page (.html)" }, { "value": "pdf", "label": "PDF of A4 pages (.pdf)" } ], "default": "html" }, { "key": "title", "label": "Title", "kind": "text", "shape": "a string", "default": "", "hint": "Empty: the name of the file" }, { "key": "subtitle", "label": "Under the title", "kind": "text", "shape": "a string", "default": "", "hint": "Such as who made it. Empty: the date and time of the run" }, { "key": "intro", "label": "Text first", "kind": "code", "shape": "text over several lines, such as SQL, with {attribute} put in from the stream on the port", "port": "", "default": "", "hint": "A blank line between paragraphs, # at the start of a line for a heading and - for a point in a list" }, { "key": "closing", "label": "Text last", "kind": "code", "shape": "text over several lines, such as SQL, with {attribute} put in from the stream on the port", "port": "", "default": "", "hint": "As the text first" }, { "key": "rows", "label": "Rows of a table", "kind": "text", "shape": "a string", "default": "100", "hint": "A stream without a picture is a table of its attributes, with at most this many rows" }, { "key": "headings", "label": "Headings", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Each section under the name of the tool it comes from, or its comment when the tool has no name of its own" }, { "key": "colours", "label": "Colours of the tables", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "plain", "label": "Plain: light grey" }, { "value": "sea", "label": "Sea: deep blue" }, { "value": "forest", "label": "Forest: dark green" }, { "value": "sand", "label": "Sand: warm brown" }, { "value": "graphite", "label": "Graphite: near black" } ], "default": "plain", "hint": "The heading row and every other row, in the web page and the PDF" }, { "key": "sortable", "label": "Sort by a click", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Web page: a click on the heading of a column sorts the rows by it, a second click the other way. Only the rows in the table are sorted" } ] }, { "type": "QgisProjectWriter", "title": "QGIS project output", "group": "output", "category": "", "description": "Writes the streams connected to Layers as a QGIS project (.qgz), with the features in a GeoPackage beside it and pictures as GeoTIFF: each a layer with the look it has in the form, as in Draw map, with its classes of colour, sizes after a number and labels, and a background map if asked. To open in QGIS and go on from there.", "inputs": [ "Layers" ], "outputs": [], "outputs_follow_settings": false, "offered": false, "params": [ { "key": "path", "label": "File", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "A .qgz project. The features go in a GeoPackage of the same name beside it, and pictures in GeoTIFFs" }, { "key": "format", "label": "Format", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "From the file name" }, { "value": "csv", "label": "CSV (.csv)" }, { "value": "xlsx", "label": "Excel (.xlsx)" }, { "value": "ods", "label": "LibreOffice Calc (.ods)" }, { "value": "gsheet", "label": "Google Sheets" }, { "value": "txt", "label": "Text (.txt)" }, { "value": "json", "label": "JSON: a list of objects (.json)" }, { "value": "xml", "label": "XML (.xml)" }, { "value": "gpkg", "label": "GeoPackage (.gpkg)" }, { "value": "shp", "label": "Shapefile (.shp)" }, { "value": "geojson", "label": "GeoJSON (.geojson)" }, { "value": "fgb", "label": "FlatGeobuf (.fgb)" }, { "value": "parquet", "label": "GeoParquet (.parquet)" }, { "value": "arrow", "label": "GeoArrow (.arrow)" }, { "value": "duckdb", "label": "DuckDB database (.duckdb)" }, { "value": "gml", "label": "GML 3.2 (.gml)" }, { "value": "kml", "label": "KML for Google Earth (.kml)" }, { "value": "kmz", "label": "KMZ for Google Earth (.kmz)" }, { "value": "gpx", "label": "GPX for GPS units (.gpx)" }, { "value": "postgis", "label": "PostGIS table" }, { "value": "png", "label": "PNG image (.png)" }, { "value": "jpg", "label": "JPEG image (.jpg)" }, { "value": "webp", "label": "WebP image (.webp)" }, { "value": "tif", "label": "GeoTIFF image (.tif)" }, { "value": "cog", "label": "Cloud Optimized GeoTIFF (.tif)" }, { "value": "pdf", "label": "PDF (.pdf)" }, { "value": "geopdf", "label": "GeoSpatial PDF with layers (.pdf)" }, { "value": "svg", "label": "SVG drawing of a map (.svg)" }, { "value": "webmap", "label": "Web map with Leaflet or MapLibre (a folder)" }, { "value": "pmtiles", "label": "PMTiles vector tiles (.pmtiles)" }, { "value": "qgis", "label": "QGIS project with its layers (.qgz)" }, { "value": "pptx", "label": "PowerPoint slides (.pptx)" }, { "value": "odp", "label": "LibreOffice Impress slides (.odp)" }, { "value": "glb", "label": "glTF 3D model (.glb)" }, { "value": "obj", "label": "OBJ 3D model (.obj)" }, { "value": "citygml", "label": "CityGML 2.0 buildings (.gml)" }, { "value": "3dtiles", "label": "3D Tiles 1.1 (a folder with tileset.json)" }, { "value": "walk", "label": "3D walk-through in the browser (a folder)" }, { "value": "usda", "label": "OpenUSD (.usda)" }, { "value": "usdz", "label": "OpenUSD package with textures (.usdz)" }, { "value": "landxml", "label": "LandXML surface and points (.xml)" }, { "value": "las", "label": "LAS point cloud (.las)" }, { "value": "laz", "label": "LAZ point cloud (.laz)" }, { "value": "ply", "label": "Gaussian splats or points, PLY (.ply)" }, { "value": "spz", "label": "Gaussian splats, compressed SPZ (.spz)" }, { "value": "dxf", "label": "AutoCAD DXF drawing (.dxf)" }, { "value": "dwg", "label": "AutoCAD DWG drawing (.dwg)" }, { "value": "step", "label": "STEP for CAD (.step)" }, { "value": "stl", "label": "STL for 3D printing (.stl)" }, { "value": "3mf", "label": "3MF for 3D printing (.3mf)" } ], "default": "qgis" }, { "key": "layers", "label": "Layers", "kind": "list", "shape": "a list of layers, one per stream connected to the port: {\"from\": \"node:port, the id of the node and its output port\", \"fill\": \"#rrggbb\", \"stroke\", \"width\", \"size\", \"label\": attribute, …}", "port": "Layers", "default": "", "hint": "The top row is on top in QGIS. A layer that is not ticked is in the project, but turned off" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Of the project. Empty uses that of the first layer. The others are reprojected to it" }, { "key": "basemap", "label": "Background map", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "osm", "label": "OpenStreetMap" }, { "value": "carto_light", "label": "Light grey (CARTO Positron)" }, { "value": "carto_voyager", "label": "Soft colours (CARTO Voyager)" }, { "value": "carto_dark", "label": "Dark (CARTO Dark Matter)" }, { "value": "own", "label": "One of my own, or an address" } ], "default": "none", "hint": "Tiles from the web under the layers" }, { "key": "basemap_own", "label": "Name or address", "kind": "text", "shape": "a string", "default": "", "hint": "The name of one of your background maps of tiles under Settings, or an address with {z}, {x} and {y}" } ] }, { "type": "WebMapWriter", "title": "Web map output", "group": "output", "category": "", "description": "Writes the streams connected to Layers as a web map: a folder with index.html, to open in a browser or put on a web server. Leaflet or MapLibre GL draws it, with each layer as it looks in the form, as in Draw map, with its classes of colour, sizes after a number and labels; a background map; a legend that turns the layers on and off; and the attributes of a feature when it is clicked. The features go in WGS 84 beside the page, as GeoJSON, which also opens from the disk, or for large layers with MapLibre as PMTiles, which need a web server.", "inputs": [ "Layers" ], "outputs": [], "outputs_follow_settings": false, "offered": false, "params": [ { "key": "path", "label": "Folder", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "The page is index.html in it, with the data in data. A name that ends in .html is the page, in the folder it is in" }, { "key": "format", "label": "Format", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "From the file name" }, { "value": "csv", "label": "CSV (.csv)" }, { "value": "xlsx", "label": "Excel (.xlsx)" }, { "value": "ods", "label": "LibreOffice Calc (.ods)" }, { "value": "gsheet", "label": "Google Sheets" }, { "value": "txt", "label": "Text (.txt)" }, { "value": "json", "label": "JSON: a list of objects (.json)" }, { "value": "xml", "label": "XML (.xml)" }, { "value": "gpkg", "label": "GeoPackage (.gpkg)" }, { "value": "shp", "label": "Shapefile (.shp)" }, { "value": "geojson", "label": "GeoJSON (.geojson)" }, { "value": "fgb", "label": "FlatGeobuf (.fgb)" }, { "value": "parquet", "label": "GeoParquet (.parquet)" }, { "value": "arrow", "label": "GeoArrow (.arrow)" }, { "value": "duckdb", "label": "DuckDB database (.duckdb)" }, { "value": "gml", "label": "GML 3.2 (.gml)" }, { "value": "kml", "label": "KML for Google Earth (.kml)" }, { "value": "kmz", "label": "KMZ for Google Earth (.kmz)" }, { "value": "gpx", "label": "GPX for GPS units (.gpx)" }, { "value": "postgis", "label": "PostGIS table" }, { "value": "png", "label": "PNG image (.png)" }, { "value": "jpg", "label": "JPEG image (.jpg)" }, { "value": "webp", "label": "WebP image (.webp)" }, { "value": "tif", "label": "GeoTIFF image (.tif)" }, { "value": "cog", "label": "Cloud Optimized GeoTIFF (.tif)" }, { "value": "pdf", "label": "PDF (.pdf)" }, { "value": "geopdf", "label": "GeoSpatial PDF with layers (.pdf)" }, { "value": "svg", "label": "SVG drawing of a map (.svg)" }, { "value": "webmap", "label": "Web map with Leaflet or MapLibre (a folder)" }, { "value": "pmtiles", "label": "PMTiles vector tiles (.pmtiles)" }, { "value": "qgis", "label": "QGIS project with its layers (.qgz)" }, { "value": "pptx", "label": "PowerPoint slides (.pptx)" }, { "value": "odp", "label": "LibreOffice Impress slides (.odp)" }, { "value": "glb", "label": "glTF 3D model (.glb)" }, { "value": "obj", "label": "OBJ 3D model (.obj)" }, { "value": "citygml", "label": "CityGML 2.0 buildings (.gml)" }, { "value": "3dtiles", "label": "3D Tiles 1.1 (a folder with tileset.json)" }, { "value": "walk", "label": "3D walk-through in the browser (a folder)" }, { "value": "usda", "label": "OpenUSD (.usda)" }, { "value": "usdz", "label": "OpenUSD package with textures (.usdz)" }, { "value": "landxml", "label": "LandXML surface and points (.xml)" }, { "value": "las", "label": "LAS point cloud (.las)" }, { "value": "laz", "label": "LAZ point cloud (.laz)" }, { "value": "ply", "label": "Gaussian splats or points, PLY (.ply)" }, { "value": "spz", "label": "Gaussian splats, compressed SPZ (.spz)" }, { "value": "dxf", "label": "AutoCAD DXF drawing (.dxf)" }, { "value": "dwg", "label": "AutoCAD DWG drawing (.dwg)" }, { "value": "step", "label": "STEP for CAD (.step)" }, { "value": "stl", "label": "STL for 3D printing (.stl)" }, { "value": "3mf", "label": "3MF for 3D printing (.3mf)" } ], "default": "webmap" }, { "key": "title", "label": "Title", "kind": "text", "shape": "a string", "default": "", "hint": "Of the page and over the legend. Empty: the name of the folder" }, { "key": "library", "label": "Drawn with", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "leaflet", "label": "Leaflet: small and simple, for some ten thousand features" }, { "value": "maplibre", "label": "MapLibre GL: drawn by the graphics card, for large data" } ], "default": "leaflet", "hint": "Loaded from unpkg.com when the page opens" }, { "key": "layers", "label": "Layers", "kind": "list", "shape": "a list of layers, one per stream connected to the port: {\"from\": \"node:port, the id of the node and its output port\", \"fill\": \"#rrggbb\", \"stroke\", \"width\", \"size\", \"label\": attribute, …}", "port": "Layers", "default": "", "hint": "The top row is on top. A layer that is not ticked can be turned on in the legend" }, { "key": "basemap", "label": "Background map", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "osm", "label": "OpenStreetMap" }, { "value": "carto_light", "label": "Light grey (CARTO Positron)" }, { "value": "carto_voyager", "label": "Soft colours (CARTO Voyager)" }, { "value": "carto_dark", "label": "Dark (CARTO Dark Matter)" }, { "value": "own", "label": "One of my own, or an address" } ], "default": "osm", "hint": "Tiles from the web under the layers" }, { "key": "basemap_own", "label": "Name or address", "kind": "text", "shape": "a string", "default": "", "hint": "The name of one of your background maps under Settings, of tiles or WMS, or an address with {z}, {x} and {y}. One that needs a password or a key is left out, so that it is not written into the page" }, { "key": "web_data", "label": "The features as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As fits: PMTiles for large layers with MapLibre" }, { "value": "geojson", "label": "GeoJSON beside the page, opens from the disk" }, { "value": "pmtiles", "label": "PMTiles, vector tiles: MapLibre, on a web server" } ], "default": "auto" }, { "key": "popups", "label": "Attributes when clicked", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "true", "label": "Shown" }, { "value": "false", "label": "Not shown" } ], "default": "true", "hint": "A click on a feature shows its attributes" }, { "key": "legend", "label": "Legend", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "true", "label": "Shown, with the layers to turn on and off" }, { "value": "false", "label": "Not shown" } ], "default": "true" } ] }, { "type": "PostgisReader", "title": "PostGIS input", "group": "input", "category": "", "description": "Reads tables from a PostgreSQL database with PostGIS, or what an SQL query gives. Several tables become one stream. A condition can be sent along, so that the database sends only the rows that are wanted. A connection of the kind SQL Server reads from Microsoft SQL Server in the same way, with its geometry.", "inputs": [], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": false, "params": [ { "key": "connection", "label": "Connection", "kind": "connection", "shape": "the name of a database connection in the settings of the user", "default": "", "hint": "A database connection from Edit → Settings, by its name. The server, the user and the password are kept there, not in the model" }, { "key": "host", "label": "Server", "kind": "text", "shape": "a string", "default": "localhost", "hint": "The name or address of the database server" }, { "key": "port", "label": "Port", "kind": "text", "shape": "a string", "default": "5432" }, { "key": "database", "label": "Database", "kind": "text", "shape": "a string", "default": "" }, { "key": "user", "label": "User", "kind": "text", "shape": "a string", "default": "" }, { "key": "password", "label": "Password", "kind": "secret", "shape": "a string; better a $(variable) or a connection in the settings than the secret itself", "default": "", "hint": "Stored in the model file as it is, for anyone the model is given to to read. Better: Save as a connection, or $(password) with the variable set" }, { "key": "tables", "label": "Tables", "kind": "layers", "shape": "names of layers of the file in path, separated by commas; empty reads the first, * all", "default": "", "hint": "As schema.table. Several tables become one stream, with the name of each in the attribute table" }, { "key": "where", "label": "Only rows where", "kind": "text", "shape": "a string", "default": "", "hint": "A condition in SQL, such as kommun = 'Skövde', so that the database sends only those rows" }, { "key": "columns", "label": "Only these columns", "kind": "text", "shape": "a string", "default": "", "hint": "Names with commas, such as namn, kommun: the database sends only those and the geometry, so that a wide table is read faster. Empty reads all" }, { "key": "bbox", "label": "Only within", "kind": "text", "shape": "a string", "default": "", "hint": "A rectangle, west, south, east, north in degrees, such as 11.95, 57.69, 11.99, 57.71, or chosen on the map: the database sends only the rows that reach into it, found through its spatial index" }, { "key": "sql", "label": "SQL query", "kind": "text", "shape": "a string", "default": "", "hint": "Read what a query gives instead of tables, such as SELECT name, geom FROM vgr.sites WHERE ..." }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Used when a table does not state its own" }, { "key": "limit", "label": "Largest number of features", "kind": "text", "shape": "a string", "default": "", "hint": "Reads only the first ones, for example 1000, to try a model out. Empty reads all" } ] }, { "type": "SqlExecutor", "title": "Run SQL", "group": "tool", "category": "Database", "description": "Runs SQL against a PostgreSQL database with PostGIS: once for each feature that comes in, with its attributes put in where the SQL says {attribute}, or once if nothing is connected to Input. The rows the database sends back come out on Result, with geometry if they have it, for the rest of the model. Statements that send nothing back, such as UPDATE, can be run too. The features whose SQL ran go on to Sent; those it failed for to Failed, with the reason.", "inputs": [ "Input" ], "outputs": [ "Result", "Sent", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "connection", "label": "Connection", "kind": "connection", "shape": "the name of a database connection in the settings of the user", "default": "", "hint": "A database connection from Edit → Settings, by its name. The server, the user and the password are kept there, not in the model" }, { "key": "host", "label": "Server", "kind": "text", "shape": "a string", "default": "localhost", "hint": "The name or address of the database server" }, { "key": "port", "label": "Port", "kind": "text", "shape": "a string", "default": "5432" }, { "key": "database", "label": "Database", "kind": "text", "shape": "a string", "default": "" }, { "key": "user", "label": "User", "kind": "text", "shape": "a string", "default": "" }, { "key": "password", "label": "Password", "kind": "secret", "shape": "a string; better a $(variable) or a connection in the settings than the secret itself", "default": "", "hint": "Stored in the model file as it is. Write $(password) and set the variable to keep it out of the file" }, { "key": "sql", "label": "SQL", "kind": "code", "shape": "text over several lines, such as SQL, with {attribute} put in from the stream on the port", "port": "Input", "default": "", "hint": "Run once for each feature that comes in, or once if nothing is connected. {kommun} puts in the value of the attribute, quoted as SQL wants it: WHERE name = {kommun}, not '{kommun}'" }, { "key": "keep", "label": "Keep the attributes that come in", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Each row of the result gets the attributes of the feature it was asked for. Those of the result win when the names are the same" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Used when the result does not state its own" } ] }, { "type": "PostgisWriter", "title": "PostGIS output", "group": "output", "category": "", "description": "Writes the stream to a table in a PostgreSQL database with PostGIS, in a schema, with the geometry type and coordinate system asked for. A connection of the kind SQL Server writes to Microsoft SQL Server, in dbo unless another schema is given, with a spatial index.", "inputs": [ "Input" ], "outputs": [], "outputs_follow_settings": false, "offered": false, "params": [ { "key": "format", "label": "Format", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "From the file name" }, { "value": "csv", "label": "CSV (.csv)" }, { "value": "xlsx", "label": "Excel (.xlsx)" }, { "value": "ods", "label": "LibreOffice Calc (.ods)" }, { "value": "gsheet", "label": "Google Sheets" }, { "value": "txt", "label": "Text (.txt)" }, { "value": "json", "label": "JSON: a list of objects (.json)" }, { "value": "xml", "label": "XML (.xml)" }, { "value": "gpkg", "label": "GeoPackage (.gpkg)" }, { "value": "shp", "label": "Shapefile (.shp)" }, { "value": "geojson", "label": "GeoJSON (.geojson)" }, { "value": "fgb", "label": "FlatGeobuf (.fgb)" }, { "value": "parquet", "label": "GeoParquet (.parquet)" }, { "value": "arrow", "label": "GeoArrow (.arrow)" }, { "value": "duckdb", "label": "DuckDB database (.duckdb)" }, { "value": "gml", "label": "GML 3.2 (.gml)" }, { "value": "kml", "label": "KML for Google Earth (.kml)" }, { "value": "kmz", "label": "KMZ for Google Earth (.kmz)" }, { "value": "gpx", "label": "GPX for GPS units (.gpx)" }, { "value": "postgis", "label": "PostGIS table" }, { "value": "png", "label": "PNG image (.png)" }, { "value": "jpg", "label": "JPEG image (.jpg)" }, { "value": "webp", "label": "WebP image (.webp)" }, { "value": "tif", "label": "GeoTIFF image (.tif)" }, { "value": "cog", "label": "Cloud Optimized GeoTIFF (.tif)" }, { "value": "pdf", "label": "PDF (.pdf)" }, { "value": "geopdf", "label": "GeoSpatial PDF with layers (.pdf)" }, { "value": "svg", "label": "SVG drawing of a map (.svg)" }, { "value": "webmap", "label": "Web map with Leaflet or MapLibre (a folder)" }, { "value": "pmtiles", "label": "PMTiles vector tiles (.pmtiles)" }, { "value": "qgis", "label": "QGIS project with its layers (.qgz)" }, { "value": "pptx", "label": "PowerPoint slides (.pptx)" }, { "value": "odp", "label": "LibreOffice Impress slides (.odp)" }, { "value": "glb", "label": "glTF 3D model (.glb)" }, { "value": "obj", "label": "OBJ 3D model (.obj)" }, { "value": "citygml", "label": "CityGML 2.0 buildings (.gml)" }, { "value": "3dtiles", "label": "3D Tiles 1.1 (a folder with tileset.json)" }, { "value": "walk", "label": "3D walk-through in the browser (a folder)" }, { "value": "usda", "label": "OpenUSD (.usda)" }, { "value": "usdz", "label": "OpenUSD package with textures (.usdz)" }, { "value": "landxml", "label": "LandXML surface and points (.xml)" }, { "value": "las", "label": "LAS point cloud (.las)" }, { "value": "laz", "label": "LAZ point cloud (.laz)" }, { "value": "ply", "label": "Gaussian splats or points, PLY (.ply)" }, { "value": "spz", "label": "Gaussian splats, compressed SPZ (.spz)" }, { "value": "dxf", "label": "AutoCAD DXF drawing (.dxf)" }, { "value": "dwg", "label": "AutoCAD DWG drawing (.dwg)" }, { "value": "step", "label": "STEP for CAD (.step)" }, { "value": "stl", "label": "STL for 3D printing (.stl)" }, { "value": "3mf", "label": "3MF for 3D printing (.3mf)" } ], "default": "postgis" }, { "key": "connection", "label": "Connection", "kind": "connection", "shape": "the name of a database connection in the settings of the user", "default": "", "hint": "A database connection from Edit → Settings, by its name. The server, the user and the password are kept there, not in the model" }, { "key": "host", "label": "Server", "kind": "text", "shape": "a string", "default": "localhost", "hint": "The name or address of the database server" }, { "key": "port", "label": "Port", "kind": "text", "shape": "a string", "default": "5432" }, { "key": "database", "label": "Database", "kind": "text", "shape": "a string", "default": "" }, { "key": "user", "label": "User", "kind": "text", "shape": "a string", "default": "" }, { "key": "password", "label": "Password", "kind": "secret", "shape": "a string; better a $(variable) or a connection in the settings than the secret itself", "default": "", "hint": "Stored in the model file as it is, for anyone the model is given to to read. Better: Save as a connection, or $(password) with the variable set" }, { "key": "schema", "label": "Schema", "kind": "text", "shape": "a string", "default": "public", "hint": "It must be there in the database" }, { "key": "table", "label": "Table", "kind": "text", "shape": "a string", "default": "", "hint": "Made lower case, with spaces as _, as PostgreSQL prefers. The names of the columns too" }, { "key": "mode", "label": "If the table is there", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "replace", "label": "Replace the table" }, { "value": "empty", "label": "Empty it and fill it again: it keeps its indexes, rights and the views on it" }, { "value": "append", "label": "Add to the table" }, { "value": "update", "label": "Update the rows by a key, and add the new ones" } ], "default": "replace" }, { "key": "update_key", "label": "Rows are the same when", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "An attribute whose value tells a row apart, such as an id. A row of the table with the same value is updated; the others are added" }, { "key": "delete_missing", "label": "Rows that are not in the stream", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "keep", "label": "Are kept" }, { "value": "delete", "label": "Are deleted, so that the table holds what the stream holds" } ], "default": "keep" }, { "key": "commit", "label": "Transaction", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "all", "label": "All or nothing: one transaction" }, { "value": "every", "label": "In parts: commit every so many rows" } ], "default": "all", "hint": "All or nothing leaves the table as it was if anything goes wrong. In parts suits very large writes" }, { "key": "commit_rows", "label": "Rows in each part", "kind": "text", "shape": "a string", "default": "10000" }, { "key": "geometry", "label": "Geometry type", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As the features are" }, { "value": "point", "label": "Point" }, { "value": "multipoint", "label": "MultiPoint" }, { "value": "line", "label": "LineString" }, { "value": "multiline", "label": "MultiLineString" }, { "value": "polygon", "label": "Polygon" }, { "value": "multipolygon", "label": "MultiPolygon" }, { "value": "none", "label": "No geometry" } ], "default": "auto", "hint": "A multi type takes single geometries too. A single type takes multi ones with one part" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "The features are reprojected to it before they are written" }, { "key": "geom_column", "label": "Geometry column", "kind": "text", "shape": "a string", "default": "geom" }, { "key": "key", "label": "Primary key", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "new", "label": "A new column of numbers" }, { "value": "attribute", "label": "An attribute" } ], "default": "new", "hint": "The column that tells the rows apart. Only for a new table" }, { "key": "key_name", "label": "Key column", "kind": "text", "shape": "a string", "default": "ogc_fid", "hint": "The name of the new column of numbers" }, { "key": "key_attribute", "label": "Key attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Its values must all be different and none empty" }, { "key": "table_comment", "label": "Comment on the table", "kind": "text", "shape": "a string", "default": "", "hint": "What the table holds, kept in the database (COMMENT ON TABLE), where other programs show it" }, { "key": "column_comments", "label": "Comments on columns", "kind": "object", "shape": "an object {\"old name\": \"new name\"}", "port": "Input", "default": "", "hint": "An attribute and what it holds, such as its unit or its source, kept in the database (COMMENT ON COLUMN)" }, { "key": "sql_before", "label": "SQL before", "kind": "code", "shape": "text over several lines, such as SQL, with {attribute} put in from the stream on the port", "port": "Input", "default": "", "hint": "Run in the same transaction before the rows are written. {table} is the table, as schema.table. A fault undoes all" }, { "key": "sql_after", "label": "SQL after", "kind": "code", "shape": "text over several lines, such as SQL, with {attribute} put in from the stream on the port", "port": "Input", "default": "", "hint": "Run when the rows are written, such as GRANT SELECT ON {table} TO readers, or REFRESH MATERIALIZED VIEW. In the same transaction as the rows, or after the last part" }, { "key": "analyze", "label": "Statistics for the planner", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "true", "label": "Updated when done: ANALYZE, or UPDATE STATISTICS in SQL Server" }, { "value": "false", "label": "Left to the database" } ], "default": "true", "hint": "So that queries on the new rows find the quickest way at once" } ] }, { "type": "Tester", "title": "Test", "group": "tool", "category": "Attributes", "description": "Splits the stream by a test. Features that meet the test go to Passed, the rest to Failed. Use only Passed to filter.", "inputs": [ "Input" ], "outputs": [ "Passed", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "test", "label": "Test", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "", "hint": "For example: population >= 10000 AND municipality <> 'Mark'" } ] }, { "type": "DuplicateFilter", "title": "Remove duplicates", "group": "tool", "category": "Attributes", "description": "Sends the first feature with each key to Unique and the repeats to Duplicate. Without key attributes, all attributes are compared. The geometry can be compared too, or alone, with the coordinates rounded to some decimals: points in the same place, lines drawn twice.", "inputs": [ "Input" ], "outputs": [ "Unique", "Duplicate" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "key", "label": "Key attributes", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Empty compares all attributes" }, { "key": "geometry", "label": "Geometry", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "Not compared" }, { "value": "also", "label": "Compared too: the same attributes and the same geometry" }, { "value": "only", "label": "Only the geometry" } ], "default": "no" }, { "key": "decimals", "label": "Coordinates alike to decimals", "kind": "text", "shape": "a string", "default": "3", "hint": "Geometries are the same when their coordinates are, rounded to this many decimals: 3 is a millimetre in metres" } ] }, { "type": "ValueFilter", "title": "Filter by value", "group": "tool", "category": "Attributes", "description": "Sends the features to an output for each value of an attribute that you list, for example A, B and C. The rest go to Other.", "inputs": [ "Input" ], "outputs": [ "Other" ], "outputs_follow_settings": true, "offered": true, "params": [ { "key": "attribute", "label": "Attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "" }, { "key": "values", "label": "Values", "kind": "list", "shape": "a list of strings", "port": "Input", "default": "", "hint": "Each value gets an output of its own. Features with any other value go to Other" } ] }, { "type": "AttributeValidator", "title": "Check attributes", "group": "tool", "category": "Attributes", "description": "Checks the values of attributes: that they are there, of a type, no longer than a length, within a range, or one of a list. Features that pass go to Passed, the others to Failed with what is wrong.", "inputs": [ "Input" ], "outputs": [ "Passed", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "checks", "label": "Checks", "kind": "list", "shape": "a list of {\"attribute\", \"required\": true | false, \"type\": \"integer\" | \"number\" | \"text\" | \"date\", \"max_length\", \"min\", \"max\", \"values\": \"a, b\"}", "port": "Input", "default": "", "hint": "A row for each attribute: whether it must have a value, its type, its longest length, its smallest and largest value, and the values it may have" }, { "key": "problem", "label": "Problem attribute", "kind": "text", "shape": "a string", "default": "problems", "hint": "What was wrong, on Failed" } ] }, { "type": "Sampler", "title": "Take first", "group": "tool", "category": "Attributes", "description": "Takes the first features that come, such as 5, or the first of each group. The rest go to Rest. Sort first to take the largest or the newest.", "inputs": [ "Input" ], "outputs": [ "Taken", "Rest" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "count", "label": "How many", "kind": "text", "shape": "a string", "default": "5", "hint": "The first ones in the order they come. Put Sort before to choose the order" }, { "key": "group_by", "label": "For each", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Takes that many of each group of features with the same values, such as the five largest towns in each municipality" } ] }, { "type": "AttributeCreator", "title": "Create attribute", "group": "tool", "category": "Attributes", "description": "Creates or overwrites an attribute with the value of an expression, as the field calculator of QGIS: other attributes, text, arithmetic and powers, CASE WHEN, functions for text, numbers, dates and regular expressions, and $area, $length, $perimeter, $x, $y and $id. The value for the first feature is shown under the expression.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "", "hint": "An attribute that already exists is overwritten" }, { "key": "expression", "label": "Expression", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "", "hint": "For example: round(population / 1000, 1)" } ] }, { "type": "DateTimeStamper", "title": "Stamp date and time", "group": "tool", "category": "Attributes", "description": "Adds the date, the time, or both, as an attribute. It is the time when the run started, so every feature in a run gets the same value.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "value", "label": "Add", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "date", "label": "Date (2026-10-11)" }, { "value": "time", "label": "Time (14:05:09)" }, { "value": "datetime", "label": "Date and time (2026-10-11 14:05:09)" } ], "default": "date", "hint": "The time when the run started, the same for all features and all nodes" }, { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "", "hint": "Empty uses _date, _time or _timestamp" } ] }, { "type": "Rounder", "title": "Round numbers", "group": "tool", "category": "Attributes", "description": "Rounds decimal numbers in one or more attributes to a number of decimals.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "Attributes", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "The decimal numbers to round" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "0", "hint": "From 0 to 15. Halves are rounded away from zero" } ] }, { "type": "Counter", "title": "Count", "group": "tool", "category": "Attributes", "description": "Numbers the features in the order they come: 1, 2, 3 and so on, from the number you choose, in an attribute. Can start again for each group.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "number", "hint": "The attribute that gets the number. One that is there is written over" }, { "key": "start", "label": "Start at", "kind": "text", "shape": "a string", "default": "1", "hint": "The number of the first feature. Each next one gets one more" }, { "key": "group_by", "label": "Start again for each", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Features with the same values are counted on their own, each group from the start. Empty counts all in one" } ] }, { "type": "RangeMapper", "title": "Classify by range", "group": "tool", "category": "Attributes", "description": "Gives each feature a value by the range its number falls in: 1 to 100 gives A, 101 to 200 gives B, and so on. The ranges can be given, or made from the data as equal intervals or with as many features in each.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "Attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "A number to look up in the ranges" }, { "key": "method", "label": "Ranges", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "own", "label": "Ranges you give" }, { "value": "equal", "label": "Equal intervals" }, { "value": "quantile", "label": "The same number in each" } ], "default": "own" }, { "key": "ranges", "label": "From, to and value", "kind": "list", "shape": "a list of [from, to, value]; an empty from or to has no end", "port": "Input", "default": "", "hint": "From and to are both in the range: 1 to 100 and 101 to 200. An empty from or to has no end. The first range that fits is used" }, { "key": "classes", "label": "Number of classes", "kind": "text", "shape": "a string", "default": "5", "hint": "Equal intervals split from the smallest to the largest value; the same number in each puts as many features in each" }, { "key": "decimals", "label": "Decimals in the labels", "kind": "text", "shape": "a string", "default": "0" }, { "key": "result", "label": "Write to", "kind": "text", "shape": "a string", "default": "class", "hint": "The attribute that gets the value of the range" }, { "key": "otherwise", "label": "Outside the ranges", "kind": "text", "shape": "a string", "default": "", "hint": "Written for a value that is in no range, and for an empty one. Empty leaves it empty" } ] }, { "type": "ValueMapper", "title": "Map values", "group": "tool", "category": "Attributes", "description": "Looks up each value of an attribute in a list and writes what it becomes, such as 1 to Health centre. The values can be taken from the data. Values not in the list are kept, left empty or given a text.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "Attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute whose values are looked up" }, { "key": "map", "label": "Values", "kind": "list", "shape": "a list of [value, what it becomes]", "port": "Input", "default": "", "hint": "Each value and what it becomes" }, { "key": "result", "label": "Write to", "kind": "text", "shape": "a string", "default": "", "hint": "A new attribute for the result. Empty writes over the attribute itself" }, { "key": "otherwise", "label": "Values not in the list", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "keep", "label": "Keep the value" }, { "value": "empty", "label": "Leave empty" }, { "value": "text", "label": "Write this:" } ], "default": "keep" }, { "key": "default", "label": "Text for those", "kind": "text", "shape": "a string", "default": "", "hint": "Written for a value that is not in the list" } ] }, { "type": "SubstringExtractor", "title": "Extract substring", "group": "tool", "category": "Attributes", "description": "Takes part of a text into a new attribute: the first characters, the last, or a number of characters from a position.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "From attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "" }, { "key": "part", "label": "Take", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "first", "label": "The first characters" }, { "value": "last", "label": "The last characters" }, { "value": "middle", "label": "From a position" } ], "default": "first" }, { "key": "count", "label": "Number of characters", "kind": "text", "shape": "a string", "default": "4" }, { "key": "start", "label": "Start position", "kind": "text", "shape": "a string", "default": "1", "hint": "The first character has position 1" }, { "key": "name", "label": "New attribute", "kind": "text", "shape": "a string", "default": "_substring", "hint": "The name of the source attribute overwrites it" } ] }, { "type": "StringConcatenator", "title": "Concatenate attributes", "group": "tool", "category": "Attributes", "description": "Joins several attributes, and fixed texts if you want, into one new text attribute, with a separator between them if you want one. The fixed texts can also be separators of their own, so that different ones go between different attributes, such as 12 - Main street, Skövde.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "Attributes", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Joined in the order they are chosen. A fixed text is written in single quotes: code, ' - ', name, ', ', town" }, { "key": "separator", "label": "Separator", "kind": "text", "shape": "a string, where spaces count", "default": "", "hint": "Text to put between the values, such as a space or _ . Empty puts nothing" }, { "key": "skip_empty", "label": "Skip empty values", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "An empty value then gives no separator either" }, { "key": "fixed", "label": "Fixed texts are", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "parts", "label": "Parts, with the separator around them too" }, { "value": "separators", "label": "Separators of their own, each between two values" } ], "default": "parts", "hint": "As separators of their own, different ones can go between different attributes, such as code, ' - ', name, ', ', town" }, { "key": "name", "label": "New attribute", "kind": "text", "shape": "a string", "default": "_concatenated" } ] }, { "type": "CaseChanger", "title": "Change case", "group": "tool", "category": "Attributes", "description": "Makes the text of the chosen attributes UPPER CASE, lower case, with the first letter capital, or every word capital: SKÖVDE, skövde, Skövde, Lilla Edet.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "In attributes", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "" }, { "key": "case", "label": "Make it", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "upper", "label": "UPPER CASE: AAA" }, { "value": "lower", "label": "lower case: aaa" }, { "value": "first", "label": "First letter capital: Aaa bbb" }, { "value": "words", "label": "Every word capital: Aaa Bbb" } ], "default": "upper", "hint": "Every word capital also counts the parts of names with - as words, as in Dals-Ed" } ] }, { "type": "StringReplacer", "title": "Replace text", "group": "tool", "category": "Attributes", "description": "Replaces a text with another in the chosen attributes: every A becomes B, or every space becomes nothing.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "In attributes", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "" }, { "key": "find", "label": "Find", "kind": "text", "shape": "a string, where spaces count", "default": "", "hint": "The text to replace. Spaces count" }, { "key": "replace", "label": "Replace with", "kind": "text", "shape": "a string, where spaces count", "default": "", "hint": "Empty removes what was found" }, { "key": "match_case", "label": "Tell A from a", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true" } ] }, { "type": "AttributeSplitter", "title": "Split attribute", "group": "tool", "category": "Attributes", "description": "Splits a text at a character, such as a comma or $. The parts become attributes of their own, or one feature each.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "Attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "" }, { "key": "delimiter", "label": "Split at", "kind": "text", "shape": "a string", "default": ",", "hint": "A character or a text, for example , ; $ or |. Write \\t for a tab" }, { "key": "mode", "label": "Parts go", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "columns", "label": "Into attributes: name_1, name_2 …" }, { "value": "rows", "label": "One feature per part" } ], "default": "columns", "hint": "Into attributes suits a fixed pattern, such as Göteborg$1480. One feature per part suits a list, such as 1,4,7, that is then filtered, joined or counted" }, { "key": "name", "label": "New name", "kind": "text", "shape": "a string", "default": "", "hint": "Into attributes: the start of the new names. One feature per part: the attribute the part goes in. Empty uses the name of the split attribute" }, { "key": "max", "label": "Largest number of parts", "kind": "text", "shape": "a string", "default": "", "hint": "The last part keeps the rest. Empty splits at every one" }, { "key": "trim", "label": "Remove spaces around the parts", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true" }, { "key": "keep_empty", "label": "Keep empty parts", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "As in a,,b" }, { "key": "index", "label": "Number attribute", "kind": "text", "shape": "a string", "default": "", "hint": "One feature per part: an attribute with the number of the part, 1, 2 and so on. Empty adds none" } ] }, { "type": "AttributeManager", "title": "Manage attributes", "group": "tool", "category": "Attributes", "description": "Keeps, removes, renames and orders attributes, and creates new ones.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "Attributes", "kind": "list", "shape": "a list of {\"name\": attribute, \"action\": \"keep\" | \"rename\" | \"remove\", \"to\": new name}", "port": "Input", "default": "", "hint": "Keep, rename or remove each one. The arrows change the order" }, { "key": "others", "label": "Attributes that are not listed", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "keep", "label": "Keep them" }, { "value": "remove", "label": "Remove them" } ], "default": "keep", "hint": "Those that come in later, when what comes before this step is changed" }, { "key": "create", "label": "New attributes", "kind": "list", "shape": "a list of {\"name\": attribute, \"value\": expression}", "port": "Input", "default": "", "hint": "A value is an expression: 'text' in single quotes, a number, or for example population / 1000" } ] }, { "type": "FeatureMerger", "title": "Join by attribute", "group": "tool", "category": "Attributes", "description": "Joins attributes from Supplier where the key matches, as a join in SQL: inner, only those that match; left, all of Requestor; or full, all of both. The first match, or every match as one to many. The geometry comes from Requestor, and its attributes win when names clash, unless Supplier's are given a prefix. The number 1480 and the text 1480 count as the same key.", "inputs": [ "Requestor", "Supplier" ], "outputs": [ "Merged", "UnmergedRequestor", "UnusedSupplier" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "requestor_key", "label": "Requestor key", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Requestor", "default": "", "hint": "One or more attributes" }, { "key": "supplier_key", "label": "Supplier key", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Supplier", "default": "", "hint": "As many as in Requestor" }, { "key": "join", "label": "Join", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "inner", "label": "Inner: only those that match, in Merged" }, { "value": "left", "label": "Left: all of Requestor, those without a match with empty attributes" }, { "value": "full", "label": "Full: all of both, Supplier without a match too" } ], "default": "inner", "hint": "As in SQL. Those left out still come out on their own ports" }, { "key": "matches", "label": "When several match", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "first", "label": "The first match: one feature for each in Requestor" }, { "value": "all", "label": "Every match: a feature for each pair, one to many" } ], "default": "first" }, { "key": "prefix", "label": "Prefix for Supplier's attributes", "kind": "text", "shape": "a string", "default": "", "hint": "Such as s_. With a prefix, attributes of Supplier with the same name as one of Requestor are taken too, under the new name" } ] }, { "type": "Sorter", "title": "Sort", "group": "tool", "category": "Attributes", "description": "Sorts the features by one or more attributes. Numbers sort as numbers, text without regard to case. Empty values come last.", "inputs": [ "Input" ], "outputs": [ "Sorted" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "sort_keys", "label": "Sort by", "kind": "list", "shape": "a list of [attribute, \"ascending\" | \"descending\"]", "port": "Input", "default": "", "hint": "The first attribute decides, the next breaks ties, and so on. Each has its own order. Empty values always come last" } ] }, { "type": "StatisticsCalculator", "title": "Calculate statistics", "group": "tool", "category": "Attributes", "description": "Counts features and calculates sum, min, max, mean, median and percentiles of numeric attributes, for the whole stream or per group. Summary has one row per group, Complete has every feature with the figures of its group.", "inputs": [ "Input" ], "outputs": [ "Summary", "Complete" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "Attributes to analyse", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Numbers. Empty only counts features" }, { "key": "group_by", "label": "Group by", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Empty gives one summary for the whole stream" }, { "key": "percentiles", "label": "Percentiles", "kind": "text", "shape": "a string", "default": "", "hint": "Such as 10, 90 for the values a tenth lie below and a tenth above, as _p10 and _p90. Empty gives none" }, { "key": "more", "label": "Also", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "std", "label": "Standard deviation" }, { "value": "cv", "label": "Coefficient of variation, in %" }, { "value": "range", "label": "Range: largest less smallest" }, { "value": "distinct", "label": "Number of different values" }, { "value": "weighted_mean", "label": "Weighted mean" } ], "default": "", "hint": "Further figures for each attribute, as _std, _cv, _range, _distinct and _weighted_mean" }, { "key": "weight", "label": "Weight", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "For the weighted mean: what each value counts as, such as the number of inhabitants of each area" } ] }, { "type": "AttributeKeeper", "title": "Keep attributes", "group": "tool", "category": "Attributes", "description": "Keeps the attributes you choose and removes all others. Quicker than Manage attributes when only a few of many are wanted.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "keep", "label": "Attributes to keep", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "All others are removed. The order stays as it was" } ] }, { "type": "Intersector", "title": "Intersect", "group": "tool", "category": "Geometry", "description": "Cuts points, lines and areas by the areas of Overlay. Each part that lies in an area gets the attributes of both and goes to Intersection: a road cut where it crosses from one zone to the next. Where the areas overlap, a part comes for each. What lies outside them all goes to Outside.", "inputs": [ "Input", "Overlay" ], "outputs": [ "Intersection", "Outside" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "Attributes to fetch", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Overlay", "default": "", "hint": "From the area of Overlay each part lies in. Empty fetches all" }, { "key": "prefix", "label": "Prefix", "kind": "text", "shape": "a string", "default": "", "hint": "Put in front of the fetched names, for example zone_. Without it, a name the features already have is not fetched" } ] }, { "type": "NeighborFinder", "title": "Find nearest", "group": "tool", "category": "Geometry", "description": "Finds for each feature in Base the nearest feature in Candidates, and gives it the distance and the attributes of that one. Features with nothing within the largest distance go to Unmatched.", "inputs": [ "Base", "Candidates" ], "outputs": [ "Matched", "Unmatched" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "max_distance", "label": "Largest distance", "kind": "text", "shape": "a string", "default": "", "hint": "Features with nothing this near go to Unmatched. Empty looks as far as it takes. In the units of the coordinate system" }, { "key": "distance", "label": "Distance attribute", "kind": "text", "shape": "a string", "default": "distance", "hint": "The distance to the nearest one" }, { "key": "attributes", "label": "Attributes to fetch", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Candidates", "default": "", "hint": "From the nearest candidate. Empty fetches all" }, { "key": "prefix", "label": "Prefix", "kind": "text", "shape": "a string", "default": "", "hint": "Put in front of the fetched names, for example near_. Without it, a name the features already have is not fetched" } ] }, { "type": "LineSplitter", "title": "Split lines", "group": "tool", "category": "Geometry", "description": "Splits lines where points lie on them, where they cross or meet each other, or both. Each part keeps the attributes of its line.", "inputs": [ "Lines", "Points" ], "outputs": [ "Lines", "Other" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "at", "label": "Split at", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "both", "label": "Points and crossings" }, { "value": "points", "label": "Points only" }, { "value": "crossings", "label": "Crossings only" } ], "default": "both", "hint": "The points connected to Points, the places where lines cross or meet each other, or both" }, { "key": "tolerance", "label": "Tolerance", "kind": "text", "shape": "a string", "default": "0.01", "hint": "How far from a line a point may be and still split it, in the units of the coordinate system" }, { "key": "part", "label": "Part number", "kind": "optional_name", "shape": "the name of an attribute to add, or empty for none", "default": "", "hint": "Numbers the parts of each line from 1, in the order along the line" } ] }, { "type": "AreaOnAreaOverlayer", "title": "Overlay areas", "group": "tool", "category": "Geometry", "description": "Lays two sets of areas over each other. Where they overlap, the part gets the attributes of both and goes to Both. What is left of each goes to Areas only and Overlay only.", "inputs": [ "Areas", "Overlay" ], "outputs": [ "Both", "Areas only", "Overlay only" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "Attributes to fetch", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Overlay", "default": "", "hint": "From the Overlay areas, for the parts in Both. Empty fetches all" }, { "key": "prefix", "label": "Prefix", "kind": "text", "shape": "a string", "default": "", "hint": "Put in front of the fetched names. Without it, a name the Areas already have is not fetched" } ] }, { "type": "Clipper", "title": "Clip", "group": "tool", "category": "Geometry", "description": "Clips points, lines and areas against the clip areas. Lines and areas are split at the boundary. Points exactly on the boundary count as inside. All clip areas are merged into one before clipping. Heights are kept: a new corner gets its height from the edge or the plane it was cut from. 3D models, such as a TIN, a surface or buildings, are cut from above, each triangle in its own plane, and walls by upright planes along the boundary.", "inputs": [ "Clipper", "Clippee" ], "outputs": [ "Inside", "Outside" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "close", "label": "3D models along the edge", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "Left open" }, { "value": "true", "label": "Closed with a wall" } ], "default": "false", "hint": "A building or another solid cut by the edge is closed with a new wall there, on each side, so that it stands whole in a 3D print or a picture" } ] }, { "type": "Dissolver", "title": "Dissolve", "group": "tool", "category": "Geometry", "description": "Merges areas that touch or overlap, in each group. Shared boundaries disappear and overlaps count once. Areas that do not touch stay features of their own, or become one multi-area for each group as a choice. Only the group-by attributes are kept. Features that are not areas go to Remnants.", "inputs": [ "Input" ], "outputs": [ "Dissolved", "Remnants" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "group_by", "label": "Group by", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Only areas with the same values are merged. Empty merges all that touch" }, { "key": "count", "label": "Count attribute", "kind": "text", "shape": "a string", "default": "_count", "hint": "The number of areas that were merged" }, { "key": "parts", "label": "Areas apart", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "apart", "label": "Each a feature of its own" }, { "value": "together", "label": "One multi-area for each group" } ], "default": "apart", "hint": "What is left apart after merging, such as buildings that do not touch" } ] }, { "type": "PointCounter", "title": "Count points in polygons", "group": "tool", "category": "Geometry", "description": "Counts the points in each polygon and writes the number to an attribute of the polygon. A point on a boundary counts as inside.", "inputs": [ "Polygons", "Points" ], "outputs": [ "Polygons" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Count attribute", "kind": "text", "shape": "a string", "default": "point_count", "hint": "The number of points in each polygon. An attribute that already exists is overwritten" } ] }, { "type": "SpatialJoiner", "title": "Join by location", "group": "tool", "category": "Geometry", "description": "A spatial join, as Join attributes by location in QGIS: gives each feature the attributes of the features in Join it lies within, crosses, touches or is near: points, lines and areas in both. Each point the municipality it is in, each road the zones it crosses, each stop the nearest line. One, every one, or summarized. Features that find nothing go to Unjoined.", "inputs": [ "Features", "Join" ], "outputs": [ "Joined", "Unjoined" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "relation", "label": "Features that", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "intersects", "label": "Touch or overlap in any way" }, { "value": "within", "label": "Lie within" }, { "value": "contains", "label": "Contain" }, { "value": "crosses", "label": "Cross" }, { "value": "touches", "label": "Only touch at the edge" }, { "value": "overlaps", "label": "Overlap, of the same kind" }, { "value": "near", "label": "Lie within a distance" }, { "value": "point", "label": "Have their point inside (one per feature)" } ], "default": "intersects", "hint": "How a feature is to lie to a feature in Join to get its attributes. Within: a feature in Features lies within one in Join. Their point inside is how Join by location worked before 0.77: a line or an area is placed by one point on it" }, { "key": "distance", "label": "Distance", "kind": "text", "shape": "a string", "default": "10", "hint": "For Lie within a distance: how near, in the units of the coordinate system" }, { "key": "mode", "label": "When several are found", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "first", "label": "The first one found" }, { "value": "all", "label": "Every one: a feature for each" }, { "value": "summary", "label": "Summarized: count, and the values together" } ], "default": "first", "hint": "Summarized keeps every feature in Joined, those that found nothing with the count 0" }, { "key": "numbers", "label": "Summarize numbers as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "sum", "label": "Sum" }, { "value": "mean", "label": "Mean" }, { "value": "min", "label": "Smallest" }, { "value": "max", "label": "Largest" }, { "value": "list", "label": "Listed, like text" } ], "default": "sum", "hint": "Text is always listed, each value once, separated by commas" }, { "key": "count", "label": "Count attribute", "kind": "text", "shape": "a string", "default": "join_count", "hint": "When summarized: how many were found" }, { "key": "attributes", "label": "Attributes to fetch", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Join", "default": "", "hint": "From the features in Join that are found. Empty fetches all" }, { "key": "prefix", "label": "Prefix", "kind": "text", "shape": "a string", "default": "", "hint": "Put in front of the fetched names, for example area_. Without it, a name the features already have is not fetched" } ] }, { "type": "PointOnAreaOverlayer", "title": "Overlay points on areas", "group": "tool", "category": "Geometry", "description": "Replaced by Join by location and Count points in polygons. Each point gets the attributes of the area it lies in, and each area the number of points in it.", "inputs": [ "Point", "Area" ], "outputs": [ "Point", "Area" ], "outputs_follow_settings": false, "offered": false, "params": [ { "key": "count", "label": "Count attribute", "kind": "text", "shape": "a string", "default": "_overlaps", "hint": "Areas found for a point, and points found in an area" } ] }, { "type": "LineExtender", "title": "Extend lines", "group": "tool", "category": "Geometry", "description": "Makes lines longer at one or both ends, straight on in the direction of the end, by a distance in the units of the coordinate system.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "distance", "label": "Distance", "kind": "text", "shape": "a string", "default": "1", "hint": "In the units of the coordinate system, such as metres in SWEREF 99 TM" }, { "key": "ends", "label": "At", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "both", "label": "Both ends" }, { "value": "start", "label": "The start" }, { "value": "end", "label": "The end" } ], "default": "both", "hint": "Each end goes on in the direction of its last piece" } ] }, { "type": "Snapper", "title": "Snap", "group": "tool", "category": "Geometry", "description": "Moves the points of the features that lie within a distance of the features on Fixed, which stay as they are: to their nearest point, or to the nearest place on their lines and edges. Without Fixed, the features snap to each other.", "inputs": [ "Input", "Fixed" ], "outputs": [ "Snapped" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "tolerance", "label": "Largest distance", "kind": "text", "shape": "a string", "default": "1", "hint": "Points closer than this are moved. In the units of the coordinate system, such as metres" }, { "key": "to", "label": "Snap to", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "vertices", "label": "The nearest point of a line or area" }, { "value": "edges", "label": "The nearest place on a line or edge" } ], "default": "vertices", "hint": "With Fixed connected. Without it, the features snap to each other's points, and the first ones stay where they are" } ] }, { "type": "Bufferer", "title": "Buffer", "group": "tool", "category": "Geometry", "description": "Replaces each geometry with the area within a distance of it. Points become discs, lines corridors, and areas grow, or shrink with a negative distance. Lines can be buffered on one side only, left or right as they are drawn, and with flat ends. Works in metres.", "inputs": [ "Input" ], "outputs": [ "Buffered" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "distance", "label": "Distance", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "100", "hint": "In metres. A number, or an expression such as width / 2. Negative shrinks areas" }, { "key": "side", "label": "Side", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "both", "label": "Both" }, { "value": "left", "label": "Left of the line" }, { "value": "right", "label": "Right of the line" } ], "default": "both", "hint": "Of lines: one side only, left or right as the line is drawn, such as the land along one bank of a river. Areas and points get buffers all round" }, { "key": "ends", "label": "Ends of lines", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "round", "label": "Round" }, { "value": "flat", "label": "Flat" } ], "default": "round", "hint": "Flat ends stop where the line stops" } ] }, { "type": "HoleRemover", "title": "Remove holes", "group": "tool", "category": "Geometry", "description": "Fills the holes of areas: all of them, or those smaller than a size, such as the courtyards of blocks or small clearings in a forest.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "smallest", "label": "Holes smaller than", "kind": "text", "shape": "a string", "default": "", "hint": "In square metres: holes smaller than this are filled, larger ones kept. Empty fills every hole" } ] }, { "type": "ShapeRounder", "title": "Round shapes", "group": "tool", "category": "Geometry", "description": "Rounds areas as in a drawing for children or a game map: every corner becomes a curve of the radius, narrow gaps and inlets are filled and narrow spits and points cut away. Parts and holes smaller than a size you give go. Works in metres; lines and points are passed on as they are.", "inputs": [ "Input" ], "outputs": [ "Rounded" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "radius", "label": "Radius in metres", "kind": "text", "shape": "a string", "default": "50", "hint": "Corners become curves of this radius, and inlets, gaps and spits narrower than twice it go" }, { "key": "smallest", "label": "Smallest part in m²", "kind": "text", "shape": "a string", "default": "", "hint": "Parts and holes smaller go. Empty: keep all" } ] }, { "type": "CenterPointReplacer", "title": "Replace with center point", "group": "tool", "category": "Geometry", "description": "Replaces each geometry with a single point: its centre of mass, a point guaranteed to lie inside it, or the centre of its bounding box.", "inputs": [ "Input" ], "outputs": [ "Point" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "mode", "label": "Point", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "centroid", "label": "Centre of mass" }, { "value": "inside", "label": "A point inside" }, { "value": "bbox", "label": "Centre of bounding box" } ], "default": "centroid", "hint": "The centre of mass can fall outside a curved shape. A point inside never does" } ] }, { "type": "Generalizer", "title": "Generalize", "group": "tool", "category": "Geometry", "description": "Simplifies lines and area boundaries by removing vertices that change the shape by less than the tolerance (Douglas–Peucker). Points are left as they are.", "inputs": [ "Input" ], "outputs": [ "Generalized" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "tolerance", "label": "Tolerance", "kind": "text", "shape": "a string", "default": "10", "hint": "In the units of the coordinate system, normally metres. Vertices closer than this to the simplified line are removed" }, { "key": "topology", "label": "Keep neighbours together", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "A boundary that two areas share is simplified once, so that no gaps or overlaps arise. The areas must share their vertices along it" } ] }, { "type": "PairMaker", "title": "Every pair", "group": "tool", "category": "Geometry", "description": "Pairs every feature of From with every one of To, or with those within a distance: the origins and destinations of a matrix of travel times. Each pair has the attributes of both, the coordinates of both for a route planner such as OpenTripPlanner, and a line between them.", "inputs": [ "From", "To" ], "outputs": [ "Pairs" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "max_distance", "label": "Largest distance", "kind": "text", "shape": "a string", "default": "", "hint": "Only pairs this near each other, in the units of the coordinate system. Empty pairs every one with every one" }, { "key": "geometry", "label": "Geometry of a pair", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "line", "label": "A line from one to the other" }, { "value": "from", "label": "That of From" }, { "value": "none", "label": "None" } ], "default": "line" }, { "key": "prefix", "label": "Prefix of To", "kind": "text", "shape": "a string", "default": "to_", "hint": "Put in front of the names of the attributes of To, so that they are not mixed up with those of From" }, { "key": "coords", "label": "Coordinates as attributes in", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:4326", "hint": "from_lat, from_lon, to_lat and to_lon in WGS 84, as OpenTripPlanner and other route planners want them. Empty leaves them out" }, { "key": "skip_same", "label": "Leave out a feature paired with itself", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "When the same stream comes to both, as for travel times between all stops" } ] }, { "type": "LineExploder", "title": "Split lines into segments", "group": "tool", "category": "Geometry", "description": "Explodes each line into its segments: a line from each corner to the next, with the attributes of the line and which segment it is. The outlines of areas can be split too; points pass as they are.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "areas", "label": "Areas", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "keep", "label": "Passed on as they are" }, { "value": "outline", "label": "Their outlines split too" } ], "default": "keep" }, { "key": "number", "label": "Number attribute", "kind": "text", "shape": "a string", "default": "segment", "hint": "Which segment of its line each is, from 1. Empty leaves it out" } ] }, { "type": "ConvexHuller", "title": "Convex hull", "group": "tool", "category": "Geometry", "description": "The smallest convex area around each feature, or around all of them or each group together, as a rubber band stretched around them. Points in a row give a line.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "for", "label": "A hull around", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "each", "label": "Each feature" }, { "value": "together", "label": "All together, or each group" } ], "default": "together" }, { "key": "group_by", "label": "Group by", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "All together: one hull for each group of features with the same values. Empty gives one around all" }, { "key": "count", "label": "Count attribute", "kind": "text", "shape": "a string", "default": "count", "hint": "All together: how many features each hull holds. Empty leaves it out" } ] }, { "type": "ConcaveHuller", "title": "Concave hull", "group": "tool", "category": "Geometry", "description": "An area around points, or the corners of lines and areas, that follows them inwards where they leave room: the shape of a spread of points rather than the rubber band around them. Concavity says how tightly.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "for", "label": "A hull around", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "each", "label": "Each feature" }, { "value": "together", "label": "All together, or each group" } ], "default": "together" }, { "key": "group_by", "label": "Group by", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "All together: one hull for each group of features with the same values. Empty gives one around all" }, { "key": "count", "label": "Count attribute", "kind": "text", "shape": "a string", "default": "count", "hint": "All together: how many features each hull holds. Empty leaves it out" }, { "key": "concavity", "label": "Concavity", "kind": "text", "shape": "a string", "default": "1", "hint": "Lower follows the points more tightly: 0.5 is close, 2 rough, and 10 or more nearly the convex hull" }, { "key": "shortest", "label": "Shortest edge", "kind": "text", "shape": "a string", "default": "0", "hint": "Edges shorter than this are not cut into further, in the units of the coordinate system. 0 cuts all" } ] }, { "type": "Aggregator", "title": "Aggregate", "group": "tool", "category": "Geometry", "description": "Joins features into one multi-geometry, all of them or one per group. The geometries are kept as they are; to merge areas into one, use Dissolve.", "inputs": [ "Input" ], "outputs": [ "Aggregated" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "group_by", "label": "Group by", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Features with the same values become one. Empty puts all in one" }, { "key": "count", "label": "Count attribute", "kind": "text", "shape": "a string", "default": "", "hint": "An attribute with the number of features each one was made of, for example count. Empty adds none" } ] }, { "type": "Deaggregator", "title": "Deaggregate", "group": "tool", "category": "Geometry", "description": "Splits multi-geometries into their parts, each a feature of its own with the attributes of the whole.", "inputs": [ "Input" ], "outputs": [ "Parts" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "part", "label": "Part number attribute", "kind": "text", "shape": "a string", "default": "", "hint": "The number of the part within the feature it came from, 1, 2 and so on. Empty adds none" } ] }, { "type": "PointCreator", "title": "Create points from x and y", "group": "tool", "category": "Geometry", "description": "Makes a point of each feature from two attributes with its x and y. Features where either is missing or not a number go to Failed.", "inputs": [ "Input" ], "outputs": [ "Points", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "x", "label": "x attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "East, or longitude" }, { "key": "y", "label": "y attribute", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "North, or latitude" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Of the x and y values, for example EPSG:3006 for SWEREF 99 TM or EPSG:4326 for degrees. Empty keeps the one the stream has" } ] }, { "type": "GeometryToText", "title": "Geometry to text", "group": "tool", "category": "Geometry", "description": "Writes the geometry of each feature as text in an attribute: WKT, EWKT with the coordinate system in front, or GeoJSON, with heights where it has them and as many decimals as you want. For a web service, a database or a sheet. The geometry can be kept or dropped.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "format", "label": "As", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "wkt", "label": "WKT, as POINT (319500 6399700)" }, { "value": "ewkt", "label": "EWKT, with SRID= in front" }, { "value": "geojson", "label": "GeoJSON" } ], "default": "wkt" }, { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "wkt", "hint": "The attribute that gets the text" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "", "hint": "Of the coordinates, such as 2 for centimetres in metres. Empty: as they are" }, { "key": "heights", "label": "Heights", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "With Z where the geometry has heights, as POINT Z (1 2 3)" }, { "key": "keep_geometry", "label": "Keep the geometry", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true" } ] }, { "type": "GeometryFromText", "title": "Geometry from text", "group": "tool", "category": "Geometry", "description": "Makes geometry of text in an attribute, as web services give it: WKT (also with SRID= in front and with Z), GeoJSON and Esri JSON from ArcGIS. The coordinate system is the one you choose, or the one the text names. Text that cannot be read goes to Failed.", "inputs": [ "Input" ], "outputs": [ "Output", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "Geometry in", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute with the geometry as text, such as Geometry.SWEREF99TM from Trafikverket or geometry from an API" }, { "key": "kind", "label": "Written as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As the text is: WKT, GeoJSON or Esri JSON" }, { "value": "wkt", "label": "WKT, such as POINT (12.5 57.7)" }, { "value": "geojson", "label": "GeoJSON" }, { "value": "esri", "label": "Esri JSON, as from ArcGIS" }, { "value": "polyline", "label": "Encoded polyline, as routes from OpenTripPlanner and OSRM" }, { "value": "polyline6", "label": "Encoded polyline with 6 decimals, as from Valhalla" }, { "value": "flexpolyline", "label": "Flexible polyline, as routes from HERE" }, { "value": "flexpolyline_area", "label": "Flexible polyline as an area, as isolines from HERE" }, { "value": "points", "label": "A JSON list of points, as a route from TomTom: a line" }, { "value": "points_area", "label": "A JSON list of points as an area, as a reachable range from TomTom" } ], "default": "auto" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Of the coordinates in the text. Empty: as the text says (SRID=, spatialReference), WGS 84 for GeoJSON, or else none" }, { "key": "keep", "label": "Keep the text attribute", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false" } ] }, { "type": "PointsToLines", "title": "Points to lines", "group": "tool", "category": "Geometry", "description": "Joins points into lines, one for each value of an attribute, in the order of another: the shapes of GTFS, a GPS track, a way from Overpass. Can close each line into an area. Heights go along.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "group", "label": "One line for each", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute that says which line a point belongs to, such as shape_id in GTFS or a track id. Empty makes one line of all points" }, { "key": "order", "label": "In the order of", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Such as shape_pt_sequence or a time. Empty keeps the order they come in" }, { "key": "close", "label": "Close each line into an area", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false" } ] }, { "type": "BoundingBoxReplacer", "title": "Replace with bounding box", "group": "tool", "category": "Geometry", "description": "Replaces each geometry with the smallest rectangle around it, along the axes. A box without width or height becomes a line or a point.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "corners", "label": "Add the corners as attributes", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes: xmin, ymin, xmax and ymax" } ], "default": "false" } ] }, { "type": "BoundingBoxAccumulator", "title": "Bounding box of all", "group": "tool", "category": "Geometry", "description": "One rectangle around all the features of the stream, or one for each group, with a count of the features in it.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "group_by", "label": "Group by", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "One box for each group of features with the same values. Empty gives one box around all" }, { "key": "count", "label": "Count attribute", "kind": "text", "shape": "a string", "default": "count", "hint": "How many features are in each box. Empty leaves it out" }, { "key": "corners", "label": "Add the corners as attributes", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes: xmin, ymin, xmax and ymax" } ], "default": "false" } ] }, { "type": "PolygonToLine", "title": "Polygons to lines", "group": "tool", "category": "Geometry", "description": "Turns each area into its boundary as lines: the outer ring and the rings of the holes. What is not an area goes to Other.", "inputs": [ "Input" ], "outputs": [ "Lines", "Other" ], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "LineToPolygon", "title": "Lines to polygons", "group": "tool", "category": "Geometry", "description": "Turns closed lines into areas. The parts of a line that meet end to end are joined into a ring first. Lines whose ends do not meet go to Failed.", "inputs": [ "Input" ], "outputs": [ "Polygons", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "tolerance", "label": "Ends that meet within", "kind": "text", "shape": "a string", "default": "0", "hint": "In the units of the coordinate system. Ends this close count as one point, so that a line that almost closes becomes an area" } ] }, { "type": "VoronoiDiagrammer", "title": "Thiessen polygons", "group": "tool", "category": "Geometry", "description": "Gives each point the area that lies nearer to it than to any other point (Thiessen or Voronoi polygons), with the attributes of the point. Areas connected to Boundary cut them, otherwise a box around the points does.", "inputs": [ "Points", "Boundary" ], "outputs": [ "Polygons" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "margin", "label": "Margin in %", "kind": "text", "shape": "a string", "default": "10", "hint": "How far the outer areas reach beyond the points, as a share of the larger side of the area the points cover. Not used when areas are connected to Boundary" } ] }, { "type": "FeatureCreator", "title": "Create features", "group": "tool", "category": "Geometry", "description": "Makes points, lines or areas from coordinates you write, a feature on each line, or from WKT and GeoJSON: a place to start from, a study area to clip by, or a few points to test a model with. Each gets a number and, if you give them, a name.", "inputs": [], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "kind", "label": "Make", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "point", "label": "Points" }, { "value": "line", "label": "Lines" }, { "value": "polygon", "label": "Areas" }, { "value": "text", "label": "As WKT or GeoJSON, one on each line" } ], "default": "point" }, { "key": "coordinates", "label": "Coordinates", "kind": "code", "shape": "text over several lines, such as SQL, with {attribute} put in from the stream on the port", "port": "", "default": "", "hint": "A feature on each line: x and y after each other, such as 319500 6399700 for a point, or 319500 6399700, 320100 6400200 for a line. An area is closed by itself. Or WKT, such as POINT(319500 6399700)" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "3006" }, { "key": "name", "label": "Names", "kind": "text", "shape": "a string", "default": "", "hint": "Put in the attribute name, separated by commas, one for each feature in order" } ] }, { "type": "GridCreator", "title": "Create grid", "group": "tool", "category": "Geometry", "description": "Makes a grid of squares or hexagons over the features that come in on Extent: all cells in their extent, or the ones that touch them. Each cell is numbered, with its row and column.", "inputs": [ "Extent" ], "outputs": [ "Grid" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "shape", "label": "Shape", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "square", "label": "Squares" }, { "value": "hexagon", "label": "Hexagons" } ], "default": "square" }, { "key": "size", "label": "Size", "kind": "text", "shape": "a string", "default": "1000", "hint": "The side of a square, or the width of a hexagon from side to side, in the units of the coordinate system" }, { "key": "keep", "label": "Keep", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "touching", "label": "Cells that touch the features" }, { "value": "all", "label": "All cells in the extent" } ], "default": "touching" }, { "key": "snap", "label": "Start at whole sizes", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "true", "label": "Yes" }, { "value": "false", "label": "No" } ], "default": "true", "hint": "Lines up the grid with multiples of the size, so that grids made from different data fit together" } ] }, { "type": "GeometryRemover", "title": "Remove geometry", "group": "tool", "category": "Geometry", "description": "Takes away the geometry and keeps the attributes, so that the stream is a plain table.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "CrsSetter", "title": "Set coordinate system", "group": "tool", "category": "Geometry", "description": "Says which coordinate system the stream is in, without changing the coordinates. For data that lacks one, or states the wrong one.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "As an EPSG code, for example EPSG:3006 for SWEREF 99 TM. The coordinates are not changed: use Reproject for that" } ] }, { "type": "Force2D", "title": "Geometry to 2D", "group": "tool", "category": "Geometry", "description": "Makes the geometry two-dimensional: the heights (Z) of the coordinates go, and the 3D model that comes with a stream, such as from an IFC, CityGML or OBJ file, so that what is left is the plan, shown and written in 2D. Measures (M) are dropped when data is read.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "Scaler", "title": "Scale", "group": "tool", "category": "Geometry", "description": "Makes the geometry larger or smaller by a factor, around the origin or the middle of the features. For example 0.001 to turn CAD drawings in millimetres into metres.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "factor", "label": "Factor", "kind": "text", "shape": "a string", "default": "1000", "hint": "1000 makes the geometry a thousand times larger. 0.001 turns millimetres into metres" }, { "key": "factor_y", "label": "Factor in y", "kind": "text", "shape": "a string", "default": "", "hint": "Empty is the same as the factor" }, { "key": "around", "label": "Around", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "origin", "label": "The origin, 0 0 in the coordinate system" }, { "value": "each", "label": "The middle of each feature" }, { "value": "all", "label": "The middle of all features together" } ], "default": "origin", "hint": "The point that stays where it is" }, { "key": "heights", "label": "Heights", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "scale", "label": "Scaled by the factor too" }, { "value": "keep", "label": "Kept as they are" } ], "default": "scale", "hint": "For data with Z and 3D models. Scaled from 0, or from the lowest point when scaled around a middle, so that what stands on the ground stays there" } ] }, { "type": "Offsetter", "title": "Move by x, y and z", "group": "tool", "category": "Geometry", "description": "Moves the geometry a distance along x and along y, in the units of the stream's coordinate system, and up or down: features with Z, 3D models and grids of heights.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "dx", "label": "Along x", "kind": "text", "shape": "a string", "default": "0", "hint": "In the units of the stream's coordinate system, such as metres in SWEREF 99 TM. Negative moves west" }, { "key": "dy", "label": "Along y", "kind": "text", "shape": "a string", "default": "0", "hint": "Negative moves south" }, { "key": "dz", "label": "Up", "kind": "text", "shape": "a string", "default": "0", "hint": "Moves heights: of features with Z, of 3D models and of a grid of heights. Negative moves down" } ] }, { "type": "Rotator", "title": "Rotate", "group": "tool", "category": "Geometry", "description": "Turns the geometry by an angle in degrees, counter-clockwise, around the middle of each feature, the middle of all of them or a point you give. The angle can come from an attribute. Heights stay as they are, and a 3D model turns with its features.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "angle", "label": "Angle, in degrees", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "90", "hint": "Counter-clockwise; negative turns clockwise. A number, or an expression such as an attribute with the angle of each feature" }, { "key": "around", "label": "Around", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "each", "label": "The middle of each feature" }, { "value": "all", "label": "The middle of all features together" }, { "value": "point", "label": "A point you give" } ], "default": "each", "hint": "The point that stays where it is" }, { "key": "x", "label": "Point, x", "kind": "text", "shape": "a string", "default": "0", "hint": "In the coordinate system of the stream" }, { "key": "y", "label": "Point, y", "kind": "text", "shape": "a string", "default": "0" } ] }, { "type": "XySwapper", "title": "Swap x and y", "group": "tool", "category": "Geometry", "description": "Swaps the x and y coordinates of all geometry, for data where they have been mixed up: latitude given as x, or northing and easting in the wrong order. Heights stay as they are. Lines and areas are swapped too.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "LineReverser", "title": "Reverse geometry", "group": "tool", "category": "Geometry", "description": "Turns the direction of lines and of the outlines of areas, holes too, so that they start where they ended, with their heights: clockwise becomes counter-clockwise. The parts of a multi geometry come in the opposite order. Areas can be kept as they are; points stay as they are.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "areas", "label": "Areas", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "reverse", "label": "Their outlines turned too" }, { "value": "keep", "label": "Kept as they are" } ], "default": "reverse", "hint": "The outline of an area runs one way round. Some formats want it clockwise, others not" } ] }, { "type": "Reprojector", "title": "Reproject", "group": "tool", "category": "Geometry", "description": "Reprojects the geometry to another coordinate system. The axis order is always east, north.", "inputs": [ "Input" ], "outputs": [ "Reprojected" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "crs", "label": "To coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:3006" }, { "key": "cell", "label": "Cell size of a raster", "kind": "text", "shape": "a string", "default": "", "hint": "A raster gets cells of this size in the new system. Empty keeps about the size it had" } ] }, { "type": "HeightSetter", "title": "Set height", "group": "tool", "category": "Geometry", "description": "Gives every coordinate of each feature a height (Z): from an attribute or an expression, such as the height of a contour line; from the terrain model connected to Terrain, such as roads laid on the ground; or the heights they have and a value more. Can make them flat again. The heights are kept by tools that do not change the geometry, shown in 3D on the map and written to formats that take them.", "inputs": [ "Input", "Terrain" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "mode", "label": "Height", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "value", "label": "From the value below: all coordinates at that height" }, { "value": "terrain", "label": "From the terrain model on Terrain, plus the value below" }, { "value": "add", "label": "The heights they have, plus the value below" }, { "value": "remove", "label": "Take the heights away: flat again" } ], "default": "value" }, { "key": "height", "label": "Value", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "", "hint": "An attribute, such as the height of a contour line, a number, or an expression such as floors * 3. Empty is 0" } ] }, { "type": "GeometryValidator", "title": "Check geometry", "group": "tool", "category": "Geometry", "description": "Finds geometries that are not valid, such as areas whose boundary crosses itself, and says what is wrong. They can be repaired: the repaired ones go to Repaired and those that cannot be go to Invalid. Features without geometry are Invalid.", "inputs": [ "Input" ], "outputs": [ "Valid", "Repaired", "Invalid" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "repair", "label": "Repair what is wrong", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Repaired features go to Repaired, as GDAL makes them valid. Those that cannot be repaired go to Invalid" }, { "key": "problem", "label": "Problem attribute", "kind": "text", "shape": "a string", "default": "problem", "hint": "What was wrong, on Invalid and Repaired" } ] }, { "type": "CoordinateExtractor", "title": "Extract coordinates from point", "group": "tool", "category": "Geometry", "description": "Puts the x and y of each point in attributes of their own. Lines and areas give a point inside them, their centre or their first point.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "x_name", "label": "Attribute for x", "kind": "text", "shape": "a string", "default": "x", "hint": "East, or longitude in degrees" }, { "key": "y_name", "label": "Attribute for y", "kind": "text", "shape": "a string", "default": "y", "hint": "North, or latitude in degrees" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "", "hint": "Rounds the coordinates, such as 0 for whole metres or 6 for degrees. Empty keeps them as they are" }, { "key": "other", "label": "For lines and areas", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "inside", "label": "A point inside it" }, { "value": "centroid", "label": "Its centre of mass" }, { "value": "first", "label": "Its first point" }, { "value": "none", "label": "No coordinates" } ], "default": "inside" } ] }, { "type": "GeometryFilter", "title": "Filter by geometry type", "group": "tool", "category": "Geometry", "description": "Sends points, lines and areas to an output each. The cells of a raster go to Raster, and features without geometry to Other. The points of a point cloud go to Point: to take its ground or buildings out, use Filter by value or Test on classification.", "inputs": [ "Input" ], "outputs": [ "Point", "Line", "Area", "Raster", "Other" ], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "DimensionFilter", "title": "Filter 2D/3D", "group": "tool", "category": "Geometry", "description": "Sends features with heights to 3D and flat ones to 2D: geometry with a height for each coordinate, as read with Z or given heights with Set height, and the objects of a 3D model, which keep their part of the model. Features without geometry go to No geometry.", "inputs": [ "Input" ], "outputs": [ "3D", "2D", "No geometry" ], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "AreaCalculator", "title": "Calculate area", "group": "tool", "category": "Geometry", "description": "Writes the area to an attribute. In metre-based systems the area is planar, in degrees it is geodesic on the ellipsoid.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "_area" }, { "key": "unit", "label": "Unit", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "m2", "label": "m²" }, { "value": "a", "label": "ares (100 m²)" }, { "value": "ha", "label": "hectares" }, { "value": "km2", "label": "km²" }, { "value": "ft2", "label": "square feet" }, { "value": "ac", "label": "acres" }, { "value": "mi2", "label": "square miles" } ], "default": "m2" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "", "hint": "Rounds to this many decimals. Empty keeps them all" } ] }, { "type": "LengthCalculator", "title": "Calculate length", "group": "tool", "category": "Geometry", "description": "Writes the length of a line, or the perimeter of an area, to an attribute.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "_length" }, { "key": "unit", "label": "Unit", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "mm", "label": "mm" }, { "value": "cm", "label": "cm" }, { "value": "dm", "label": "dm" }, { "value": "m", "label": "m" }, { "value": "km", "label": "km" }, { "value": "mil", "label": "Swedish miles (10 km)" }, { "value": "in", "label": "inches" }, { "value": "ft", "label": "feet" }, { "value": "yd", "label": "yards" }, { "value": "mi", "label": "miles" }, { "value": "nmi", "label": "nautical miles" } ], "default": "m" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "", "hint": "Rounds to this many decimals. Empty keeps them all" } ] }, { "type": "StacSearch", "title": "STAC search", "group": "tool", "category": "Web", "description": "Finds satellite images, aerial photos and height models in a STAC catalogue, such as those of Lantmäteriet, Copernicus or Element 84: in an area, at a time, in chosen collections. Each item becomes its outline, with its date, its cloud cover and the address of each of its files, which Input can read.", "inputs": [ "Area" ], "outputs": [ "Items" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "url", "label": "STAC API", "kind": "text", "shape": "a string", "default": "", "hint": "The address of the catalogue, such as https://earth-search.aws.element84.com/v1. /search is added" }, { "key": "collections", "label": "Collections", "kind": "text", "shape": "a string", "default": "", "hint": "Such as sentinel-2-l2a. Several are separated by commas. Empty searches all" }, { "key": "datetime", "label": "Time", "kind": "text", "shape": "a string", "default": "", "hint": "A date, month or year, or from and to: 2026-06-01/2026-08-31 or 2026-06/2026-08. Empty: any time" }, { "key": "bbox", "label": "Area, in WGS 84", "kind": "text", "shape": "a string", "default": "", "hint": "west, south, east, north in degrees, such as 11.8, 57.6, 12.1, 57.8. A stream on Area is used instead, if one is connected" }, { "key": "query", "label": "Filter", "kind": "text", "shape": "a string", "default": "", "hint": "A CQL2 filter the catalogue understands, such as eo:cloud_cover < 20" }, { "key": "max_items", "label": "At most items", "kind": "text", "shape": "a string", "default": "100" }, { "key": "connection", "label": "API connection", "kind": "api_connection", "shape": "the name of an API connection in the settings of the user", "default": "", "hint": "For a catalogue that needs a login, such as Lantmäteriet's" } ] }, { "type": "HttpCaller", "title": "HTTP request", "group": "tool", "category": "Web", "description": "Sends a request for each feature that comes in, or one request when nothing is connected to Input, and puts the answer in an attribute, for example JSON from an API or a web page. GET, or POST, PUT, PATCH and DELETE with a body. Those that get no good answer go to Failed.", "inputs": [ "Input" ], "outputs": [ "Output", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "url", "label": "Address", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "", "hint": "A web address, or an expression that builds one from the attributes: 'https://api.example.org/item?id=' || id" }, { "key": "method", "label": "Method", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "GET", "label": "GET" }, { "value": "POST", "label": "POST" }, { "value": "PUT", "label": "PUT" }, { "value": "PATCH", "label": "PATCH" }, { "value": "DELETE", "label": "DELETE" } ], "default": "GET", "hint": "GET asks for something; POST and PUT send something along" }, { "key": "body", "label": "Body", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "", "hint": "What is sent with POST, PUT or PATCH: an attribute such as json from Build JSON, or an expression. Empty sends nothing" }, { "key": "content_type", "label": "Content type", "kind": "text", "shape": "a string", "default": "application/json", "hint": "What the body is, sent as the header Content-Type" }, { "key": "headers", "label": "Headers", "kind": "text", "shape": "a string", "default": "", "hint": "For example Accept: application/json. Several are separated by ;" }, { "key": "response", "label": "Response attribute", "kind": "text", "shape": "a string", "default": "_response", "hint": "The answer, as text" }, { "key": "status", "label": "Status attribute", "kind": "text", "shape": "a string", "default": "_status", "hint": "The status code of the answer, such as 200 or 404" }, { "key": "timeout", "label": "Timeout in seconds", "kind": "text", "shape": "a string", "default": "30", "hint": "How long to wait for each answer" }, { "key": "connection", "label": "API connection", "kind": "api_connection", "shape": "the name of an API connection in the settings of the user", "default": "", "hint": "The key, user or OAuth2 client, kept in the settings and not in the model. Where the key goes in the address or the body, write {{key}}" }, { "key": "paging", "label": "Pages", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "One answer" }, { "value": "next", "label": "A link to the next page" }, { "value": "offset", "label": "An offset: 0, 100, 200…" }, { "value": "page", "label": "A page number: 1, 2, 3…" }, { "value": "cursor", "label": "A cursor from the answer, such as nextCursorId" } ], "default": "none", "hint": "For an answer that comes in pages: each page becomes a feature, with its number in _page" }, { "key": "next_path", "label": "Next page at", "kind": "text", "shape": "a string", "default": "", "hint": "The path to the address of the next page, such as next_page, links[rel=next].href or @odata.nextLink. Empty uses the Link header" }, { "key": "cursor_path", "label": "Cursor at", "kind": "text", "shape": "a string", "default": "", "hint": "The path to the value in the answer that asks for the next page, such as nextCursorId or meta.next_cursor. The pages stop when it is missing or empty" }, { "key": "page_param", "label": "Parameter of the page", "kind": "text", "shape": "a string", "default": "", "hint": "Such as offset, skip, start or page; for a cursor the parameter it is sent as, such as cursorId (cursor if empty)" }, { "key": "size_param", "label": "Parameter of the page size", "kind": "text", "shape": "a string", "default": "", "hint": "Such as limit, per_page or pageSize. Empty sends no size" }, { "key": "page_size", "label": "Page size", "kind": "text", "shape": "a string", "default": "100", "hint": "How many items a page holds" }, { "key": "start", "label": "First value", "kind": "text", "shape": "a string", "default": "", "hint": "Where counting starts: 0 for an offset, 1 for a page number, if empty" }, { "key": "items_path", "label": "Items at", "kind": "text", "shape": "a string", "default": "", "hint": "The path to the list of items in a page, such as values or features, to know when the pages end, and where the places are when they are made into features. Empty takes the first list" }, { "key": "max_pages", "label": "At most pages", "kind": "text", "shape": "a string", "default": "1000", "hint": "A stop, should the pages never end" }, { "key": "per_second", "label": "At most requests a second", "kind": "text", "shape": "a string", "default": "", "hint": "As a service asks, such as 1 for Nominatim. Empty sends them as fast as the answers come" }, { "key": "answer_as", "label": "The answer", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "text", "label": "As text in an attribute" }, { "value": "file", "label": "As a file, its path in _file" } ], "default": "text", "hint": "A file for answers that are not text, such as a GeoTIFF of travel times. Read the files with an Input, with this stream connected to its Paths" }, { "key": "as_features", "label": "Places in the answer", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "Kept as text" }, { "value": "yes", "label": "Made into features" } ], "default": "no", "hint": "An answer of GeoJSON, a list of objects with lat and lon, or a list of coordinates, becomes a feature for each place, with its values as attributes, in WGS 84. Others go to Failed" }, { "key": "folder", "label": "Folder for the files", "kind": "text", "shape": "a string", "default": "answers", "hint": "Beside the model, or a whole path. Each file is named by its request, so the same request gives the same file" }, { "key": "parallel", "label": "Requests at once", "kind": "text", "shape": "a string", "default": "1", "hint": "Sends this many at the same time, such as 8 to a service of your own, such as OpenTripPlanner. A public service wants 1" }, { "key": "cache", "label": "Keep the answers", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "No" }, { "value": "disk", "label": "Yes, in a folder beside the model" } ], "default": "none", "hint": "Good answers are kept in the folder http-cache beside the model, and the same request is not sent again in later runs. Delete the folder to ask anew" }, { "key": "log", "label": "Write every request to", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "A text file, such as requests.log, with a line for each request: when, the method, the address, the status, the size and time of the answer, and the body sent. Added to in each run. Secrets of the API connection are hidden. Empty: none" }, { "key": "retries", "label": "Tries again", "kind": "text", "shape": "a string", "default": "3", "hint": "When the service is busy (429), briefly away (502, 503, 504) or cannot be reached: waits as the service says, or 1, 2, 4… seconds" } ] }, { "type": "JsonFlattener", "title": "Flatten JSON", "group": "tool", "category": "JSON", "description": "Makes the JSON in an attribute into attributes of their own, so that the stream is a plain table: {\"adress\": {\"ort\": \"Borås\"}} gives adress.ort. Lists are kept as JSON text, or get an attribute per element. Features whose attribute is not JSON go to Failed.", "inputs": [ "Input" ], "outputs": [ "Output", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "JSON in", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute with JSON text, such as the answer from HTTP request or an object that an input kept as JSON" }, { "key": "lists", "label": "Lists", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "text", "label": "As JSON text in one attribute" }, { "value": "columns", "label": "An attribute per element: name.0, name.1, …" } ], "default": "text", "hint": "For a feature per element, use Explode JSON list" }, { "key": "prefix", "label": "Prefix", "kind": "text", "shape": "a string", "default": "", "hint": "Put before the new names, such as svar. Empty uses the names in the JSON, and a name the stream has already gets the name of the attribute in front" }, { "key": "keep", "label": "Keep the JSON attribute", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false" } ] }, { "type": "JsonExploder", "title": "Explode JSON list", "group": "tool", "category": "JSON", "description": "Makes a feature of each element of a list in JSON, with the attributes of the feature it came from and the values of the element, such as one feature per clinic of a hospital. Features without a list, or with an empty one, go to Other.", "inputs": [ "Input" ], "outputs": [ "Exploded", "Other" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "JSON in", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute with the list, or with JSON that holds it" }, { "key": "path", "label": "List at", "kind": "text", "shape": "a string", "default": "", "hint": "Where the list is in the JSON, such as mottagningar or data.items. Empty: the attribute is the list. Several lists of the same length, separated by commas, are taken in step: hourly.time, hourly.temperature_2m" }, { "key": "prefix", "label": "Prefix", "kind": "text", "shape": "a string", "default": "", "hint": "Put before the names of the values of each element. Empty uses the names in the JSON, and a name the stream has already gets the name of the list in front" }, { "key": "index_attr", "label": "Number the elements", "kind": "optional_name", "shape": "the name of an attribute to add, or empty for none", "default": "", "hint": "The place of each element in its list, from 0, in an attribute" }, { "key": "objects", "label": "Objects in an element", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "flatten", "label": "An attribute per value: adress.ort" }, { "value": "geojson", "label": "An attribute per value, but GeoJSON kept whole" }, { "value": "json", "label": "Kept whole, as JSON in one attribute: adress" } ], "default": "flatten", "hint": "Kept whole as JSON when they are to be read as a whole: a GeoJSON area for Geometry from text, or an object to explode or extract from later" }, { "key": "keep", "label": "Keep the JSON attribute", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false" } ] }, { "type": "JsonExtractor", "title": "Extract JSON values", "group": "tool", "category": "JSON", "description": "Takes chosen values out of the JSON in an attribute, each by its path, such as adress.ort or kontakter[0].telefon, into attributes. A value that is not there is left empty. Features whose attribute is not JSON go to Failed.", "inputs": [ "Input" ], "outputs": [ "Output", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "JSON in", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute with JSON text" }, { "key": "paths", "label": "Values to take", "kind": "list", "shape": "a list of [path in the JSON, attribute name]", "port": "Input", "default": "", "hint": "A path and the attribute it goes to, such as adress.ort or kontakter[0].telefon. An empty name takes the last part of the path. An object or a list is taken as JSON text" } ] }, { "type": "XmlExtractor", "title": "Extract XML values", "group": "tool", "category": "JSON", "description": "Takes chosen values out of the XML in an attribute, such as the answer of a web service, each by its path of element names, such as Fastighet.Adress.Ort or Fastighet.Tel[1], into attributes. An XML attribute is taken by its name. A value that is not there is left empty. Features whose attribute is not XML go to Failed.", "inputs": [ "Input" ], "outputs": [ "Output", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "XML in", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute with XML text, such as the answer of a web service" }, { "key": "paths", "label": "Values to take", "kind": "list", "shape": "a list of [path in the JSON, attribute name]", "port": "Input", "default": "", "hint": "A path of element names and the attribute it goes to, such as Fastighet.Adress.Ort or Fastighet.Tel[1], from the outermost element. An XML attribute is taken by its name, as Fastighet.id. An empty name takes the last part of the path" } ] }, { "type": "JsonStatReader", "title": "JSON-stat to table", "group": "tool", "category": "JSON", "description": "Makes a table of statistics in JSON-stat, as SCB (PxWeb), Eurostat, Folkhälsomyndigheten and other statistics agencies give them: a row for each value with the code and the name of each category, such as region, sex and year, or with the categories of one dimension as columns. Answers that are not JSON-stat go to Failed.", "inputs": [ "Input" ], "outputs": [ "Output", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "JSON-stat in", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute with the answer from SCB, Eurostat or another service that gives JSON-stat, such as _response from HTTP request" }, { "key": "labels", "label": "Names of the categories", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Such as Borås next to 1490, in Region_label" }, { "key": "columns_from", "label": "Columns from", "kind": "text", "shape": "a string", "default": "", "hint": "A dimension whose categories become columns, such as Tid for a column per year or ContentsCode for one per measure. Empty gives a row per value" }, { "key": "missing", "label": "Values that are missing", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "keep", "label": "Kept, with an empty value" }, { "value": "skip", "label": "Left out" } ], "default": "keep" } ] }, { "type": "JsonBuilder", "title": "Build JSON", "group": "tool", "category": "JSON", "description": "Writes attributes as a JSON object in an attribute of its own: all of them or the ones chosen, names with a dot as nested objects, and the geometry as GeoJSON if you want it. For sending on to a web service, or for writing as text.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "Attributes", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "The attributes to put in. Empty puts in all of them" }, { "key": "result", "label": "Write to", "kind": "text", "shape": "a string", "default": "json", "hint": "The attribute that gets the JSON text" }, { "key": "gather", "label": "Make", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "each", "label": "An object for each feature" }, { "value": "all", "label": "One list of all the features" }, { "value": "group", "label": "A list for each value of an attribute" } ], "default": "each", "hint": "A list gathers the objects of the features, all of them or those with the same value, into one feature each, as a web service wants a list of many" }, { "key": "gather_by", "label": "Lists by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute whose values each get a list. The list's feature keeps the value" }, { "key": "list_name", "label": "List under the name", "kind": "text", "shape": "a string", "default": "", "hint": "Puts the list in an object under this name, such as {\"features\": [...]}. Empty writes the list as it is" }, { "key": "nest", "label": "Names with a dot as objects", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "adress.gata and adress.ort become \"adress\": {\"gata\": …, \"ort\": …}, as Flatten JSON took them apart" }, { "key": "parse", "label": "JSON text as JSON", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "An attribute that holds a JSON object or list is put in as such, not as text" }, { "key": "geometry", "label": "Geometry", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "Left out" }, { "value": "geojson", "label": "As GeoJSON, in geometry" }, { "value": "wkt", "label": "As WKT, in geometry" } ], "default": "none", "hint": "In the coordinates of the stream" }, { "key": "pretty", "label": "Over several lines", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "Easier to read, longer" } ] }, { "type": "MapRenderer", "title": "Draw map", "group": "tool", "category": "Maps", "description": "Draws the streams connected to Layers into a picture with coordinates: each stream a layer with its own colours, in the order you set, with values shown by colour and size, labels, icons for points, and a legend. Write the picture to PNG, JPG, GeoTIFF or PDF with an output.", "inputs": [ "Layers", "Overview" ], "outputs": [ "Map" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "layers", "label": "Layers", "kind": "list", "shape": "a list of layers, one per stream connected to the port: {\"from\": \"node:port, the id of the node and its output port\", \"fill\": \"#rrggbb\", \"stroke\", \"width\", \"size\", \"label\": attribute, …}", "port": "Layers", "default": "", "hint": "Each stream connected to Layers is a layer. The top row is drawn on top" }, { "key": "size_as", "label": "Size", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "pixels", "label": "In pixels, for the screen" }, { "value": "print", "label": "For print: width in mm and pixels to the inch" }, { "value": "scale", "label": "At a scale on a paper, such as 1:50 000 on A3" } ], "default": "pixels" }, { "key": "width", "label": "Width in pixels", "kind": "text", "shape": "a string", "default": "1600", "hint": "The height follows from the area that is drawn" }, { "key": "print_mm", "label": "Width in mm", "kind": "text", "shape": "a string", "default": "180", "hint": "On paper, such as 180 for an A4 page with margins. The height follows from the area that is drawn" }, { "key": "print_dpi", "label": "Pixels to the inch", "kind": "text", "shape": "a string", "default": "300", "hint": "300 for print, 150 for a draft. Lines, points and labels keep the size they have on the screen, measured on paper, and the picture tells Output its resolution" }, { "key": "map_scale", "label": "Scale 1:", "kind": "text", "shape": "a string", "default": "50000", "hint": "Such as 50000 for 1:50 000. The map is as large as the paper less 10 mm on every side, centred on the features, in a coordinate system in metres" }, { "key": "paper", "label": "Paper", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "a4l", "label": "A4 landscape" }, { "value": "a4p", "label": "A4 portrait" }, { "value": "a3l", "label": "A3 landscape" }, { "value": "a3p", "label": "A3 portrait" }, { "value": "a2l", "label": "A2 landscape" }, { "value": "a2p", "label": "A2 portrait" }, { "value": "a1l", "label": "A1 landscape" }, { "value": "a1p", "label": "A1 portrait" } ], "default": "a3l" }, { "key": "map_style", "label": "Style", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "As the layers are set" }, { "value": "light", "label": "Light" }, { "value": "dark", "label": "Dark" }, { "value": "topo", "label": "Old topographic" }, { "value": "bw", "label": "Print in black and white" } ], "default": "", "hint": "A ready look for the whole map: the colours of the layers are made to fit it, each layer keeping its own hue, and a background of a colour gets the paper of the style" }, { "key": "margin", "label": "Margin in %", "kind": "text", "shape": "a string", "default": "5", "hint": "Room around the features, as a share of the larger side" }, { "key": "background", "label": "Background", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "#ffffff", "label": "White" }, { "value": "none", "label": "See-through" }, { "value": "#f4f1ea", "label": "Paper" }, { "value": "#1e2326", "label": "Dark" }, { "value": "colour", "label": "A colour of my own" }, { "value": "map", "label": "A background map, such as OpenStreetMap" }, { "value": "picture", "label": "A picture" } ], "default": "#ffffff" }, { "key": "background_colour", "label": "Colour", "kind": "text", "shape": "a string", "default": "#e8eef2", "hint": "Such as #e8eef2, or with opacity as #e8eef280" }, { "key": "basemap", "label": "Background map", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "osm", "label": "OpenStreetMap" }, { "value": "carto_light", "label": "Light grey (CARTO Positron)" }, { "value": "carto_voyager", "label": "Soft colours (CARTO Voyager)" }, { "value": "carto_dark", "label": "Dark (CARTO Dark Matter)" }, { "value": "own", "label": "One of my own, or an address" } ], "default": "osm", "hint": "Fetched from the web as tiles, and kept for a month" }, { "key": "basemap_own", "label": "Name or address", "kind": "text", "shape": "a string", "default": "", "hint": "The name of one of your background maps under Settings, or an address with {z}, {x} and {y}" }, { "key": "background_picture", "label": "Picture", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "PNG, JPG or WebP. With a world file beside it (.pgw, .jgw, .wpw) it lies in its place; otherwise it covers the whole map" }, { "key": "background_crs", "label": "Picture in", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "The coordinate system of the world file. Empty: that of the map" }, { "key": "background_fade", "label": "Paler by %", "kind": "text", "shape": "a string", "default": "0", "hint": "Makes the background map or picture paler, so that the layers stand out: 30 to 50 suits most maps" }, { "key": "legend", "label": "Legend", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "bottom-left", "label": "Lower left" }, { "value": "bottom-center", "label": "Lower middle" }, { "value": "bottom-right", "label": "Lower right" }, { "value": "top-left", "label": "Upper left" }, { "value": "top-center", "label": "Upper middle" }, { "value": "top-right", "label": "Upper right" } ], "default": "none", "hint": "A box with the layers and what their colours and sizes stand for" }, { "key": "legend_title", "label": "Title of the legend", "kind": "text", "shape": "a string", "default": "" }, { "key": "legend_columns", "label": "Legend columns", "kind": "text", "shape": "a string", "default": "1", "hint": "Its rows in this many columns, for a long legend" }, { "key": "legend_fill", "label": "Legend box", "kind": "text", "shape": "a string", "default": "", "hint": "The colour of its box, such as #ffffffe6, or none. Empty: white, a little see-through" }, { "key": "legend_line", "label": "Legend edge", "kind": "text", "shape": "a string", "default": "", "hint": "The colour of the edge of its box, or none. Empty: light grey" }, { "key": "scale_bar", "label": "Scale bar", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "bottom-left", "label": "Lower left" }, { "value": "bottom-center", "label": "Lower middle" }, { "value": "bottom-right", "label": "Lower right" }, { "value": "top-left", "label": "Upper left" }, { "value": "top-center", "label": "Upper middle" }, { "value": "top-right", "label": "Upper right" } ], "default": "none", "hint": "A round length of about a fifth of the map, in metres or km" }, { "key": "north_arrow", "label": "North arrow", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "bottom-left", "label": "Lower left" }, { "value": "bottom-center", "label": "Lower middle" }, { "value": "bottom-right", "label": "Lower right" }, { "value": "top-left", "label": "Upper left" }, { "value": "top-center", "label": "Upper middle" }, { "value": "top-right", "label": "Upper right" } ], "default": "none" }, { "key": "scale_style", "label": "Scale bar as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "bar", "label": "Fields dark and light" }, { "value": "line", "label": "A line with ticks" } ], "default": "bar" }, { "key": "scale_parts", "label": "Fields of the scale bar", "kind": "text", "shape": "a string", "default": "4", "hint": "From 1 to 10" }, { "key": "scale_unit", "label": "Scale bar in", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As fits" }, { "value": "km", "label": "Kilometres" }, { "value": "m", "label": "Metres" } ], "default": "auto" }, { "key": "north_style", "label": "North arrow as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "arrow", "label": "An arrow, half dark" }, { "value": "simple", "label": "A thin arrow" }, { "value": "star", "label": "A compass star" } ], "default": "arrow" }, { "key": "grid", "label": "Grid", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "lines", "label": "Lines across the map" }, { "value": "ticks", "label": "Marks in the edge" }, { "value": "degrees", "label": "Latitude and longitude, in degrees" } ], "default": "none", "hint": "With the coordinates in the edge: those of the map, such as SWEREF 99 TM, or degrees of WGS 84, whose lines curve on a map in metres" }, { "key": "grid_every", "label": "Grid every", "kind": "text", "shape": "a string", "default": "", "hint": "In the units of the map, such as 1000 for every km in SWEREF 99 TM, or in degrees for a grid of degrees. Empty gives a round number by the size" }, { "key": "map_frame", "label": "Frame", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "frame", "label": "A frame, with the coordinates outside it" } ], "default": "none", "hint": "A line around the map with a white margin, where the coordinates of the grid are written, as on a printed map" }, { "key": "overview", "label": "Overview map", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "bottom-left", "label": "Lower left" }, { "value": "bottom-center", "label": "Lower middle" }, { "value": "bottom-right", "label": "Lower right" }, { "value": "top-left", "label": "Upper left" }, { "value": "top-center", "label": "Upper middle" }, { "value": "top-right", "label": "Upper right" } ], "default": "none", "hint": "A small map in a corner that shows where the map lies, with the map as a red frame: what is connected to Overview, such as the outline of the county, or else the lines and areas of the map seen from further away" }, { "key": "overview_size", "label": "Overview width in %", "kind": "text", "shape": "a string", "default": "25", "hint": "Of the width of the map" }, { "key": "overview_zoom", "label": "Overview reaches", "kind": "text", "shape": "a string", "default": "5", "hint": "How many times wider than the map, when nothing is connected to Overview" }, { "key": "overview_fill", "label": "Overview areas", "kind": "text", "shape": "a string", "default": "", "hint": "A colour for the areas of the overview map, such as #e4e2dc. Empty: as the layers have it" }, { "key": "overview_line", "label": "Overview lines", "kind": "text", "shape": "a string", "default": "", "hint": "A colour for its lines and outlines, such as #777777. Empty: as the layers have it" }, { "key": "overview_frame", "label": "Overview frame", "kind": "text", "shape": "a string", "default": "#444444", "hint": "The colour of the frame around it" }, { "key": "overview_mark", "label": "Where the map is", "kind": "text", "shape": "a string", "default": "#d73027", "hint": "The colour of the box in the overview map that shows where the map is" }, { "key": "title", "label": "Title", "kind": "text", "shape": "a string", "default": "", "hint": "Written large over the map, where Title in the says" }, { "key": "subtitle", "label": "Subtitle", "kind": "text", "shape": "a string", "default": "", "hint": "Under the title: what is shown, where and when" }, { "key": "logo", "label": "Logo", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "A picture, such as a PNG with a see-through background" }, { "key": "title_place", "label": "Title in the", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "bottom-left", "label": "Lower left" }, { "value": "bottom-center", "label": "Lower middle" }, { "value": "bottom-right", "label": "Lower right" }, { "value": "top-left", "label": "Upper left" }, { "value": "top-center", "label": "Upper middle" }, { "value": "top-right", "label": "Upper right" } ], "default": "top-left", "hint": "Where the title and the subtitle go" }, { "key": "title_fill", "label": "Box behind the title", "kind": "text", "shape": "a string", "default": "", "hint": "A colour for a box behind the title and the subtitle, such as #ffffff, or #ffffffcc to let a little show through. Empty: no box" }, { "key": "title_line", "label": "Edge of the box", "kind": "text", "shape": "a string", "default": "", "hint": "A colour for the edge of the box, such as #888888. Empty: no edge" }, { "key": "title_font", "label": "Font", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "A font file, such as a TTF or an OTF from C:\\Windows\\Fonts. Empty: the built-in one" }, { "key": "title_size", "label": "Title size", "kind": "text", "shape": "a string", "default": "26", "hint": "In pixels on a map 800 pixels high: larger maps have it larger" }, { "key": "title_colour", "label": "Title colour", "kind": "text", "shape": "a string", "default": "#111111" }, { "key": "title_bold", "label": "Title in bold", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "yes", "label": "Yes" }, { "value": "no", "label": "No" } ], "default": "yes", "hint": "With a font file of one's own, the letters are as the file has them" }, { "key": "subtitle_size", "label": "Subtitle size", "kind": "text", "shape": "a string", "default": "15" }, { "key": "subtitle_colour", "label": "Subtitle colour", "kind": "text", "shape": "a string", "default": "#444444" }, { "key": "logo_corner", "label": "Logo in the corner", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "bottom-left", "label": "Lower left" }, { "value": "bottom-center", "label": "Lower middle" }, { "value": "bottom-right", "label": "Lower right" }, { "value": "top-left", "label": "Upper left" }, { "value": "top-center", "label": "Upper middle" }, { "value": "top-right", "label": "Upper right" } ], "default": "bottom-right" }, { "key": "logo_size", "label": "Logo width in %", "kind": "text", "shape": "a string", "default": "12", "hint": "Of the width of the map" }, { "key": "inset", "label": "Inset of", "kind": "text", "shape": "a string", "default": "", "hint": "An enlarged map in a corner of the features this expression picks out, such as kommunnamn = 'Göteborg', with a frame on the map where it is. Empty: none" }, { "key": "inset_corner", "label": "Inset in the corner", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "bottom-left", "label": "Lower left" }, { "value": "bottom-center", "label": "Lower middle" }, { "value": "bottom-right", "label": "Lower right" }, { "value": "top-left", "label": "Upper left" }, { "value": "top-center", "label": "Upper middle" }, { "value": "top-right", "label": "Upper right" } ], "default": "top-right" }, { "key": "inset_size", "label": "Inset width in %", "kind": "text", "shape": "a string", "default": "30", "hint": "Of the width of the map" }, { "key": "knockout", "label": "Lines break under labels", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "no", "hint": "Roads, borders and outlines stop where a label goes, so that the names are free" }, { "key": "template", "label": "Template", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "A map template, .ogmap, saved from another map: what this map does not set itself is taken from it, so that maps look alike" }, { "key": "notes", "label": "Notes on the map", "kind": "text", "shape": "a string", "default": "", "hint": "One to a line: east, north in the coordinates of the map, and the text, as 323000 6402000 New bridge 2027. Each points to its place with a line" }, { "key": "map_font", "label": "Font of the map", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "A TTF or an OTF for all the text of the map: labels, legend, scale bar and the rest. Empty: the built-in one" }, { "key": "multiples_by", "label": "A map for each value of", "kind": "text", "shape": "a string", "default": "", "hint": "An attribute, such as year: the map is drawn once for each of its values, side by side at one scale, with one legend. Empty: one map" }, { "key": "multiples_columns", "label": "Maps across", "kind": "text", "shape": "a string", "default": "", "hint": "Empty: as many as make a square" }, { "key": "atlas_by", "label": "A page for each feature, named by", "kind": "text", "shape": "a string", "default": "", "hint": "An attribute of a layer, such as kommunnamn: a map of each feature of it, centred on it and named by it, as pages of one PDF or a file each. Empty: one map" }, { "key": "focus", "label": "The map is about", "kind": "text", "shape": "a string", "default": "", "hint": "An expression that picks out the areas the map is about, such as lan = 'Västra Götaland': the rest is paler, and the areas can have a shadow or lines along their coast. Empty: all of it" }, { "key": "focus_rest", "label": "The rest", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "fade", "label": "Paler" }, { "value": "hide", "label": "Left out" } ], "default": "fade", "hint": "Paler, or left out so that only the areas are drawn, in their own shape" }, { "key": "focus_fade", "label": "The rest paler by %", "kind": "text", "shape": "a string", "default": "60", "hint": "0 keeps it as it is" }, { "key": "focus_effect", "label": "Around the areas", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "Nothing" }, { "value": "shadow", "label": "A soft shadow" }, { "value": "waterlines", "label": "Lines along the coast" } ], "default": "none", "hint": "Under the layers, around the areas the map is about" }, { "key": "simplify", "label": "Simplify to the scale", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "no", "hint": "Points of lines and outlines closer than a pixel are left out: calmer lines and smaller files, with no change that can be seen" }, { "key": "source", "label": "Source", "kind": "text", "shape": "a string", "default": "", "hint": "Written small in the lower right corner, such as © Lantmäteriet, after the credit of the background map" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Of the map. Empty uses that of the bottom layer. Other layers are reprojected to it" } ] }, { "type": "ChartDrawer", "title": "Draw chart", "group": "tool", "category": "Charts", "description": "Draws a bar chart of the features: a bar for each name, as long as its value, such as the area of each municipality. Or a line chart, with a line for each value of an attribute through its points along a number or a date, such as the inhabitants of each municipality year by year. Or a histogram of how values are spread, a scatter plot of one number against another with a trend line and its R², box plots of the spread in each group, stacked or grouped bars of the parts of each, or a population pyramid. Any of them can be drawn as small multiples: a small chart for each municipality, say, side by side on one scale. Sorted by size or by name, with a title, an explanation and a note. The chart comes out as a picture to write to a .png or a .pdf, and can also be written as an interactive web page, where each value shows under the pointer and the bars can be sorted.", "inputs": [ "Input" ], "outputs": [ "Chart" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "kind", "label": "Chart", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "bars", "label": "Bars" }, { "value": "lines", "label": "Lines" }, { "value": "histogram", "label": "Histogram: how the values are spread" }, { "value": "scatter", "label": "Scatter: one number against another" }, { "value": "box", "label": "Box plot: the spread of each group" }, { "value": "stacked", "label": "Stacked bars: the parts of each" }, { "value": "grouped", "label": "Grouped bars: the parts side by side" }, { "value": "pyramid", "label": "Population pyramid" } ], "default": "bars", "hint": "Lines show how a value changes, such as the inhabitants year by year" }, { "key": "x", "label": "Along", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "For lines: the attribute along the bottom, a number such as a year, or a date" }, { "key": "series", "label": "A line for each", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "For lines: an attribute whose values each get a line of their own, such as the municipality. Empty draws one line" }, { "key": "from_zero", "label": "The scale starts at 0", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "no", "hint": "For lines. Else it starts near the smallest value" }, { "key": "markers", "label": "A dot at each point", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "no", "hint": "For lines" }, { "key": "facet", "label": "One chart for each", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Small multiples: a small chart for each value, such as each municipality, side by side on one scale. Empty draws one chart" }, { "key": "free_scales", "label": "Each small chart its own scale", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "no", "hint": "One shared scale lets them be compared; scales of their own show the shape of each" }, { "key": "bins", "label": "Bins", "kind": "text", "shape": "a string", "default": "", "hint": "For a histogram: about how many. Empty chooses by the number of values" }, { "key": "trend", "label": "Trend line", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "yes", "hint": "For a scatter plot: a straight line through the points, with R², how much of the spread it explains" }, { "key": "percent", "label": "As shares of 100 %", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "no", "hint": "For stacked bars: every bar as tall, the parts as shares" }, { "key": "x_title", "label": "Along the bottom", "kind": "text", "shape": "a string", "default": "", "hint": "For a histogram or a scatter plot: what the numbers along the bottom are" }, { "key": "category", "label": "Names", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute that names each bar, such as the name of the municipality" }, { "key": "value", "label": "Values", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The number each bar shows, such as the area. Empty counts the features with each name" }, { "key": "combine", "label": "Features with the same name", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "sum", "label": "Sum" }, { "value": "mean", "label": "Mean" }, { "value": "max", "label": "Largest" }, { "value": "min", "label": "Smallest" } ], "default": "sum", "hint": "How their values are put together into one bar" }, { "key": "sort", "label": "Order", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "down", "label": "Largest first" }, { "value": "up", "label": "Smallest first" }, { "value": "name", "label": "Alphabetical" }, { "value": "none", "label": "As they come" } ], "default": "down" }, { "key": "limit", "label": "Show at most", "kind": "text", "shape": "a string", "default": "", "hint": "The first bars in that order, such as 10 for a top ten. Empty shows them all" }, { "key": "title", "label": "Title", "kind": "text", "shape": "a string", "default": "", "hint": "Say what the chart shows, in a few words" }, { "key": "subtitle", "label": "Explanation", "kind": "text", "shape": "a string", "default": "", "hint": "A line under the title: what is measured, where and when" }, { "key": "note", "label": "Note at the foot", "kind": "text", "shape": "a string", "default": "", "hint": "Such as where the data comes from" }, { "key": "unit", "label": "Unit", "kind": "text", "shape": "a string", "default": "", "hint": "Written after the numbers, such as km²" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "0" }, { "key": "format", "label": "Numbers as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "sv", "label": "1 234,5" }, { "value": "en", "label": "1,234.5" } ], "default": "sv" }, { "key": "labels", "label": "Numbers on the bars", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "all", "label": "On every bar" }, { "value": "ends", "label": "Largest and smallest" }, { "value": "none", "label": "None" } ], "default": "all" }, { "key": "mean", "label": "Line at the mean", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes" } ], "default": "no" }, { "key": "orientation", "label": "Bars", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "Choose by the data" }, { "value": "bars", "label": "Bars across" }, { "value": "columns", "label": "Columns" } ], "default": "auto", "hint": "Many bars or long names are drawn across, a few short ones as columns" }, { "key": "label_angle", "label": "Names under columns", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "0", "label": "Level" }, { "value": "45", "label": "Turned 45°" }, { "value": "90", "label": "Upright, 90°" } ], "default": "0", "hint": "Turned, many names fit under narrow columns, such as 49 municipalities" }, { "key": "colour", "label": "Colour", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "blue", "label": "Blue" }, { "value": "orange", "label": "Orange" }, { "value": "aqua", "label": "Aqua" }, { "value": "yellow", "label": "Yellow" }, { "value": "magenta", "label": "Magenta" }, { "value": "green", "label": "Green" }, { "value": "violet", "label": "Violet" }, { "value": "red", "label": "Red" }, { "value": "grey", "label": "Grey" } ], "default": "blue" }, { "key": "highlight", "label": "Bars to point out", "kind": "list", "shape": "a list of strings", "port": "Input", "default": "", "hint": "Names whose bars get the second colour, one per line" }, { "key": "accent", "label": "Second colour", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "blue", "label": "Blue" }, { "value": "orange", "label": "Orange" }, { "value": "aqua", "label": "Aqua" }, { "value": "yellow", "label": "Yellow" }, { "value": "magenta", "label": "Magenta" }, { "value": "green", "label": "Green" }, { "value": "violet", "label": "Violet" }, { "value": "red", "label": "Red" }, { "value": "grey", "label": "Grey" } ], "default": "orange" }, { "key": "width", "label": "Width in pixels", "kind": "text", "shape": "a string", "default": "1200", "hint": "The text grows with the width" }, { "key": "height", "label": "Height in pixels", "kind": "text", "shape": "a string", "default": "", "hint": "Empty makes it fit the bars" }, { "key": "background", "label": "Background", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "paper", "label": "Off-white" }, { "value": "white", "label": "White" }, { "value": "none", "label": "See-through" } ], "default": "paper" }, { "key": "html", "label": "Also as a web page", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "An .html file with the chart that shows each value under the pointer and can be sorted, to open in any web browser or put on a site. Empty: none" } ] }, { "type": "SceneRenderer", "title": "Render 3D scene", "group": "tool", "category": "3D models and views", "description": "The picture of a 3D scene for presenting: models such as buildings read from OBJ, glTF, 3D Tiles or IFC, or made with Extrude or Generate TIN, rendered by following rays of light: lit by the sun, with soft shadows, and by the sky, which reaches into the shade and darkens corners, with their materials, textures and glass. On a light floor, under the sky as it is at that hour, or on the terrain connected to Terrain with the map on Map laid over it. Clouds, haze, water that mirrors, reflections and more bounces of the light, or the models white or in wood as a model. At dusk, lit windows, lamps at the points on Lights and materials that glow; depth of field blurs what is not in focus. The sun can stand where it does on a date and at a time, and a sun study gives a sheet of pictures through the day. A picture can take some minutes. For a quick look at terrain alone, use Quick terrain view.", "inputs": [ "Models", "Terrain", "Map", "Water", "Lights", "Trees" ], "outputs": [ "Image" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "width", "label": "Width in pixels", "kind": "text", "shape": "a string", "default": "1600" }, { "key": "height", "label": "Height in pixels", "kind": "text", "shape": "a string", "default": "1000" }, { "key": "view_azimuth", "label": "Looking from", "kind": "text", "shape": "a string", "default": "215", "hint": "Degrees clockwise from north: 180 looks north from the south" }, { "key": "camera", "label": "Camera", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "As set below" }, { "value": "birds_eye", "label": "Bird's eye: from high up, in perspective" }, { "value": "axonometric", "label": "Axonometric: parallel, from 35° up" }, { "value": "top", "label": "Straight down, as a plan" } ], "default": "", "hint": "A ready place for the camera, which sets its height, projection and lens. Looking from and the zoom still count" }, { "key": "elevation", "label": "Camera height in degrees", "kind": "text", "shape": "a string", "default": "25", "hint": "Above the horizon. 90 looks straight down" }, { "key": "projection", "label": "Projection", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "perspective", "label": "Perspective, as a camera sees" }, { "value": "parallel", "label": "Parallel, as an isometric drawing: far is as large as near" } ], "default": "perspective", "hint": "Parallel suits a diorama or a game map. With the camera height at 35 it is isometric, at 30 as in many games" }, { "key": "fov", "label": "Lens angle", "kind": "text", "shape": "a string", "default": "35", "hint": "In degrees, from top to bottom. Small is a telephoto, large a wide angle" }, { "key": "zoom", "label": "Zoom in %", "kind": "text", "shape": "a string", "default": "100", "hint": "100 shows the models whole" }, { "key": "distance", "label": "Camera distance", "kind": "text", "shape": "a string", "default": "", "hint": "From the middle of the models, in metres. Empty stands the camera where the models are seen whole, by the zoom" }, { "key": "sun", "label": "Sun", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "angles", "label": "From where you say" }, { "value": "date", "label": "From the date and time, at the place of the model" }, { "value": "study", "label": "A sun study: a picture for each time of each date" } ], "default": "angles", "hint": "From the date and time, for shadow studies" }, { "key": "sun_azimuth", "label": "Sun from", "kind": "text", "shape": "a string", "default": "160", "hint": "Degrees clockwise from north" }, { "key": "sun_altitude", "label": "Sun height", "kind": "text", "shape": "a string", "default": "45", "hint": "Degrees above the horizon" }, { "key": "date", "label": "Date", "kind": "text", "shape": "a string", "default": "2026-03-20", "hint": "Such as 2026-03-20 for the spring equinox, or 2026-06-21 for midsummer" }, { "key": "time", "label": "Time", "kind": "text", "shape": "a string", "default": "12:00", "hint": "Such as 15:00" }, { "key": "study_dates", "label": "Dates", "kind": "text", "shape": "a string", "default": "2026-03-20, 2026-06-21", "hint": "A row of pictures for each, such as the spring equinox and midsummer. Add 2026-12-21 for midwinter" }, { "key": "study_from", "label": "From", "kind": "text", "shape": "a string", "default": "09:00", "hint": "The first time of each date" }, { "key": "study_to", "label": "To", "kind": "text", "shape": "a string", "default": "17:00", "hint": "The last time" }, { "key": "study_every", "label": "Every so many hours", "kind": "text", "shape": "a string", "default": "2", "hint": "Such as 1 or 2. Each picture takes as long as one, so draft quality and a smaller size are good while trying" }, { "key": "study_folder", "label": "Each picture also in", "kind": "text", "shape": "a string", "default": "", "hint": "A folder beside the model where each picture is written as PNG, named by date and time. Empty: only the sheet of them all" }, { "key": "clock", "label": "Time zone", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "swedish", "label": "Swedish time" }, { "value": "utc", "label": "UTC" }, { "value": "computer", "label": "As this computer's clock" } ], "default": "swedish", "hint": "Swedish time includes summer time" }, { "key": "softness", "label": "Shadows", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "0.5", "label": "Sharp, as on a clear day" }, { "value": "3", "label": "Soft" }, { "value": "8", "label": "Very soft, as through thin cloud" } ], "default": "3" }, { "key": "sun_strength", "label": "Sunlight in %", "kind": "text", "shape": "a string", "default": "100" }, { "key": "sky_strength", "label": "Skylight in %", "kind": "text", "shape": "a string", "default": "100", "hint": "The light from the sky, that reaches into the shade" }, { "key": "clouds", "label": "Cloud cover in %", "kind": "text", "shape": "a string", "default": "0", "hint": "0 is clear. More dims the sun and softens the shadows; 100 is overcast, with an even light and hardly any shadows. Seen in the sky when the background is the sky" }, { "key": "haze", "label": "Haze in %", "kind": "text", "shape": "a string", "default": "0", "hint": "Far things fade into the colour of the horizon, as over a landscape: 20 is a summer day, 60 a hazy one. The sun gets warmer too" }, { "key": "background", "label": "Background", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "studio", "label": "A light studio, with a floor" }, { "value": "sky", "label": "The sky, as it is with the sun where it stands" }, { "value": "clear", "label": "See-through" }, { "value": "colour", "label": "A colour of your own" } ], "default": "studio" }, { "key": "background_colour", "label": "Background colour", "kind": "text", "shape": "a string", "default": "#ffd6e0", "hint": "As #rrggbb, such as #57cfda. Given while the background is the studio, it is used instead" }, { "key": "mood", "label": "Light", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "neutral", "label": "Neutral daylight" }, { "value": "warm", "label": "Warm sun and cool shade, livelier" }, { "value": "golden", "label": "Golden: warm, low light, strong colours" }, { "value": "soft", "label": "Soft and dreamy: gentle shadows, pastel light" } ], "default": "neutral", "hint": "The colour of the sunlight and of the shade. Warm suits a diorama or a picture for a presentation" }, { "key": "title", "label": "Title", "kind": "text", "shape": "a string", "default": "", "hint": "Written at the top of the picture, as on a finished map" }, { "key": "floor", "label": "A floor under the models", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "That takes their shadows. Without it they float, as a diorama on a see-through background" }, { "key": "look", "label": "The models as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "materials", "label": "Their own materials and textures" }, { "value": "white", "label": "White, as an architect's model" }, { "value": "wood", "label": "Light wood, as a model of a city" } ], "default": "materials", "hint": "Glass stays glass" }, { "key": "glass_names", "label": "Glass in materials named", "kind": "text", "shape": "a string", "default": "", "hint": "Words in the names of materials that are to be glass, such as glass, window, glas, fönster: models from CAD and IFC often have windows that cannot be seen through" }, { "key": "glow_names", "label": "Light in materials named", "kind": "text", "shape": "a string", "default": "", "hint": "Words in the names of materials that give off light in their own colour, such as lamp, neon, sign. Materials with emission in their file glow too" }, { "key": "roof_by", "label": "Roofs coloured by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Models", "default": "", "hint": "An attribute of the models with the kind of roof, such as roof_type from LoD2 buildings: flat, gable, hipped, shed or mansard, in English or Swedish (platt, sadel, valm, pulpet), or a colour as #rrggbb. Empty keeps their materials" }, { "key": "tree_height", "label": "Trees, height", "kind": "text", "shape": "a string", "default": "10", "hint": "In metres, for the points on Trees" }, { "key": "tree_height_by", "label": "Trees, height from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Trees", "default": "", "hint": "An attribute with the height of each tree. Empty gives all the height above" }, { "key": "tree_kind", "label": "Trees, kind", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "leafy", "label": "Leafy, with a round crown" }, { "value": "conifer", "label": "Conifers, as cones" } ], "default": "leafy" }, { "key": "tree_kind_by", "label": "Trees, kind from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Trees", "default": "", "hint": "An attribute where words such as conifer, pine, spruce, barr, gran or tall make a conifer, and other values a leafy tree" }, { "key": "lit_windows", "label": "Lit windows in %", "kind": "text", "shape": "a string", "default": "0", "hint": "The share of the windows lit from inside, warm as at dusk: panes of glass, and the windows on plain walls. Best with the sun low or below the horizon" }, { "key": "windows", "label": "Windows on plain walls", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "Rows of windows on walls without a texture, a floor every 3 m, as on blocks from Extrude" }, { "key": "light_strength", "label": "Lamps, strength in %", "kind": "text", "shape": "a string", "default": "100", "hint": "For the points on Lights: 100 is a street lamp, that lights the ground some 10 m around it" }, { "key": "light_colour", "label": "Lamps, colour", "kind": "text", "shape": "a string", "default": "#ffc78a", "hint": "Warm white is #ffc78a, cold white #e8f0ff" }, { "key": "light_height", "label": "Lamps, height", "kind": "text", "shape": "a string", "default": "5", "hint": "In metres above the terrain or the foot of the models, for points without a height of their own" }, { "key": "blur", "label": "Depth of field, blur in %", "kind": "text", "shape": "a string", "default": "0", "hint": "0 is sharp all through. More blurs what is nearer and further than the focus: 30 looks like a model photographed close up. Takes more rays to be smooth" }, { "key": "focus", "label": "Focus distance", "kind": "text", "shape": "a string", "default": "", "hint": "In metres from the camera. Empty: the middle of what is seen" }, { "key": "reflections", "label": "Reflections", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "Smooth and metallic surfaces mirror what is around them, not only the sky. About 1.3 times the time" }, { "key": "bounces", "label": "Light bounces", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "1", "label": "Once: quick" }, { "value": "2", "label": "Twice: lighter in courtyards and arcades, about 1.7 times the time" }, { "value": "3", "label": "Three times: about 2.5 times the time" } ], "default": "1", "hint": "Between surfaces before it reaches the eye" }, { "key": "water", "label": "Water", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None" }, { "value": "level", "label": "A surface at a height: a sea, or the lakes of the terrain" }, { "value": "areas", "label": "In the areas connected to Water" } ], "default": "none", "hint": "Mirrors the sky and what stands by it, with the sun glittering on it" }, { "key": "water_level", "label": "Water height", "kind": "text", "shape": "a string", "default": "", "hint": "In metres, as the heights of the models and the terrain. Empty: the foot of the models, or for areas the terrain where they are" }, { "key": "waves", "label": "Waves", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "0", "label": "Still, as a mirror" }, { "value": "0.35", "label": "Ripples" }, { "value": "1", "label": "A fresh breeze" } ], "default": "0.35" }, { "key": "terrain_colours", "label": "Terrain colours", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "grass", "label": "Grass green" }, { "value": "land", "label": "Land: green to light brown" }, { "value": "mountains", "label": "Mountains: green to brown to snow" }, { "value": "greys", "label": "Grey to white" }, { "value": "white", "label": "Light all over" } ], "default": "grass", "hint": "For the terrain on Terrain, where no map from Map covers it" }, { "key": "quality", "label": "Quality", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "16", "label": "Good" }, { "value": "4", "label": "Draft, quick" }, { "value": "64", "label": "Best, slow" } ], "default": "16", "hint": "Rays per pixel. More gives smoother shadows and edges, and takes longer: Best is four times Good. With reflections, more bounces, water and clouds, a picture can take some minutes" } ] }, { "type": "Extruder", "title": "Extrude", "group": "tool", "category": "3D models and views", "description": "Raises areas into blocks: a 3D model with walls, a top and a bottom, for Render 3D scene, the 3D view and the 3D files OBJ and glTF. The height is a number, such as 20, or comes from an attribute or an expression; the blocks stand at a height you give, at the heights the areas have, or on the terrain on Terrain. The areas come out with their attributes and z_base, z_top and height.", "inputs": [ "Input", "Terrain" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "height", "label": "Height", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "20", "hint": "A number, such as 20, an attribute with the height, or an expression such as floors * 3" }, { "key": "top", "label": "The height is", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "above", "label": "Above the base, as a height" }, { "value": "absolute", "label": "As the height of the top, above the sea" } ], "default": "above" }, { "key": "base", "label": "Bottom", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "value", "label": "At the value below" }, { "value": "z", "label": "At the lowest height the area has" }, { "value": "terrain", "label": "On the terrain model on Terrain, at its lowest point under the area" } ], "default": "value", "hint": "Where the block stands" }, { "key": "base_value", "label": "Bottom value", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "0", "hint": "A number or an attribute. With the terrain or the heights of the area, it is added to them" }, { "key": "wall_colour", "label": "Colour of the walls", "kind": "text", "shape": "a string", "default": "#d9d4ca", "hint": "As #rrggbb" }, { "key": "roof_colour", "label": "Colour of the top", "kind": "text", "shape": "a string", "default": "#a39e96" }, { "key": "name", "label": "Names from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "An attribute that names each block in the model, such as an id. Empty numbers them" } ] }, { "type": "TinGenerator", "title": "Generate TIN", "group": "tool", "category": "3D models and views", "description": "A triangulated irregular network: triangles that follow the heights of a raster on Heights, read with Cells as a grid of heights, with many where the terrain is rough and few where it is even, or that join points with heights, such as from a point cloud. In 3D the triangles carry their heights and make a 3D model, for Render 3D scene, the 3D view and 3D files; in 2D they are flat areas with their heights, slope and aspect.", "inputs": [ "Heights" ], "outputs": [ "TIN" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "kind", "label": "Make", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "3d", "label": "3D: triangles with heights and a 3D model, for Render 3D scene and the 3D view" }, { "value": "2d", "label": "2D: flat triangles with their heights, slope and aspect as attributes" } ], "default": "3d" }, { "key": "tolerance", "label": "Tolerance", "kind": "text", "shape": "a string", "default": "1", "hint": "From a raster: how far the triangles may lie from the heights of the cells, in metres. Smaller gives more triangles" }, { "key": "most", "label": "At most corners", "kind": "text", "shape": "a string", "default": "50000", "hint": "From a raster: the most points the triangles may have, however rough the terrain" }, { "key": "colour", "label": "Colour", "kind": "text", "shape": "a string", "default": "#8f9c72", "hint": "Of the 3D model, as #rrggbb" } ] }, { "type": "TinRasterizer", "title": "TIN to raster", "group": "tool", "category": "3D models and views", "description": "A raster of heights from a TIN: the height of the triangles at the middle of each cell, between their corners. The TIN is one in 3D from Generate TIN, or any 3D model, where the highest surface counts where they lie over each other, as roofs over floors. Cells outside the triangles have no value. Write it as GeoTIFF, or use it for Shade terrain, contours and Render 3D scene.", "inputs": [ "TIN" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "cell_size", "label": "Cell size in metres", "kind": "text", "shape": "a string", "default": "", "hint": "Empty: a size that gives about 1000 cells across the TIN" } ] }, { "type": "PointRaiser", "title": "Raise points", "group": "tool", "category": "3D models and views", "description": "Raises points to a height, such as from an attribute, with a stick from where they stand up to the raised point: lollipops for a 3D map of places, as the number of inhabitants of each town or the height of each tree. The sticks start at 0, on the terrain on Terrain, or at the heights the points have. Tops gives the raised points; Sticks the vertical lines, with a 3D model of a post and a ball on each for the 3D view and Render 3D scene.", "inputs": [ "Points", "Terrain" ], "outputs": [ "Tops", "Sticks" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "height", "label": "Height", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Points", "default": "100", "hint": "How high above the foot: a number, an attribute such as population, or an expression such as population / 100" }, { "key": "base", "label": "Foot", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "zero", "label": "At 0" }, { "value": "terrain", "label": "On the terrain model on Terrain" }, { "value": "own", "label": "At the heights the points have" } ], "default": "zero", "hint": "Where each stick starts" }, { "key": "ball_colour", "label": "Colour of the balls", "kind": "text", "shape": "a string", "default": "#e0533d" }, { "key": "stick_colour", "label": "Colour of the sticks", "kind": "text", "shape": "a string", "default": "#5a5a5a" }, { "key": "ball_size", "label": "Size of the balls in metres", "kind": "text", "shape": "a string", "default": "", "hint": "Across. Empty: a twentieth of the highest stick. 0: no balls" } ] }, { "type": "DioramaMaker", "title": "Make diorama", "group": "tool", "category": "3D models and views", "description": "Turns areas of land cover into a toy landscape, as in a picture book or a board game: a 3D model for Render 3D scene, the 3D view and 3D files. The land is rounded, with inlets and spits narrower than the rounding gone, and stands as a slab on a board whose top is the water, with a beach along the shore. The kinds of land, such as forest, fields and towns, lie on it as thin plates in clear or pastel colours, picked by the words in their names in Swedish or English, or as you give them. The largest kind is the ground. Trees stand in the forest, pines where it is coniferous, houses with bright roofs in towns, animals of many kinds graze on fields and meadows, play in towns and roam the forest, sailing boats lie on the water, and fluffy clouds float above, all casting their shadows. The board can be round. Render it with parallel projection, no floor and a see-through background for a picture like a diorama. The pieces come out as areas with their layer, kind, colour and heights. On Heights goes a terrain model, read by an Input with Cells as heights on a grid, such as a GeoTIFF of Lantmäteriet's elevation model, in the coordinate system of the areas: the land then rises in terraces.", "inputs": [ "Areas", "Heights" ], "outputs": [ "Diorama" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "class", "label": "Kind of land from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Areas", "default": "", "hint": "An attribute with the land cover, such as forest, field or water, in Swedish or English: it picks the colours. Empty: all is land" }, { "key": "water_values", "label": "Water is", "kind": "text", "shape": "a string", "default": "", "hint": "The values of that attribute that are water, separated by commas. Empty: values with words such as water, lake, sea, vatten, sjö, hav" }, { "key": "theme", "label": "Colours", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "toy", "label": "Toy: clear, bright colours" }, { "value": "pastel", "label": "Pastel: soft and light" } ], "default": "toy" }, { "key": "colours", "label": "Own colours", "kind": "text", "shape": "a string", "default": "", "hint": "For values of the attribute, such as Barrskog=#2f7d32, Åker=#e0d77a. The others take theirs from the colours above" }, { "key": "radius", "label": "Rounding in metres", "kind": "text", "shape": "a string", "default": "", "hint": "Corners become curves of this radius, and inlets and spits narrower than twice it go. Empty: a size that suits the area. 0: as they are" }, { "key": "smallest", "label": "Smallest part in m²", "kind": "text", "shape": "a string", "default": "", "hint": "Islands, lakes and patches smaller than this go. Empty: some ten times the rounding squared" }, { "key": "board", "label": "Board", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "outline", "label": "Following the shape of the land and the water" }, { "value": "box", "label": "A rounded rectangle around it all" }, { "value": "round", "label": "Round, around the land" }, { "value": "none", "label": "None: the land floats by itself" } ], "default": "outline", "hint": "The water lies on it" }, { "key": "thickness", "label": "Thickness of the board in metres", "kind": "text", "shape": "a string", "default": "", "hint": "Empty: 5% of the width of the area, which suits a picture of the whole" }, { "key": "lift", "label": "Land above the water in metres", "kind": "text", "shape": "a string", "default": "", "hint": "The edge of the land, as the side of a cake. Empty: 60% of the thickness of the board" }, { "key": "beach", "label": "Beach in metres", "kind": "text", "shape": "a string", "default": "", "hint": "A rim of sand along the shore. Empty: as wide as the rounding, and at least 1.2% of the width of the area. 0: none" }, { "key": "steps", "label": "Terraces", "kind": "text", "shape": "a string", "default": "4", "hint": "With a terrain model on Heights: the land rises in this many steps, as layers of a cake, from the shore to the highest 1%" }, { "key": "relief", "label": "Height of the terraces in metres", "kind": "text", "shape": "a string", "default": "", "hint": "Of them all together, larger than in life as on a toy. Empty: 1.6 times the thickness of the board" }, { "key": "trees", "label": "Trees in %", "kind": "text", "shape": "a string", "default": "50", "hint": "How close they stand in forest: 100 is a dense wood, 0 none. Pines in coniferous forest, round trees in other forest and a few in parks" }, { "key": "houses", "label": "Houses in %", "kind": "text", "shape": "a string", "default": "50", "hint": "How close they stand in built-up areas, with roofs in bright colours" }, { "key": "animals", "label": "Animals", "kind": "code", "shape": "text over several lines, such as SQL, with {attribute} put in from the stream on the port", "port": "", "default": "", "hint": "How many of each, as sheep 12, one or more on a line or with commas between: sheep, pig, cow, horse, rabbit, dog, cat, bear, elephant, giraffe, dinosaur, in English or Swedish. Farm animals and the large ones graze on fields, meadows and open land, dogs and cats are in towns and bears in the forest" }, { "key": "boats", "label": "Boats", "kind": "text", "shape": "a string", "default": "0", "hint": "How many sailing boats on the water of the board" }, { "key": "clouds", "label": "Clouds", "kind": "text", "shape": "a string", "default": "0", "hint": "How many fluffy clouds over the land. Their shadows fall on it" }, { "key": "object_size", "label": "Size of a tree in metres", "kind": "text", "shape": "a string", "default": "", "hint": "Houses, sheep and boats go with it. Empty: about 2% of the width of the area, large as on a toy" }, { "key": "pine_values", "label": "Pines on", "kind": "text", "shape": "a string", "default": "", "hint": "Values of the attribute, separated by commas, that get pines, as Barrskog. Empty: by words such as barr, gran, tall, conifer" }, { "key": "tree_values", "label": "Round trees on", "kind": "text", "shape": "a string", "default": "", "hint": "Values that get round trees, as Lövskog. Empty: by words such as skog, löv, forest, wood" }, { "key": "house_values", "label": "Houses on", "kind": "text", "shape": "a string", "default": "", "hint": "Values that get houses. Empty: by words such as bebyggelse, tätort, urban, town" }, { "key": "sheep_values", "label": "Grazing animals on", "kind": "text", "shape": "a string", "default": "", "hint": "Values where farm animals and the large ones graze. Empty: by words such as åker, äng, öppen, field, meadow" }, { "key": "seed", "label": "Variation", "kind": "text", "shape": "a string", "default": "1", "hint": "Another whole number puts the objects and clouds elsewhere" } ] }, { "type": "BoundsExtractor", "title": "Extract bounds", "group": "tool", "category": "Geometry", "description": "Puts the smallest and largest x and y of each feature, its bounding box, in attributes of their own: xmin, ymin, xmax and ymax, and zmin and zmax for features with heights. For the bounds of all the features together, use Bounding box of all.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "prefix", "label": "Names begin with", "kind": "text", "shape": "a string", "default": "", "hint": "Such as bbox_ for bbox_xmin. Empty: xmin, ymin, xmax, ymax" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "", "hint": "Empty: as they are" }, { "key": "heights", "label": "Heights too", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "false", "hint": "zmin and zmax, for features with heights" } ] }, { "type": "CoordinateReprojector", "title": "Reproject coordinate attributes", "group": "tool", "category": "Geometry", "description": "Reprojects coordinates that are numbers in two attributes, such as lat and lon in a table, from one coordinate system to another, without making geometry of them. The new numbers go into the same attributes or new ones. To reproject geometry, use Reproject.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "x", "label": "x from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute with x, or the longitude: east" }, { "key": "y", "label": "y from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute with y, or the latitude: north" }, { "key": "from", "label": "From coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:4326", "hint": "That of the numbers in the attributes" }, { "key": "to", "label": "To coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:3006" }, { "key": "x_out", "label": "New x in", "kind": "text", "shape": "a string", "default": "", "hint": "The attribute that gets the new x. Empty: the one it came from, written over" }, { "key": "y_out", "label": "New y in", "kind": "text", "shape": "a string", "default": "", "hint": "As for x" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "", "hint": "Such as 3 for millimetres in metres, or 7 in degrees. Empty: as they are" } ] }, { "type": "LineEndsExtractor", "title": "First and last point", "group": "tool", "category": "Geometry", "description": "The first and the last point of each line, with its attributes and heights: where a route, a pipe or a street begins and ends. A multi line gives the start of its first part and the end of its last. Features that are not lines go to Other.", "inputs": [ "Input" ], "outputs": [ "First", "Last", "Other" ], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "RandomNumber", "title": "Random number", "group": "tool", "category": "Attributes", "description": "Gives each feature a random number between two values, with the decimals you want, or a whole number. With a seed the numbers are the same at every run.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "random" }, { "key": "min", "label": "From", "kind": "text", "shape": "a string", "default": "0" }, { "key": "max", "label": "To", "kind": "text", "shape": "a string", "default": "1" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "2", "hint": "0 gives whole numbers, from and to both included" }, { "key": "seed", "label": "Seed", "kind": "text", "shape": "a string", "default": "", "hint": "A whole number gives the same numbers at every run, to test with. Empty: new ones each time" } ] }, { "type": "Duplicator", "title": "Create duplicate", "group": "tool", "category": "Attributes", "description": "Makes several features of each feature, all with its attributes and geometry, and the number of each copy in an attribute. As many as a number, or as an attribute says: a point per inhabitant, a row per year, the same trip at every quarter of an hour with date_add and the number of the copy.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "count", "label": "How many", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Input", "default": "2", "hint": "How many features each feature becomes, the feature itself included: a number, or an attribute or expression such as inhabitants. 1 keeps it as it is, 0 or less leaves it out" }, { "key": "name", "label": "Number of the copy in", "kind": "text", "shape": "a string", "default": "copy", "hint": "An attribute with the number of each copy. Empty adds none" }, { "key": "start", "label": "Counted from", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "1", "label": "1, 2, 3 …" }, { "value": "0", "label": "0, 1, 2 …" } ], "default": "1" }, { "key": "most", "label": "At most", "kind": "text", "shape": "a string", "default": "1000000", "hint": "The most features that may come out in all. A stop, so that a wrong attribute does not fill the memory of the computer" } ] }, { "type": "RasterCreator", "title": "Create raster", "group": "tool", "category": "Raster", "description": "Makes a raster over a rectangle, or the extent of what comes in on Extent, with cells of a size: every cell one value, or the value of an expression of the middle of the cell (x and y), its row and its column. A start for Raster calculator, a cost raster or a grid to count with.", "inputs": [ "Extent" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "bbox", "label": "Rectangle", "kind": "text", "shape": "a string", "default": "", "hint": "West, south, east, north in the coordinate system below. Not needed when something comes in on Extent, whose extent is used" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:3006", "hint": "Of the rectangle. With something on Extent, its own" }, { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "10", "hint": "In the units of the coordinate system, such as metres" }, { "key": "value", "label": "Value", "kind": "text", "shape": "a string", "default": "0", "hint": "Of each cell: a number, or an expression with x and y, the middle of the cell, and row and column, such as rand() * 10 or sqrt((x - 319000)^2 + (y - 6400000)^2)" } ] }, { "type": "FocalStatistics", "title": "Focal statistics", "group": "tool", "category": "Raster", "description": "Gives each cell a statistic of the cells around it, in a square or a circle: the mean to smooth, the largest or smallest, the spread, the most common value to clean up classes, or how many have a value.", "inputs": [ "Raster" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "stat", "label": "Each cell gets", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "mean", "label": "Mean" }, { "value": "min", "label": "Smallest" }, { "value": "max", "label": "Largest" }, { "value": "sum", "label": "Sum" }, { "value": "median", "label": "Median" }, { "value": "std", "label": "Spread (standard deviation)" }, { "value": "range", "label": "Range: largest less smallest" }, { "value": "majority", "label": "Most common value" }, { "value": "count", "label": "How many cells have a value" } ], "default": "mean", "hint": "Of the cells around it, itself included" }, { "key": "radius", "label": "Cells around", "kind": "text", "shape": "a string", "default": "1", "hint": "How many cells out: 1 is a window of 3 × 3, 2 of 5 × 5" }, { "key": "shape", "label": "Window", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "square", "label": "Square" }, { "value": "circle", "label": "Circle" } ], "default": "square" } ] }, { "type": "CostDistance", "title": "Cost distance", "group": "tool", "category": "Raster", "description": "The least cost of getting from the places on From to every cell, over a raster of what it costs to cross each cell, such as minutes per metre through forest, bog and fields. Empty cells cannot be crossed. Where there are no roads, how far one comes on foot or in a forest machine.", "inputs": [ "Cost", "From" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "reach", "label": "As far as", "kind": "text", "shape": "a string", "default": "", "hint": "The largest cost: cells that cost more to reach are left empty. Empty: no limit" } ] }, { "type": "PointThinner", "title": "Thin point cloud", "group": "tool", "category": "Point clouds", "description": "Makes a point cloud evenly thinner: one point in each cube of a size, the one nearest its middle, or no two points closer than a distance. Each class on its own if asked, so that few points of one class are kept among many of another.", "inputs": [ "Points" ], "outputs": [ "Points" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "method", "label": "Thin by", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "voxel", "label": "One point in each cube: the nearest to its middle" }, { "value": "distance", "label": "No two points closer than the distance" } ], "default": "voxel", "hint": "Both keep the cloud even, where every n-th point keeps its patches dense" }, { "key": "size", "label": "Size", "kind": "text", "shape": "a string", "default": "1", "hint": "In metres: the side of the cubes, or the least distance between points" }, { "key": "per_class", "label": "Each class on its own", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "yes", "label": "Yes" }, { "value": "no", "label": "No" } ], "default": "yes", "hint": "So that a few points of a building are not lost among the ground points" } ] }, { "type": "PictureStylizer", "title": "Stylize picture", "group": "tool", "category": "Maps", "description": "Draws a picture again in a style: an 8 bit retro style, in big wide pixels of 16 colours, as a mosaic of LEGO plates in the colours one can buy, with a list of the plates of each colour to build it, or in big pixels of its own colours. For maps from Draw map, terrain, orthophotos and charts.", "inputs": [ "Picture" ], "outputs": [ "Picture", "Parts" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "style", "label": "Style", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "c64", "label": "8 bit retro style: big wide pixels in 16 colours" }, { "value": "lego", "label": "LEGO: a mosaic of round plates" }, { "value": "lego_square", "label": "LEGO: a mosaic of square plates with studs" }, { "value": "pixels", "label": "Big pixels in the colours of the picture" } ], "default": "c64" }, { "key": "across", "label": "Pixels or plates across", "kind": "text", "shape": "a string", "default": "160", "hint": "8 bit retro style has 160 wide pixels across; a LEGO base plate has 48 studs" }, { "key": "dither", "label": "Dithering", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes, as games of the time did" } ], "default": "no", "hint": "Mixes the colours of the palette into patterns, for colours it does not have" }, { "key": "scale", "label": "Each pixel as", "kind": "text", "shape": "a string", "default": "8", "hint": "How many pixels of the picture each pixel or plate becomes" } ] }, { "type": "NetworkBuilder", "title": "Build network", "group": "tool", "category": "Network", "description": "Makes lines into a network that routes can follow: ends close together become one junction, an end that stops just short of a line is joined to it, lines are split where they cross or meet on the same level (a bridge passes over a road on another level), and lines that lie twice are taken away. Each piece gets the part of the network it belongs to; loose ends close to a line and parts not joined to the rest come out on Problems. For OpenStreetMap and Overture roads before Shortest route, Service areas and Allocate to nearest.", "inputs": [ "Lines" ], "outputs": [ "Network", "Problems" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "tolerance", "label": "Join ends within", "kind": "text", "shape": "a string", "default": "0.5", "hint": "In metres: ends this close become one junction, and an end this close to another line is joined to it there" }, { "key": "split", "label": "Lines that cross", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "yes", "label": "Are split and joined where they cross" }, { "value": "no", "label": "Are joined only at their ends" } ], "default": "yes", "hint": "OpenStreetMap and Overture need splitting; NVDB is joined at its ends already" }, { "key": "level", "label": "Level", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Lines", "default": "", "hint": "Lines of different levels cross without being joined, as a bridge over a road: such as layer in OpenStreetMap. Empty: all on one level" }, { "key": "near", "label": "Report loose ends within", "kind": "text", "shape": "a string", "default": "2", "hint": "In metres: an end that is this close to another line, but not joined to it, is reported on Problems" } ] }, { "type": "ServiceAreas", "title": "Service areas", "group": "tool", "category": "Network", "description": "What can be reached along the network from the facilities, or to them, within some minutes or metres: an area for each limit, around the roads reached, and the roads themselves. For all the facilities together, or each on its own: how many live within ten minutes of a store, where a new one would reach the most.", "inputs": [ "Network", "Facilities" ], "outputs": [ "Areas", "Roads" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "breaks", "label": "Within", "kind": "text", "shape": "a string", "default": "5, 10, 15", "hint": "Minutes for the quickest, metres for the shortest, separated by commas: an area for each" }, { "key": "direction", "label": "Direction", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "to", "label": "Travelling to the facilities, as customers do" }, { "value": "from", "label": "Travelling from the facilities, as an ambulance does" } ], "default": "to", "hint": "Matters where there are one-way roads" }, { "key": "each", "label": "Areas", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "together", "label": "Of all the facilities together" }, { "value": "each", "label": "Of each facility on its own" } ], "default": "together" }, { "key": "shape", "label": "Shape", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "roads", "label": "Around the roads reached" }, { "value": "outline", "label": "The outline: what lies between the roads reached is within too, as on an isochrone map" } ], "default": "roads", "hint": "The outline fills the blocks and fields that the roads reached go round" }, { "key": "width", "label": "Area around the roads", "kind": "text", "shape": "a string", "default": "100", "hint": "In metres: how far from the roads reached the area reaches, for the houses and land along them" }, { "key": "rules", "label": "Rules of the road", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "own", "label": "My own, below" }, { "value": "osm", "label": "OpenStreetMap" }, { "value": "nvdb", "label": "NVDB from Lastkajen" } ], "default": "own", "hint": "Ready rules for OpenStreetMap or NVDB: one-way streets, roundabouts, speed limits and which roads may be used, by how one travels. My own: the conditions and speeds below" }, { "key": "mode", "label": "Travelling", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "car", "label": "By car" }, { "value": "bike", "label": "By bicycle" }, { "value": "walk", "label": "On foot" } ], "default": "car", "hint": "With ready rules: by car at the speed limits, by bicycle at 18 km/h, on foot at 5 km/h" }, { "key": "avoid", "label": "Keep away from", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "motorway", "label": "Motorways" }, { "value": "ferry", "label": "Ferries" }, { "value": "unpaved", "label": "Gravel and other unpaved roads" }, { "value": "toll", "label": "Tolls" } ], "default": "", "hint": "With ready rules, these roads are left out of the network" }, { "key": "cost", "label": "By", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "length", "label": "Shortest: the length" }, { "value": "time", "label": "Quickest: the time, by the speed" } ], "default": "length" }, { "key": "speed", "label": "Speed in km/h", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Along the line as it is drawn, for the quickest route: an attribute such as F_Hogst_225 in NVDB, or a number" }, { "key": "speed_against", "label": "Speed against the line", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Against the way the line is drawn, such as B_Hogst_225 in NVDB. Empty uses the speed along it" }, { "key": "default_speed", "label": "Speed where none is given", "kind": "text", "shape": "a string", "default": "50", "hint": "In km/h, where the speed is empty or 0" }, { "key": "along", "label": "May be travelled along the line when", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "A condition for one-way roads, such as F_ForbjudenFardriktning is null. Empty: always" }, { "key": "against", "label": "May be travelled against the line when", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Such as B_ForbjudenFardriktning is null. Empty: always" }, { "key": "snap", "label": "Farthest from the network, in metres", "kind": "text", "shape": "a string", "default": "500", "hint": "A point is put on the nearest place of the nearest line. One farther away than this is not reached" }, { "key": "tolerance", "label": "Line ends that meet, within", "kind": "text", "shape": "a string", "default": "0.01", "hint": "In metres. Lines are joined where their ends are this close, not where they only cross, as at a bridge" } ] }, { "type": "NetworkAllocation", "title": "Allocate to nearest", "group": "tool", "category": "Network", "description": "Gives each piece of the network, and each feature on Demand such as the addresses or the people of a population grid, the facility nearest along the network, with the time or distance to it. With the areas of each facility around its roads: the catchment of each store, school or health centre, to count the customers of each with Statistics.", "inputs": [ "Network", "Facilities", "Demand" ], "outputs": [ "Demand", "Roads", "Areas" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "direction", "label": "Direction", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "to", "label": "Travelling to the facilities, as customers do" }, { "value": "from", "label": "Travelling from the facilities, as an ambulance does" } ], "default": "to", "hint": "Matters where there are one-way roads" }, { "key": "reach", "label": "At most", "kind": "text", "shape": "a string", "default": "", "hint": "Minutes or metres: farther than this belongs to no facility. Empty: no limit" }, { "key": "width", "label": "Area around the roads", "kind": "text", "shape": "a string", "default": "100", "hint": "In metres: how far from the roads reached the area reaches, for the houses and land along them" }, { "key": "rules", "label": "Rules of the road", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "own", "label": "My own, below" }, { "value": "osm", "label": "OpenStreetMap" }, { "value": "nvdb", "label": "NVDB from Lastkajen" } ], "default": "own", "hint": "Ready rules for OpenStreetMap or NVDB: one-way streets, roundabouts, speed limits and which roads may be used, by how one travels. My own: the conditions and speeds below" }, { "key": "mode", "label": "Travelling", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "car", "label": "By car" }, { "value": "bike", "label": "By bicycle" }, { "value": "walk", "label": "On foot" } ], "default": "car", "hint": "With ready rules: by car at the speed limits, by bicycle at 18 km/h, on foot at 5 km/h" }, { "key": "avoid", "label": "Keep away from", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "motorway", "label": "Motorways" }, { "value": "ferry", "label": "Ferries" }, { "value": "unpaved", "label": "Gravel and other unpaved roads" }, { "value": "toll", "label": "Tolls" } ], "default": "", "hint": "With ready rules, these roads are left out of the network" }, { "key": "cost", "label": "By", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "length", "label": "Shortest: the length" }, { "value": "time", "label": "Quickest: the time, by the speed" } ], "default": "length" }, { "key": "speed", "label": "Speed in km/h", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Along the line as it is drawn, for the quickest route: an attribute such as F_Hogst_225 in NVDB, or a number" }, { "key": "speed_against", "label": "Speed against the line", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Against the way the line is drawn, such as B_Hogst_225 in NVDB. Empty uses the speed along it" }, { "key": "default_speed", "label": "Speed where none is given", "kind": "text", "shape": "a string", "default": "50", "hint": "In km/h, where the speed is empty or 0" }, { "key": "along", "label": "May be travelled along the line when", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "A condition for one-way roads, such as F_ForbjudenFardriktning is null. Empty: always" }, { "key": "against", "label": "May be travelled against the line when", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Such as B_ForbjudenFardriktning is null. Empty: always" }, { "key": "snap", "label": "Farthest from the network, in metres", "kind": "text", "shape": "a string", "default": "500", "hint": "A point is put on the nearest place of the nearest line. One farther away than this is not reached" }, { "key": "tolerance", "label": "Line ends that meet, within", "kind": "text", "shape": "a string", "default": "0.01", "hint": "In metres. Lines are joined where their ends are this close, not where they only cross, as at a bridge" } ] }, { "type": "Lod2Builder", "title": "LoD2 buildings from points", "group": "tool", "category": "Point clouds", "description": "3D models of the buildings on Buildings with the shapes of their roofs, fitted to the points of the cloud on Points that lie on them: flat, shed, gable or hipped, whichever fits best, with walls from the ground up to the edge of the roof. As the buildings of LoD2 in CityGML, for the 3D view, Render 3D scene and glTF for Blender. Each gets its ground, height, the shape of its roof and how far the points lie from it (roof_fit, in metres: large for roofs of other shapes).", "inputs": [ "Buildings", "Points", "Ground" ], "outputs": [ "Buildings" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "classes", "label": "Roof points", "kind": "text", "shape": "a string", "default": "", "hint": "The classes of the points on the roofs, such as 6 for buildings. Empty takes every point on the footprint that is not ground" }, { "key": "ground_classes", "label": "Ground points", "kind": "text", "shape": "a string", "default": "2", "hint": "Without a terrain model on Ground, the ground is taken from the points of these classes around the building" }, { "key": "inset", "label": "Leave out the edge", "kind": "text", "shape": "a string", "default": "0.5", "hint": "Metres inside the footprint, so that walls, eaves and trees at the edge do not count" }, { "key": "shapes", "label": "Roofs", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "fitted", "label": "The shape that fits the points best: flat, shed, gable or hipped" }, { "value": "flat", "label": "All flat, at the height of the roof" } ], "default": "fitted" }, { "key": "wall_colour", "label": "Walls", "kind": "text", "shape": "a string", "default": "#e8e0d0", "hint": "A colour, such as #e8e0d0" }, { "key": "roof_colour", "label": "Roofs coloured", "kind": "text", "shape": "a string", "default": "#9a4b3c", "hint": "A colour, such as #9a4b3c for tiles or #555555 for felt" } ] }, { "type": "TerrainModel", "title": "Terrain to 3D model", "group": "tool", "category": "3D models and views", "description": "Makes the heights of a raster on Heights into a 3D model of the terrain: a surface of triangles, with a picture on Picture, such as an orthophoto or a map from Draw map, draped over it. With a block under it if you like, to print or to set on a table. For glTF and Blender, the 3D view and Render 3D scene.", "inputs": [ "Heights", "Picture" ], "outputs": [ "Model" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "most", "label": "Points along a side", "kind": "text", "shape": "a string", "default": "500", "hint": "At most this many points of height along the longer side: more is finer and larger. Cells are skipped to keep to it" }, { "key": "exaggerate", "label": "Heights times", "kind": "text", "shape": "a string", "default": "1", "hint": "Such as 2 to make hills twice as high" }, { "key": "base", "label": "Base", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "none", "label": "None: only the surface" }, { "value": "block", "label": "A block under it, with sides and a bottom, to print or set on a table" } ], "default": "none" }, { "key": "depth", "label": "Block below the lowest", "kind": "text", "shape": "a string", "default": "", "hint": "In metres. Empty: a tenth of the height of the terrain, at least 1" }, { "key": "texture_most", "label": "Largest picture", "kind": "text", "shape": "a string", "default": "4096", "hint": "Pixels along a side of the picture draped over the terrain; larger is made smaller" } ] }, { "type": "BuildingMaker", "title": "Make buildings", "group": "tool", "category": "3D models and views", "description": "Makes buildings that look like buildings from their footprints on Buildings: as high as their height or storeys, with the roof their attributes give (flat, shed, gable or hipped), facades with a window in every bay of every storey, and the colours and materials of their kind: plaster for houses, glass for offices and shops, sheet metal for industry, stone for churches and plain walls for garages. The attributes of OpenStreetMap (building, building:levels, height, roof:shape, roof:height, roof:orientation, building:colour, roof:material), Overture (class, num_floors, roof_shape) and the property map (objekttyp) are recognised by themselves. They stand on the terrain on Terrain, or at 0. For the 3D view, Render 3D scene, glTF and the walk-through.", "inputs": [ "Buildings", "Terrain" ], "outputs": [ "Buildings" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "kind_by", "label": "Kind by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Buildings", "default": "", "hint": "What the building is, such as house, apartments, office, industrial, church or garage, or Bostad and Industri. Empty: building, class or objekttyp, whichever there is" }, { "key": "height_by", "label": "Height by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Buildings", "default": "", "hint": "The height to the top of the roof in metres. Empty: height, if there is one; else from the storeys" }, { "key": "levels_by", "label": "Storeys by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Buildings", "default": "", "hint": "The number of storeys below the roof. Empty: building:levels, num_floors or levels, whichever there is" }, { "key": "roof_by", "label": "Roof shape by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Buildings", "default": "", "hint": "flat, skillion, gabled, hipped, pyramidal and the other shapes of OpenStreetMap. Empty: roof:shape or roof_shape" }, { "key": "levels", "label": "Storeys when not known", "kind": "text", "shape": "a string", "default": "2", "hint": "For buildings with neither a height nor storeys" }, { "key": "storey", "label": "Height of a storey", "kind": "text", "shape": "a string", "default": "3", "hint": "In metres, from floor to floor" }, { "key": "roof", "label": "Roof when not known", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "Gable on houses of up to three storeys and small buildings, else flat" }, { "value": "flat", "label": "Flat" }, { "value": "gabled", "label": "Gable" }, { "value": "hipped", "label": "Hipped" } ], "default": "auto", "hint": "For buildings whose roof shape is not given" }, { "key": "pitch", "label": "Pitch of the roofs", "kind": "text", "shape": "a string", "default": "35", "hint": "In degrees, for sloping roofs whose height is not given" }, { "key": "windows", "label": "Windows", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Facades with a row of windows on each storey, as a texture. No: plain walls in the colours of their kind" } ] }, { "type": "ModelLightener", "title": "Lighten 3D model", "group": "tool", "category": "3D models and views", "description": "Makes a 3D model lighter, to be shown in realtime in a browser, a game engine or on a phone: fewer triangles where they show little, by meshoptimizer, to a number of triangles or a largest change in metres, with the edges of each object kept; textures no larger than needed; and the plain colours and textures put together into one texture, an atlas, so that the model is drawn in few calls. Each object keeps its attributes. Write it as glTF with the compression of meshoptimizer, as 3D Tiles or as a walk-through.", "inputs": [ "Model" ], "outputs": [ "Model" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "most", "label": "Triangles at most", "kind": "text", "shape": "a string", "default": "100000", "hint": "In all, shared among the objects by how many they have. Empty: as few as Largest change allows" }, { "key": "error", "label": "Largest change", "kind": "text", "shape": "a string", "default": "", "hint": "How far in metres the surface may move, such as 0.5. Empty: as far as it must to reach the number of triangles" }, { "key": "keep_edges", "label": "Keep the edges", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "The edges of each object and material stay where they are, so that the pieces still meet without gaps" }, { "key": "texture_most", "label": "Largest texture", "kind": "text", "shape": "a string", "default": "2048", "hint": "In pixels on the longer side; larger textures are made smaller. Empty: as they are" }, { "key": "atlas", "label": "One texture for the materials", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Plain colours and textures that do not repeat go into one texture, an atlas, so that the model is drawn in few calls. Textures that repeat, such as facades, and glass keep their own" } ] }, { "type": "OvertureDownloader", "title": "Overture Maps download", "group": "tool", "category": "Web", "description": "Fetches open map data from Overture Maps: buildings with their heights, places such as shops and schools with their categories, addresses, roads and paths, land use, water, and the borders of countries and municipalities. Only what reaches into a rectangle, or the extent of what comes in on Extent, is fetched, by reading only the parts of the large files on the web that hold it. Needs the internet.", "inputs": [ "Extent" ], "outputs": [ "Output" ], "outputs_follow_settings": true, "offered": true, "params": [ { "key": "kind", "label": "What", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "buildings/building", "label": "Buildings" }, { "value": "buildings/building_part", "label": "Building parts" }, { "value": "places/place", "label": "Places: shops, schools, restaurants and more" }, { "value": "addresses/address", "label": "Addresses" }, { "value": "transportation/segment", "label": "Roads, paths and railways" }, { "value": "transportation/connector", "label": "Where roads join" }, { "value": "base/land_use", "label": "Land use" }, { "value": "base/land_cover", "label": "Land cover" }, { "value": "base/land", "label": "Land: forests, rocks, islands and more" }, { "value": "base/water", "label": "Water" }, { "value": "base/infrastructure", "label": "Infrastructure: bridges, towers, power lines and more" }, { "value": "base/bathymetry", "label": "Depths of the sea" }, { "value": "divisions/division_area", "label": "Areas of countries, regions and municipalities" }, { "value": "divisions/division", "label": "Places of countries, regions, towns" }, { "value": "divisions/division_boundary", "label": "Borders" } ], "default": "buildings/building", "hint": "Tick one or more. Each feature gets the attribute kind, such as buildings/building" }, { "key": "bbox", "label": "Rectangle", "kind": "text", "shape": "a string", "default": "", "hint": "West, south, east, north in degrees, such as 11.95, 57.69, 11.99, 57.71. Not needed when something comes in on Extent" }, { "key": "max_km2", "label": "Largest area in km²", "kind": "text", "shape": "a string", "default": "25", "hint": "A larger rectangle is made smaller around its middle to this size. The files are large, and each part of one that reaches into the rectangle is fetched" }, { "key": "cut", "label": "Large features", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "cut", "label": "Cut at the edge of the area" }, { "value": "whole", "label": "Whole, when they reach into the area" } ], "default": "cut", "hint": "Land cover, land use, water and borders can be very large: cut, only the part within the area comes along" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:3006", "hint": "Of what comes out. Overture Maps is in WGS 84" }, { "key": "release", "label": "Release", "kind": "text", "shape": "a string", "default": "", "hint": "Such as 2026-10-21.0. Empty takes the latest; a release is kept for a few months" }, { "key": "catalog", "label": "Catalog", "kind": "text", "shape": "a string", "default": "https://stac.overturemaps.org", "hint": "Where the catalog of the releases is" } ] }, { "type": "RasterSampler", "title": "Values from raster", "group": "tool", "category": "Raster", "description": "Gives each feature the value of the raster where it lies: the height of the terrain at each address, the land cover under each tree, the noise at each school. The value of the cell, or between the four nearest cells for heights. A line or an area gets the value at a point on it; Zonal statistics gives the mean and more over each area.", "inputs": [ "Features", "Raster" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "value", "hint": "Gets the value. A raster with several bands gives name_2, name_3 and so on too" }, { "key": "method", "label": "Value", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "cell", "label": "The cell it lies in" }, { "value": "bilinear", "label": "Between the four nearest cells (bilinear), for heights and other smooth values" } ], "default": "cell", "hint": "The cell it lies in suits classes, such as land cover" } ] }, { "type": "ZonalStatistics", "title": "Zonal statistics", "group": "tool", "category": "Raster", "description": "Counts the cells of the raster within each area: how many, the mean, the smallest and largest, sum, median, spread and the most common value, and for classes, such as land cover, the share or area of each. A cell counts when its middle lies in the area. The share of forest in each municipality, the mean height of each property, the people in each district from a population grid. A series of pictures over time, such as from Read satellite bands, gives each area a row for each time, with the time: the NDVI of each field through a summer.", "inputs": [ "Zones", "Raster" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "stats", "label": "Statistics", "kind": "text", "shape": "a string", "default": "count, mean, min, max", "hint": "Any of count, mean, min, max, sum, median, std, range, majority and area, separated by commas" }, { "key": "classes", "label": "Each value apart", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "", "label": "No" }, { "value": "share", "label": "The share of each value, in percent" }, { "value": "area", "label": "The area of each value" } ], "default": "", "hint": "For classes, such as land cover: an attribute for each value, such as share_3 for the share of the cells with 3" }, { "key": "prefix", "label": "Before the names", "kind": "text", "shape": "a string", "default": "", "hint": "Such as dem_, to give dem_mean and dem_max" } ] }, { "type": "TerrainAnalyzer", "title": "Slope and aspect", "group": "tool", "category": "Terrain", "description": "Measures the terrain from a grid of heights, cell by cell: the slope in degrees or percent, the aspect (which way it faces), the position against the surroundings, which picks out ridges and valleys (TPI), or the roughness.", "inputs": [ "Heights" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "measure", "label": "Measure", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "slope", "label": "Slope in degrees" }, { "value": "percent", "label": "Slope in percent" }, { "value": "aspect", "label": "Aspect: the way the slope faces, degrees from north" }, { "value": "tpi", "label": "Position: above or below the surroundings (TPI)" }, { "value": "roughness", "label": "Roughness: the largest difference to a neighbour" } ], "default": "slope" }, { "key": "radius", "label": "Surroundings", "kind": "text", "shape": "a string", "default": "5", "hint": "For the position: how many cells out the surroundings reach. Ridges and valleys show at about their width" }, { "key": "zfactor", "label": "Heights times", "kind": "text", "shape": "a string", "default": "1", "hint": "When the heights are in other units than the coordinates, such as feet on metres: 0.3048" } ] }, { "type": "RasterClipper", "title": "Clip raster", "group": "tool", "category": "Raster", "description": "Keeps the cells of a raster inside the areas on Areas, or outside them, and cuts the raster to them. A grid of values or a picture. To reproject a raster, use Reproject.", "inputs": [ "Raster", "Areas" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "keep", "label": "Keep the cells", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "inside", "label": "Inside the areas" }, { "value": "outside", "label": "Outside the areas" } ], "default": "inside", "hint": "A cell is inside when its middle is" }, { "key": "crop", "label": "The raster", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "yes", "label": "Cut it to the areas" }, { "value": "no", "label": "Keep the size of the raster" } ], "default": "yes" } ] }, { "type": "RasterPolygonizer", "title": "Raster to areas", "group": "tool", "category": "Raster", "description": "Makes areas of the cells with the same value that touch, with the value as an attribute: land cover, zones of noise or of a viewshed as polygons. For a raster of measures, such as heights, make classes first with Reclassify raster.", "inputs": [ "Raster" ], "outputs": [ "Areas" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "value", "hint": "The value of the cells of each area" }, { "key": "connect", "label": "Cells belong together", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "4", "label": "By their sides" }, { "value": "8", "label": "By their sides and corners" } ], "default": "4", "hint": "Cells with the same value that touch become one area" }, { "key": "merge", "label": "Areas", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "An area for each patch" }, { "value": "yes", "label": "One feature for each value" } ], "default": "no" } ] }, { "type": "Rasterizer", "title": "Features to raster", "group": "tool", "category": "Raster", "description": "Makes a raster of features: each cell gets the value of the area its middle lies in, the line that passes through it or the point in it. A value from an attribute or expression, or how many features. The cells are of a size, or those of a raster connected to Like, so that it can be counted with that one.", "inputs": [ "Features", "Like" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "value", "label": "Value", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Features", "default": "1", "hint": "The value of the cells of each feature: a number, an attribute or an expression" }, { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "10", "hint": "In the units of the coordinate system, such as metres. A raster connected to Like gives its cells instead" }, { "key": "many", "label": "Where several features are", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "last", "label": "The last feature" }, { "value": "first", "label": "The first feature" }, { "value": "max", "label": "The largest value" }, { "value": "min", "label": "The smallest value" }, { "value": "sum", "label": "The sum" }, { "value": "count", "label": "How many features" } ], "default": "last" }, { "key": "background", "label": "Other cells", "kind": "text", "shape": "a string", "default": "", "hint": "The value of cells no feature reaches. Empty leaves them empty" } ] }, { "type": "RasterReclassifier", "title": "Reclassify raster", "group": "tool", "category": "Raster", "description": "Gives the cells new values by ranges: heights into bands, slopes into classes, land cover codes into groups. From, to and the new value, the first range that fits.", "inputs": [ "Raster" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "ranges", "label": "From, to and new value", "kind": "list", "shape": "a list of [from, to, value]; an empty from or to has no end", "port": "Raster", "default": "", "hint": "From and to are both in the range, and the first range that fits is used: 0 to 5 gives 1, 5 to 15 gives 2. An empty from or to has no end" }, { "key": "otherwise", "label": "Values in no range", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "empty", "label": "Make them empty" }, { "value": "keep", "label": "Keep their value" } ], "default": "empty" } ] }, { "type": "DistanceRaster", "title": "Distance raster", "group": "tool", "category": "Raster", "description": "A raster of the distance from each cell to the nearest feature, as far as a distance: to the nearest road, school, shore or stop. Exact from the middle of the cells, in the units of the coordinate system.", "inputs": [ "Features", "Like" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "10", "hint": "In the units of the coordinate system, such as metres. A raster connected to Like gives its cells instead" }, { "key": "reach", "label": "As far as", "kind": "text", "shape": "a string", "default": "1000", "hint": "How far from the features the raster reaches; cells farther away are empty" } ] }, { "type": "KernelDensity", "title": "Heat map", "group": "tool", "category": "Raster", "description": "A heat map of points as a raster: each point, such as an accident, a visit or a house, spread over the cells within a radius, most at the point and nothing at the radius (the quartic kernel), so that where many lie close the values are high. Each point counts as one, or as the number in an attribute, such as the people living there. Per square kilometre, per hectare, or the weighted sum within the radius. Draw it with a colour ramp in Draw map.", "inputs": [ "Points", "Like" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "radius", "label": "Radius", "kind": "text", "shape": "a string", "default": "500", "hint": "How far each point spreads, in the units of the coordinate system, such as metres. Larger gives a smoother map" }, { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "50", "hint": "In the units of the coordinate system. A raster connected to Like gives its cells instead" }, { "key": "weight", "label": "Weight", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Points", "default": "", "hint": "An attribute that each point counts as, such as the number of people at an address. Empty: each point counts as one" }, { "key": "unit", "label": "Density", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "km2", "label": "Per square kilometre" }, { "value": "ha", "label": "Per hectare" }, { "value": "unit", "label": "Per square unit of the coordinate system" }, { "value": "sum", "label": "Weighted sum within the radius" } ], "default": "km2" } ] }, { "type": "Viewshed", "title": "Visible area", "group": "tool", "category": "Terrain", "description": "What can be seen from places on the terrain (a viewshed): for each cell, how many of the places on Places see it, with the eye a height above the ground and what is seen a height above it, as far as a distance, with the curve of the Earth. From where a wind turbine can be seen, what a lookout tower shows.", "inputs": [ "Heights", "Places" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "eye", "label": "Eye above the ground", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Places", "default": "1.7", "hint": "How high the eye is at each place, in metres: a number, or an attribute such as the height of a mast" }, { "key": "target", "label": "Seen above the ground", "kind": "text", "shape": "a string", "default": "0", "hint": "How high what is to be seen is, such as 0 for the ground or 150 for the top of a wind turbine" }, { "key": "radius", "label": "As far as", "kind": "text", "shape": "a string", "default": "5000", "hint": "How far the eye reaches, in metres" }, { "key": "result", "label": "Each cell", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "count", "label": "How many of the places see each cell" }, { "value": "visible", "label": "1 where any of them sees, 0 elsewhere" } ], "default": "count" }, { "key": "curvature", "label": "The curve of the Earth", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "yes", "label": "Counted, with the bending of light" }, { "value": "no", "label": "Not counted" } ], "default": "yes", "hint": "Matters over kilometres: 5 km away the ground is 1.7 m lower" } ] }, { "type": "PointInterpolator", "title": "Interpolate points to raster", "group": "tool", "category": "Raster", "description": "Makes a raster of values between points: heights from measured points, depths from soundings, noise or temperature from where it was measured. Linear in triangles (TIN), smooth by natural neighbours, by inverse distance, or the nearest point, at a cell size or on the cells of a raster on Like.", "inputs": [ "Points", "Like" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "value", "label": "Value", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Points", "default": "", "hint": "Empty takes the height of the points. Or an attribute or expression, such as depth or the noise measured" }, { "key": "method", "label": "Between the points", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "tin", "label": "Linear in triangles between the points (TIN)" }, { "value": "natural", "label": "Natural neighbours: smooth, through the points" }, { "value": "idw", "label": "Inverse distance: the nearest points, weighted" }, { "value": "nearest", "label": "The nearest point" } ], "default": "tin" }, { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "10", "hint": "In the units of the coordinate system, such as metres. A raster connected to Like gives its cells instead" }, { "key": "neighbours", "label": "Nearest points", "kind": "text", "shape": "a string", "default": "12", "hint": "For inverse distance: how many of the nearest points each cell takes" }, { "key": "power", "label": "Power", "kind": "text", "shape": "a string", "default": "2", "hint": "For inverse distance: higher lets the nearest points count for more" }, { "key": "reach", "label": "As far as", "kind": "text", "shape": "a string", "default": "", "hint": "Cells farther than this from every point are left empty. Empty: no limit. The triangles reach only between the points" } ] }, { "type": "RasterResampler", "title": "Resample raster", "group": "tool", "category": "Raster", "description": "Gives a raster other cells: a cell size, or the cells of a raster on Like, so that two rasters line up cell by cell for Raster calculator. The cell under the middle for classes, between the nearest for heights, or the mean or most common value to make it coarser.", "inputs": [ "Raster", "Like" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "10", "hint": "The new size of the cells. A raster connected to Like gives its cells instead, so that the two line up cell by cell" }, { "key": "method", "label": "The new value", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "nearest", "label": "The cell under the middle: for classes" }, { "value": "bilinear", "label": "Between the four nearest cells: for heights and measures" }, { "value": "mean", "label": "The mean of the cells within: to make it coarser" }, { "value": "majority", "label": "The most common value within: classes made coarser" } ], "default": "nearest" } ] }, { "type": "RasterFiller", "title": "Fill empty cells", "group": "tool", "category": "Raster", "description": "Fills the empty cells of a raster: holes in a terrain model under water or buildings, gaps between scans. From the cells around, weighted by how near they are, or with one value.", "inputs": [ "Raster" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "method", "label": "Fill", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "nearby", "label": "From the cells around, weighted by how near" }, { "value": "value", "label": "With one value" } ], "default": "nearby" }, { "key": "reach", "label": "As far as", "kind": "text", "shape": "a string", "default": "10", "hint": "How many cells away the values are taken from. Holes wider than twice this stay empty in the middle" }, { "key": "value", "label": "Value", "kind": "text", "shape": "a string", "default": "0", "hint": "For one value: what every empty cell gets" } ] }, { "type": "Watershed", "title": "Catchments and streams", "group": "tool", "category": "Terrain", "description": "Follows the water over a terrain model: the catchment above each outlet on Outlets, or the areas that drain off the terrain, as polygons with their area; the streams, with their order (Strahler) and the land they drain; and the flow, the area upstream of each cell, as a raster. Hollows are filled first, so that all water runs off.", "inputs": [ "Heights", "Outlets" ], "outputs": [ "Catchments", "Streams", "Flow" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "snap", "label": "Move outlets", "kind": "text", "shape": "a string", "default": "50", "hint": "An outlet is moved to the cell with the most water running through it within this distance, so that it lies on the stream" }, { "key": "stream", "label": "Streams from", "kind": "text", "shape": "a string", "default": "1", "hint": "Square kilometres: a cell with water from this much land or more is part of a stream" }, { "key": "smallest", "label": "Without outlets, smallest", "kind": "text", "shape": "a string", "default": "1", "hint": "Square kilometres: without outlets on Outlets, each area that drains to the edge of the terrain this large or larger is a catchment" } ] }, { "type": "SceneReader", "title": "Read satellite bands", "group": "tool", "category": "Raster", "description": "Reads the bands of the satellite pictures that STAC search found, such as Sentinel-2 or Landsat, onto one grid over the area on Extent: a picture for each time, with the names of its bands, in the coordinate system and cell size you choose. Only the part of each file that covers the area is fetched over the web. The values are scaled to reflectance; bands of classes, such as scl, are kept as they are.", "inputs": [ "Items", "Extent" ], "outputs": [ "Rasters" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "bands", "label": "Bands", "kind": "text", "shape": "a string", "default": "red, nir, scl", "hint": "The files of the items to read, by name, separated by commas: red, green, blue, nir, swir16 and scl at Element 84; B04, B08 and SCL at Copernicus" }, { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "10", "hint": "In metres. Sentinel-2 has 10 m for red, green, blue and nir, 20 m for the others" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "", "hint": "Of the grid. Empty: that of Extent, or SWEREF 99 TM when it is in degrees" }, { "key": "bbox", "label": "Area in degrees", "kind": "text", "shape": "a string", "default": "", "hint": "West, south, east and north, when nothing is connected to Extent" }, { "key": "scale", "label": "Scale", "kind": "text", "shape": "a string", "default": "0.0001", "hint": "The values of the bands are multiplied by it, to reflectance from 0 to 1. Classes, such as scl, are not" }, { "key": "offset", "label": "Offset", "kind": "text", "shape": "a string", "default": "0", "hint": "Added after the scale. Sentinel-2 from 2022 at Copernicus has −0.1; Element 84 has already taken it away" }, { "key": "most", "label": "At most pictures", "kind": "text", "shape": "a string", "default": "20", "hint": "Spread over the time, the least cloudy in each part; each is read over the web" } ] }, { "type": "CloudMasker", "title": "Mask clouds", "group": "tool", "category": "Raster", "description": "Empties the cells of clouds, their shadows, cirrus, and if asked snow and water, in every band of satellite pictures: by the scene classes (scl) of Sentinel-2 or the bits of QA_PIXEL of Landsat. The mask can be grown at the edges of clouds, and pictures with too little left are left out. Each picture gets the share that is clear.", "inputs": [ "Rasters" ], "outputs": [ "Rasters" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "mask", "label": "Mask", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "cloud", "label": "Clouds" }, { "value": "shadow", "label": "Cloud shadows" }, { "value": "cirrus", "label": "Thin cirrus" }, { "value": "snow", "label": "Snow and ice" }, { "value": "water", "label": "Water" } ], "default": "cloud, shadow, cirrus", "hint": "Cells of these become empty in every band" }, { "key": "grow", "label": "Grow the mask by", "kind": "text", "shape": "a string", "default": "0", "hint": "Cells around each masked cell, for the edges of clouds" }, { "key": "least", "label": "Least clear share", "kind": "text", "shape": "a string", "default": "0", "hint": "In percent: pictures with less of the area left are left out" } ] }, { "type": "SpectralIndex", "title": "Spectral index", "group": "tool", "category": "Raster", "description": "Works out an index of the bands of each picture, such as NDVI for vegetation, NDWI for water, NDMI for moisture, NDBI for built-up land or NBR for burnt land, or an expression of your own with the names of the bands. The bands are found by their names in Sentinel-2 and Landsat alike. The index becomes the first band, and the others are kept or left out.", "inputs": [ "Rasters" ], "outputs": [ "Rasters" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "index", "label": "Index", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "ndvi", "label": "NDVI: vegetation, (nir − red) / (nir + red)" }, { "value": "ndwi", "label": "NDWI: water, (green − nir) / (green + nir)" }, { "value": "ndmi", "label": "NDMI: moisture, (nir − swir16) / (nir + swir16)" }, { "value": "ndbi", "label": "NDBI: built-up, (swir16 − nir) / (swir16 + nir)" }, { "value": "nbr", "label": "NBR: burnt, (nir − swir22) / (nir + swir22)" }, { "value": "evi", "label": "EVI: vegetation where it is dense" }, { "value": "savi", "label": "SAVI: vegetation where the soil shows" }, { "value": "own", "label": "An expression of my own" } ], "default": "ndvi", "hint": "The bands are found by their names, for Sentinel-2 and Landsat alike" }, { "key": "expression", "label": "Expression", "kind": "text", "shape": "a string", "default": "", "hint": "With the names of the bands, such as (nir - red) / (nir + red)" }, { "key": "name", "label": "Name of the band", "kind": "text", "shape": "a string", "default": "", "hint": "Empty: the name of the index" }, { "key": "keep", "label": "The other bands", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "keep", "label": "Kept, with the index added" }, { "value": "drop", "label": "Left out: only the index" } ], "default": "keep" } ] }, { "type": "TemporalComposite", "title": "Composite over time", "group": "tool", "category": "Raster", "description": "Puts satellite pictures of many times together into one, cell by cell: the median, which leaves out clouds that slipped through, the mean, the highest, the lowest, or all bands from the greenest time. For all the time at once, or a picture for each month, season or year. Count tells how many clear values each cell had.", "inputs": [ "Rasters" ], "outputs": [ "Composite", "Count" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "method", "label": "Each cell gets", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "median", "label": "Median: clouds and shadows that slipped through fall away" }, { "value": "mean", "label": "Mean" }, { "value": "max", "label": "Highest" }, { "value": "min", "label": "Lowest" }, { "value": "greenest", "label": "Greenest: all bands from the time with the highest NDVI" } ], "default": "median", "hint": "Of the values it has over the time" }, { "key": "period", "label": "Period", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "all", "label": "All of it" }, { "value": "month", "label": "Each month" }, { "value": "season", "label": "Each season" }, { "value": "year", "label": "Each year" } ], "default": "all", "hint": "A picture for each, named by its first day" } ] }, { "type": "TopologyChecker", "title": "Check topology", "group": "tool", "category": "Geometry", "description": "Finds where areas that should lie edge to edge, such as properties or zones, overlap one another, and the gaps between them. Each overlap comes out with the two areas it lies in, and each gap as an area; the areas get how many others they overlap. With a boundary on Boundary, such as the municipality the areas should fill, gaps that open to the outside are found too, and what reaches beyond it comes out on Beyond. Overlaps and gaps smaller than a size are left out as noise, and holes larger than a size are taken to be meant.", "inputs": [ "Areas", "Boundary" ], "outputs": [ "Areas", "Overlaps", "Gaps", "Beyond" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "id", "label": "Name the areas by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Areas", "default": "", "hint": "An attribute such as a property id. Empty: their numbers from 1" }, { "key": "smallest", "label": "Leave out smaller than", "kind": "text", "shape": "a string", "default": "0", "hint": "Overlaps and gaps of less area than this are not reported: the noise of coordinates" }, { "key": "largest_gap", "label": "Gaps up to", "kind": "text", "shape": "a string", "default": "", "hint": "Holes larger than this are taken to be meant, such as a lake. Empty: every hole is a gap" } ] }, { "type": "SliverEliminator", "title": "Eliminate slivers", "group": "tool", "category": "Geometry", "description": "Merges small or thin areas, as overlays leave behind, into a neighbour: the one they share the longest border with, or the largest. The neighbour keeps its attributes. A sliver is smaller than an area, thinner than a roundness, or either. Slivers without a neighbour go to Left.", "inputs": [ "Areas" ], "outputs": [ "Areas", "Left" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "area", "label": "Smaller than", "kind": "text", "shape": "a string", "default": "", "hint": "Areas of less than this are slivers, in square units of the coordinate system" }, { "key": "thin", "label": "Or thinner than", "kind": "text", "shape": "a string", "default": "", "hint": "From 0 to 1: how round an area is, 1 for a circle. A long thin strip is below 0.1" }, { "key": "into", "label": "Merged into", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "border", "label": "The neighbour it shares the longest border with" }, { "value": "largest", "label": "The largest neighbour" } ], "default": "border", "hint": "It keeps the attributes of that one" } ] }, { "type": "LineMerger", "title": "Merge lines", "group": "tool", "category": "Geometry", "description": "Merges lines that meet end to end into one line, where exactly two of them meet: the pieces of a street between crossings, or a river cut into many. Only lines with the same values of the attributes chosen are merged, and only those attributes are kept, with how many lines each is made of.", "inputs": [ "Lines" ], "outputs": [ "Merged", "Other" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "group_by", "label": "Group by", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Lines", "default": "", "hint": "Only lines with the same values are merged, such as the name of a street. Empty merges all" }, { "key": "tolerance", "label": "Ends within", "kind": "text", "shape": "a string", "default": "0", "hint": "Ends this close count as the same point. 0: only ends that are equal" } ] }, { "type": "PointsAlongLines", "title": "Points along lines", "group": "tool", "category": "Geometry", "description": "Puts points along each line at a distance from one another, from its start, and at its end if asked: stations along a road, or where to take a profile. Each point has the attributes of its line, the distance along it and the direction of the line there, clockwise from north.", "inputs": [ "Lines" ], "outputs": [ "Points" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "distance", "label": "Every", "kind": "text", "shape": "a string", "default": "100", "hint": "A point at this distance along each line, from its start" }, { "key": "start", "label": "First at", "kind": "text", "shape": "a string", "default": "0", "hint": "The distance from the start of the first point" }, { "key": "end", "label": "A point at the end", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Also where the line ends" } ] }, { "type": "LineOffsetter", "title": "Offset lines", "group": "tool", "category": "Geometry", "description": "Moves lines to the side by a distance, left of their direction or right with a negative number, keeping their shape: the edges of a road from its centre line, or two directions of traffic side by side. The distance can be an attribute or an expression.", "inputs": [ "Lines" ], "outputs": [ "Lines", "Other" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "distance", "label": "Distance", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Lines", "default": "5", "hint": "To the left of the direction of the line; a negative number to the right. Or an attribute, such as half the width of a road" } ] }, { "type": "LineLocator", "title": "Locate along lines", "group": "tool", "category": "Geometry", "description": "Linear referencing: finds for each point the nearest line within a distance, and gives it the key of that line, how far along it the point is from its start (in metres, or as a share from 0 to 1) and how far to the side, + to the left. Such as where accidents lie along roads.", "inputs": [ "Points", "Lines" ], "outputs": [ "Located", "Unmatched" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "key", "label": "Line key", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Lines", "default": "", "hint": "Such as the id of a road, which each point gets. Empty: the number of the line" }, { "key": "within", "label": "Within", "kind": "text", "shape": "a string", "default": "50", "hint": "Points further from every line are left out" }, { "key": "measure", "label": "Measure as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "metres", "label": "Metres from the start" }, { "value": "share", "label": "A share from 0 at the start to 1 at the end" } ], "default": "metres" } ] }, { "type": "EventPlacer", "title": "Place along lines", "group": "tool", "category": "Geometry", "description": "Linear referencing: places events that say where they are along a line, such as a speed limit from metre 120 to 860 of a road, as points or as the stretches of the line between from and to. The lines are found by a key, and the measures are metres or shares from 0 to 1, as in NVDB. They can be moved to the side.", "inputs": [ "Events", "Lines" ], "outputs": [ "Placed", "Unplaced" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "event_key", "label": "Line key of the events", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Events", "default": "", "hint": "Which line each event is on, such as a road id" }, { "key": "line_key", "label": "Line key of the lines", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Lines", "default": "", "hint": "The same, among the attributes of the lines" }, { "key": "from", "label": "From", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Events", "default": "", "hint": "Where the event is along the line, or where a stretch begins" }, { "key": "to", "label": "To", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Events", "default": "", "hint": "Where a stretch ends. Empty: the events are points" }, { "key": "measure", "label": "Measures are", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "metres", "label": "Metres from the start" }, { "value": "share", "label": "A share from 0 at the start to 1 at the end" } ], "default": "metres" }, { "key": "offset", "label": "To the side", "kind": "text", "shape": "a string", "default": "0", "hint": "Moves points and stretches to the left of the line, or the right with a negative number" } ] }, { "type": "Pivoter", "title": "Pivot", "group": "tool", "category": "Attributes", "description": "Turns a long table wide: a row for each group, and a column for each value of an attribute, such as a column for each year with the population in it. When a group has several values for a column, the first, the sum, the mean, the lowest, the highest or how many.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "group_by", "label": "A row for each", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Such as the municipality code" }, { "key": "names", "label": "Columns from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Each value becomes a column, such as each year" }, { "key": "values", "label": "Values from", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "What goes in the columns, such as the population" }, { "key": "how", "label": "When there are several", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "first", "label": "The first value" }, { "value": "sum", "label": "The sum" }, { "value": "mean", "label": "The mean" }, { "value": "min", "label": "The lowest" }, { "value": "max", "label": "The highest" }, { "value": "count", "label": "How many" } ], "default": "first" }, { "key": "prefix", "label": "Before the names", "kind": "text", "shape": "a string", "default": "", "hint": "Such as y_, so that a year becomes y_2026" } ] }, { "type": "Unpivoter", "title": "Unpivot", "group": "tool", "category": "Attributes", "description": "Turns a wide table long: the attributes chosen become rows, each with the name of the attribute and its value, and the other attributes on every row. Such as a column for each year made into a row for each year, for a chart or a database.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attributes", "label": "Attributes to rows", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Each becomes a row of its own, such as one for each year" }, { "key": "name", "label": "Name of the name column", "kind": "text", "shape": "a string", "default": "name", "hint": "Gets the name of the attribute" }, { "key": "value", "label": "Name of the value column", "kind": "text", "shape": "a string", "default": "value", "hint": "Gets its value" }, { "key": "strip", "label": "Take away from the names", "kind": "text", "shape": "a string", "default": "", "hint": "Such as y_, so that y_2026 becomes 2026" }, { "key": "empty", "label": "Empty values", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "keep", "label": "Kept as rows" }, { "value": "drop", "label": "Left out" } ], "default": "keep" } ] }, { "type": "CoordinateParser", "title": "Parse coordinates", "group": "tool", "category": "Geometry", "description": "Makes points of coordinates written as text, as people and programs write them: degrees, minutes and seconds (57°42'31\"N 11°58'25\"E), degrees and minutes (N 57° 42.520' E 11° 58.418'), decimal degrees with a point or a comma, or metres such as SWEREF 99 TM. The letters N, S, E and W, and Ö and V, say which is which; a third number is a height. What cannot be read goes to Failed with the reason.", "inputs": [ "Input" ], "outputs": [ "Points", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "Coordinates in", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Text such as 57°42'31\"N 11°58'25\"E, N 57° 42.520' E 11° 58.418', 57.7087, 11.9737 or 6400123 319456" }, { "key": "order", "label": "Order", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "Auto: by the letters, or as written below" }, { "value": "yx", "label": "Latitude or north first" }, { "value": "xy", "label": "Longitude or east first" } ], "default": "auto", "hint": "Without letters such as N and E: in degrees, latitude first unless a value is over 90; in metres, the larger is north" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:4326", "hint": "Of the coordinates: EPSG:4326 for degrees, EPSG:3006 for SWEREF 99 TM" } ] }, { "type": "ProfileMaker", "title": "Profile along line", "group": "tool", "category": "Terrain", "description": "The height of a surface, such as a terrain model, along each line: a point every few metres with its distance along the line and its height, for a chart of the profile, and the line itself in 3D with its length over the ground, lowest and highest point, and how much it climbs and descends. A path, a road or a planned pipe.", "inputs": [ "Lines", "Surface" ], "outputs": [ "Profiles", "Points" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "step", "label": "Every", "kind": "text", "shape": "a string", "default": "", "hint": "Metres between the points of the profile. Empty: the size of a cell of the surface" }, { "key": "method", "label": "Value", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "bilinear", "label": "Between the four nearest cells" }, { "value": "cell", "label": "Of the cell" } ], "default": "bilinear" } ] }, { "type": "VolumeCalculator", "title": "Volume between surfaces", "group": "tool", "category": "Terrain", "description": "How much lies above and below: the volume between a surface and a reference surface, such as the ground before and after, or a level, such as the bottom of a pit. Cut and fill in cubic metres, for each area connected to Areas or for the whole surface, and the difference cell by cell as a raster.", "inputs": [ "Surface", "Reference", "Areas" ], "outputs": [ "Volumes", "Difference" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "level", "label": "Level", "kind": "text", "shape": "a string", "default": "0", "hint": "The height to measure from when nothing is connected to Reference, such as the bottom of a pit or the level of a lake" } ] }, { "type": "HeightTransformer", "title": "Change height system", "group": "tool", "category": "Geometry", "description": "Changes heights from one height system to another with the grid of the geoid: from heights above the ellipsoid, as GNSS and many point clouds give them, to heights above sea level in RH 2000, or back, or between others such as NN2000 and EGM2008. The heights of the coordinates, of a point cloud, of a grid of heights and of a 3D model. The places stay as they are; Reproject moves them.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "from", "label": "From", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "ellipsoid", "label": "Above the ellipsoid, as from GNSS" }, { "value": "5613", "label": "RH 2000, Sweden" }, { "value": "5718", "label": "RH 70, Sweden" }, { "value": "5941", "label": "NN2000, Norway" }, { "value": "3900", "label": "N2000, Finland" }, { "value": "5799", "label": "DVR90, Denmark" }, { "value": "7837", "label": "DHHN2016, Germany" }, { "value": "5773", "label": "EGM96, the world" }, { "value": "3855", "label": "EGM2008, the world" }, { "value": "5703", "label": "NAVD88, North America" }, { "value": "code", "label": "Another, by its EPSG code" } ], "default": "ellipsoid", "hint": "The height system the heights are in now" }, { "key": "from_code", "label": "From, EPSG code", "kind": "text", "shape": "a string", "default": "", "hint": "With Another: the code of a vertical system, such as 5613" }, { "key": "to", "label": "To", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "ellipsoid", "label": "Above the ellipsoid, as from GNSS" }, { "value": "5613", "label": "RH 2000, Sweden" }, { "value": "5718", "label": "RH 70, Sweden" }, { "value": "5941", "label": "NN2000, Norway" }, { "value": "3900", "label": "N2000, Finland" }, { "value": "5799", "label": "DVR90, Denmark" }, { "value": "7837", "label": "DHHN2016, Germany" }, { "value": "5773", "label": "EGM96, the world" }, { "value": "3855", "label": "EGM2008, the world" }, { "value": "5703", "label": "NAVD88, North America" }, { "value": "code", "label": "Another, by its EPSG code" } ], "default": "5613" }, { "key": "to_code", "label": "To, EPSG code", "kind": "text", "shape": "a string", "default": "", "hint": "With Another: the code of a vertical system" }, { "key": "fetch", "label": "Fetch a missing grid", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "From cdn.proj.org, when the grid of the geoid that is needed is not among those that come with Ographis: Sweden, Norway and EGM96" } ] }, { "type": "OutlineFromAbove", "title": "Outline from above", "group": "tool", "category": "3D models and views", "description": "Makes 3D objects, such as walls, doors and furniture read from IFC, into areas in 2D: the shadow each object casts when lit from straight above, as one area with all that sticks out, such as the handle of a door. Seen from a height, such as 1 m above the floor of the storey, what is above it is left out, so that the wall over a door leaves a gap, as in a plan. Or only what the cut at that height goes through.", "inputs": [ "Input" ], "outputs": [ "Outlines", "Other" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "cut", "label": "Seen from the height", "kind": "text", "shape": "a string", "default": "", "hint": "In metres, such as 1 to leave out what is above doors and windows. Empty sees all of the object, as its shadow from above" }, { "key": "height_from", "label": "Height from", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "storey", "label": "The floor of its storey, as IFC gives it" }, { "value": "bottom", "label": "The lowest point of the object" }, { "value": "absolute", "label": "The heights of the coordinate system" } ], "default": "storey", "hint": "An object without a storey is measured from its lowest point" }, { "key": "shows", "label": "Shows", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "below", "label": "All of the object below the cut, seen from above" }, { "value": "section", "label": "Only what the cut goes through, as in a plan drawing" } ], "default": "below", "hint": "Below a window, the wall under it is there; through the cut, the window leaves a gap" }, { "key": "min_area", "label": "Smallest part", "kind": "text", "shape": "a string", "default": "", "hint": "In square metres: parts of an outline smaller than this are left out, and objects with nothing left go to Other. Empty keeps all" }, { "key": "plane_3d", "label": "Cut in 3D", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "true", "label": "Shown as a see-through plane" }, { "value": "false", "label": "Not shown" } ], "default": "true", "hint": "In the 3D view of the program: the model that comes in, with the height of the cut as a plane" } ] }, { "type": "IdsChecker", "title": "Check against IDS", "group": "tool", "category": "3D models and views", "description": "Checks the objects of an IFC model against an Information Delivery Specification (IDS 1.0): for each specification, the objects it applies to by class, attribute, property, material or storey, and what they must have, may have or must not have, with values as they are or as a list, a pattern or a range. Objects that meet every specification that applies go to Passed, the others to Failed with what they lack in ids_failed. The log tells how many meet each specification. Classifications are not read from IFC, so they cannot be checked, and the log says so.", "inputs": [ "Input" ], "outputs": [ "Passed", "Failed" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "path", "label": "IDS file", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "The requirements as buildingSMART's Information Delivery Specification (.ids), such as a client's demands on the model" } ] }, { "type": "GameEngineExporter", "title": "Real place for a game engine", "group": "tool", "category": "3D models and views", "description": "Makes a real place ready for Unreal Engine, Unity or Godot. The terrain model on Heights becomes a square heightmap of 16 bits, as PNG and RAW, in a size the engine takes. The areas on Areas become masks for painting the ground, one for each kind, such as forest, water and fields. Trees, poles and buildings on Instances become a list of positions, each turned and sized, to place as instances. The roads on Roads become splines on the ground, and a mask of their width. Each in the units and axes of the engine, from a corner of the heightmap, with IMPORT.txt, which tells the scale and place to set when importing.", "inputs": [ "Heights", "Areas", "Instances", "Roads" ], "outputs": [ "Heightmap", "Instances" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "engine", "label": "Engine", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "unreal", "label": "Unreal Engine" }, { "value": "unity", "label": "Unity" }, { "value": "godot", "label": "Godot" } ], "default": "unreal", "hint": "The units, axes and sizes follow the engine" }, { "key": "folder", "label": "Folder", "kind": "text", "shape": "a string", "default": "game", "hint": "Where the files go, beside the model or a whole path: heightmap.png and .r16, masks, instances.csv, roads.json and IMPORT.txt" }, { "key": "size", "label": "Size of the heightmap", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "auto", "label": "As fine as the terrain model, up to the largest" }, { "value": "small", "label": "About 500 pixels" }, { "value": "medium", "label": "About 1000 pixels" }, { "value": "large", "label": "About 2000 pixels" }, { "value": "huge", "label": "About 4000 pixels" } ], "default": "auto", "hint": "The nearest size the engine takes. The heightmap is square, over the whole terrain model; outside it, the lowest height" }, { "key": "mask_by", "label": "Masks by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Areas", "default": "", "hint": "The attribute of the areas that names their kind, such as forest, water or field: a mask for each kind. Empty: one mask of all the areas" }, { "key": "kind_by", "label": "Instances by", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Instances", "default": "", "hint": "The attribute that names what stands there, such as tree, pole or house. Empty: instance" }, { "key": "height_by", "label": "Height of instances", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Instances", "default": "", "hint": "Such as the height of a building or a tree, in metres, for its scale. Empty: none" }, { "key": "road_width", "label": "Width of roads", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Roads", "default": "6", "hint": "In metres: a number, or an attribute such as the width in NVDB. For the road mask and the splines" }, { "key": "road_name", "label": "Name of roads", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Roads", "default": "", "hint": "An attribute for the name of each spline. Empty: road and its number" } ] }, { "type": "SplatMaker", "title": "Make Gaussian splats", "group": "tool", "category": "Point clouds", "description": "Makes a point cloud, such as from a laser scanner or photos from a drone, a scene of Gaussian splats: each point the middle of a small, soft ellipse in its colour, as large as the spacing to its neighbours and, when flat, lying along the surface they make, so that walls, roofs and ground look whole. Write it as PLY or SPZ for viewers of splats, or see it in 3D with map data.", "inputs": [ "Points" ], "outputs": [ "Splats" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "neighbours", "label": "Neighbours", "kind": "text", "shape": "a string", "default": "8", "hint": "How many of the nearest points give each splat its size and shape" }, { "key": "size", "label": "Size", "kind": "text", "shape": "a string", "default": "1", "hint": "Larger than 1 to close gaps between the points, smaller for sharper" }, { "key": "opacity", "label": "Opacity", "kind": "text", "shape": "a string", "default": "0.9", "hint": "From 0, clear, to 1, solid" }, { "key": "shape", "label": "Shape", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "flat", "label": "Flat along the surface, as a coin" }, { "value": "round", "label": "Round, as a ball" } ], "default": "flat", "hint": "Flat splats follow walls and ground, and look like a surface" } ] }, { "type": "PlaceFetcher", "title": "Fetch a place", "group": "input", "category": "Terrain", "description": "Fetches heights and a picture from above of any place on Earth, by its name or its latitude and longitude: a square of the size given around it, in the UTM zone it lies in. The heights come from the Copernicus DEM GLO-30, 30 m, and the picture is made of the least cloudy Sentinel-2 pictures of a time, 10 m, the clouds taken away and the rest put together. Both are read over the web, only the part that is needed. Connect them to Shade terrain, Terrain model or Render 3D scene, and write a model for Blender.", "inputs": [], "outputs": [ "Heights", "Image", "Area" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "place", "label": "Place", "kind": "text", "shape": "a string", "default": "", "hint": "A name, such as Kīlauea, Matterhorn or Isla Isabela, found with Nominatim of OpenStreetMap; or latitude and longitude, such as 19.41, -155.28" }, { "key": "size", "label": "Size", "kind": "text", "shape": "a string", "default": "20", "hint": "The side of the square around the place, in kilometres" }, { "key": "fetch", "label": "Fetch", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "heights", "label": "Heights" }, { "value": "image", "label": "Picture from above" } ], "default": "heights, image", "hint": "Heights from the Copernicus DEM, 30 m; a picture from Sentinel-2, 10 m" }, { "key": "time", "label": "Time of the picture", "kind": "text", "shape": "a string", "default": "", "hint": "From and to, such as 2025-06-01/2025-09-30, when the place is green or free of snow. Empty: the year before today" }, { "key": "cloud", "label": "Most clouds", "kind": "text", "shape": "a string", "default": "30", "hint": "In percent: pictures with more are not used" }, { "key": "most", "label": "At most pictures", "kind": "text", "shape": "a string", "default": "6", "hint": "The least cloudy, put together where they are clear" }, { "key": "brightness", "label": "Brightness", "kind": "text", "shape": "a string", "default": "1", "hint": "More than 1 for a lighter picture, such as for dark lava or forest" }, { "key": "geocoder", "label": "Finder of places", "kind": "text", "shape": "a string", "default": "https://nominatim.openstreetmap.org", "hint": "Nominatim, or another with the same questions. One question a run" }, { "key": "dem", "label": "Heights from", "kind": "text", "shape": "a string", "default": "https://copernicus-dem-30m.s3.amazonaws.com", "hint": "The Copernicus DEM GLO-30 as Cloud Optimized GeoTIFF, a file for each degree" }, { "key": "stac", "label": "Pictures from", "kind": "text", "shape": "a string", "default": "https://earth-search.aws.element84.com/v1", "hint": "A STAC API with sentinel-2-l2a, its bands red, green, blue and scl" } ] }, { "type": "GeodataFetcher", "title": "Fetch geodata", "group": "input", "category": "Web", "description": "Fetches the geodata of a national mapping agency for an area and puts it together: heights of the ground as a grid, a photo from above as a picture, a point cloud, features such as addresses and map features, maps as pictures, or the plans of the national geodata platform with their documents. One tool for all the products, chosen from a list; from Lantmäteriet first. The files are found in the provider's catalogue, read only where they reach into the area, and the photos and heights only the part that is needed. The files need a login: an API connection with the provider's key, and the products ordered from the provider. Files gives where each file lies, and where it is kept.", "inputs": [ "Extent" ], "outputs": [ "Output", "Files" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "provider", "label": "From", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "lantmateriet", "label": "Lantmäteriet, Sweden" } ], "default": "lantmateriet", "hint": "Who the geodata comes from" }, { "key": "product", "label": "Product", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "lm_addresses", "label": "Belägenhetsadress: addresses" }, { "value": "ngp_detailed_plans", "label": "Detaljplan: detailed plans, from the national geodata platform" }, { "value": "lm_divisions", "label": "Kommun, Län och Rike: municipalities, counties and the country" }, { "value": "lm_laser_forest", "label": "Laserdata skog: point cloud" }, { "value": "lm_heights", "label": "Markhöjdmodell: heights of the ground, 1 m" }, { "value": "lm_nmk50", "label": "NMK 50: Nationell militär karta 1:50 000, as a picture" }, { "value": "lm_nmk250", "label": "NMK 250: Nationell militär karta 1:250 000, as a picture" }, { "value": "lm_photo", "label": "Ortofoto: photo from above" }, { "value": "lm_topo10", "label": "Topografi 10: map features, 1:10 000" }, { "value": "lm_topo50", "label": "Topografi 50: map features, 1:50 000" }, { "value": "lm_topo250", "label": "Topografi 250: map features, 1:250 000" }, { "value": "lm_topo1m", "label": "Topografi 1M: map features, 1:1 000 000" }, { "value": "ngp_comprehensive_plans", "label": "Översiktsplan: comprehensive plans, from the national geodata platform" } ], "default": "lm_heights", "hint": "What to fetch" }, { "key": "bbox", "label": "Area", "kind": "text", "shape": "a string", "default": "", "hint": "A rectangle: west, south, east, north, such as 319000, 6399000, 321000, 6401000. A stream on Extent is used instead, if one is connected" }, { "key": "bbox_crs", "label": "Area in", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:3006", "hint": "The coordinate system of the rectangle" }, { "key": "areas", "label": "Several on Extent", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "together", "label": "As one area: the rectangle around them all" }, { "value": "each", "label": "Each on its own, with its attributes" } ], "default": "together", "hint": "Each on its own: a municipality at a time, say, each with its own rectangle and largest area, and what is fetched gets its attributes" }, { "key": "max_km2", "label": "Largest area, km²", "kind": "text", "shape": "a string", "default": "25", "hint": "A larger area is not fetched, as the files are many and large" }, { "key": "cell_size", "label": "Cell size", "kind": "text", "shape": "a string", "default": "", "hint": "Heights and photos: the side of a cell in metres. Empty: 1 m for heights, 0.5 m for photos" }, { "key": "year", "label": "Year", "kind": "text", "shape": "a string", "default": "", "hint": "Heights and photos: only from this year, or from and to, such as 2021/2024. Empty: the latest of each place" }, { "key": "layers", "label": "Layers", "kind": "text", "shape": "a string", "default": "", "hint": "Features: the layers to read, separated by commas, such as vagnat, byggnad. Empty: all" }, { "key": "las_classes", "label": "Classes", "kind": "text", "shape": "a string", "default": "", "hint": "Point clouds: only these classes, such as 2 for the ground. Empty: all" }, { "key": "las_every", "label": "Every n-th point", "kind": "text", "shape": "a string", "default": "1", "hint": "Point clouds: thins them, 10 reads one point in ten. 1 reads all" }, { "key": "las_spacing", "label": "Spacing between points", "kind": "text", "shape": "a string", "default": "", "hint": "Point clouds: only the levels of the files down to about this many metres between points, such as 2 for an overview of a large area. Empty reads all" }, { "key": "max_points", "label": "Most points", "kind": "text", "shape": "a string", "default": "50000000", "hint": "Point clouds: more are not read, so that the memory of the computer is not filled. How many there will be is told before anything is fetched; thin them, or raise this if the computer has the memory" }, { "key": "keep_in", "label": "Keep the files in", "kind": "text", "shape": "a string", "default": "", "hint": "A folder where every file of the area is kept whole, all that the provider offers with it, such as pictures and PDF, under their own names, by collection: to read again later or in other programs. Relative to the folder of the model, such as data/lantmateriet. A file that is there already is not fetched again. Empty: only what is needed is read, and files that must be fetched whole are kept for a while in the temporary folder of the computer" }, { "key": "connection", "label": "API connection", "kind": "api_connection", "shape": "the name of an API connection in the settings of the user", "default": "", "hint": "The login for the files. For Lantmäteriet: a user and a password, those of Geotorget; or OAuth2 with a key and secret of its API portal. The products must be ordered on Geotorget" }, { "key": "collection", "label": "Collection", "kind": "text", "shape": "a string", "default": "", "hint": "The collection of the catalogue, when another than the one found by itself. The log lists them" }, { "key": "catalogue", "label": "Catalogue", "kind": "text", "shape": "a string", "default": "", "hint": "Another address of the STAC API of the product. Empty: the provider's" } ] }, { "type": "HotSpots", "title": "Hot spots", "group": "tool", "category": "Statistics", "description": "Finds where high values lie together, and low values: hot and cold spots, by the Getis-Ord Gi* statistic of each feature with its neighbours. Each feature gets gi_z (how far above or below what chance would give), gi_p, hot_spot, such as Hot spot, 99 %, and hot_class from -3 to 3, to colour from blue to red. Accidents counted in squares, illness in areas, prices of sold houses. The features should be in metres.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "value", "label": "Value", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Such as the number of accidents in each square, or the rate of illness in each area" }, { "key": "neighbours", "label": "Neighbours", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "distance", "label": "Within a distance" }, { "value": "nearest", "label": "The nearest, so many of them" } ], "default": "distance", "hint": "Which features count as near each other: those within a distance, or each feature's nearest few" }, { "key": "distance", "label": "Within", "kind": "text", "shape": "a string", "default": "", "hint": "In metres, between the middles of the features. Empty: as far as needed for every feature to have a neighbour" }, { "key": "k", "label": "How many nearest", "kind": "text", "shape": "a string", "default": "8" } ] }, { "type": "SpatialAutocorrelation", "title": "Spatial autocorrelation", "group": "tool", "category": "Statistics", "description": "Whether like values lie together, by Moran's I: on Summary the I of all the features, what chance would give, and a p-value from shuffling the values among the places; on Features each feature's local I, its p and its cluster: High-High and Low-Low where like lie together, High-Low and Low-High for one that stands out from its neighbours.", "inputs": [ "Input" ], "outputs": [ "Features", "Summary" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "value", "label": "Value", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Such as the income or the share of elderly in each area" }, { "key": "neighbours", "label": "Neighbours", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "distance", "label": "Within a distance" }, { "value": "nearest", "label": "The nearest, so many of them" } ], "default": "distance", "hint": "Which features count as near each other: those within a distance, or each feature's nearest few" }, { "key": "distance", "label": "Within", "kind": "text", "shape": "a string", "default": "", "hint": "In metres, between the middles of the features. Empty: as far as needed for every feature to have a neighbour" }, { "key": "k", "label": "How many nearest", "kind": "text", "shape": "a string", "default": "8" }, { "key": "permutations", "label": "Permutations", "kind": "text", "shape": "a string", "default": "499", "hint": "How many times the values are shuffled among the places to tell chance from pattern. More is surer and slower" }, { "key": "alpha", "label": "Significant below", "kind": "text", "shape": "a string", "default": "0.05", "hint": "The p-value under which a local cluster counts" } ] }, { "type": "PointClusters", "title": "Point clusters", "group": "tool", "category": "Statistics", "description": "Finds clusters of points by DBSCAN: points that have enough others within a distance, and those they reach, form a cluster, of any shape; points far from the rest belong to none. Each point gets its cluster and how many points it has, and the outline of each cluster comes on Clusters. Where the accidents gather, the trees of a forest stand, the visitors of a park stop.", "inputs": [ "Points" ], "outputs": [ "Points", "Clusters" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "distance", "label": "Within", "kind": "text", "shape": "a string", "default": "100", "hint": "In metres: points this close to each other belong together" }, { "key": "min_points", "label": "At least", "kind": "text", "shape": "a string", "default": "5", "hint": "Points within the distance of a point, itself counted, for it to be the core of a cluster. Points in no cluster get none" } ] }, { "type": "AreaReallocator", "title": "Reallocate between areas", "group": "tool", "category": "Statistics", "description": "Moves values from one division of the land to another that does not follow it, by how much of each area lies in the other: people from the squares of a population grid to the districts, jobs from DeSO to the catchments of the schools. Counts are shared out and added up, averages weighed by area. Points on From, such as addresses with their people, go whole to the area they lie in. Each area of To gets covered, the share of it that From covers.", "inputs": [ "From", "To" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "counts", "label": "Counts", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "From", "default": "", "hint": "Such as people or jobs: shared out by how much of each area of From lies in each area of To, and added up" }, { "key": "averages", "label": "Averages", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "From", "default": "", "hint": "Such as a rate or a mean income: the mean in each area of To, weighed by how much of it each area of From covers" } ] }, { "type": "TrackBuilder", "title": "Tracks and stops", "group": "tool", "category": "Statistics", "description": "Makes points with a time into tracks, as from a GPS (GPX) or the AIS of ships: a line for each mover, broken where a pause is long, with its start, end, length and speed; each point with how far and how fast it came from the one before; and the stops, where the mover stayed within a radius for some minutes. Points that jump faster than the mover can go can be left out.", "inputs": [ "Points" ], "outputs": [ "Tracks", "Points", "Stops" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "time", "label": "Time", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Points", "default": "time", "hint": "When each point was taken: ISO 8601 such as 2026-06-01T10:15:00Z, or seconds since 1970" }, { "key": "id", "label": "Of whom", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Points", "default": "", "hint": "What tells the movers apart, such as mmsi for ships or the name of a device. Empty: one mover" }, { "key": "gap", "label": "A new track after a pause of", "kind": "text", "shape": "a string", "default": "30", "hint": "Minutes without a point. The track is broken there, so that no line is drawn across what is not known" }, { "key": "stop_radius", "label": "A stop is within", "kind": "text", "shape": "a string", "default": "50", "hint": "Metres from where the mover came to it" }, { "key": "stop_minutes", "label": "For at least", "kind": "text", "shape": "a string", "default": "5", "hint": "Minutes. Shorter halts are not stops" }, { "key": "fastest", "label": "Faster than this is a fault", "kind": "text", "shape": "a string", "default": "", "hint": "Km/h. A point the mover could not have reached so fast is left out, as GPS points that jump. Empty keeps all" } ] }, { "type": "LocationChooser", "title": "Choose locations", "group": "tool", "category": "Network", "description": "Chooses the best places for one or more facilities among candidates, along the network: those that give the least travel in all for those on Demand, weighed such as by the people in each square, or that reach the most within some minutes. Facilities that are there already can be kept. Each chosen place gets its rank, how many it serves and their mean travel, and each on Demand its facility and travel. Where to put a new health centre, fire station or store.", "inputs": [ "Network", "Candidates", "Demand" ], "outputs": [ "Chosen", "Demand" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "count", "label": "How many to choose", "kind": "text", "shape": "a string", "default": "1", "hint": "Places among Candidates, counting those that must be chosen" }, { "key": "goal", "label": "Best is", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "least", "label": "The least travel in all: the sum of each one's way to the nearest, weighed" }, { "value": "cover", "label": "The most reached within a limit" } ], "default": "least" }, { "key": "within", "label": "Within", "kind": "text", "shape": "a string", "default": "10", "hint": "For the most reached: minutes for the quickest, metres for the shortest" }, { "key": "weight", "label": "Each on Demand counts as", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Demand", "default": "", "hint": "Such as the number of people in a square of a population grid. Empty: each counts as one" }, { "key": "required", "label": "Must be chosen when", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Candidates", "default": "", "hint": "An attribute that is true, yes or 1 for the facilities that are there already. Empty: none" }, { "key": "direction", "label": "Direction", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "to", "label": "Travelling to the facilities, as customers do" }, { "value": "from", "label": "Travelling from the facilities, as an ambulance does" } ], "default": "to", "hint": "Matters where there are one-way roads" }, { "key": "rules", "label": "Rules of the road", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "own", "label": "My own, below" }, { "value": "osm", "label": "OpenStreetMap" }, { "value": "nvdb", "label": "NVDB from Lastkajen" } ], "default": "own", "hint": "Ready rules for OpenStreetMap or NVDB: one-way streets, roundabouts, speed limits and which roads may be used, by how one travels. My own: the conditions and speeds below" }, { "key": "mode", "label": "Travelling", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "car", "label": "By car" }, { "value": "bike", "label": "By bicycle" }, { "value": "walk", "label": "On foot" } ], "default": "car", "hint": "With ready rules: by car at the speed limits, by bicycle at 18 km/h, on foot at 5 km/h" }, { "key": "avoid", "label": "Keep away from", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "motorway", "label": "Motorways" }, { "value": "ferry", "label": "Ferries" }, { "value": "unpaved", "label": "Gravel and other unpaved roads" }, { "value": "toll", "label": "Tolls" } ], "default": "", "hint": "With ready rules, these roads are left out of the network" }, { "key": "cost", "label": "By", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "length", "label": "Shortest: the length" }, { "value": "time", "label": "Quickest: the time, by the speed" } ], "default": "length" }, { "key": "speed", "label": "Speed in km/h", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Along the line as it is drawn, for the quickest route: an attribute such as F_Hogst_225 in NVDB, or a number" }, { "key": "speed_against", "label": "Speed against the line", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Against the way the line is drawn, such as B_Hogst_225 in NVDB. Empty uses the speed along it" }, { "key": "default_speed", "label": "Speed where none is given", "kind": "text", "shape": "a string", "default": "50", "hint": "In km/h, where the speed is empty or 0" }, { "key": "along", "label": "May be travelled along the line when", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "A condition for one-way roads, such as F_ForbjudenFardriktning is null. Empty: always" }, { "key": "against", "label": "May be travelled against the line when", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Such as B_ForbjudenFardriktning is null. Empty: always" }, { "key": "snap", "label": "Farthest from the network, in metres", "kind": "text", "shape": "a string", "default": "500", "hint": "A point is put on the nearest place of the nearest line. One farther away than this is not reached" }, { "key": "tolerance", "label": "Line ends that meet, within", "kind": "text", "shape": "a string", "default": "0.01", "hint": "In metres. Lines are joined where their ends are this close, not where they only cross, as at a bridge" } ] }, { "type": "ChangeDetector", "title": "Find changes", "group": "tool", "category": "Attributes", "description": "Compares two versions of the same data, such as last month's register and this month's, by a key: the features that are new come out on Added, those that are gone on Removed, those whose attributes or geometry differ on Changed, with an attribute that names what changed, and the rest on Unchanged. Without a key the features are compared whole. To keep another copy up to date, write only what changed.", "inputs": [ "Original", "Revised" ], "outputs": [ "Added", "Changed", "Removed", "Unchanged" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "key", "label": "Key", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Original", "default": "", "hint": "One or more attributes that name a feature in both versions, such as an id. Empty compares the features whole: they are then only added, removed or unchanged" }, { "key": "compare", "label": "Attributes to compare", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Original", "default": "", "hint": "Empty compares every attribute that both versions have" }, { "key": "geometry", "label": "Compare the geometry", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true" }, { "key": "tolerance", "label": "Tolerance for numbers", "kind": "text", "shape": "a string", "default": "", "hint": "Numbers that differ by no more than this are the same, such as 0.001. Empty: only the same number" }, { "key": "changed_name", "label": "Attribute with what changed", "kind": "text", "shape": "a string", "default": "_changed", "hint": "On Changed: the names of the attributes that differ, and geometry when it does, with commas between" } ] }, { "type": "Classifier", "title": "Classify values", "group": "tool", "category": "Statistics", "description": "Puts the features in classes by a number, for a map with a colour for each class: natural breaks (Jenks), where the classes differ as much as they can and the values within each as little; quantiles, with as many features in each; equal intervals; standard deviations from the mean; or breaks of your own. Each feature gets its class, 1 for the lowest, and its name, such as 10–50, for the legend; Classes lists them with how many are in each.", "inputs": [ "Input" ], "outputs": [ "Classified", "Classes" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "Values", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The numbers to put in classes" }, { "key": "method", "label": "Classes by", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "jenks", "label": "Natural breaks (Jenks)" }, { "value": "quantile", "label": "Quantiles: as many in each class" }, { "value": "equal", "label": "Equal intervals" }, { "value": "stddev", "label": "Standard deviations from the mean" }, { "value": "manual", "label": "Breaks of my own" } ], "default": "jenks" }, { "key": "classes", "label": "Number of classes", "kind": "text", "shape": "a string", "default": "5", "hint": "From 2 to 12" }, { "key": "breaks", "label": "Breaks", "kind": "text", "shape": "a string", "default": "", "hint": "For breaks of your own: where one class ends and the next begins, such as 10, 50, 100" }, { "key": "name", "label": "Attribute with the class", "kind": "text", "shape": "a string", "default": "class", "hint": "1 for the lowest values" }, { "key": "label_name", "label": "Attribute with its name", "kind": "text", "shape": "a string", "default": "class_label", "hint": "Such as 10–50, for the legend of a map" }, { "key": "decimals", "label": "Decimals in the names", "kind": "text", "shape": "a string", "default": "0" } ] }, { "type": "RunningStatistics", "title": "Shares, ranks and running totals", "group": "tool", "category": "Statistics", "description": "Gives each feature numbers about its place among the others: its share of the total in percent, its rank (1 for the largest), the running total and the running share in the order the features come, and a moving mean of the last few values, for all together or for each group, such as each municipality.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "Values", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The numbers to work with" }, { "key": "what", "label": "Add", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "share", "label": "Share of the total, in %" }, { "value": "rank", "label": "Rank, 1 for the largest" }, { "value": "cumulative", "label": "Running total, in the order they come" }, { "value": "cumulative_share", "label": "Running share of the total, in %" }, { "value": "moving", "label": "Moving mean, in the order they come" } ], "default": "share", "hint": "Each becomes an attribute after the name of the values, such as people_share. Sort the features first for running totals and moving means" }, { "key": "group_by", "label": "For each", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "Such as the municipality. Empty: all together" }, { "key": "window", "label": "Moving mean of", "kind": "text", "shape": "a string", "default": "3", "hint": "How many values, this one and those before it" } ] }, { "type": "ChangeOverTime", "title": "Change over time", "group": "tool", "category": "Statistics", "description": "For values over time, such as the inhabitants of each municipality year by year: the change since the time before, in numbers and in percent, an index where the base time is 100, and the mean yearly growth since the base time in percent. The time is a year or a date; each series, such as each municipality, is counted by itself.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "attribute", "label": "Values", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Such as the number of inhabitants" }, { "key": "time", "label": "Time", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "A year, such as 2024, or a date" }, { "key": "series", "label": "For each", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "What the values are of, such as the municipality. Empty: all are one series" }, { "key": "what", "label": "Add", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "change", "label": "Change since the time before" }, { "value": "percent", "label": "Change since the time before, in %" }, { "value": "index", "label": "Index: the base time is 100" }, { "value": "growth", "label": "Yearly growth since the base time, in %" } ], "default": "percent", "hint": "Each becomes an attribute after the name of the values" }, { "key": "base", "label": "Base time", "kind": "text", "shape": "a string", "default": "", "hint": "For the index and the yearly growth, such as 2015. Empty: the first time of each series" } ] }, { "type": "RateCalculator", "title": "Rates", "group": "tool", "category": "Statistics", "description": "Cases per inhabitant, such as patients per 1 000 inhabitants in each area. Rates from few cases can be hidden, so that no one can be told apart. A smoothed rate draws the rates of small populations towards the mean (empirical Bayes), where chance makes them leap. With a row for each area and age group, Standardised gives the rate of each area as if all had the same ages, directly standardised to the population on Standard, such as that of Sweden, or of all areas together.", "inputs": [ "Input", "Standard" ], "outputs": [ "Rates", "Standardised" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "count", "label": "Cases", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "How many, such as the number of patients or of accidents" }, { "key": "population", "label": "Population", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "Out of how many, such as the inhabitants" }, { "key": "per", "label": "Per", "kind": "text", "shape": "a string", "default": "1000", "hint": "Such as 1000 for cases per thousand inhabitants, or 100 for percent" }, { "key": "suppress", "label": "Hide fewer cases than", "kind": "text", "shape": "a string", "default": "", "hint": "Rates of from 1 to this many cases less 1 are left empty and marked in suppressed, so that no one can be told apart, such as 5. Empty: none hidden" }, { "key": "smooth", "label": "Smoothed rate", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "no", "label": "No" }, { "value": "yes", "label": "Yes: small populations drawn towards the mean (empirical Bayes)" } ], "default": "no", "hint": "Small populations give rates that leap by chance; smoothed, they lean on the mean of all as much as they are small" }, { "key": "area", "label": "Area, for age standardisation", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "With a row for each area and age group: the attribute that names the area. Standardised gives a row for each area" }, { "key": "age", "label": "Age group", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The attribute that names the age group, such as 0-14" }, { "key": "standard_age", "label": "Age group in Standard", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Standard", "default": "", "hint": "The same names as in Age group" }, { "key": "standard_population", "label": "Population in Standard", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Standard", "default": "", "hint": "The standard population of each age group, such as that of all of Sweden. Empty on Standard: all areas together" } ] }, { "type": "Regression", "title": "Linear regression", "group": "tool", "category": "Statistics", "description": "How a number depends on one or more others, by least squares: such as the price of a house by its area and age. Summary gives each coefficient with its standard error, t and p, and how much the model explains (R², and adjusted R²). Each feature gets what the model gives for it and how far it is off (the residual, also in standard deviations), to draw on a map: where the model misses tells what it leaves out.", "inputs": [ "Input" ], "outputs": [ "Features", "Summary" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "y", "label": "To explain", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The number that is to be explained, such as the price" }, { "key": "x", "label": "Explained by", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Input", "default": "", "hint": "One or more numbers, such as the area and the year built" } ] }, { "type": "DashboardWriter", "title": "Dashboard web page", "group": "tool", "category": "Charts", "description": "Writes a web page with a map of the areas, coloured by a value in natural classes, and a bar for each area beside it, the two linked: the pointer on a bar lights up its area, and on an area its bar, with the name and the value. The bars sort by size or by name. Light or dark as the reader's computer is set, and nothing to fetch, so it opens from a disk or on any site. The features pass on unchanged.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "path", "label": "Web page", "kind": "path", "shape": "a file to write; relative paths start at the folder of the model", "default": "", "hint": "The .html file to write, such as out/dashboard.html" }, { "key": "name", "label": "Names", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "What each area is called, such as the municipality" }, { "key": "value", "label": "Values", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Input", "default": "", "hint": "The number the map is coloured by and the bars show" }, { "key": "title", "label": "Title", "kind": "text", "shape": "a string", "default": "", "hint": "Say what the page shows, in a few words" }, { "key": "subtitle", "label": "Explanation", "kind": "text", "shape": "a string", "default": "", "hint": "A line under the title: what is measured, where and when" }, { "key": "note", "label": "Note at the foot", "kind": "text", "shape": "a string", "default": "", "hint": "Such as where the data comes from" }, { "key": "unit", "label": "Unit", "kind": "text", "shape": "a string", "default": "", "hint": "Written after the numbers, such as % or per 1 000" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "0" }, { "key": "format", "label": "Numbers as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "sv", "label": "1 234,5" }, { "value": "en", "label": "1,234.5" } ], "default": "sv" }, { "key": "ramp", "label": "Colours", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "blues", "label": "Blues" }, { "value": "greens", "label": "Greens" }, { "value": "reds", "label": "Reds" }, { "value": "oranges", "label": "Oranges" }, { "value": "purples", "label": "Purples" }, { "value": "viridis", "label": "Yellow to blue" }, { "value": "heat", "label": "Yellow to red" }, { "value": "diverging", "label": "Blue to red" } ], "default": "blues", "hint": "From the smallest values to the largest" }, { "key": "classes", "label": "Classes", "kind": "text", "shape": "a string", "default": "5", "hint": "Natural breaks (Jenks), from 2 to 9" } ] }, { "type": "FlowLines", "title": "Flow lines", "group": "tool", "category": "Maps", "description": "A curved line from place to place for each flow, such as the people who commute from one municipality to another, with how many as an attribute: for a flow map in Draw map, with the width of the lines by value. The flows come in as rows with where they start and end, named as the places on Places are, which can be points or areas. Each line bends to its right, so that the flows both ways lie side by side, and the largest come last, so that they are drawn on top.", "inputs": [ "Flows", "Places" ], "outputs": [ "Lines" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "from", "label": "From", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Flows", "default": "", "hint": "Where each flow starts: the name or code of a place" }, { "key": "to", "label": "To", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Flows", "default": "", "hint": "Where it ends" }, { "key": "value", "label": "How many", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Flows", "default": "", "hint": "Such as the number of commuters. Empty: each row counts as one" }, { "key": "id", "label": "Names of the places", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Places", "default": "", "hint": "The attribute of Places that From and To name" }, { "key": "bend", "label": "Bend in %", "kind": "text", "shape": "a string", "default": "20", "hint": "How much the lines curve, as a share of their length. Each bends to its right, so that the flows both ways lie side by side. 0: straight" }, { "key": "smallest", "label": "Leave out fewer than", "kind": "text", "shape": "a string", "default": "", "hint": "Flows smaller than this are left out, so that the large ones can be seen. Empty: all" } ] }, { "type": "LineLengthInAreas", "title": "Sum line lengths in areas", "group": "tool", "category": "Geometry", "description": "The length of the lines that lie in each area, as the length of the road network in each municipality: in all, or for each kind of line, such as each kind of road, as attributes on the areas or as a feature for each area and kind. A line that crosses a border counts in each area by the part of it inside. In metres or other units, on the ellipsoid when the coordinates are in degrees.", "inputs": [ "Areas", "Lines" ], "outputs": [ "Areas" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "group_by", "label": "For each", "kind": "attributes", "shape": "names of attributes of the stream on the port: a list of strings, or one string separated by commas", "port": "Lines", "default": "", "hint": "Attributes of the lines, such as the kind of road. Empty sums all lines together" }, { "key": "unit", "label": "Unit", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "mm", "label": "mm" }, { "value": "cm", "label": "cm" }, { "value": "dm", "label": "dm" }, { "value": "m", "label": "m" }, { "value": "km", "label": "km" }, { "value": "mil", "label": "Swedish miles (10 km)" }, { "value": "in", "label": "inches" }, { "value": "ft", "label": "feet" }, { "value": "yd", "label": "yards" }, { "value": "mi", "label": "miles" }, { "value": "nmi", "label": "nautical miles" } ], "default": "km" }, { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "length", "hint": "With a kind, the kind is put after it, such as length_motorway" }, { "key": "layout", "label": "Kinds as", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "columns", "label": "An attribute for each kind, on the areas" }, { "value": "rows", "label": "A feature for each area and kind" } ], "default": "columns" }, { "key": "decimals", "label": "Decimals", "kind": "text", "shape": "a string", "default": "3", "hint": "Empty keeps them all" } ] }, { "type": "ImageClassifier", "title": "Classify image", "group": "tool", "category": "Raster", "description": "Gives each cell of a picture with several bands, such as from Sentinel-2, a class: by itself, putting the cells in groups of like colours by k-means, numbered from the darkest, for you to name; or from examples, areas you drew of forest, water, field and town, each cell getting the class it is most like. On Classes, each class with its cells, area and mean of each band. Raster to areas then gives the areas of each class.", "inputs": [ "Raster", "Examples" ], "outputs": [ "Raster", "Classes" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "method", "label": "How", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "kmeans", "label": "By itself: the cells are put in groups of like colours (k-means)" }, { "value": "examples", "label": "From examples: areas on Examples with their class, and each cell to the class it is most like" } ], "default": "kmeans", "hint": "By itself finds the groups, which you then name. From examples gives the classes you drew" }, { "key": "classes", "label": "Groups", "kind": "text", "shape": "a string", "default": "6", "hint": "How many groups k-means makes" }, { "key": "class", "label": "Class of each example", "kind": "attribute", "shape": "the name of one attribute of the stream on the port", "port": "Examples", "default": "class", "hint": "Such as forest, water, field and town, or numbers" }, { "key": "bands", "label": "Bands", "kind": "text", "shape": "a string", "default": "", "hint": "The bands to use by their numbers from 1, such as 2, 3, 4, 8. Empty uses all" } ] }, { "type": "Depressions", "title": "Hollows", "group": "tool", "category": "Terrain", "description": "Finds the hollows of a terrain model where water gathers and stays in a cloudburst, as it would if it could not soak away: each with its greatest depth, the water it holds when full, its area, its bottom and the height at which it runs over. On Depth, how deep the water stands in each cell when every hollow is full. Join buildings to Hollows to see which lie where water gathers; Catchments and streams shows the way it runs there.", "inputs": [ "Terrain" ], "outputs": [ "Hollows", "Depth" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "min_depth", "label": "At least as deep as", "kind": "text", "shape": "a string", "default": "0.1", "hint": "Metres. Shallower hollows are left out" }, { "key": "min_area", "label": "At least as large as", "kind": "text", "shape": "a string", "default": "100", "hint": "Square metres. Smaller hollows are left out" } ] }, { "type": "CustomTool", "title": "Tool", "group": "tool", "category": "Workflow", "description": "A tool of your own: nodes made into one, with a model inside that a double-click opens. Its ports are the Tool input and Tool output nodes inside. It runs once, once for each value of an attribute (For each, with $(value) inside), or a number of times with what comes out going in again (Repeat, with $(round) inside). Unpack it to make it nodes in a group again.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": true, "offered": true, "params": [ { "key": "tool", "label": "The model inside", "kind": "model", "shape": "a model as an object, with nodes and edges as in a model file, whose ToolInput and ToolOutput nodes are the ports", "default": "", "hint": "Open it with a double-click on the node, or Enter" }, { "key": "loop", "label": "Runs", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "once", "label": "Once" }, { "value": "each", "label": "For each value of an attribute: once for the features with each value, and all that comes out together" }, { "value": "repeat", "label": "Repeat: so many times, what comes out going in again" } ], "default": "once" }, { "key": "each_by", "label": "For each value of", "kind": "text", "shape": "a string", "default": "", "hint": "An attribute of the stream on the first port. Inside, $(value) is the value of the round" }, { "key": "times", "label": "Times", "kind": "text", "shape": "a string", "default": "3", "hint": "What comes out on a port goes in again on the input port of the same name. Inside, $(round) is the round, from 1" } ] }, { "type": "ToolInput", "title": "Tool input", "group": "tool", "category": "Workflow", "description": "In the model of a tool: a port of the tool that a stream comes in on. Its name is the name of the port.", "inputs": [], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "port", "label": "Port", "kind": "text", "shape": "a string", "default": "Input", "hint": "The name of the port on the tool, which the stream comes in on" } ] }, { "type": "ToolOutput", "title": "Tool output", "group": "tool", "category": "Workflow", "description": "In the model of a tool: a port of the tool that a stream goes out on. Its name is the name of the port.", "inputs": [ "Input" ], "outputs": [ "Output" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "port", "label": "Port", "kind": "text", "shape": "a string", "default": "Output", "hint": "The name of the port on the tool, which the stream goes out on" } ] }, { "type": "PointCloudRasterizer", "title": "Point cloud to raster", "group": "tool", "category": "Point clouds", "description": "Makes a raster of a point cloud: a terrain model of the ground points (the lowest), a surface model with trees and roofs (the highest), the mean, how many points or how many per square metre, or of an attribute such as intensity. Holes without points can be filled from the cells around them.", "inputs": [ "Points" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "1", "hint": "In metres, or the units of the coordinate system" }, { "key": "stat", "label": "Each cell gets", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "max", "label": "The highest: a surface model, with trees and roofs" }, { "value": "min", "label": "The lowest: the ground, from ground points" }, { "value": "mean", "label": "The mean" }, { "value": "count", "label": "How many points" }, { "value": "density", "label": "Points per square metre" } ], "default": "max" }, { "key": "value", "label": "Of", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Points", "default": "", "hint": "Empty takes the height of the points. Or an attribute, such as intensity" }, { "key": "fill", "label": "Fill holes up to", "kind": "text", "shape": "a string", "default": "0", "hint": "Cells without points are filled from those around them, as many cells in: holes under buildings in a ground model. 0 fills none" } ] }, { "type": "HeightAboveGround", "title": "Height above ground", "group": "tool", "category": "Point clouds", "description": "Gives each point its height above the ground: from a terrain model on Ground, or from the ground points of the cloud itself. The height of trees and buildings, as with a canopy height model. Can make it the height of the points too.", "inputs": [ "Points", "Ground" ], "outputs": [ "Points" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "name", "label": "Attribute", "kind": "text", "shape": "a string", "default": "above_ground", "hint": "The height of each point above the ground" }, { "key": "ground_classes", "label": "Ground points", "kind": "text", "shape": "a string", "default": "2", "hint": "Without a terrain model on Ground, the ground is made of the points of these classes: 2 is ground" }, { "key": "cell", "label": "Ground cells", "kind": "text", "shape": "a string", "default": "1", "hint": "The cell size of the ground made of the points" }, { "key": "replace", "label": "The height above ground", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "attribute", "label": "In an attribute" }, { "value": "heights", "label": "In an attribute, and as the heights of the points" } ], "default": "attribute", "hint": "As the heights, trees and roofs stand on flat ground" } ] }, { "type": "PointCloudFilter", "title": "Filter point cloud", "group": "tool", "category": "Point clouds", "description": "Keeps the points of some classes, of some returns (first, last or single), between two heights, and inside the areas on Areas when they are connected. The rest go to Other. The classes can be ticked from those the data has, and each can get a port of its own.", "inputs": [ "Points", "Areas" ], "outputs": [ "Points", "Other" ], "outputs_follow_settings": true, "offered": true, "params": [ { "key": "classes", "label": "Classes", "kind": "text", "shape": "a string", "default": "", "hint": "The class numbers to keep, such as 2 for ground or 3, 4, 5 for vegetation and 6 for buildings, or ticked below from the data of the latest run. Empty keeps all" }, { "key": "class_ports", "label": "Out on", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "yes", "label": "A port for each class ticked, and the rest on Other" }, { "value": "no", "label": "All classes ticked on Points, the rest on Other" } ], "default": "yes" }, { "key": "returns", "label": "Returns", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "all", "label": "All" }, { "value": "first", "label": "First returns: the tops of trees and roofs" }, { "value": "last", "label": "Last returns: closest to the ground" }, { "value": "single", "label": "Single returns: hard surfaces" } ], "default": "all" }, { "key": "zmin", "label": "Lowest height", "kind": "text", "shape": "a string", "default": "", "hint": "Of the points, or of the attribute below. Empty has no limit" }, { "key": "zmax", "label": "Highest height", "kind": "text", "shape": "a string", "default": "" }, { "key": "height_of", "label": "Height from", "kind": "text", "shape": "a string", "default": "", "hint": "Empty uses the heights of the points. An attribute, such as above_ground from Height above ground, uses that" } ] }, { "type": "GroundClassifier", "title": "Classify ground points", "group": "tool", "category": "Point clouds", "description": "Finds the ground in a point cloud without classes, as from a drone or a scanner of one's own, by a morphological filter (SMRF): the points on the ground get class 2, the others class 1. The largest object sets how large buildings it takes away. Then Point cloud to raster makes a terrain model of the ground.", "inputs": [ "Points" ], "outputs": [ "Points", "Ground" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "cell", "label": "Cell size", "kind": "text", "shape": "a string", "default": "1", "hint": "Of the surface the ground is found on, in metres: about the distance between the points, or a little more" }, { "key": "window", "label": "Largest object", "kind": "text", "shape": "a string", "default": "20", "hint": "Metres across: the largest building or thing on the ground that is to be taken away. Larger finds bigger buildings, and may cut hilltops" }, { "key": "slope", "label": "Slope of the ground", "kind": "text", "shape": "a string", "default": "0.15", "hint": "The steepest ground, as rise over run: 0.15 is 15 %. Raise it for hilly land" }, { "key": "threshold", "label": "Within", "kind": "text", "shape": "a string", "default": "0.4", "hint": "Metres: a point this close to the ground surface, above or below, is ground" } ] }, { "type": "BuildingHeights", "title": "Building heights from points", "group": "tool", "category": "Point clouds", "description": "Measures each building on Buildings from the points of the cloud on Points that lie on its footprint: the ground, the height (90 % of the roof points), the highest point and the low edge of the roof above the ground, and the shape of the roof (flat, shed, gable or other) with its slope and the direction of its ridge. The ground from a terrain model on Ground, or from the ground points around.", "inputs": [ "Buildings", "Points", "Ground" ], "outputs": [ "Buildings" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "classes", "label": "Roof points", "kind": "text", "shape": "a string", "default": "", "hint": "The classes of the points on the roofs, such as 6 for buildings. Empty takes every point on the footprint that is not ground" }, { "key": "ground_classes", "label": "Ground points", "kind": "text", "shape": "a string", "default": "2", "hint": "Without a terrain model on Ground, the ground is taken from the points of these classes around the building" }, { "key": "inset", "label": "Leave out the edge", "kind": "text", "shape": "a string", "default": "0.5", "hint": "Metres inside the footprint, so that walls, eaves and trees at the edge do not count" }, { "key": "prefix", "label": "Before the names", "kind": "text", "shape": "a string", "default": "", "hint": "Such as las_, to give las_height" } ] }, { "type": "OsmDownloader", "title": "OpenStreetMap download", "group": "tool", "category": "Web", "description": "Fetches a small piece of OpenStreetMap from an Overpass server: buildings, roads, water, land use, places of interest, railways, everything, or a filter of your own. Within a rectangle you write, or the extent of what comes in on Extent, such as a municipality; a rectangle larger than a size you give is made smaller around its middle, so that the server is not asked for too much. Points, lines and areas, with the common tags as attributes and the rest in other_tags. Needs the internet; the data is © OpenStreetMap contributors, ODbL.", "inputs": [ "Extent" ], "outputs": [ "Output" ], "outputs_follow_settings": true, "offered": true, "params": [ { "key": "what", "label": "What", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "buildings", "label": "Buildings" }, { "value": "roads", "label": "Roads and paths" }, { "value": "water", "label": "Water: lakes, the sea and streams" }, { "value": "landuse", "label": "Land use and nature" }, { "value": "pois", "label": "Places of interest: amenities, shops and tourism" }, { "value": "railways", "label": "Railways" }, { "value": "all", "label": "Everything" }, { "value": "custom", "label": "A filter of your own" } ], "default": "buildings", "hint": "Tick one or more. Each feature gets the attribute kind, which says what it was fetched as" }, { "key": "filter", "label": "Filter", "kind": "text", "shape": "a string", "default": "", "hint": "As in Overpass, such as [\"amenity\"=\"school\"] or [\"highway\"~\"primary|secondary\"]. For A filter of your own" }, { "key": "bbox", "label": "Rectangle", "kind": "text", "shape": "a string", "default": "", "hint": "West, south, east, north in degrees, such as 11.95, 57.69, 11.99, 57.71. Not needed when something comes in on Extent" }, { "key": "max_km2", "label": "Largest area in km²", "kind": "text", "shape": "a string", "default": "25", "hint": "A larger rectangle is made smaller around its middle to this size, so that the server is not asked for too much" }, { "key": "cut", "label": "Large features", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "cut", "label": "Cut at the edge of the area" }, { "value": "whole", "label": "Whole, when they reach into the area" } ], "default": "cut", "hint": "Land cover, lakes and borders can be very large: cut, only the part within the area comes along" }, { "key": "crs", "label": "Coordinate system", "kind": "crs", "shape": "a coordinate system, such as \"EPSG:3006\"", "default": "EPSG:3006", "hint": "Of what comes out. OpenStreetMap is in WGS 84" }, { "key": "server", "label": "Overpass server", "kind": "text", "shape": "a string", "default": "https://overpass-api.de/api/interpreter", "hint": "Another, such as https://overpass.kumi.systems/api/interpreter, or one of your own" } ] }, { "type": "TanakaContours", "title": "Tanaka contours", "group": "tool", "category": "Terrain", "description": "For maps: illuminated contours, after Kitiro Tanaka: the contour lines of the heights on Heights, light where the slope faces the light and dark where it faces away, widest where they face it squarely, over bands of colour between the heights. The terrain stands out as in relief. The picture has coordinates; the pieces of line come out on Lines with their height and light.", "inputs": [ "Heights" ], "outputs": [ "Image", "Lines" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "interval", "label": "Height between lines", "kind": "text", "shape": "a string", "default": "10", "hint": "In the units of the heights, such as metres" }, { "key": "base", "label": "Lines through the height", "kind": "text", "shape": "a string", "default": "0", "hint": "One line goes through this height, the others every interval from it" }, { "key": "sun_azimuth", "label": "Light from", "kind": "text", "shape": "a string", "default": "315", "hint": "Degrees clockwise from north. Lines on slopes that face it are light, the others dark" }, { "key": "line_width", "label": "Line width", "kind": "text", "shape": "a string", "default": "2", "hint": "The widest line, in pixels, where a slope faces the light or turns from it squarely" }, { "key": "smooth", "label": "Smoothing", "kind": "text", "shape": "a string", "default": "1", "hint": "How many times the heights are evened out over their neighbours first, for calm lines over flat land. 0 keeps every bump" }, { "key": "tint", "label": "Bands", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "grey", "label": "Grey bands" }, { "value": "terrain", "label": "Land: green to brown to light" }, { "value": "blue", "label": "Blue bands" }, { "value": "none", "label": "None, see-through" } ], "default": "grey", "hint": "The colour between the lines. Grey lets both the light and the dark lines show" }, { "key": "width", "label": "Width in pixels", "kind": "text", "shape": "a string", "default": "", "hint": "Empty makes it as wide as the grid, at most 4000" } ] }, { "type": "TerrainShader", "title": "Shade terrain", "group": "tool", "category": "Terrain", "description": "For maps: shaded relief from the heights on Heights, seen from above: lit by a sun, with shadows the terrain casts, darker valleys, colours by the height and haze in the low parts. A map from Draw map connected to Map is laid on the terrain and shaded with it. The picture has coordinates, for PNG, GeoTIFF or PDF.", "inputs": [ "Heights", "Map" ], "outputs": [ "Image" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "sun_azimuth", "label": "Sun from", "kind": "text", "shape": "a string", "default": "315", "hint": "Degrees clockwise from north: 315 is from the north-west, as on most maps" }, { "key": "light", "label": "Light", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "one", "label": "From the sun alone" }, { "value": "several", "label": "From several directions, softer and clearer" } ], "default": "one", "hint": "From several directions, slopes that face away from the sun are seen too, as on a good relief map. The shadows are still cast by the sun" }, { "key": "sun_altitude", "label": "Sun height", "kind": "text", "shape": "a string", "default": "35", "hint": "Degrees above the horizon. A low sun gives long shadows" }, { "key": "exaggeration", "label": "Height exaggeration", "kind": "text", "shape": "a string", "default": "1.5", "hint": "The heights are multiplied by this. Flat land needs more, such as 3" }, { "key": "shadows", "label": "Shadows", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "soft", "label": "Soft" }, { "value": "sharp", "label": "Sharp" }, { "value": "none", "label": "None" } ], "default": "soft", "hint": "Cast by the terrain, away from the sun" }, { "key": "shadow_darkness", "label": "Shadow darkness in %", "kind": "text", "shape": "a string", "default": "60" }, { "key": "sky_light", "label": "Darker valleys", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Valleys and hollows see less of the sky and get less light from it" }, { "key": "colours", "label": "Colours", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "land", "label": "Land: green to light brown" }, { "value": "mountains", "label": "Mountains: green to brown to snow" }, { "value": "greys", "label": "Grey to white" }, { "value": "white", "label": "Light all over" } ], "default": "land", "hint": "By the height, under the map if one is connected" }, { "key": "haze", "label": "Haze in the valleys in %", "kind": "text", "shape": "a string", "default": "0", "hint": "A light haze that lies in the low parts, as morning mist" }, { "key": "map_opacity", "label": "Map opacity in %", "kind": "text", "shape": "a string", "default": "100", "hint": "How much the map connected to Map covers the colours of the terrain" }, { "key": "width", "label": "Width in pixels", "kind": "text", "shape": "a string", "default": "", "hint": "Empty gives one pixel for each cell of the grid, at most 4000 across" } ] }, { "type": "TerrainRenderer", "title": "Quick terrain view", "group": "tool", "category": "3D models and views", "description": "A quick view of terrain alone from the side, in seconds, as a block diagram or under a sky: the heights on Heights with the same light, shadows and colours as Shade terrain, a map from Draw map laid on it, fog with the distance and a sky behind. The terrain can stand on a block, as in a block diagram. The picture has no coordinates. For buildings and other models, glass, water and the sun of a date, use Render 3D scene.", "inputs": [ "Heights", "Map" ], "outputs": [ "Image" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "sun_azimuth", "label": "Sun from", "kind": "text", "shape": "a string", "default": "315", "hint": "Degrees clockwise from north: 315 is from the north-west, as on most maps" }, { "key": "light", "label": "Light", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "one", "label": "From the sun alone" }, { "value": "several", "label": "From several directions, softer and clearer" } ], "default": "one", "hint": "From several directions, slopes that face away from the sun are seen too, as on a good relief map. The shadows are still cast by the sun" }, { "key": "sun_altitude", "label": "Sun height", "kind": "text", "shape": "a string", "default": "35", "hint": "Degrees above the horizon. A low sun gives long shadows" }, { "key": "exaggeration", "label": "Height exaggeration", "kind": "text", "shape": "a string", "default": "1.5", "hint": "The heights are multiplied by this. Flat land needs more, such as 3" }, { "key": "shadows", "label": "Shadows", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "soft", "label": "Soft" }, { "value": "sharp", "label": "Sharp" }, { "value": "none", "label": "None" } ], "default": "soft", "hint": "Cast by the terrain, away from the sun" }, { "key": "shadow_darkness", "label": "Shadow darkness in %", "kind": "text", "shape": "a string", "default": "60" }, { "key": "sky_light", "label": "Darker valleys", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "Valleys and hollows see less of the sky and get less light from it" }, { "key": "colours", "label": "Colours", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "land", "label": "Land: green to light brown" }, { "value": "mountains", "label": "Mountains: green to brown to snow" }, { "value": "greys", "label": "Grey to white" }, { "value": "white", "label": "Light all over" } ], "default": "land", "hint": "By the height, under the map if one is connected" }, { "key": "haze", "label": "Haze in the valleys in %", "kind": "text", "shape": "a string", "default": "0", "hint": "A light haze that lies in the low parts, as morning mist" }, { "key": "map_opacity", "label": "Map opacity in %", "kind": "text", "shape": "a string", "default": "100", "hint": "How much the map connected to Map covers the colours of the terrain" }, { "key": "view_azimuth", "label": "Looking from", "kind": "text", "shape": "a string", "default": "200", "hint": "Degrees clockwise from north: 180 looks north from the south" }, { "key": "tilt", "label": "Camera height in degrees", "kind": "text", "shape": "a string", "default": "30", "hint": "How far above the horizon the camera looks down: 90 is straight down" }, { "key": "fov", "label": "Lens angle", "kind": "text", "shape": "a string", "default": "30", "hint": "Degrees from top to bottom. Less is like a telephoto lens, more like a wide angle" }, { "key": "zoom", "label": "Zoom in %", "kind": "text", "shape": "a string", "default": "100", "hint": "100 shows all of the terrain. More comes closer" }, { "key": "width", "label": "Width in pixels", "kind": "text", "shape": "a string", "default": "1600" }, { "key": "height", "label": "Height in pixels", "kind": "text", "shape": "a string", "default": "1000" }, { "key": "fog", "label": "Fog in %", "kind": "text", "shape": "a string", "default": "30", "hint": "Grows with the distance, as air does far away" }, { "key": "background", "label": "Background", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "sky", "label": "A sky" }, { "value": "none", "label": "See-through" } ], "default": "sky" }, { "key": "block", "label": "As a block", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "false", "label": "No" }, { "value": "true", "label": "Yes" } ], "default": "true", "hint": "The terrain stands on a block with sides, as in a block diagram" }, { "key": "quality", "label": "Edges", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "2", "label": "Smooth" }, { "value": "3", "label": "Smoothest, slower" }, { "value": "1", "label": "Rough, fastest" } ], "default": "2" } ] }, { "type": "RasterMosaicker", "title": "Merge rasters", "group": "tool", "category": "Raster", "description": "Puts the rasters connected to Rasters together into one: pictures, such as tiles of an orthophoto, or grids, such as tiles of a terrain model. Where they overlap, the one connected first is on top. Rasters in another coordinate system are reprojected to that of the first.", "inputs": [ "Rasters" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [] }, { "type": "RasterGeneralizer", "title": "Generalize raster", "group": "tool", "category": "Raster", "description": "Makes a raster coarser: a number of cells across and down become one, with their mean, the most common value for classes such as land cover, the median, the smallest, the largest or the sum. Pictures get the mean colour.", "inputs": [ "Raster" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "factor", "label": "Cells into one", "kind": "text", "shape": "a string", "default": "2", "hint": "How many cells across and down become one: 4 makes 1 m cells into 4 m cells, sixteen into one" }, { "key": "method", "label": "The new value", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "mean", "label": "Mean" }, { "value": "majority", "label": "Majority: the most common value, for classes" }, { "value": "median", "label": "Median" }, { "value": "min", "label": "Smallest" }, { "value": "max", "label": "Largest" }, { "value": "sum", "label": "Sum" } ], "default": "mean", "hint": "Empty cells are left out. A new cell is empty only when all its cells are" } ] }, { "type": "RasterCalculator", "title": "Raster calculator", "group": "tool", "category": "Raster", "description": "Counts cell by cell with the rasters connected to Rasters, A the first and B the second: A + B, A - B, A * B, A / B, and anything an expression can do, such as if(A > 100, B, null), max(A, B) or sqrt(A). The result has the cells of A, where the rasters overlap.", "inputs": [ "Rasters" ], "outputs": [ "Raster" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "expression", "label": "Expression", "kind": "text", "shape": "a string", "default": "A + B", "hint": "A is the raster connected first, B the second, and so on. Such as (A - B) / A * 100, if(A > 100, B, null) or max(A, B, C). Band 2 of A is A_2" }, { "key": "extent", "label": "The result covers", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "overlap", "label": "Where they all overlap" }, { "value": "first", "label": "That of A, the first" } ], "default": "overlap", "hint": "Its cells are those of A. The other rasters are reprojected and read at the middle of each" }, { "key": "empty", "label": "An empty cell", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "empty", "label": "Make the result empty" }, { "value": "zero", "label": "Count as 0" } ], "default": "empty", "hint": "Where a raster has no value. coalesce(B, 0) does the same for one of them" } ] }, { "type": "ContourGenerator", "title": "Contour lines", "group": "tool", "category": "Terrain", "description": "Draws contour lines from the heights on Heights, at an interval such as every 5 metres, with the height in an attribute. Can give the areas between the lines instead.", "inputs": [ "Heights" ], "outputs": [ "Contours" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "interval", "label": "Interval", "kind": "text", "shape": "a string", "default": "10", "hint": "The height between two lines, such as 5 for every five metres" }, { "key": "base", "label": "Start at", "kind": "text", "shape": "a string", "default": "0", "hint": "A height that has a line. The others are whole intervals from it" }, { "key": "kind", "label": "Make", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "lines", "label": "Lines" }, { "value": "areas", "label": "Areas between the lines" } ], "default": "lines" }, { "key": "name", "label": "Height attribute", "kind": "text", "shape": "a string", "default": "height", "hint": "The height of each line. Areas get it with _min and _max after it" } ] }, { "type": "ShortestRoute", "title": "Shortest route", "group": "tool", "category": "Network", "description": "Finds the shortest or quickest route along a network of lines, such as the roads of NVDB, from each feature on From to the nearest feature on To, or to every one, with Dijkstra's algorithm. The lines are joined where their ends meet. Points are put on the nearest place of the nearest line. One-way roads and speeds come from attributes of the network. The routes are lines with the attributes of both ends, the length and the time; those with no route go to Unreached.", "inputs": [ "Network", "From", "To" ], "outputs": [ "Routes", "Unreached" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "to", "label": "Routes", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "nearest", "label": "To the nearest on To" }, { "value": "all", "label": "To every one on To" } ], "default": "nearest", "hint": "Every one gives a route for each pair, as many as From times To" }, { "key": "rules", "label": "Rules of the road", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "own", "label": "My own, below" }, { "value": "osm", "label": "OpenStreetMap" }, { "value": "nvdb", "label": "NVDB from Lastkajen" } ], "default": "own", "hint": "Ready rules for OpenStreetMap or NVDB: one-way streets, roundabouts, speed limits and which roads may be used, by how one travels. My own: the conditions and speeds below" }, { "key": "mode", "label": "Travelling", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "car", "label": "By car" }, { "value": "bike", "label": "By bicycle" }, { "value": "walk", "label": "On foot" } ], "default": "car", "hint": "With ready rules: by car at the speed limits, by bicycle at 18 km/h, on foot at 5 km/h" }, { "key": "avoid", "label": "Keep away from", "kind": "picks", "shape": "some of the values in choices: a list of strings, or one string separated by commas", "choices": [ { "value": "motorway", "label": "Motorways" }, { "value": "ferry", "label": "Ferries" }, { "value": "unpaved", "label": "Gravel and other unpaved roads" }, { "value": "toll", "label": "Tolls" } ], "default": "", "hint": "With ready rules, these roads are left out of the network" }, { "key": "cost", "label": "By", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "length", "label": "Shortest: the length" }, { "value": "time", "label": "Quickest: the time, by the speed" } ], "default": "length" }, { "key": "speed", "label": "Speed in km/h", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Along the line as it is drawn, for the quickest route: an attribute such as F_Hogst_225 in NVDB, or a number" }, { "key": "speed_against", "label": "Speed against the line", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Against the way the line is drawn, such as B_Hogst_225 in NVDB. Empty uses the speed along it" }, { "key": "default_speed", "label": "Speed where none is given", "kind": "text", "shape": "a string", "default": "50", "hint": "In km/h, where the speed is empty or 0" }, { "key": "along", "label": "May be travelled along the line when", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "A condition for one-way roads, such as F_ForbjudenFardriktning is null. Empty: always" }, { "key": "against", "label": "May be travelled against the line when", "kind": "expression", "shape": "an expression over the attributes of the stream on the port; text in 'single quotes', names with spaces in \"double quotes\"", "port": "Network", "default": "", "hint": "Such as B_ForbjudenFardriktning is null. Empty: always" }, { "key": "snap", "label": "Farthest from the network, in metres", "kind": "text", "shape": "a string", "default": "500", "hint": "A point is put on the nearest place of the nearest line. One farther away than this is not reached" }, { "key": "tolerance", "label": "Line ends that meet, within", "kind": "text", "shape": "a string", "default": "0.01", "hint": "In metres. Lines are joined where their ends are this close, not where they only cross, as at a bridge" } ] }, { "type": "ModelRunner", "title": "Run model", "group": "tool", "category": "Workflow", "description": "Runs another model, so that work can be split into models of their own and run as a chain: fetch, then prepare, then publish. It waits until the other model has run, and what is connected after it runs after that; or it starts the other model by itself and goes on. Connect a stream to After to run it after that stream is done. The log of the other model comes in this log, and Result tells how each of its nodes went.", "inputs": [ "After" ], "outputs": [ "Result" ], "outputs_follow_settings": false, "offered": true, "params": [ { "key": "path", "label": "Model", "kind": "path", "shape": "a file, a folder, a pattern with * or a web address; relative paths start at the folder of the model", "default": "", "hint": "The model to run, an .ographis file (or .json, as before 0.75). Paths in it start from its own folder" }, { "key": "wait", "label": "This model", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "true", "label": "Wait until it has run, then go on" }, { "value": "false", "label": "Start it and go on at once" } ], "default": "true", "hint": "Started without waiting, it runs by itself with og, and writes its log beside it" }, { "key": "variables", "label": "Variables", "kind": "text", "shape": "a string", "default": "", "hint": "Values for variables of the other model: year=2026; county=14. $(name) gives a variable of this model" }, { "key": "on_error", "label": "If it fails", "kind": "choice", "shape": "one of the values in choices, as a string", "choices": [ { "value": "stop", "label": "Stop here too" }, { "value": "go", "label": "Go on all the same" } ], "default": "stop", "hint": "Whether what comes after Run model runs when a node of the other model fails" } ] } ] }