---
name: "osgearth_sharedlayer"
section: "1"
platform: "linux"
package: "osgearth"
version: "2.7.0+dfsg-2+b3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/osgearth_sharedlayer"
---

# osgearth\_sharedlayer(1)

demonstration of shared layers

## NAME

osgearth\_sharedlayer - demonstration of shared layers

## SYNOPSIS

**osgearth\_sharedlayer**  **--shapefile** *file.shp*

## DESCRIPTION

**osgearth\_sharedlayer** is a sample program which demonstrates the use of shared layers. A shared image layer is one that becomes available to other image layers during the rendering phase. Thus if you share a layer, you can access it in a customer shader and use it to modulate another layer.

In this example, we render a masking layer from a shapefile using the rasterization (agglite) driver. We don't draw this layer directly; instead we use it as a mask and use that mask to modulate the imagery layer from a custom shader, drawing random colors where the mask exists.

## OPTIONS

- FC**--shapefile**F\[0\] *file.shp*

  Path to the shapefile
