The dataset to convert to GeoJSON (either a Topology, a File or an array of Files for ESRI Shapefiles for example).
Optional
options: ToGeoJSONOptions = {}The options (such as the name of the layer to convert for formats that can contain multiple layers, whether to write the BBox, etc.).
Convert a geospatial vector dataset to a GeoJSON FeatureCollection.
This is a wrapper around 'ogr2ogr'.