Skip to contents

Formats an sf shapefile to a formatted geojson

Usage

sf_to_geojson(sf_shape, endpoint = "raster")

Arguments

sf_shape

The sf shapefile to transform

endpoint

The GFW endpoint destination for the geojson ("raster" or "event")

Value

A correctly-formatted geojson to be used in gfw_ais_fishing_hours() or gfw_event()