[x3d-public] X3D JSON schema validation problems: geoSystem "UTM"
John Carlson
yottzumm at gmail.com
Mon Jul 10 08:13:27 PDT 2017
Again, your "N" or north will not pass schema.
John
On Jul 10, 2017 10:57 AM, "Don Brutzman" <brutzman at nps.edu> wrote:
> Issue with geoSystem support for "UTM", example attached. Troublesome
> line appears to be
>
> <GeoOrigin DEF='ORIGIN' geoCoords='4342525.5 740604 0' geoSystem='"UTM"
> "Z10" "N"' rotateYUp='true'/>
>
> "-geoOrigin":
> { "GeoOrigin":
> {
> "@DEF":"ORIGIN",
> "@geoCoords":[4342525.5,740604,0],
> "@geoSystem":["UTM","Z10","N"],
> "@rotateYUp":true
> }
> }
>
> (perhaps other errors as well, this console error goes on for quite a
> ways.) json schema validation excerpt follows:
>
>
> --- BEGIN C:\x3d-code\www.web3d.org\x3d\content\examples\Basic\Geospat
> ial\Squaw.json---
> validation: FAILURE
> [ {
> "level" : "error",
> "schema" : {
> "loadingURI" : "file:/C:/x3d-code/www.web3d.o
> rg/specifications/x3d-3.3-JSONSchema.json#",
> "pointer" : "/definitions/@geoSystem"
> },
> "instance" : {
> "pointer" : "/X3D/Scene/-children/4/GeoVie
> wpoint/-geoOrigin/GeoOrigin/@geoSystem"
> },
> "domain" : "validation",
> "keyword" : "oneOf",
> "message" : "instance failed to match exactly one schema (matched 0 out
> of 9)",
> "matched" : 0,
> "nrSchemas" : 9,
> "reports" : {
> "/definitions/@geoSystem/oneOf/0" : [ {
> "level" : "error",
> "schema" : {
> "loadingURI" : "file:/C:/x3d-code/www.web3d.o
> rg/specifications/x3d-3.3-JSONSchema.json#",
> "pointer" : "/definitions/@geoSystem/oneOf/0/items/0"
> },
> "instance" : {
> "pointer" : "/X3D/Scene/-children/4/GeoVie
> wpoint/-geoOrigin/GeoOrigin/@geoSystem/0"
> },
> "domain" : "validation",
> "keyword" : "enum",
> "message" : "instance value (\"UTM\") not found in enum (possible
> values: [\"GD\",\"GDC\"])",
> "value" : "UTM",
> "enum" : [ "GD", "GDC" ]
> }, {
> "level" : "error",
> "schema" : {
> "loadingURI" : "file:/C:/x3d-code/www.web3d.o
> rg/specifications/x3d-3.3-JSONSchema.json#",
> "pointer" : "/definitions/@geoSystem/oneOf/0/items/1"
> },
> "instance" : {
> "pointer" : "/X3D/Scene/-children/4/GeoVie
> wpoint/-geoOrigin/GeoOrigin/@geoSystem/1"
> },
> "domain" : "validation",
> "keyword" : "enum",
> "message" : "instance value (\"Z10\") not found in enum (possible
> values: [\"WGS84\"])",
> "value" : "Z10",
> "enum" : [ "WGS84" ]
> }, {
> "level" : "error",
> "schema" : {
> "loadingURI" : "file:/C:/x3d-code/www.web3d.o
> rg/specifications/x3d-3.3-JSONSchema.json#",
> "pointer" : "/definitions/@geoSystem/oneOf/0/additionalItems"
> },
> "instance" : {
> "pointer" : "/X3D/Scene/-children/4/GeoVie
> wpoint/-geoOrigin/GeoOrigin/@geoSystem/2"
> },
> "domain" : "validation",
> "keyword" : "enum",
> "message" : "instance value (\"N\") not found in enum (possible
> values: [\"AM\",\"AN\",\"BN\",\"BR\",\"CC\",\"CD\",\"EA\",\"EB\",\"E
> C\",\"ED\",\"EE\",\"EF\",\"FA\",\"HE\",\"HO\",\"ID\",\"IN\",
> \"KA\",\"RF\",\"SA\",\"WD\",\"WE\"])",
> "value" : "N",
> "enum" : [ "AM", "AN", "BN", "BR", "CC", "CD", "EA", "EB", "EC",
> "ED", "EE", "EF", "FA", "HE", "HO", "ID", "IN", "KA", "RF", "SA", "WD",
> "WE" ]
> } ],
>
> etc.
>
> 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/brutzma
> n
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170710/9a76262c/attachment.html>
More information about the x3d-public
mailing list