transbigdata.area_to_params
- transbigdata.area_to_params(location, accuracy=500, method='rect')
Generate gridding params
- Parameters:
location (bounds(List) or shape(GeoDataFrame)) – Where to generate grids. If bounds, [lon1, lat1, lon2, lat2](WGS84), where lon1 , lat1 are the lower-left coordinates, lon2 , lat2 are the upper-right coordinates If shape, it should be GeoDataFrame
accuracy (number) – Grid size (meter)
method (str) – rect, tri or hexa
- Returns:
params – Gridding parameters. See https://transbigdata.readthedocs.io/en/latest/grids.html for detail information about gridding parameters.
- Return type:
list or dict