iwfm.gis.world2screen

iwfm.gis.world2screen(bbox, w, h, x, y)[source]

Convert geospatial coordinates to screen pixels.

Parameters:
  • bbox (list) – bounding box [minx, miny, maxx, maxy]

  • w (int) – screen width in pixels

  • h (int) – screen height in pixels

  • x (float) – X-coordinate to be transformed

  • y (float) – Y-coordinate to be transformed

Returns:

px, py – coordinates in pixels

Return type:

ints