PostGIS 3.6.2dev-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 592 of file raster2pgsql.py.

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