This is the command osgearth_sharedlayer that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
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
--shapefile file.shp
Path to the shapefile
24 November 2015 osgearth_sharedlayer(1)
Use osgearth_sharedlayer online using onworks.net services