38 #define DEFAULT_FORMAT ByteHFA
163 if ( format ==
"GreyTiff" ) {
167 else if ( format ==
"GreyTiff100" ) {
171 else if ( format ==
"FloatingTiff" ) {
175 else if ( format ==
"GreyBMP" ) {
179 else if ( format ==
"FloatingHFA" ) {
183 else if ( format ==
"ByteHFA" ) {
187 else if ( format ==
"ByteASC" ) {
191 else if ( format ==
"FloatingASC" ) {
197 std::string msg =
"Unknown map format: ";
198 msg.append( format );
251 int width =
static_cast<int>( (xmax-
xmin) / xcel +0.5);
258 int height =
static_cast<int>( (
ymax-
ymin) /
ycel +0.5);
267 std::string msg =
"Cell width not set.\n";
281 std::string msg =
"Cell height not set.\n";
295 std::string msg =
"XMin not set.\n";
309 std::string msg =
"Ymin not set.\n";
323 std::string msg =
"Xmax not set.\n";
337 std::string msg =
"Ymax not set.\n";
351 std::string msg =
"NoDataValue not set.\n";
365 std::string msg =
"Projection not set.\n";
void warn(const char *format,...)
'Warn' level.
double Scalar
Type of map values.
static Log * instance()
Returns the instance pointer, creating the object on the first call.
A common interface to rasters.
void error(const char *format,...)
'Error' level.
const Header & getHeader() const
static RasterFactory & instance()
Raster * create(const string &source, int categ=0)
double Coord
Type of map coordinates.
void debug(const char *format,...)
'Debug' level.