Geospatial/Geometry
src.dx.datatypes.geometry.generate_lat_float_series(num_rows)
Generate a series of random float
values representing latitude values.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_rows |
int
|
Number of rows to generate |
required |
Source code in src/dx/datatypes/geometry.py
src.dx.datatypes.geometry.generate_lon_float_series(num_rows)
Generate a series of random float
values representing longitude values.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_rows |
int
|
Number of rows to generate |
required |
Source code in src/dx/datatypes/geometry.py
src.dx.datatypes.geometry.generate_latlon_series(num_rows)
Generate a series of shapely.geometry.Point
s with latitude and longitude values.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_rows |
int
|
Number of rows to generate |
required |
Source code in src/dx/datatypes/geometry.py
src.dx.datatypes.geometry.generate_filled_geojson_series(num_rows, existing_latlon_series=None)
Generate a series of shapely.geometry.Polygon
values by
creating shapely.geometry.Point
values and applying a randomized
.buffer()
on them, resulting in circular filled Polygon
objects.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_rows |
int
|
Number of rows to generate |
required |
existing_latlon_series |
Optional[Series]
|
If provided, use this series of |
None
|
Source code in src/dx/datatypes/geometry.py
src.dx.datatypes.geometry.generate_exterior_bounds_geojson_series(num_rows, existing_latlon_series=None)
Generate a series of shapely.geometry.Polygon
values by
create shapely.geometry.Point
values, applying a randomized .buffer()
on them, and getting the exterior of the resulting object's .envelope
,
resulting in rectangular LineString
objects.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_rows |
int
|
Number of rows to generate |
required |
existing_latlon_series |
Optional[Series]
|
If provided, use this series of |
None
|