Raster1Bit.cpp File Reference
#include "RasterExamples.h"
#include <terralib/gdal/Utils.h>
#include <terralib/geometry.h>
#include <terralib/raster.h>
#include <iostream>
#include <string>

Go to the source code of this file.

Functions

void Raster1Bit ()
 This example shows how to create an 1bit Raster in memory, and how to save an 1bit Raster in Tiff format. More...
 

Function Documentation

void Raster1Bit ( )

This example shows how to create an 1bit Raster in memory, and how to save an 1bit Raster in Tiff format.

Definition at line 12 of file Raster1Bit.cpp.

References te::rst::Raster::getNumberOfColumns(), te::rst::Grid::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Grid::getNumberOfRows(), te::sa::Grid, te::rst::RasterFactory::make(), te::dt::R1BIT_TYPE, te::rst::Raster::setValue(), and te::dt::UCHAR_TYPE.

Referenced by main().