dm_geojson_feature_collection_create Function

public function dm_geojson_feature_collection_create(collection, max_size) result(rc)

Creates new GeoJSON Feature Collection if given maximum size.

The function returns the following error codes:

  • E_ALLOC if memory allocation failed.
  • E_INVALID if argument max_size is less than 1.

Arguments

Type IntentOptional Attributes Name
type(geojson_feature_collection_type), intent(out) :: collection

GeoJSON Feature Collection type.

integer, intent(in) :: max_size

Max. size of Feature Collection.

Return Value integer