modulepackage
1.0.0
Repository: https://github.com/sfomuseum/go-geojsonld.git
Documentation: pkg.go.dev
# README
go-geojson-ld
Go package for converting GeoJSON Feature
records in to GeoJSON-LD records.
Documentation
Example
package main
import (
"context"
"flag"
"fmt"
"github.com/sfomuseum/go-geojsonld"
"os"
)
func main() {
flag.Parse()
ctx := context.Background()
for _, path := range flag.Args() {
fh, _ := os.Open(path)
body, _ := geojsonld.AsGeoJSONLDWithReader(ctx, fh)
fmt.Println(string(body))
}
}
See also
# Packages
No description provided by the author
# Functions
AsGeoJSONLDWithReader convert GeoJSON Feature data contained in body in to GeoJSON-LD.
AsGeoJSONLDWithReader convert GeoJSON Feature data contained in r in to GeoJSON-LD.
DefaultGeoJSONLDContext return a dictionary mapping GeoJSON property keys to their GeoJSON-LD @context equivalents.
# Constants
NS_GEOJSON is the default namespace for GeoJSON-LD.