Py3DTiles
Python module to manage 3DTiles format.
Declared in: projects/Py3DTiles/default.nix
Try the program in a shell
-
Install Nix
- Bash
-
$ apt install --yes curl git jq nix
- Bash
-
$ apt install --yes curl git jq nix
- Bash
-
$ pacman --sync --refresh --noconfirm curl git jq nix
-
Download a configuration file
# default.nix { ngipkgs ? import (fetchTarball "https://github.com/ngi-nix/ngipkgs/tarball/main") { }, }: ngipkgs.demo-shell ( { ... }: { programs.py3dtiles.enable = true; } )
-
Enable binary substituters
- Bash
-
$ export NIX_CONFIG='substituters = https://cache.nixos.org/ https://ngi.cachix.org/ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ngi.cachix.org-1:n+CAL72ROC3qQuLxIHpV+Tw5t42WhXmMhprAGkRSrOw='
-
Build and run the shell
- Bash
-
$ nix-build ./default.nix && ./result
- Bash
-
$ nix-build ./default.nix && ./result
- Bash
-
$ rev=$(nix-instantiate --eval --attr sources.nixpkgs.rev https://github.com/ngi-nix/ngipkgs/archive/master.tar.gz | jq --raw-output)$ nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/$rev.tar.gz --packages nix --run "nix-build ./default.nix && ./result"
- Bash
-
$ nix-build ./default.nix && ./result
-
Usage Instructions
-
Run
py3dtilesin the terminal
-
Options
programs.py3dtiles
-
Whether to enable py3dtiles.
- Type:
boolean- Default:
false- Declared in:
- projects/Py3DTiles/programs/py3dtiles/module.nix
-
The py3dtiles package to use.
- Type:
package- Default:
pkgs.py3dtiles- Declared in:
- projects/Py3DTiles/programs/py3dtiles/module.nix
programs.py3dtiles.enable
programs.py3dtiles.package
Examples
basic
{ ... }: { programs.py3dtiles.enable = true; }
Declared in: projects/Py3DTiles/programs/py3dtiles/examples/basic.nix
Metadata
This project is funded by NLnet through these subgrants:
- Core
- Py3DTiles
Related links: