Skip to content

RS_WorldToRasterCoordX

Converts world coordinates to raster X coordinate.

Usage

integer RS_WorldToRasterCoordX(rast: raster, x: double, y: double)

Arguments

  • rast (raster): Input raster
  • x (double)
  • y (double)

Examples

SELECT RS_WorldToRasterCoordX(RS_Example(), 10.0, 20.0);
┌──────────────────────────────────────────────────────────────┐
│ rs_worldtorastercoordx(rs_example(),Float64(10),Float64(20)) │
│                             int64                            │
╞══════════════════════════════════════════════════════════════╡
│                                                           -2 │
└──────────────────────────────────────────────────────────────┘