lmpy.spatial.geojsonify
Module containing tools for creating GeoJSON from matrices.
Module Contents
Functions
|
Creates GeoJSON for a matrix and matching shapefile. |
|
Creates GeoJSON for a matrix and matching shapefile. |
- lmpy.spatial.geojsonify.geojsonify_matrix(matrix, resolution=None, omit_values=None)[source]
Creates GeoJSON for a matrix and matching shapefile.
- Parameters
matrix (Matrix) – A (spatial) matrix to create GeoJSON for.
resolution (Numeric) – The size of the grid cells in decimal degrees
omit_values (list) – Omit properties when their value is in this list.
- Returns
A GeoJSON compatible dictionary.
- Return type
dict
- lmpy.spatial.geojsonify.geojsonify_matrix_with_shapefile(matrix, shapegrid_filename, omit_values=None)[source]
Creates GeoJSON for a matrix and matching shapefile.
- Parameters
matrix (Matrix) – A (spatial) matrix to create GeoJSON for.
shapegrid_filename (str) – A file path to a shapefile matching the matrix.
omit_values (list) – Omit properties when their value is in this list.
- Returns
A GeoJSON compatible dictionary.
- Return type
dict