agentsociety.environment.utils.geojson

Module Contents

Functions

wrap_feature_collection

将 GeoJSON Feature 集合包装为 FeatureCollection Wrap GeoJSON Feature collection as FeatureCollection

Data

API

agentsociety.environment.utils.geojson.__all__

[‘wrap_feature_collection’]

agentsociety.environment.utils.geojson.wrap_feature_collection(features: list[dict], name: str)

将 GeoJSON Feature 集合包装为 FeatureCollection Wrap GeoJSON Feature collection as FeatureCollection

  • Args:

  • features: GeoJSON Feature 集合。GeoJSON Feature collection.

  • name: FeatureCollection 名称。FeatureCollection name.

  • Returns:

  • dict: GeoJSON FeatureCollection