95 geox geo reference x of upper left point (
float >0)
96 geoy geo reference y of upper left point (
float >0)
97 resx horizontal resolution (pixel distance) in meters (
float >0)
98 resy vertical resolution (pixel distance) in meters (
float >0)
99 hstep factor by which pixel values have to be multiplied to obtain real height in meters (
float >0)
102 An int16 file contains a
sequence of sizex*sizey height values, advancing from west to east and from north to south. Each pixel consists of a 16 bit integer where the lower byte comes first in
sequence (i.e., pixel value is byte[i]+byte[i+1]*256).
103 There is no file header, pixels start immediately at the beginning.
105 Points are defined as follows for pixel position (i,j) in file (starting with (0/0):
106 geo position x = geox + i*resx
107 geo position y = geoy + j*resy
108 height = ( byte[ 2*i + 2*j*sizex] + byte[ 2*i + 2*j*sizex + 1] * 256 ) * hstep
110 where / denotes integer division
137 const
char*
get_name() const throw();
141 r_Convertor*
clone() const throw(r_Error);
150 static
bool decodeOptions( const
char* options,
160 static
void initGeoBBox(
r_GeoBBox& cBBox );
166 void checkLimits() throw(r_Error);
169 void readFromSrcStream() throw(r_Error);
170 void readToSrcStream() throw(r_Error);
171 void writeFromDestStream() throw(r_Error);
172 void writeToDestStream(ofstream& oFile) throw(r_Error);
179 static const
char* paramSep;
180 static const
char* paramEq;
181 static const
char* paramFlipX;
182 static const
char* paramFlipY;
183 static const
char* paramStartX;
184 static const
char* paramEndX;
185 static const
char* paramResX;
186 static const
char* paramStartY;
187 static const
char* paramEndY;
188 static const
char* paramResY;
vector< int16Row > int16RowVec
Definition: int16.hh:198
r_Double endx
Definition: int16.hh:124
unsigned int r_ULong
Definition: odmgtypes.hh:114
int16Row max
Definition: int16.hh:200
Definition: raslib/type.hh:56
r_Double endy
Definition: int16.hh:125
unsigned int r_Dimension
Definition: mddtypes.hh:118
int16RowVec demRows
Definition: int16.hh:201
r_Data_Format get_data_format() const
double r_Double
Definition: odmgtypes.hh:138
r_Convertor * clone() const
Definition: convertor.hh:111
r_convDesc & convertFrom(const char *options=NULL)
r_Double resx
Definition: int16.hh:124
r_GeoBBox collBBox
parameters
Definition: int16.hh:175
r_Double starty
Definition: int16.hh:125
r_Data_Format
Definition: mddtypes.hh:133
Format advancing from west to east and from north to south Each pixel consists of a bit integer where the lower byte comes first in sequence(i.e., pixel value is byte[i]+byte[i+1]*256).There is no file header
r_Conv_int16(const char *source, const r_Minterval &lengthordomain, const r_Type *tp)
r_convDesc & convertTo(const char *options=NULL)
r_Double startx
Definition: int16.hh:124
r_Double resy
Definition: int16.hh:125
int16Row min
Definition: int16.hh:200
r_ULong flipx
Definition: int16.hh:126
Definition: convertor.hh:56
Format specification
Definition: int16.hh:102
const char * get_name() const
Definition: minterval.hh:249
r_ULong flipy
Definition: int16.hh:126