@itwin/road-network-schema 0.0.0-stage → 1.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -0
- package/README.md +9 -3
- package/RoadNetwork.ecschema.json +1 -0
- package/RoadNetwork.ecschema.xml +81 -0
- package/RoadNetwork.remarks.md +37 -0
- package/package.json +24 -6
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2017-2026 Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# @itwin/road-network-schema
|
|
2
|
+
|
|
3
|
+
Copyright © Bentley Systems, Incorporated. All rights reserved. See [LICENSE.md](./LICENSE.md) for license terms and full copyright notice.
|
|
4
|
+
|
|
5
|
+
[iTwin.js](http://itwinjs.org) is an open source platform for creating, querying, modifying, and displaying Infrastructure Digital Twins.
|
|
6
|
+
|
|
7
|
+
## BIS Schemas
|
|
8
|
+
|
|
9
|
+
The acronym “BIS” stands for “Base Infrastructure Schemas”. BIS is an “open” and extensible family of schemas that is modularized into Domains. Please go to [iTwinjs.org](https://www.itwinjs.org/bis/) for more information.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://dev.bentley.com/json_schemas/ec/32/ecschema","name":"RoadNetwork","version":"01.00.00","alias":"rdnet","description":"Schema containing classes defining Networks in the Road domain.","references":[{"name":"BisCore","version":"01.00.28"},{"name":"LinearReferencing","version":"02.00.04"},{"name":"NetworkTopology","version":"01.00.01"},{"name":"CoreCustomAttributes","version":"01.00.05"},{"name":"BisCustomAttributes","version":"01.00.00"},{"name":"CivilUnits","version":"01.00.01"}],"customAttributes":[{"className":"CoreCustomAttributes.ProductionStatus","SupportedUse":"NotForProduction"},{"className":"BisCustomAttributes.SchemaLayerInfo","Value":"DisciplineOther"}],"items":{"IRoadTraversalSegment":{"schemaItemType":"Mixin","description":"Helper mix-in enabling the uniform treatment of full RoadEdges and portions thereof by RoadTraversals.","appliesTo":"BisCore.InformationRecordElement"},"RoadNetwork":{"schemaItemType":"EntityClass","label":"Road Network","description":"A net:NetworkElement modeling a graph in the Road domain, consisting of RoadNodes and RoadEdges.","baseClass":"NetworkTopology.NetworkElement"},"RoadNode":{"schemaItemType":"EntityClass","label":"Road Node","description":"A net:NodeElement modeling a vertex in a Road graph, defining RoadEdge end-points.","baseClass":"NetworkTopology.NodeElement"},"RoadEdge":{"schemaItemType":"EntityClass","label":"Road Edge","description":"A net:EdgeElement modeling a link in a Road graph, with two end-points.","baseClass":"NetworkTopology.LinearElementEdge","properties":[{"name":"StartValue","type":"PrimitiveProperty","label":"Start Distance Along","kindOfQuantity":"CivilUnits.LENGTH","customAttributes":[{"className":"CoreCustomAttributes.HiddenProperty"}],"typeName":"double"},{"name":"LinearElementSource","type":"NavigationProperty","customAttributes":[{"className":"CoreCustomAttributes.HiddenProperty"}],"relationshipName":"LinearReferencing.ILinearElementProvidedBySource","direction":"Forward"}],"mixins":["RoadNetwork.IRoadTraversalSegment","LinearReferencing.ILinearLocationElement"]},"RoadEdgeSegment":{"schemaItemType":"EntityClass","label":"Road Edge Segment","description":"A bis:InformationRecordElement representing a portion of a RoadEdge that can be related to a RoadTraversal.","baseClass":"BisCore.InformationRecordElement","mixins":["RoadNetwork.IRoadTraversalSegment","LinearReferencing.ILinearLocationElement"]},"RoadTraversal":{"schemaItemType":"EntityClass","label":"Road Traversal","description":"A Linear-Element defining a Linear Referencing System along a set of RoadEdges or portions thereof.","baseClass":"BisCore.InformationRecordElement","properties":[{"name":"LinearElementSource","type":"NavigationProperty","customAttributes":[{"className":"CoreCustomAttributes.HiddenProperty"}],"relationshipName":"LinearReferencing.ILinearElementProvidedBySource","direction":"Forward"}],"mixins":["LinearReferencing.ILinearElement"]},"RoadTraversalGroupsSegments":{"schemaItemType":"RelationshipClass","description":"Relates the RoadEdges and any portions thereof defining a Linear Referencing System captured by a RoadTraversal.","modifier":"None","baseClass":"BisCore.ElementGroupsMembers","properties":[{"name":"ReversedDirection","type":"PrimitiveProperty","description":"Specifies the direction of the referenced RoadEdge or portion thereof in a RoadTraversal.","label":"Reversed Direction","typeName":"boolean"}],"strength":"Referencing","strengthDirection":"Forward","source":{"multiplicity":"(0..*)","roleLabel":"groups","polymorphic":true,"constraintClasses":["RoadNetwork.RoadTraversal"]},"target":{"multiplicity":"(0..*)","roleLabel":"is grouped by","polymorphic":true,"constraintClasses":["RoadNetwork.IRoadTraversalSegment"]}}}}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- ==================================================================================
|
|
3
|
+
| * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
| * See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
======================================================================================= -->
|
|
6
|
+
<ECSchema schemaName="RoadNetwork" alias="rdnet" version="01.00.00" description="Schema containing classes defining Networks in the Road domain." xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
7
|
+
<ECSchemaReference name="BisCore" version="01.00.13" alias="bis"/>
|
|
8
|
+
<ECSchemaReference name="LinearReferencing" version="02.00.03" alias="lr"/>
|
|
9
|
+
<ECSchemaReference name="NetworkTopology" version="01.00.00" alias="net"/>
|
|
10
|
+
<ECSchemaReference name="CoreCustomAttributes" version="01.00.03" alias="CoreCA"/>
|
|
11
|
+
<ECSchemaReference name="BisCustomAttributes" version="01.00.00" alias="bisCA"/>
|
|
12
|
+
<ECSchemaReference name="CivilUnits" version="01.00.00" alias="cvu"/>
|
|
13
|
+
|
|
14
|
+
<ECCustomAttributes>
|
|
15
|
+
<ProductionStatus xmlns="CoreCustomAttributes.01.00.03">
|
|
16
|
+
<SupportedUse>NotForProduction</SupportedUse>
|
|
17
|
+
</ProductionStatus>
|
|
18
|
+
<SchemaLayerInfo xmlns="BisCustomAttributes.01.00.00">
|
|
19
|
+
<Value>DisciplineOther</Value>
|
|
20
|
+
</SchemaLayerInfo>
|
|
21
|
+
</ECCustomAttributes>
|
|
22
|
+
|
|
23
|
+
<ECEntityClass typeName="IRoadTraversalSegment" modifier="Abstract" description="Helper mix-in enabling the uniform treatment of full RoadEdges and portions thereof by RoadTraversals.">
|
|
24
|
+
<ECCustomAttributes>
|
|
25
|
+
<IsMixin xmlns='CoreCustomAttributes.01.00.00'>
|
|
26
|
+
<AppliesToEntityClass>bis:InformationRecordElement</AppliesToEntityClass>
|
|
27
|
+
</IsMixin>
|
|
28
|
+
</ECCustomAttributes>
|
|
29
|
+
</ECEntityClass>
|
|
30
|
+
|
|
31
|
+
<ECEntityClass typeName="RoadNetwork" displayLabel="Road Network" description="A net:NetworkElement modeling a graph in the Road domain, consisting of RoadNodes and RoadEdges.">
|
|
32
|
+
<BaseClass>net:NetworkElement</BaseClass>
|
|
33
|
+
</ECEntityClass>
|
|
34
|
+
|
|
35
|
+
<ECEntityClass typeName="RoadNode" displayLabel="Road Node" description="A net:NodeElement modeling a vertex in a Road graph, defining RoadEdge end-points.">
|
|
36
|
+
<BaseClass>net:NodeElement</BaseClass>
|
|
37
|
+
</ECEntityClass>
|
|
38
|
+
|
|
39
|
+
<ECEntityClass typeName="RoadEdge" displayLabel="Road Edge" description="A net:EdgeElement modeling a link in a Road graph, with two end-points.">
|
|
40
|
+
<BaseClass>net:LinearElementEdge</BaseClass>
|
|
41
|
+
<BaseClass>IRoadTraversalSegment</BaseClass>
|
|
42
|
+
<BaseClass>lr:ILinearLocationElement</BaseClass>
|
|
43
|
+
<ECProperty propertyName="StartValue" typeName="double" kindOfQuantity="cvu:LENGTH" displayLabel="Start Distance Along">
|
|
44
|
+
<ECCustomAttributes>
|
|
45
|
+
<HiddenProperty xmlns="CoreCustomAttributes.01.00.00"/>
|
|
46
|
+
</ECCustomAttributes>
|
|
47
|
+
</ECProperty>
|
|
48
|
+
<ECNavigationProperty propertyName="LinearElementSource" relationshipName="lr:ILinearElementProvidedBySource" direction="Forward">
|
|
49
|
+
<ECCustomAttributes>
|
|
50
|
+
<HiddenProperty xmlns="CoreCustomAttributes.01.00.00"/>
|
|
51
|
+
</ECCustomAttributes>
|
|
52
|
+
</ECNavigationProperty>
|
|
53
|
+
</ECEntityClass>
|
|
54
|
+
|
|
55
|
+
<ECEntityClass typeName="RoadEdgeSegment" displayLabel="Road Edge Segment" description="A bis:InformationRecordElement representing a portion of a RoadEdge that can be related to a RoadTraversal.">
|
|
56
|
+
<BaseClass>bis:InformationRecordElement</BaseClass>
|
|
57
|
+
<BaseClass>IRoadTraversalSegment</BaseClass>
|
|
58
|
+
<BaseClass>lr:ILinearLocationElement</BaseClass>
|
|
59
|
+
</ECEntityClass>
|
|
60
|
+
|
|
61
|
+
<ECEntityClass typeName="RoadTraversal" displayLabel="Road Traversal" description="A Linear-Element defining a Linear Referencing System along a set of RoadEdges or portions thereof.">
|
|
62
|
+
<BaseClass>bis:InformationRecordElement</BaseClass>
|
|
63
|
+
<BaseClass>lr:ILinearElement</BaseClass>
|
|
64
|
+
<ECNavigationProperty propertyName="LinearElementSource" relationshipName="lr:ILinearElementProvidedBySource" direction="Forward">
|
|
65
|
+
<ECCustomAttributes>
|
|
66
|
+
<HiddenProperty xmlns="CoreCustomAttributes.01.00.00"/>
|
|
67
|
+
</ECCustomAttributes>
|
|
68
|
+
</ECNavigationProperty>
|
|
69
|
+
</ECEntityClass>
|
|
70
|
+
|
|
71
|
+
<ECRelationshipClass typeName="RoadTraversalGroupsSegments" strength="referencing" modifier="None" description="Relates the RoadEdges and any portions thereof defining a Linear Referencing System captured by a RoadTraversal.">
|
|
72
|
+
<BaseClass>bis:ElementGroupsMembers</BaseClass>
|
|
73
|
+
<Source multiplicity="(0..*)" roleLabel="groups" polymorphic="true">
|
|
74
|
+
<Class class="RoadTraversal"/>
|
|
75
|
+
</Source>
|
|
76
|
+
<Target multiplicity="(0..*)" roleLabel="is grouped by" polymorphic="true">
|
|
77
|
+
<Class class="IRoadTraversalSegment"/>
|
|
78
|
+
</Target>
|
|
79
|
+
<ECProperty propertyName="ReversedDirection" typeName="boolean" displayLabel="Reversed Direction" description="Specifies the direction of the referenced RoadEdge or portion thereof in a RoadTraversal."/>
|
|
80
|
+
</ECRelationshipClass>
|
|
81
|
+
</ECSchema>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
remarksTarget: RoadNetwork.ecschema.md
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# RoadNetwork
|
|
6
|
+
|
|
7
|
+
BIS schema, containing classes describing Network Topology in the Road domain.
|
|
8
|
+
|
|
9
|
+
NOTE: Currently under development. This schema should not be used for production workflows. Data created using this schema is not supported and may not be upgradable.
|
|
10
|
+
|
|
11
|
+
## Entity Classes
|
|
12
|
+
|
|
13
|
+
### IRoadTraversalSegment
|
|
14
|
+
|
|
15
|
+
The `IRoadTraversalSegment` mix-in is only implemented by the `RoadEdge` and `RoadEdgeSegment` classes.
|
|
16
|
+
|
|
17
|
+
### RoadNetwork
|
|
18
|
+
|
|
19
|
+
An instance of `RoadNetwork` shall reference all `RoadNode`s and `RoadEdge`s composing it via the `net:NetworkConsistsOfTopologyElements` relationship.
|
|
20
|
+
|
|
21
|
+
Since all element classes in the RailNetwork schema are `bis:InformationRecordElement`s in nature, they do not carry any geometry. There shall be one or more geometrical representations of each concept, subclassing either `bis:GeometricElement2d` or `bis:GeometricElement3d`. A 2D schematic drawing is an example of the former while geographically-located 3D graphics can be used in the latter. The appropriate *represents* relationship shall be used to associate each geometrical representation with the element from the RailNetwork schema. That is, the `bis:DrawingGraphicRepresentsElement` in the first case or the `bis:GraphicalElement3dRepresentsElement` in the second case.
|
|
22
|
+
|
|
23
|
+
Furthermore, topology elements in the RailNetwork schema are themselves parallel representations of real-world entities such as *Roadways* or *Intersections* in a Road. The `net:TopologyElementRepresentsElement` relationship shall be used to associate them accordingly.
|
|
24
|
+
|
|
25
|
+
### RoadEdge
|
|
26
|
+
|
|
27
|
+
An instance of `RoadEdge` can also be used as a Linear-Element for Linear Referencing purposes.
|
|
28
|
+
|
|
29
|
+
### RoadEdgeSegment
|
|
30
|
+
|
|
31
|
+
An instance of `RoadEdgeSegment` shall be linearly located along the `RoadEdge` that represents a portion of.
|
|
32
|
+
|
|
33
|
+
### RoadTraversal
|
|
34
|
+
|
|
35
|
+
A `RoadTraversal` references the `RoadEdge`s and/or `RoadEdgeSegments` it is based on (both of which implement the `IRoadTraversalSegment` mix-in) via the `RoadTraversalGroupsSegments` relationship. It uses the `MemberPriority` property of such relationship to specify the order for each member in the `RoadTraversal`.
|
|
36
|
+
|
|
37
|
+
An instance of `RoadTraversal` can be used as a Linear-Element for Linear Referencing purposes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@itwin/road-network-schema",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@itwin/road-network-schema",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"version": "1.0.0-dev.1",
|
|
5
|
+
"homepage": "https://www.itwinjs.org/",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/iTwin/bis-schemas"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"Bentley",
|
|
12
|
+
"BIS",
|
|
13
|
+
"iModel"
|
|
14
|
+
],
|
|
15
|
+
"description": "RoadNetwork BIS Domains",
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Bentley Systems, Inc.",
|
|
18
|
+
"url": "http://www.bentley.com"
|
|
19
|
+
},
|
|
20
|
+
"exports" : {
|
|
21
|
+
"./RoadNetwork.ecschema.xml": "./RoadNetwork.ecschema.xml",
|
|
22
|
+
"./RoadNetwork.ecschema.json": "./RoadNetwork.ecschema.json"
|
|
23
|
+
}
|
|
24
|
+
}
|