feat: initial commit

This commit is contained in:
l.weber 2025-12-05 12:20:05 +01:00
commit a161b86c9a
705 changed files with 288162 additions and 0 deletions

View file

@ -0,0 +1,46 @@
package geojson
import (
_ "embed"
)
//go:embed context.jsonld
var ContextDocument []byte
// IRI is the remote context IRI.
const IRI = "https://geojson.org/geojson-ld/geojson-context.jsonld"
// Namespace is the IRI prefix used for terms defined in this context that don't
// map to a different namespace.
const Namespace = "https://purl.org/geojson/vocab#"
const (
// Bbox is a string.
Bbox = Namespace + "bbox"
// Coordinates is a string.
Coordinates = Namespace + "coordinates"
// Features is a string.
Features = Namespace + "features"
// Geometry is a string.
Geometry = Namespace + "geometry"
// Properties is a string.
Properties = Namespace + "properties"
// TypeFeature is a possible value for the type property.
TypeFeature = Namespace + "Feature"
// TypeFeatureCollection is a possible value for the type property.
TypeFeatureCollection = Namespace + "FeatureCollection"
// TypeGeometryCollection is a possible value for the type property.
TypeGeometryCollection = Namespace + "GeometryCollection"
// TypeLineString is a possible value for the type property.
TypeLineString = Namespace + "LineString"
// TypeMultiLineString is a possible value for the type property.
TypeMultiLineString = Namespace + "MultiLineString"
// TypeMultiPoint is a possible value for the type property.
TypeMultiPoint = Namespace + "MultiPoint"
// TypeMultiPolygon is a possible value for the type property.
TypeMultiPolygon = Namespace + "MultiPolygon"
// TypePoint is a possible value for the type property.
TypePoint = Namespace + "Point"
// TypePolygon is a possible value for the type property.
TypePolygon = Namespace + "Polygon"
)

View file

@ -0,0 +1,34 @@
{
"@context": {
"@version": 1.1,
"geojson": "https://purl.org/geojson/vocab#",
"Feature": "geojson:Feature",
"FeatureCollection": "geojson:FeatureCollection",
"GeometryCollection": "geojson:GeometryCollection",
"LineString": "geojson:LineString",
"MultiLineString": "geojson:MultiLineString",
"MultiPoint": "geojson:MultiPoint",
"MultiPolygon": "geojson:MultiPolygon",
"Point": "geojson:Point",
"Polygon": "geojson:Polygon",
"bbox": {
"@container": "@list",
"@id": "geojson:bbox"
},
"coordinates": {
"@container": "@list",
"@id": "geojson:coordinates"
},
"features": {
"@container": "@set",
"@id": "geojson:features"
},
"geometry": "geojson:geometry",
"id": "@id",
"properties": "geojson:properties",
"type": "@type",
"description": "http://purl.org/dc/terms/description",
"title": "http://purl.org/dc/terms/title"
}
}