Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>OceletNew to Visual Studio Code? Get it now.
Ocelet

Ocelet

Cirad Tetis

|
9 installs
| (2) | Free
Ocelet spatial modelling language (.oclt): highlighting, language server and model runs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ocelet for VS Code

Support for the Ocelet modelling language (.oclt files):

  • syntax and semantic highlighting (variables, parameters, attributes, methods, model and library types);
  • errors and warnings as you type;
  • content assist (Ctrl+Space), go to definition (F12), hovers, document symbols (Ctrl+Shift+O);
  • running models with the VS Code Run button.

An Ocelet project is a folder containing an oclt/ subfolder; the model name is read from the .project file next to it (otherwise, the folder name is used). Do not delete .project: the model name gives the Java package (fr.ocelet.model.<name>), so without it a model whose folder was renamed (or whose code uses qualified names such as fr.ocelet.model.arbocarto.Action) shows "cannot be resolved" errors. A project without .project gets a warning in the Problems panel and when it is run; creating or deleting a .project restarts the language server.

Projects created by the Ocelet Modelling Platform also have a .classpath (pointing to the OMP's old jars): the Java extension (Red Hat) imports them as Eclipse projects, shows errors everywhere in src/ and writes into the same bin/ folder ("ENOTEMPTY" when a model is run). The generated Java is compiled by the Ocelet extension, so disable the Java extension for these folders only: Extensions (Ctrl+Shift+X)

Language Support for Java > Disable (Workspace). When a folder contains only Ocelet projects with a .classpath, the Ocelet extension suggests it.

Creating a project

Right-click a folder in the Explorer > New Ocelet Project... (or click the project icon in the Explorer's title bar, next to "New Folder", to create it at the root of the opened folder), then type the project name. A subfolder with that name is created, with the same layout as the Ocelet Modelling Platform: oclt/<Name>.oclt (a minimal scenario, opened in the editor), config/gradients.ocg, data/, output/, src/, bin/ and a .project file. Spaces become _ and the first letter is capitalized; the name must be a valid Java identifier (it becomes the model's class name).

Example models

Ready-to-run Ocelet models are in the model-examples group, for instance geoxel_automata: 21 cellular automata (Game of Life, Brian's Brain, Star Wars…) on geoxel entities, one exchange interaction and the rule as an aggreg chosen live in the viewer — it runs on the GPU when one is there. Three small models check the fast engines (see Fast relations): cell_gol and geoxel_gol (the same Game of Life on cells and on geoxels, same checksums), and dicell_sum (two grids of different resolutions). Clone a model next to your other projects and open its folder:

git clone git@gitlab.cirad.fr:tetis/ocelet/oceletjava/model-examples/geoxel_automata.git

Running a model

Open a .oclt file of the model, then click the ▷ button at the top right of the editor (or Ctrl+F5, or F5 with the "Ocelet: Run Model" configuration). From the Explorer: right-click the project folder (or its oclt/ folder, or a .oclt file) > Ocelet: Run Model; this entry only appears on Ocelet projects (folders containing oclt/*.oclt). Without any file open: the Projets Ocelet view of the Explorer lists the projects of the workspace, with the same buttons in its title bar (run, Build and Run, Build, stop, map viewer) acting on the selected project (the project of the active .oclt file, or the only one); a click on a project selects it and shows its content without opening any file (click a file of the project to open it); right-click a project > Delete Project... moves its whole folder to the trash after a confirmation (refused while the model runs). The same buttons are always shown in the status bar (bottom left) for the current project: the project selected in the view or that of the active file; a click on its name changes it. The Explorer's title bar also has these buttons when the selected folder or file is in an Ocelet project (a folder containing oclt/*.oclt), acting on that project. VS Code shows the buttons of views and editors only on mouse hover unless "workbench.view.alwaysShowHeaderActions": true and "workbench.editor.alwaysShowEditorActions": true are set. The extension:

  1. generates the Java code from the .oclt files into the project's src/ folder;
  2. compiles it into bin/ (a JDK 21 is required);
  3. runs the model from the project folder (paths such as data/, output/… are relative to it).

While a file of the model is open, the language server generates the Java itself each time a .oclt file is saved without errors (only that file, in about a second), and records it in src/.ocelet-generated. Once every .oclt file of the model is generated, the server also compiles the Java in the background into bin/ (about a second, 3 s for the first compilation after VS Code starts; a JDK is required), and records it in bin/.ocelet-compiled: steps 1 and 2 are then skipped and the model starts at once (0.4 s instead of 14 for LandCraft). If you run the model while the server is still compiling, the run waits for it. A file modified but not saved, or with errors, is not generated by the server: steps 1 and 2 then run as usual and show the errors. While a model runs (.ocelet-running in the project folder), the server does not replace its bin/ folder.

Steps 1 and 2 are skipped when no .oclt file has changed since the last successful build (a fingerprint is kept in bin/.ocelet-build); the Ocelet: Build and Run command (or "force": true in launch.json) regenerates and recompiles everything anyway. After each generation, the Debug Console shows the time spent in each step and the slowest files.

Each generation (by the command line, the run, or the language server) also removes from src/fr/ocelet/model/<model>/ the .java files it did not write again: the old files of an entity, a structure, a relation or a .oclt file that was deleted or renamed, which javac would otherwise still compile (strange errors on classes that no longer exist). The files written from each .oclt are listed in src/.ocelet-files; a .java of those folders that this manifest does not know (generated before the manifest existed, or hand-written) is removed only when it looks generated by Ocelet (a package line and the @SuppressWarnings("all") annotation Xtext puts on every generated type), otherwise it is left alone with a warning: keep hand-written Java out of the generated packages, in another folder of src/. Nothing else in src/ is ever touched.

The output is shown in the Debug Console; the ■ button stops the model. JVM options for the model are set with ocelet.model.vmargs (default -XX:MaxRAMPercentage=50: up to half of the computer's memory; -Xmx8g for a fixed amount). In launch.json:

{ "type": "ocelet", "request": "launch", "name": "Ocelet: Run Model", "project": "${file}" }

Optional attributes: mainClass, vmArgs, args (model parameters), generate (false to skip Java generation), force (true to regenerate even if nothing changed).

Fast relations (multi-core and GPU)

Some forms of interactions are recognized when the model is generated and run on a faster engine: all the cores of the computer, or the graphics card (GPU, OpenCL) when there is one. There is nothing to declare in the .oclt, and the results are identical to the classic pair-by-pair iteration: same values, same order of candidates in the aggregations, same random draws under setRandomSeed. Anything else keeps the classic iteration.

Relation Form recognized Engine
Cells of one grid of squares, e.g. relation Life<Square s1, Square s2> the exchange of one property, s2.nb = s1.nb then s1.nb = s2.nb, aggregated by an agg GPU, else all cores, else the single-core cell engine
Geoxels made with createSquares the same exchange, aggregated by << Aggreg GPU
Geometry–cell, e.g. relation GeomPix<Geom geom, Pixel pixel> a cell property computed from the geometry and the parameters only: pixel.value = geom.level * k (complete if/else allowed) the value is computed once per geometry; with an agg, the cells aggregate their geometries on all cores, on the GPU for large relations
Geometry–cell an interaction that only reads the cell: zone.total = pixel.value with agg { zone.total << Sum }, or filling a KeyMap the pairs are replayed without the per-cell commits of the classic iteration
Cells of two grids, e.g. relation Dim<Fine f, Coarse c> one property of one grid computed from the other grid and the parameters: c.total = f.v with agg { c.total << Sum } (each coarse cell sums its block of fine cells), f.share = c.total * k per block of fine cells instead of pair by pair, on all cores with an agg; the coarse side on the GPU for large relations

To stay on these engines:

  • write the aggregation with a standard operator (Sum, Mean, Max, Min) or with an aggreg whose body uses arithmetic, comparisons, let, if/else and loops over values: such an aggreg also gets a GPU version, generated automatically;
  • in a geometry–cell or two-grid interaction, use the role only through its properties (pixel.value, pixel.cell.x): passing it to a function (process.run(geom, pixel)) keeps the classic iteration;
  • geometry–cell and two-grid relations go to the GPU from about 65,000 pairs; below that, the cores are faster than the transfers to the graphics card.

When the GPU is used, the Debug Console says so once per interaction, for example Ocelet GPU: the interactions on nb (GolAggreg) run on NVIDIA GeForce RTX 3070 Laptop GPU.

@gpu: a guarantee that a loop stays on the GPU. Write @gpu before a loop or a block of a scenario (@gpu while (step < steps) { ... }, also with @view(all) @gpu while ...): the editor then checks every statement of the block, and of the functions it calls. A statement that cannot run on the graphics card (a write of a cell or geoxel property outside a translated loop or interaction, a loop or an interaction that runs on the processors only, with the reason) is an error; a read of the values by the program (an output: a file, a print, @view) is allowed and shown as an information, "synchronization point", with the properties that come back from the GPU there. A summary on the @gpu lists the operations that run on the GPU. The results are the same with and without @gpu. Loops over geoxel entities have no GPU form yet: in a @gpu block they are an error for now.

Checking the results. These JVM options (setting ocelet.model.vmargs, or vmArgs in launch.json) turn the engines off one by one; the output files must stay identical. A difference is a bug: please report it with the model.

Option Effect
-Docelet.gpu=off no GPU: the same interactions on the cores
-Docelet.transfer=off interactions between two grids through the classic iteration
-Docelet.gather=off geometry–cell (and geoxel–cell) interactions that write a cell property computed from the other role through the classic iteration
-Docelet.pairs=off geometry–cell interactions that only read the cells through the classic iteration
-Docelet.frame=off interactions of a cell grid on the former grid engine

Successive runs. A run started again from the live viewer (Restart), or several simulations chained by an application in the same Java process, give exactly the results of a first run: the numbering of the entities starts again (it orders the hash maps keyed by entities) and the text files left open by printToFile are closed.

finalize(). Do not name a function or a service finalize() (without parameters): it would override the Java finalize() method, which the garbage collector calls by itself at unpredictable times. The editor shows a warning; rename it, for example finish(). The generated code ignores the garbage collector's calls until then.

Viewing raster results (GeoTIFF)

Double-click a .tif file in the Explorer, or right-click a folder containing GeoTIFF files (directly or in subfolders: first entry of the menu) > Ocelet: View Rasters (GeoTIFF). Folders that contain GeoTIFF files have a 🗺 badge in the Explorer, and the Geographic Data view (bottom of the Explorer) lists them: a click opens the viewer on the first image of the folder. The viewer shows the GeoTIFF files of the folder itself (not of its subfolders) one after the other (one file per date, as models write them):

  • Series of shapefiles: a folder without GeoTIFF files shows its shapefiles as a series: each file is a time step (LandCraft cropLu2023.shp...), or each date of each file when they have a date field, found automatically (Arbocarto: a file per year with the parcels of every week and date_debut); files with other names make other series (menu Series); Field: the field giving the colours, with the palettes, modes (a text field as categories), the initial-state scale, the legend, the loop and the exports of the rasters; double-click a .shp to open it;
  • Layers: static maps added over or under the series, kept per folder: vectors (shapefile with its .dbf/.prj/.cpg, GeoJSON, KML, GPX: administrative limits, roads, parcels...) drawn over it, fixed GeoTIFF rasters (relief, land cover...) under it, each reprojected into the projection of the map; per layer: show/hide, colour, filled or not, line width (vectors) or palette (rasters), opacity, order (▲ ▼), remove (✕); the attributes of the object under the cursor are shown at the bottom; the layers are in the legend and in the exports;
  • the loop button next to ▶ plays the series in a loop (back to the first image after the last one; click again to stop), ▶ plays it once; Export > Animated GIF: animated GIF of the whole series (one map sheet per image, at the reading speed, looping);
  • ◀ ▶ (or the arrow keys), slider and ▶ to play the series (Space); Follow the run: each file the running model creates or rewrites is shown as soon as it is written;
  • the menu next to the slider lists all the folders of maps of the model's outputs (below the output folder, e.g. landuse/Crop, pop/pop): choosing one shows it in the same viewer; Folder... opens any other folder;
  • Palette: the gradients of the project (config/gradients.ocg, the file used by Ocelet; the .ocg button opens it, changes apply at once) and built-in palettes (viridis, cividis, magma, turbo, ColorBrewer, Tableau categories);
  • Mode: continuous, equal classes, quantiles, or categories (one colour per value, chosen automatically for rasters of a few integer codes). Names of the values come from a CSV file of the folder with a value column (LandCraft's majority__lcCode.csv: LcName;value); a color column (rgb(r,g,b) or #RRGGBB) gives their colours;
  • Scale: Initial state by default: the min and max of the first image of the series (the initial state of the model), kept for all the dates so that the legend stays the same (values outside get the first or last colour; in categories mode, the values of the initial state keep their colours); or per image, or fixed; the min and max can be typed in the toolbar or in the legend (above and below the colour bar), which fixes the scale; Transparent: a value left out, 0 by default (often outside the study area; empty the field for none, kept for the folder); nodata values are transparent; values are shown rounded to 2 decimals;
  • hovering shows the value, the column/line, the coordinates and the latitude/longitude;
  • Background: background behind the raster: the colour of the theme, white, black or Other... (colour picker); also used behind the map in the PNG export;
  • Basemap: background map free to use without a key: OpenStreetMap, OpenTopoMap, IGN plan, aerial photos and cadastre (France and overseas), Sentinel-2 cloudless 2016 (EOX), NASA Blue Marble; the attribution is shown on the map (Internet needed; projections known: WGS 84 UTM zones, Lambert-93, the French overseas UTM zones, ETRS89-LAEA, Mauritius, or a .prj/.aux.xml next to the file);
  • Import from QGIS...: imports QGIS styles: layer styles (.qml: raster unique values / paletted, pseudocolor; vector graduated and categorized), colour ramps exported from the Style Manager (.xml), colour maps exported from the raster symbology (.txt), palettes (.gpl). Styles tied to values are drawn as in QGIS (mode QGIS style: same colours, classes and labels); plain colour ramps can be added to config/gradients.ocg (then usable by the model) or kept in the viewer. Imported palettes are listed under "Imported (QGIS)" for all projects (✕ to delete);
  • the legend is compact; + shows it in detail, ▾ collapses it to its title, ✕ closes it (the Legend button at the bottom right shows it again);
  • large rasters (several GB) are read in bands, resampled to at most 4096 pixels (or from their overviews when they have some);
  • Export > PNG: a map sheet with title, legend, scale bar and north arrow;
  • the viewer opens beside the current editor (drag its tab anywhere); ⧉ moves it to a separate VS Code window (another screen...);
  • everything works on the current project: the Ocelet project of the file being edited (kept when the viewer or another tab is active); the Geographic Data view shows only it (its name next to the title; the list button shows all the projects); the cat button shows the tree of the folders of the current project only; the other projects with maps are listed at the end, not selectable (open one of their files, or right-click their folder, to go to them); the Explorer's context menu on a project or one of its folders makes it the current project and shows the tree of that folder (VS Code does not tell extensions which folder is selected in the Explorer);
  • the Geographic Data view is a tree: Ocelet projects, their folders (chains of single subfolders on one line, as in the Explorer) and the folders of images (cat icon, number of GeoTIFF files); a click on a folder of images opens the viewer on its first image;
  • the viewer button (a cat in front of a window) next to the Run button, on any file of an Ocelet project that contains GeoTIFF files (.oclt, CSV, configuration...), opens a popup tree of the folders of images of that project only: indented, a click on a folder ▾ / ▸ folds or unfolds it, a click on a folder of images (cat icon) opens the viewer; the folder of the edited file is selected when it has images; with a single folder of images, the viewer opens at once.

The settings are kept per folder. Rasters larger than 4096 pixels are shown resampled.

Live view of a run (@view)

A scenario with @view(entities) while (...) opens the viewer by itself on the run (Animation): the property of the geoxels shown, Vitesse (iterations per second of the loop, 0 = as fast as possible, the default), the choices offered by the scenario, play / pause and restart. Closing the viewer stops the run.

  • Stream: the runtime serves its frames to the viewer directly, on a local WebSocket (127.0.0.1, a free port and a random token written to output/view/live.json while the run goes on; in a remote window the port goes through VS Code's port forwarding). The page of the viewer asks for a frame once the previous one is drawn: the model never waits for the viewer, and the viewer shows as many frames as it can draw, at the full resolution of the cells. Vitesse only slows the model down on purpose. If the connection is lost, the viewer tries again every second (10 times), then follows the files.
  • Files: the frames are no longer written to output/view/<property>/ at each iteration, only the first and the last one (a viewer opened afterwards, or a run from the command line, has the state of the run). To record every frame and play the run again in the viewer (slider, GIF export), run with the Java option -Docelet.view.frames=all.
  • Restart: the scenario runs again from its start, which can take long before its loop shows again. Meanwhile the Restart button waits (its arrow turns), Play and Pause too, and the playback bar says Restarting the scenario… in the place of the file name, in every viewer of the run (the run says "restarting": true in live.json and in the states of its stream). A second Restart asked meanwhile is dropped (two clicks, one restart); a property, a speed or a choice changed meanwhile is the one of the new run. With an older runtime, which does not say it, the button comes back when the new run shows, or after 15 s without an answer.
  • An older runtime without stream (no port in live.json): the viewer follows the frame files as before (live-control.json for its controls).
  • The viewer opens by itself only for a run of a project the Projets Ocelet view knows (same rules as the language server, setting ocelet.projects.exclude): the runs of the tests or of copies kept aside do not open a viewer nor get a control file. A viewer opened by hand on such a run follows it as usual.

Command line

The extension installs an ocelet command in ~/.ocelet/bin (ocelet.cmd and, for Git Bash, Linux and macOS, ocelet), added to the PATH of VS Code terminals. It runs with the Node.js embedded in VS Code: nothing else to install. It is meant for terminals, scripts and coding assistants (Claude Code…), which can check their changes to a model by themselves:

ocelet check            # validates the .oclt files, without generating Java (fast)
ocelet build            # generates the Java and compiles it
ocelet run -- <args>    # generates, compiles and runs the model
ocelet export [--runnable] [--out <folder>]   # exports the model as a .jar (see below)
ocelet help             # all options (--force, --main, --vm)

The project is the folder containing oclt/: by default the one of the current folder, or given as an argument (a project folder or a .oclt file). Messages on .oclt files have the usual compiler format, oclt/X.oclt:line:column: error|warning|info: message. Exit code: 0 success, 1 errors in the .oclt files, 2 Java compilation errors, 3 the model stopped with an error, 4 installation or usage problem. Java is found like the extension does (the ocelet.java.home setting is passed on); OCELET_JAVA_HOME chooses another one. GDAL too (see GDAL): the ocelet.gdal.home setting is passed on, OCELET_GDAL_HOME chooses another one.

Exporting a model as a .jar

Right-click a .oclt file or the folder of a model (or its oclt/ folder) in the Explorer, or a project of the Ocelet Projects view > Ocelet: Export Model as .jar (also in the Command Palette: the model of the active file, else the one you choose). Two kinds of export, like File > Export > JAR file and Runnable JAR file in Eclipse:

  • Library: <model>/export/<Name>.jar, the content of bin/ (classes of the model), for a Java program that runs the model (Arbocarto_UI for instance). The jars of the Ocelet engine are not included: the program needs them on its classpath too (the lib-model folder of the extension, the fr.ocelet.* jars first), and its JVM must be started with --enable-native-access=ALL-UNNAMED, a GDAL (-Docelet.gdal.home=<folder> or OCELET_GDAL_HOME) and -Dfile.encoding=COMPAT. The final message and the Output panel ("Ocelet") give the folders.
  • Runnable: <model>/export/<Name>-run/ with <Name>.jar (Main-Class = the main class of the model, Class-Path = lib/*.jar, Enable-Native-Access: ALL-UNNAMED), lib/ (the 15 jars of the engine), run.cmd (Windows) and run.sh (Linux, macOS; from Git Bash it calls run.cmd), and a README.txt. The launchers run the model from its folder, where it reads its data (default: the folder that contains export/; another one can be given: run.cmd <model folder> [parameters]); they take the first Java 27 or later of OCELET_JAVA_HOME, JAVA_HOME, the PATH and the usual installation folders, and GDAL from OCELET_GDAL_HOME, else C:\OSGeo4W, else the most recent C:\Program Files\QGIS x.y.z (Windows), conda, /usr/local, /usr (Linux) or Homebrew (macOS). Memory: -XX:MaxRAMPercentage=50, changed with OCELET_VM_ARGS (-Xmx8g…).

Both write a VERSION.txt (extension version, model folder, git commit of the model, date). The model is generated and compiled first when a .oclt file changed since the last build. The jar holds bin/ only: data files read by the model (data/, config/…) stay in the model folder.

From a terminal: ocelet export [model] [--runnable] [--out <folder>] [--main <class>] [--force], or node <extension folder>/export.js with the same arguments. Node scripts can call require('<extension folder>/export.js').exportJar({ projectDir, runnable, outDir, jarName }).

Restricted Mode (folder not trusted)

When VS Code asks whether you trust the authors of the opened folder and you answer no, it opens it in Restricted Mode. Ocelet then only keeps what displays files: syntax highlighting, Windows-1252 encoding of .oclt files, icons, project creation. The language server (errors, content assist) and running models, which execute Java, stay disabled, and a message says so; they start as soon as the folder is trusted (Ctrl+Shift+P > "Workspaces: Manage Workspace Trust", or the "Restricted Mode" indicator in the status bar).

Requirement: Java 21

Ocelet needs an installed Java 21 or later (preferably a JDK, for instance Liberica JDK 21 Full). The language server, the generator and the models run with it. Models are started with -Dfile.encoding=COMPAT, so that text files are read and written with the system encoding (Windows-1252 on Windows), as with Java 8.

The extension finds it automatically (JAVA_HOME, PATH, Windows registry, usual installation folders), even if JAVA_HOME points to another Java (for instance Java 8, kept for other software): there is no need to change JAVA_HOME, installing Java 21 is enough. If none is found, an error message says so, lists the Java versions found, and lets you download Liberica JDK 21 or choose its folder; it can also be set manually:

Setting Role
ocelet.java.home Java 21 (or later) folder (empty: automatic detection)
ocelet.server.vmargs JVM options of the language server (default -Xmx3g -Xms128m -XX:+ExitOnOutOfMemoryError -XX:G1PeriodicGCInterval=60000 -XX:MinHeapFreeRatio=40 -XX:MaxHeapFreeRatio=70). The server keeps the models of the opened folder in memory (about 100 MB for a 10,000-line model); -Xms128m keeps the initial heap small (otherwise 1/64 of the machine memory, 1 GB on a 64 GB PC); the last three options give the unused memory back to the system when the server is idle (a cleanup after one minute without any, the heap then keeps at most 70 % free); increase -Xmx if the client reports that it cannot connect to the server
ocelet.model.vmargs JVM options used to run models (default -XX:MaxRAMPercentage=50, up to half of the memory)

Requirement: GDAL

The models read and write their files (shapefiles, GeoTIFF rasters, KML) and change coordinate systems with GDAL and PROJ, native libraries that the engine calls directly (Java's Foreign Function & Memory API). GDAL is not bundled with the extension: install it once, the extension finds it.

System Install
Windows QGIS (standalone installer: it contains GDAL), or OSGeo4W (Express install, with the gdal package)
Linux the package of the distribution: sudo apt install gdal-bin (Debian, Ubuntu), sudo dnf install gdal (Fedora), or conda (conda install -c conda-forge gdal)
macOS Homebrew: brew install gdal

Where the extension looks, in this order (the first folder that contains the GDAL library is used):

  1. the ocelet.gdal.home setting: the GDAL folder, the one that contains bin\gdalNNN.dll and share\proj on Windows (for instance C:\OSGeo4W or C:\Program Files\QGIS 3.40.10), lib/libgdal.so on Linux, lib/libgdal.dylib on macOS; the library file itself is also accepted. A setting without a GDAL library is ignored, with a message;
  2. the environment variable OCELET_GDAL_HOME (same content);
  3. for the developers of the extension, experiments/gdal/dist of the ocelet-vscode checkout (the GDAL the tests and the reference outputs were made with);
  4. the usual installations: on Windows C:\OSGeo4W, C:\OSGeo4W64, then every C:\Program Files\QGIS * (the newest version first); on Linux $CONDA_PREFIX, /usr/local, /usr (also when the distribution only installed /usr/lib/<architecture>/libgdal.so.NN, without the development files), /opt/conda; on macOS $CONDA_PREFIX, /opt/homebrew/opt/gdal, /usr/local/opt/gdal.

The folder found is given to the model's Java with -Docelet.gdal.home=<folder> (unless the ocelet.model.vmargs setting already gives it). When none is found, the model's output says so in one line, and the model still runs: GDAL is needed only from the first file or coordinate system the model reads or writes, where the engine stops with an explanation.

Ocelet: Show GDAL in Use (Ctrl+Shift+P) shows the GDAL chosen and why, or the folders tried, in the Output panel ("Ocelet"). From a terminal, node <extension folder>/gdal.js prints the same report.

The results of a model can differ in the last digits of reprojected coordinates from one GDAL/PROJ version to another (QGIS and OSGeo4W are not always at the same version): to compare runs byte for byte, use the same GDAL (set ocelet.gdal.home).

Commands

  • Ocelet: New Project... (create a project; also in the Explorer's context menu)
  • Ocelet: Run Model
  • Ocelet: Build and Run (regenerate, recompile and run)
  • Ocelet: Export Model as .jar (export the model as a library or runnable .jar; also in the Explorer's context menu on a .oclt file or a model folder, see Exporting a model as a .jar)
  • Ocelet: View Rasters (GeoTIFF) (raster viewer, also in the Explorer's context menu)
  • Ocelet: Restart Language Server
  • Ocelet: Choose Java Folder
  • Ocelet: Show GDAL in Use (the GDAL used by the models, and why)

If something goes wrong: Output panel (Ctrl+Shift+U), select "Ocelet" in the list.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft