GeoJSON custom types for CWL
The schema is available at https://raw.githubusercontent.com/eoap/schemas/main/geojson.yaml and 1:1 reflects the geojson.org Geometry and Feature schemas.
The schema defines:
- A Point, which describes a Point;
- A LineString, which describes a LineString;
- A Polygon, which describes a Polygon;
- A MultiPoint, which describes a MultiPoint;
- A MultiLineString, which describes a LineString;
- A MultiPolygon, which describes a MultiPolygon;
- A Feature, which describes a Feature;
- A GeometryCollection, which describes a GeometryCollection.
How to use this schema
Users have to import the schema in the CWL description via the SchemaDefRequirement:
cwlVersion: v1.2
class: CommandLineTool
requirements:
  ...
  SchemaDefRequirement:
    types:
    - $import: https://raw.githubusercontent.com/eoap/schemas/main/geojson.yaml