Skip to content
Back to skills

Geojson Ogc Knowledge Patch

ASecurity

GeoJSON / OGC JSON-FG

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentgoshelltestinggitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill geojson-ogc-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Geojson Ogc Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Geojson Ogc Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-geojson-ogc-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-geojson-ogc-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geojson-ogc-knowledge-patch
description: GeoJSON / OGC JSON-FG
version: "OGC JSON-FG 1.0.0"
license: MIT
metadata:
  author: Nevaberry
---


# GeoJSON / OGC JSON-FG

Load this skill when encoding, reading, validating, or serving GeoJSON and
JSON-FG features, extended geometries, coordinate systems, times, or schemas.
It also covers profile negotiation, GeoJSON compatibility, and conversion tools.

## Reference index

| Reference | Topics |
| --- | --- |
| [Core objects, time, and CRS](references/core-objects-time-crs.md) | Root conformance, validation, geometry fallback, CRS scope and epochs, time, coordinate dimensions, GeoJSON elevation, polar boxes, defining members, URI conversion, validation tools |
| [Extended geometries](references/extended-geometries.md) | Polyhedra, prisms, circular strings, curve and surface aggregates, geometry checks, CityJSON and vector conversion |
| [Measures, types, and schemas](references/measures-types-schemas.md) | Measure scope and schema restrictions, feature types, homogeneous dimensions, logical schemas, community extension schemas |
| [Profiles and Web APIs](references/profiles-web-api.md) | Media types, profile identification, profile negotiation, API conformance dependencies, reader compatibility |

## Schema compatibility constraints

### Measured feature geometry

Annex B.3 rejects `measures` inside a feature's `place` object. Core 8.4.5
nevertheless looks for that member on `place` when deciding whether a standard
geometry type may use CRS84 or CRS84h there.
For a standard GeoJSON geometry in a feature's `place`, declare `measures` on the feature or collection and use a CRS other than CRS84 or CRS84h. A projected CRS is one option.

### Mixed or unknown geometry dimensions

Omit `geometryDimension` for a collection with mixed or unknown dimensions.
The building-block description mentions null, but Annex B.2 rejects it.

### Media type compatibility

Serve JSON-FG as `application/geo+json`.
The draft media types `application/fg+json` and `application/vnd.ogc.fg+json`
can still be supported for backward compatibility.

## Root objects and validation

A root FeatureCollection, Feature, or standalone geometry must declare
`conformsTo` as an array containing
`http://www.opengis.net/spec/json-fg-1/1.0/conf/core`.
Nested JSON-FG objects omit `conformsTo`.
Add the same URI prefix with each applicable class suffix: `polyhedra`,
`prisms`, `circular-arcs`, `measures`, or `types-schemas`.

A Core document must satisfy the root-object JSON Schema.
Use a JSON Schema Draft 2020-12 validator with the unversioned root schema ID
`https://schemas.opengis.net/json-fg/jsonfg-root-object.json`.
Readers and writers can leave validation to conformance testing.

OGC Simple Features Access Part 1 validity rules apply to standard geometry
types, including curve components and prism bases.
The `time` schema checks dates and timestamps with patterns; conformance tests
also need to check calendar validity.

## Choose geometry and coordinate system

| Geometry being encoded | Placement |
| --- | --- |
| Ordinary unmeasured GeoJSON geometry in CRS84 or CRS84h | Use `geometry`; omit `place` or set it to null |
| Another CRS, an extended geometry type, or a measured geometry | Use `place`; set `geometry` to null or a distinct WGS 84 fallback |

The fallback must be free of JSON-FG extensions such as `coordRefSys` and
`measures`.
Each feature's `geometry` and `place` must have a consistent coordinate
dimension within that geometry.
`GeometryCollection` groups standard GeoJSON geometry types in a shared CRS.

Declare `coordRefSys` only at the root. It applies to `place` and JSON-FG
geometries in `properties`, including those in a collection.
Follow the declared CRS's axis order.
Without a declaration, use CRS84 for two spatial coordinates or CRS84h for
three; exclude M when counting spatial coordinates.

`coordRefSys` accepts a URI, a `Reference` object with `href` and an optional
decimal-year `epoch` for dynamic coordinates, or an array of such references
for an ad hoc compound CRS.
For a local CRS with an unknown definition, use
`http://www.opengis.net/def/crs/OGC/0/Engineering2D` or
`http://www.opengis.net/def/crs/OGC/0/Engineering3D`.

## Encode feature time

`time` may be absent, null, or an extensible object. An object needs at least
one member.
It can contain an RFC 3339 `date`, a `timestamp` in UTC with `Z`, and/or a
closed two-element `interval`.
Interval endpoints have matching granularity, the start is at or before the
end, and `".."` denotes an unbounded endpoint.
When time members coexist, their values must intersect at their respective
granularities. Clients should prefer `interval` when present.

```json
{"time": {"timestamp": "2014-04-24T10:50:18Z", "interval": ["2014-04-24T10:50:18Z", ".."]}}
```

## Measures, feature types, and logical schemas

The nearest `measures` object on a geometry, feature, or collection controls
whether every position appends M after the spatial axes, subject to the feature
schema restriction above.
Its Boolean `enabled` is required; `unit` and `description` are optional when
enabled. Without a declaration, measures are disabled.
Geometries directly embedded in `base` or `geometries` inherit the parent scope
without their own `measures` member.
Declare `measures` conformance whenever any JSON-FG object contains that member,
including `enabled: false`.

Under `types-schemas`, a standalone feature needs a string `featureType`.
A collection must declare its shared code or supply a code on every feature.
For homogeneous primary geometry dimensions, declare `geometryDimension` as
`0` for points, `1` for curves, `2` for surfaces, or `3` for solids and prisms.
Use each feature's non-null `place`, otherwise its `geometry`, to determine the
primary geometry dimension.

At the root, `featureSchema` is a single schema URI if all `featureType` values
agree, or an object mapping feature type codes to schema URIs.
These describe the logical feature model under OGC API Features Part 5.
A `describedby` link can point to a downloadable JSON Schema for validating
the encoded document.
See the schemas reference for community-controlled schema copies and custom
geometry definitions.

## Extended geometry selection

| Type | Encoding constraints |
| --- | --- |
| `Polyhedron` / `MultiPolyhedron` | Use a 3D CRS and watertight shells; see the reference for shell orientation and void constraints |
| `Prism` / `MultiPrism` | Extrude a valid 2D `base` in a 3D CRS; `MultiPrism.prisms` contains complete `Prism` objects |
| `CircularString` | Use 3, 5, 7, 9, or 11 positions for one to five connected arcs; XY determines the curve and Z/M are linearly interpolated |
| `CompoundCurve` | Join `LineString` and `CircularString` components end-to-end in `geometries` |
| `CurvePolygon` | Store closed `LineString`, `CircularString`, or `CompoundCurve` rings in `geometries`, exterior first |
| `MultiCurve` / `MultiSurface` | Store supported curve or surface objects in `geometries`; see the reference for allowed types |

## Serve profiles through a Web API

Identify the profile with `rel="profile"` in a document link or HTTP `Link`
header. Profile URIs use `http://www.opengis.net/def/profile/OGC/0/` followed
by the profile name.

| Profile | Requirements |
| --- | --- |
| `rfc7946` | Omit `place` and JSON-FG conformance URIs; a prior arrangement permits alternate-CRS `geometry`, with optional legacy `crs` metadata |
| `jsonfg` | Satisfy JSON-FG Core |
| `jsonfg-plus` | Satisfy Core and provide non-null `geometry` for every feature with non-null `place` |

A Web API conforming to the JSON-FG API class supports `profile` on
GeoJSON-producing GET and HEAD operations, with at least `rfc7946` and `jsonfg`.
The recommended default is `rfc7946`.
The class depends on the Profile Query Parameter class in OGC API Features
Part 5 and indirectly on the GeoJSON Profiles class.

## Reader and GeoJSON compatibility

Readers should ignore unknown JSON-FG members and time encodings, and map
unknown `place` geometry types to null.
For GeoJSON readers exposing only standard feature members, also include
additional JSON-FG values such as `time`, `place`, `coordRefSys`, `measures`,
and `featureType` in `properties`.

When height or depth matters, interpret two-coordinate GeoJSON fallback
positions as being at local ground or sea level.
A full polar cap uses west/east limits of `-180` and `180`, and north `90` or
south `-90`; a slice touching a pole keeps its own longitude limits.
Reject GeoJSON defining members on the wrong object type: `features` belongs
to FeatureCollections, `geometry` and `properties` to Features, and
`coordinates` and `geometries` to Geometry objects.
Convert a `geo:` URI to a Point only when uncertainty `u` is absent or zero;
keep altitude as the third coordinate.

The core reference gives the polar-box and URI examples and validation tools.
The extended-geometries reference records converter support and its limits.

Files in this skill

  • SKILL.md7.4 KB
  • coverage.json326 B
  • references/core-objects-time-crs.md3.9 KB
  • references/extended-geometries.md3.2 KB
  • references/measures-types-schemas.md2.4 KB
  • references/profiles-web-api.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.