PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ calculate_geoxy()

def raster2pgsql.calculate_geoxy (   gt,
  xy 
)
Calculate georeferenced coordinate from given x and y

Definition at line 591 of file raster2pgsql.py.

591 def calculate_geoxy(gt, xy):
592  """Calculate georeferenced coordinate from given x and y"""
593  assert gt is not None
594  assert xy is not None
595  assert len(xy) == 2
596 
597  xgeo = gt[0] + gt[1] * xy[0] + gt[2] * xy[1];
598  ygeo = gt[3] + gt[4] * xy[0] + gt[5] * xy[1];
599 
600  return (xgeo, ygeo)
601 
def calculate_geoxy(gt, xy)

Referenced by calculate_bounding_box(), calculate_geoxy_level(), and wkblify_raster_header().

Here is the caller graph for this function: