PostGIS 3.7.0dev-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 599 of file raster2pgsql.py.

599def calculate_geoxy(gt, xy):
600 """Calculate georeferenced coordinate from given x and y"""
601 assert gt is not None
602 assert xy is not None
603 assert len(xy) == 2
604
605 xgeo = gt[0] + gt[1] * xy[0] + gt[2] * xy[1];
606 ygeo = gt[3] + gt[4] * xy[0] + gt[5] * xy[1];
607
608 return (xgeo, ygeo)
609