From bd3f962867f89473bc064b7bcb8733f1eed46c12 Mon Sep 17 00:00:00 2001 From: <> Date: Sat, 20 Jan 2024 22:55:29 +0100 Subject: [PATCH] Deployed fc6c6d3 with MkDocs version: 1.5.3 --- 404.html | 23 + assets/schemas/jkum-schema-1.0.json | 306 +++++++++ examples/index.html | 926 ++++++++++++++++++++++++++++ file-structure/index.html | 560 ++++++++++++++++- getting-started/index.html | 27 +- getting-started_backup/index.html | 23 + index.html | 23 + introduction/index.html | 23 + roadmap/index.html | 23 + schemas/jkum-schema-1.0/index.html | 23 + search/search_index.json | 2 +- sitemap.xml | 21 +- sitemap.xml.gz | Bin 295 -> 304 bytes third-party-code/index.html | 91 ++- 14 files changed, 2034 insertions(+), 37 deletions(-) create mode 100755 assets/schemas/jkum-schema-1.0.json create mode 100755 examples/index.html diff --git a/404.html b/404.html index 975a2ef..f9dbebb 100755 --- a/404.html +++ b/404.html @@ -369,6 +369,8 @@ + + @@ -450,6 +452,27 @@ +
  • + + + + + Examples + + + + +
  • + + + + + + + + + +
  • diff --git a/assets/schemas/jkum-schema-1.0.json b/assets/schemas/jkum-schema-1.0.json new file mode 100755 index 0000000..f195f82 --- /dev/null +++ b/assets/schemas/jkum-schema-1.0.json @@ -0,0 +1,306 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema", + "$id": "http://www.vavisjon.no/jkum/jkum-schema1.0.json", + "required": [ + "head" + ], + "title": "JSON Schema for the JKUM file format", + "type": "object", + "definitions": { + "head": { + "type": "object", + "title": "The head of the JKUM file, containing relevant information about the file", + "required": [ + "epsg" + ], + "properties": { + "epsg": { + "type": "integer", + "default": "", + "examples": [ + 25832, + 25832, + 5110, + 5111 + ], + "pattern": "^[0-9]{4,5}$" + }, + "date": { + "type": "string", + "default": "", + "examples": [ + "2020-01-22" + ], + "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$" + }, + "author": { + "type": "string", + "title": "The Author Schema", + "default": "", + "examples": [ + "Hans Martin Eikerol" + ] + } + } + }, + "location": { + "type": "object", + "properties": { + "east": { "type": "number" }, + "north": { "type": "number" }, + "elevation": { "type": "number" } + }, + "required": [ "east", "north", "elevation" ] + }, + "guid": { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}[-]{1}[0-9a-fA-F]{4}[-]{1}[0-9a-fA-F]{4}[-]{1}[0-9a-fA-F]{4}[-]{1}[0-9a-fA-F]{12}$", + "examples": [ + "cc984777-f7fc-475b-9f32-7cafd70a09cb" + ] + }, + "lid": { + "type": "object", + "properties": { + "guid": { + "type": [ + "string", + "null" + ] + }, + "position": { + "$ref": "#/definitions/location" + }, + "diameter": { + "$id": "#/properties/manholes/items/properties/lids/items/properties/diameter", + "type": "integer", + "examples": [ + 650 + ] + }, + "ladder": { + "type": "string", + "default": "Unspecified", + "examples": [ + "Yes" + ], + "enum": [ "Unspecified", "Yes", "No" ] + }, + "classification": { + "type": "string", + "default": "Unspecified", + "examples": [ + "D400" + ], + "enum": [ "Unspecified", "D400", "D700" ] + } + }, + "required": [ + "position", + "diameter" + ] + }, + "imageData": { + "type": "object", + "properties": { + "base64String": { + "type": "string" + }, + }, + "required": [ + "base64String" + ] + }, + "manhole": { + "type": "object", + "required": [ + "guid", + "bottomCenter", + "lids" + ], + "properties": { + "guid": { + "$ref": "#/definitions/guid" + }, + "sid": { + "type": "string", + "default": "", + "examples": [ + "556001" + ] + }, + "bottomCenter": { + "$ref": "#/definitions/location" + }, + "shape": { + "type": "string", + "default": "Circular", + "examples": [ + "Rectangular" + ], + "enum": [ "Circular", "Rectangular", "Polygon" ] + }, + "material": { + "type": "string", + "default": "Concrete", + "examples": [ + "Concrete" + ], + "enum": [ "Concrete", "Bricks", "Plastic", "Rehabilitated", "Other" ] + }, + "diameter": { + "type": "integer", + "examples": [ + 1600 + ] + }, + "width": { + "type": "integer", + "examples": [ + 1200 + ] + }, + "length": { + "type": "integer", + "examples": [ + 1600, + 1400, + 1200, + 400 + ] + }, + "lids": { + "type": "array", + "items": { + "$ref": "#/definitions/lid" + } + }, + "pipes": { + "type": "array", + "items": { + "$ref": "#/definitions/pipeConnection" + } + }, + "circumference": { + "type": "array", + "items": { + "$ref": "#/definitions/manholeCircumference" + } + }, + "imageData": { + "type": "array", + "items": { + "$ref": "#/definitions/imageData" + } + } + } + }, + "manholeCircumference": { + "type": [ + "object", + "null" + ], + "properties": { + "innerVertices": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/location" + } + }, + "outerVertices": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/definitions/location" + } + } + } + }, + "pipeConnection": { + "type": [ + "object", + "null" + ], + "properties": { + "guid": { + "$ref": "#/definitions/guid" + }, + "sid": { + "type": "string", + "examples": [ + "548861" + ] + }, + "medium": { + "type": "string", + "title": "The medium transported in the pipe", + "examples": [ + "Water", + "Sewer", + "Storm water", + "Drain" + ], + "enum": [ "Water", "Sewer", "Storm water", "Drain" ] + }, + "direction": { + "type": "string", + "title": "The assumed flow direction of the pipe contents", + "examples": [ + "Ingoing" + ], + "enum": [ "Ingoing", "Outgoing" ] + }, + "pressurized": { + "type": "boolean", + "default": false, + "examples": [ + false + ] + }, + "elevation": { + "type": "number", + "examples": [ + 53.11 + ] + }, + "clockPosition": { + "type": "integer", + "title": "The Clockposition Schema", + "examples": [ + 20 + ], + "pattern": "^[0-3][0-9]?[0-9]?$" + }, + "diameter": { + "type": "integer", + "examples": [ + 150 + ] + } + }, + "required": [ + "guid", + "pressurized", + "elevation", + "clockPosition", + "diameter" + ] + } + }, + "properties": { + "head": { + "$ref": "#/definitions/head" + }, + "manholes": { + "type": [ "array", "null" ], + "items": { + "$ref": "#/definitions/manhole" + } + } + } +} diff --git a/examples/index.html b/examples/index.html new file mode 100755 index 0000000..afc2fee --- /dev/null +++ b/examples/index.html @@ -0,0 +1,926 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Examples - JKUM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + Skip to content + + +
    +
    + +
    + + + + +
    + + +
    + +
    + + + + + + + + + +
    +
    + + + +
    +
    +
    + + + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    + + + + + + + + + + + + + + + + + + + + +

    Examples

    +

    This page comprise a few sample files that will be counted as valid files within +the JKUM file format.

    +

    Minumum file sample

    +

    In order to generate a minimal and valid file, the JKUM-contents should be like this:

    +
    {
    +  "head": {
    +    "epsg": 25832,
    +  },
    +  "manholes": [
    +    {
    +      "guid": "03de0a00-d6c0-4cb4-81bd-8f6ebdfad7a6",
    +      "shape": "Circular",
    +      "diameter": 1600,
    +      "lids": [
    +        {
    +          "guid": "216e1618-bdf4-4ade-8Bg9-h9BBs34df115",
    +          "position": {
    +            "east": 588447.155,
    +            "north": 6642743.826,
    +            "elevation": 55.145
    +          }
    +        }
    +      ]
    +    }
    +  ]
    +}
    +
    + + + + + + + + + + + + + +
    +
    + + + +
    + + + +
    + + + +
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/file-structure/index.html b/file-structure/index.html index b555ca6..c85ede7 100755 --- a/file-structure/index.html +++ b/file-structure/index.html @@ -20,7 +20,7 @@ - + @@ -382,6 +382,8 @@ + + @@ -491,12 +493,90 @@ @@ -514,6 +594,27 @@ +
  • + + + + + Examples + + + + +
  • + + + + + + + + + +
  • @@ -730,12 +831,90 @@ @@ -782,19 +961,360 @@

    File structure "manholes": [...] } -

    Minumum file sample

    -

    In order to generate a minimal and valid file, the JKUM-contents should be like this:

    -
    {
    -  "head": {
    -    "epsg": 25832
    -  }
    -  "manholes": [
    -    {
    -      "guid": 
    -    }
    -  ]
    -}
    -
    +

    Properties

    +

    The .jkum-file has two properties at the top level: head and manholes. In the following, all +related objects and properties are described.

    + +

    The head property consists of these possible properties:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    epsgintegerThe EPSG ID for the coordinate system which the coordinates this file system is represented.
    datestringAn ISO 8601-formatted date string on the format YYYY-MM-DD.
    authorstringThe name or descriptive text about the author of the file.
    +

    Manholes

    +

    The manholes-property is an array consisting of Manhole.

    +

    Manhole

    +

    The properties for manholes are listed in this table.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    guidGUIDA unique system-generated GUID for future reference and identification for the object.
    sidstringA unique ID commonly used in mapping systems. Enables a better human-readable ID for the object.
    bottomCenterLocationThe position of the centerpoint of the manhole construction at its bottom center.
    shapestringThe shape of the Manhole, one of: Circular, Rectangular or Polygon.
    lidsarray<Lid>An array of Lid objects. Contains an array of Lids, since some manholes may have more than one Lid.
    pipesarray<PipeConnection>An array of PipeConnection objects.
    imageDataarray<ImageData>An array of ImageData objects.
    +

    Depending on the shape of the manhole, the following properties are also required:

    +
    +
    +
    + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    diameterintegerThe manhole inner diameter in millimeters.
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    widthintegerThe manhole inner width in millimeters.
    lengthintegerThe manhole inner length in millimeters.
    +
    +
    + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    circumferencearrayA circumference-object consisting of the inner and outer boundary representing the Manhole constructions' shape.
    +
    +
    +
    +

    Location

    +

    The location-attribute consists of the three properties east, north and elevation.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    eastfloatA float representing the east coordinate within the EPSG-system as defined in the file head-property.
    northfloatA float representing the north coordinate within the EPSG-system as defined in the file head-property.
    elevationfloatA float representing the elevation of the coordinate within the EPSG-system as defined in the file head-property.
    +

    Circumference

    + + + + + + + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    innerVerticesarray<Location>An array of vertices within the EPSG-system as defined in the file head-property.
    outerVerticesarray<Location>An array of vertices within the EPSG-system as defined in the file head-property.
    +

    Lid

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    guidGUIDA unique system-generated GUID for future reference and identification for the object.
    positionLocationThe position of the center point of the lid in the terrain.
    diameterintegerThe manhole inner diameter in millimeters.
    ladderstringIf there is a ladder: Yes, otherwise No. Defaults to Unspecified in the absence of the property.
    classificationstringDetails of the lid type, one of: Unspecified, D400, D700
    +

    PipeConnection

    +

    When looking down into the manhole, pipe ends can be seen. Not knowing where the other end +of the pipe is going or coming from, this file format instead focus on the relevant +connector points that can be seen from inside the manhole.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    guidGUIDA unique system-generated GUID for future reference and identification for the object.
    sidstringA unique ID commonly used in mapping systems. Enables a better human-readable ID for the object.
    mediumstringThe medium transported in the pipe. Must be one of the following: Water, Sewer, Storm water, Drain
    directionstringThe assumed flow direction of the pipe contents. Must be one of the following: Ingoing, Outgoing
    pressurizedbooleanIf the pipe is a pressurized system.
    elevationfloat
    clockPositioninteger
    diameterintegerThe pipe diameter in millimeters.
    +

    ImageData

    +

    The imageData-property should consist of at least one of the following data.

    + + + + + + + + + + + + + + + + + + + + + + + +
    Property NameTypeRequiredDescription
    base64StringstringA base 64 encoded string representing the image.
    imageUrlstringA valid url to the location of the file, where it should be available for download.
    @@ -847,13 +1367,13 @@

    Minumum file sample + @@ -713,11 +792,11 @@ -

    Third-part code

    +

    Third-party code

    The presentation of the JSON-schemas is rendered by the use of json-schema-for-humans. In order to identify which schema attributes is supported in these documentations, please see the page for supported JSON-attributes.

    -

    Licences

    +

    Licences

    @@ -753,7 +832,7 @@

    Licences - +