Skip to content

Geometry

Hyemi Jeong edited this page May 21, 2018 · 14 revisions

Simple Feature Model

IndoorGML follows the model of ISO19107. But for easy development, InFactory uses Simple Feature Model(SFM)(http://www.opengeospatial.org/standards/sfa) for representing the geometry of CellSpace, CellSpaceBoundary, State, and Transition.

But SFM doesn't support three dimensional geometry such as Solid. So we extended SFM to support this kinds of geometry. So we extended the geometry model using the multipolygon of SFM. Refer the below picture.

Well-Known Text

In the JSON format, the geometry of indoor space is represented by Well-Known Text(WKT)(http://www.opengeospatial.org/standards/wkt-crs). WKT doesn't support Solid, so we extended this model for expressing Solid using MultiPolygon of WKT. This is the example of CellSpace which geometry is expressed using extended WKT.

{
	"docId":"doc1",
	"parentId":"psf1",
	"id":"c1",
	"geometry": {
		"type" : "Solid",
		"coordinates" : "SOLID (( ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 0 1 0, 0 1 1, 0 0 1, 0 0 0)), ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)), ((1 1 1, 1 0 1, 0 0 1, 0 1 1, 1 1 1)), ((1 1 1, 1 0 1, 1 0 0, 1 1 0, 1 1 1)), ((1 1 1, 1 1 0, 0 1 0, 0 1 1, 1 1 1)) ))",
		"properties" : {
			"id" : "c1g",
			"type" : "wkt"
		}
	},
	"properties" : {
			"duality":"s1",
		"partialboundedBy" : ["B1"]
	}
} 
Clone this wiki locally