PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ _query_value()

rtreader.RasterReader._query_value (   self,
  band,
  x,
  y 
)
protected

Definition at line 156 of file rtreader.py.

156 def _query_value(self, band, x, y):
157 sql = 'SELECT st_value(%s, %d, %d, %d) FROM %s' % \
158 (self._column, band, x, y, self._table)
159 if len(self._where) > 0:
160 sql += ' WHERE %s' % self._where
161
162 row = self._query_single_row(sql)
163 if row is None:
164 raise RasterError("Value of pixel %dx%d of band %d is none" %(x, y, band))
165 return row[0]
166

References rtreader.RasterReader._column, rtreader.RasterReader._query_single_row(), rtreader.RasterReader._table, and rtreader.RasterReader._where.

Referenced by rtreader.RasterReader.get_value().

Here is the call graph for this function:
Here is the caller graph for this function: