geojson#

Functions

all_geoms_valid(geojson)

Check if there are any invalid geometries in the GeoJSON.

buffer_geoms(geojson, geom_type[, ...])

Buffer geometries.

features_to_geojson(features)

Convert GeoJSON-like mapping of Features to a FeatureCollection.

filter_features(func, geojson[, progressbar_kw])

Filter GeoJSON features.

filter_geojson_to_window(geojson, window)

geojson_to_geodataframe(geojson)

geojson_to_geoms(geojson)

Return the shapely geometry for each feature in the GeoJSON.

geom_to_feature(geom[, properties])

Serialize a single shapely geometry to a GeoJSON Feature.

geometries_to_geojson(geometries)

Convert serialized geometries to a serialized GeoJSON FeatureCollection.

geometry_to_feature(mapping[, properties])

Convert a serialized geometry to a serialized GeoJSON feature.

geoms_to_bbox_coords(geoms, bbox)

geoms_to_geojson(geoms[, properties])

Serialize shapely geometries to GeoJSON.

get_geodataframe_extent(gdf)

get_geojson_extent(geojson)

get_polygons_from_uris(uris, crs_transformer)

Load and return polygons (in pixel coords) from one or more URIs.

is_empty_feature(f)

Check if a GeoJSON Feature lacks geometry info.

map_features(func, geojson[, ...])

Map GeoJSON features to new features.

map_geoms(func, geojson[, ...])

Map GeoJSON features to new features by applying func to geometries.

map_to_pixel_coords(geojson, crs_transformer)

Convert a GeoJSON dict from map to pixel coordinates.

merge_geojsons(geojsons)

Merge features from all given GeoJSONs into one GeoJSON.

pixel_to_map_coords(geojson, crs_transformer)

Convert a GeoJSON dict from pixel to map coordinates.

remove_empty_features(geojson)

Remove Features from a FeatureCollection that lack geometry info.

simplify_polygons(geojson)

Simplify polygon geometries by applying .buffer(0).

split_multi_geometries(geojson)

Split any Features with multi-part geometries into multiple Features.