[x3d-public] candidate geoSystem correction to JSON schema

John Carlson yottzumm at gmail.com
Sat May 20 18:29:06 PDT 2017


Don, try this Schema.  These are my modifications.  Note that I don’t have some of the required @name fields yet in this schema.  They will need to be added.  Also, are IMPORTs up to date?

Will provide an update when ready.

Thanks,

John

Sent from Mail for Windows 10

From: Don Brutzman
Sent: Saturday, May 20, 2017 8:57 PM
To: Roy Walmsley
Cc: X3D Graphics public mailing list
Subject: [x3d-public] candidate geoSystem correction to JSON schema

JSON Schema sayeth

"@geoSystem": {
	"description": "Attempts to validate all possible combinations",
	"oneOf": [
		{
			"type": "array",
			"minItems": 1,
			"maxItems": 3,
			"items": [
				{
					"type": "string",
					"enum": [
						"GD",
						"GDC"
					],
					"default": "GD"
				},

while in X3D abstract specification:

25.2.2 Spatial reference frames
http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Spatialreferenceframes

Table 25.2 — Supported spatial reference frames

lists GD GC UTM and is followed by special cases GDC and GCC.

Suggest adding enumeration values for "GC", "GCC", "UTM"

However I do see other entries further down for "UTM" and default "GD" (though GD is not also listed there as an enum value).

Example scene for testing is Squaw.x3d with Squaw.json including

	"@geoSystem":["UTM","Z10","N"],

Also Mars.x3d and Mars.json with recent updates at

	http://www.web3d.org/x3d/content/examples/Basic/Geospatial/

Not quite sure how you are handling things there, hope you can sort it out OK.  TIA.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

_______________________________________________
x3d-public mailing list
x3d-public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170520/2baa0d95/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x3d-3.0-JSONSchema.json
Type: application/json
Size: 366190 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170520/2baa0d95/attachment-0001.json>


More information about the x3d-public mailing list