Custom Ortho Tiles
Use your own pre-built ortho tiles alongside XEarthLayer's streamed scenery.
If you already have pre-generated Ortho4XP tiles for your favourite airports or regions, you do not have to give them up. XEarthLayer’s patches system lets you drop those tiles into a directory so they are served directly to X-Plane instead of streaming imagery for those areas.
This is ideal when you want to keep specific zoom levels, custom imagery sources, or hand-tuned scenery for regions you fly most often, while still getting XEarthLayer’s streamed coverage everywhere else.
How Patches Work
A patch is a folder containing standard Ortho4XP output — DSF meshes, terrain definitions, and DDS textures — placed inside the XEarthLayer patches directory. When XEarthLayer starts, it scans the patches directory for valid tile data and registers which 1 degree by 1 degree regions are covered. Any request from X-Plane that falls within a patched region is served directly from your local files rather than being streamed.
Patched regions completely replace package files for those 1 degree by 1 degree areas. There is no blending or mixing — your custom tiles take full priority.
Directory Structure
Place your Ortho4XP output folders inside the patches directory:
~/.local/share/xearthlayer/patches/
├── A_MyRegion/
│ ├── Earth nav data/
│ │ └── +40-080/
│ │ └── +41-074.dsf
│ ├── terrain/
│ │ └── *.ter
│ └── textures/
│ └── *.dds
└── B_AnotherRegion/
└── ...Each subfolder inside patches/ is one patch. The required contents are:
| Directory | Contents | Required |
|---|---|---|
Earth nav data/ | At least one .dsf file in the standard +NN-NNN/ subfolder layout | Yes — this is how XEarthLayer detects which regions the patch covers |
terrain/ | .ter terrain definition files | Yes |
textures/ | .dds texture files | Yes |
A_HighRes takes precedence over B_LowRes for the same region. Use letter prefixes to set the order you prefer.Configuration
Patches are enabled by default. The relevant settings live in the [patches] section of config.ini, and the patches directory is in XEarthLayer’s data directory:
| What | Location |
|---|---|
| Packages and patches | ~/.local/share/xearthlayer/ |
| What | Location |
|---|---|
| Packages and patches | ~/Library/Application Support/XEarthLayer/ |
[patches]
enabled = true
directory = ~/.local/share/xearthlayer/patches| Parameter | Default | Description |
|---|---|---|
enabled | true | Enable or disable the patches system |
directory | ~/.local/share/xearthlayer/patches (~/Library/Application Support/XEarthLayer/patches on macOS) | Path to the directory containing your patch folders |
~/.xearthlayer/patches, that path is pinned in your configuration and keeps working. Move them yourself if you want them in the new location, and set patches.directory in the same breath.You can also manage patches from the command line. See the CLI Reference for available xearthlayer patches commands.
Prefetch Integration
XEarthLayer automatically detects which 1 degree by 1 degree regions are covered by your patches and excludes them from streaming and prefetching. This means:
- No bandwidth is spent downloading tiles you already have locally
- Prefetch cycles skip patched regions entirely
- No configuration is needed — detection is automatic based on the DSF files in your patches
Verification
Use the CLI to confirm your patches are correctly set up:
# List all patches and their validation status
xearthlayer patches list
# Validate directory structure and file integrity
xearthlayer patches validateThe list command shows each patch folder, the 1 degree by 1 degree regions it covers, and whether the required files are present. The validate command performs a deeper check on directory structure and file integrity.
In flight, patched areas are easy to spot — your custom tiles appear immediately with no download delay, while streamed areas may take a moment to load on a cold cache.
Earth nav data/ directory or contains no .dsf files, XEarthLayer will skip it and log a warning. Run xearthlayer patches validate to diagnose any issues.