code: def get_windzone(conn, geometry):
      'Find windzone from map.'
      # TODO@Günni
      if geometry.geom_type in ['Polygon', 'MultiPolygon']:
          coords = geometry.centroid
      else:
          coords = geometry
      sql = .format(wkt=coords.wkt)
      zone = conn.execute(sql).fetchone()
      if zone is not None:
          zone = zone[0]
      else:
          zone = 0
      return zone
docs: Find windzone from map.