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

◆ calculate_geoxy()

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

Definition at line 591 of file raster2pgsql.py.

591def 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