DO.COM.06 GeoShape

The spdci:GeoShape object represents complex geographical features

...enables the representation of complex geographical features and areas in a structured, machine-readable format, useful in various applications that require spatial awareness and precise geographical data.

Property KeyData Type (and Restrictions)CardinalityDescription

box

0...1

Defines a rectangular area on a map via two geographical points: the lower and upper corners.

circle

0...1

Specifies a circular region with a defined radius, centered at a given latitude and longitude. Expressed as a pair followed by a radius in meters.

elevation

0...1

Indicates the elevation of a location (WGS 84).

line

0...1

Represents a point-to-point path defined by two or more points, expressed as a series of point objects separated by space.

polygon

0...1

Encloses an area with a point-to-point path, where the starting and ending points are identical. Expressed as a series of four or more space-delimited points, with the first and final points being identical.

Example of Use

{
    "@context": {
        "spdci": "https://schema.spdci.org/common/v1/",
        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
        "xsd": "http://www.w3.org/2001/XMLSchema#"
    },
    "@id": "spdci:GeoShape_1",
    "@type": "spdci:GeoShape",
    "box": "33.3128,44.3615 33.5138,44.5535",
    "circle": "33.3128,44.3615 2000",
    "elevation": "34 m",
    "line": "33.3128,44.3615 33.5138,44.5535",
    "polygon": "33.3128,44.3615 33.5138,44.5535 33.4128,44.4515 33.3128,44.3615"
}

In this example, the spdci:geo_shape instance describes various geometrical shapes on a map, illustrating a box, a circle, a line, and a polygon, each defined with its respective properties. The elevation property indicates the height above sea level, represented here in meters.

JSON-LD File on GitHub

https://github.com/spdci/schemas/blob/main/common/v1/Geoshape.jsonld
{
  "@context": {
    "spdci": "https://schema.spdci.org/common/v1/",
    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
    "xsd": "http://www.w3.org/2001/XMLSchema#"
  },
  "@id": "spdci:GeoShape",
  "@type": "rdfs:Class",
  "rdfs:comment": "GeoShape represents a geometrical shape on a map, defined by various properties like box, circle, elevation, line, and polygon.",
  "rdfs:subClassOf": [
    {
      "@type": "rdfs:Class",
      "rdfs:label": "Structured Entity"
    }
  ],
  "rdfs:property": [
    {
      "@id": "spdci:box",
      "@type": "rdfs:Datatype",
      "rdfs:domain": "spdci:GeoShape",
      "rdfs:range": "xsd:string",
      "rdfs:comment": "Defines a rectangular area on a map via two geographical points: the lower and upper corners."
    },
    {
      "@id": "spdci:circle",
      "@type": "rdfs:Datatype",
      "rdfs:domain": "spdci:GeoShape",
      "rdfs:range": "xsd:string",
      "rdfs:comment": "Specifies a circular region with a defined radius, centered at a given latitude and longitude. Expressed as a pair followed by a radius in meters."
    },
    {
      "@id": "spdci:elevation",
      "@type": "rdfs:Datatype",
      "rdfs:domain": "spdci:GeoShape",
      "rdfs:range": "xsd:string",
      "rdfs:comment": "Indicates the elevation of a location (WGS 84)."
    },
    {
      "@id": "spdci:line",
      "@type": "rdfs:Datatype",
      "rdfs:domain": "spdci:GeoShape",
      "rdfs:range": "xsd:string",
      "rdfs:comment": "Represents a point-to-point path defined by two or more points, expressed as a series of point objects separated by space."
    },
    {
      "@id": "spdci:polygon",
      "@type": "rdfs:Datatype",
      "rdfs:domain": "spdci:GeoShape",
      "rdfs:range": "xsd:string",
      "rdfs:comment": "Encloses an area with a point-to-point path, where the starting and ending points are identical. Expressed as a series of four or more space-delimited points, with the first and final points being identical."
    }
  ]
}

Last updated