OptionallayerThe name of the layer to extract (only for formats that can contain multiple layers
such as GeoPackage or TopoJSON). If the input dataset contains multiples layers
and this option is not provided, an error is returned by the toGeoJSON function.
Optionalrfc7946Whether the returned GeoJSON must be RFC7946 compliant. Default to true.
OptionalwriteWhether writing bbox at the Feature and FeatureCollection level. Default to false.
OptionalwriteWhether to write NaN/Infinity values (note that some JSON parsers don't support these values since they are not strictly valid JSON). Default to false.
Options for the
toGeoJSONfunction.