geoimport
    Preparing search index...

    Type Alias ToGeoJSONOptions

    Options for the toGeoJSON function.

    type ToGeoJSONOptions = {
        layerName?: string;
        rfc7946?: boolean;
        writeBbox?: boolean;
        writeNonFiniteValues?: boolean;
    }
    Index

    Properties

    layerName?: string

    The 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.

    rfc7946?: boolean

    Whether the returned GeoJSON must be RFC7946 compliant. Default to true.

    writeBbox?: boolean

    Whether writing bbox at the Feature and FeatureCollection level. Default to false.

    writeNonFiniteValues?: boolean

    Whether 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.