21 : _missDataVal(missingDataValue),
51 retval =
fillUTM(dem,incrementalRead);
126 for (i = 0; (int)i <
_width; i++)
129 for (j = 0; j < elev.size(); j++)
173 while ((
_profiles[i].getNumberOfElevations() == 0) &&
177 curpoint =
_profiles[i].getProfileLocation();
186 miny = curpoint.
getY();
188 double profymin, profymax;
191 if (
_profiles[i].getNumberOfElevations() > 0)
193 curpoint =
_profiles[i].getProfileLocation();
194 profymin = curpoint.
getY();
195 profymax = profymin + ((
_profiles[i].getNumberOfElevations() - 1) * dy);
207 _height =
static_cast<long>(((maxy - miny) / dy) + 1);
231 startpos =
static_cast<long>((curpoint.
getY() - miny) / dy);
232 for (
y = 0;
y < elev.size();
y++)
void getGroundCoords(long x, long y, double &ground_x, double &ground_y)
long fillUTM(ossim::istream &dem, bool incrementalRead)
long fillGeographic(ossim::istream &dem, bool incrementalRead)
std::vector< ossim_int32 > ossimDemElevationVector
ossim_float32 getMissingDataValue() const
void setElevation(long x, long y, ossim_float32 val)
std::vector< ossimDemProfile > _profiles
long read(ossim::istream &dem, bool incrementalRead=false)
std::basic_istream< char > istream
Base class for char input streams.
ossimDemGrid(ossim_float32 missingDataValue=-32768.0)
ossimDemHeader const & getHeader() const
ossim_float32 _missDataVal
ossim_float32 getElevation(long x, long y) const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)