<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Is there a regular expression for geoSystem in XML Schema? Perhaps there should be?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a><br><b>Sent: </b>Monday, July 10, 2017 11:56 AM<br><b>To: </b><a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:yottzumm@gmail.com">'John Carlson'</a><br><b>Cc: </b><a href="mailto:x3d-public@web3d.org">'X3D Graphics public mailing list'</a><br><b>Subject: </b>Re: X3D JSON schema validation problems: geoSystem "UTM"</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>appreciate the details gentlemen, am now tracking. thank you.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>am still confused regarding status tho... the Mantis issue is confirmed but not resolved; first Note says: "'N' should definitely be allowed." Other followups in the issue indicate that "N" should be allowed. Incidentally have we looked at other formats usage regarding UTM and N? Being consistent is likely helpful.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>i think this is why the content wasn't reconciled earlier, because the Mantis issue is still open.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>looking forward to resolving the issue and finalizing content/converter/schema.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 7/10/2017 8:37 AM, Roy Walmsley wrote:</p><p class=MsoNormal>> Don,</p><p class=MsoNormal>> </p><p class=MsoNormal>> John is correct. Remove in all 32 instances of geosystem the “N” value, and the JSON encoded file passes validation.</p><p class=MsoNormal>> </p><p class=MsoNormal>> This has been discussed in Mantis issue 938 (http://www.web3d.org/member-only/mantis/view.php?id=938 for Web3D members). The V3.3 of the standard only permits an optional “S” to indicate southern hemisphere. The northern hemisphere “N” is not permitted. It is assumed by default if there is no “S”.</p><p class=MsoNormal>> </p><p class=MsoNormal>> While we may change this in V4.0 of X3D, the fact is that this is the case for V3.3. The JSON schema for V3.3 should, therefore, reflect the V3.3 standard. This problem was only identified because of the greater expressive power of JSON schema over the corresponding XML schema. The JSON schema was written to fully validate the geoSystem field in accordance with the standard. The Schematron should also be able to do this. Does it?</p><p class=MsoNormal>> </p><p class=MsoNormal>> All the best,</p><p class=MsoNormal>> </p><p class=MsoNormal>> Roy</p><p class=MsoNormal>> </p><p class=MsoNormal>> *From:*John Carlson [mailto:yottzumm@gmail.com]</p><p class=MsoNormal>> *Sent:* 10 July 2017 16:13</p><p class=MsoNormal>> *To:* Don Brutzman <brutzman@nps.edu></p><p class=MsoNormal>> *Cc:* X3D Graphics public mailing list <x3d-public@web3d.org>; Roy Walmsley <roy.walmsley@ntlworld.com></p><p class=MsoNormal>> *Subject:* Re: X3D JSON schema validation problems: geoSystem "UTM"</p><p class=MsoNormal>> </p><p class=MsoNormal>> Again, your "N" or north will not pass schema.</p><p class=MsoNormal>> </p><p class=MsoNormal>> John</p><p class=MsoNormal>> </p><p class=MsoNormal>> On Jul 10, 2017 10:57 AM, "Don Brutzman" <brutzman@nps.edu <mailto:brutzman@nps.edu>> wrote:</p><p class=MsoNormal>> </p><p class=MsoNormal>> Issue with geoSystem support for "UTM", example attached. Troublesome line appears to be</p><p class=MsoNormal>> </p><p class=MsoNormal>> <GeoOrigin DEF='ORIGIN' geoCoords='4342525.5 740604 0' geoSystem='"UTM" "Z10" "N"' rotateYUp='true'/></p><p class=MsoNormal>> </p><p class=MsoNormal>> "-geoOrigin":</p><p class=MsoNormal>> { "GeoOrigin":</p><p class=MsoNormal>> {</p><p class=MsoNormal>> "@DEF":"ORIGIN",</p><p class=MsoNormal>> "@geoCoords":[4342525.5,740604,0],</p><p class=MsoNormal>> "@geoSystem":["UTM","Z10","N"],</p><p class=MsoNormal>> "@rotateYUp":true</p><p class=MsoNormal>> }</p><p class=MsoNormal>> }</p><p class=MsoNormal>> </p><p class=MsoNormal>> (perhaps other errors as well, this console error goes on for quite a ways.) json schema validation excerpt follows:</p><p class=MsoNormal>> </p><p class=MsoNormal>> </p><p class=MsoNormal>> --- BEGIN C:\x3d-code\www.web3d.org <http://www.web3d.org>\x3d\content\examples\Basic\Geospatial\Squaw.json---</p><p class=MsoNormal>> validation: FAILURE</p><p class=MsoNormal>> [ {</p><p class=MsoNormal>> "level" : "error",</p><p class=MsoNormal>> "schema" : {</p><p class=MsoNormal>> "loadingURI" : "file:/C:/x3d-code/www.web3d.org/specifications/x3d-3.3-JSONSchema.json# <http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json>",</p><p class=MsoNormal>> "pointer" : "/definitions/@geoSystem"</p><p class=MsoNormal>> },</p><p class=MsoNormal>> "instance" : {</p><p class=MsoNormal>> "pointer" : "/X3D/Scene/-children/4/GeoViewpoint/-geoOrigin/GeoOrigin/@geoSystem"</p><p class=MsoNormal>> },</p><p class=MsoNormal>> "domain" : "validation",</p><p class=MsoNormal>> "keyword" : "oneOf",</p><p class=MsoNormal>> "message" : "instance failed to match exactly one schema (matched 0 out of 9)",</p><p class=MsoNormal>> "matched" : 0,</p><p class=MsoNormal>> "nrSchemas" : 9,</p><p class=MsoNormal>> "reports" : {</p><p class=MsoNormal>> "/definitions/@geoSystem/oneOf/0" : [ {</p><p class=MsoNormal>> "level" : "error",</p><p class=MsoNormal>> "schema" : {</p><p class=MsoNormal>> "loadingURI" : "file:/C:/x3d-code/www.web3d.org/specifications/x3d-3.3-JSONSchema.json# <http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json>",</p><p class=MsoNormal>> "pointer" : "/definitions/@geoSystem/oneOf/0/items/0"</p><p class=MsoNormal>> },</p><p class=MsoNormal>> "instance" : {</p><p class=MsoNormal>> "pointer" : "/X3D/Scene/-children/4/GeoViewpoint/-geoOrigin/GeoOrigin/@geoSystem/0"</p><p class=MsoNormal>> },</p><p class=MsoNormal>> "domain" : "validation",</p><p class=MsoNormal>> "keyword" : "enum",</p><p class=MsoNormal>> "message" : "instance value (\"UTM\") not found in enum (possible values: [\"GD\",\"GDC\"])",</p><p class=MsoNormal>> "value" : "UTM",</p><p class=MsoNormal>> "enum" : [ "GD", "GDC" ]</p><p class=MsoNormal>> }, {</p><p class=MsoNormal>> "level" : "error",</p><p class=MsoNormal>> "schema" : {</p><p class=MsoNormal>> "loadingURI" : "file:/C:/x3d-code/www.web3d.org/specifications/x3d-3.3-JSONSchema.json# <http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json>",</p><p class=MsoNormal>> "pointer" : "/definitions/@geoSystem/oneOf/0/items/1"</p><p class=MsoNormal>> },</p><p class=MsoNormal>> "instance" : {</p><p class=MsoNormal>> "pointer" : "/X3D/Scene/-children/4/GeoViewpoint/-geoOrigin/GeoOrigin/@geoSystem/1"</p><p class=MsoNormal>> },</p><p class=MsoNormal>> "domain" : "validation",</p><p class=MsoNormal>> "keyword" : "enum",</p><p class=MsoNormal>> "message" : "instance value (\"Z10\") not found in enum (possible values: [\"WGS84\"])",</p><p class=MsoNormal>> "value" : "Z10",</p><p class=MsoNormal>> "enum" : [ "WGS84" ]</p><p class=MsoNormal>> }, {</p><p class=MsoNormal>> "level" : "error",</p><p class=MsoNormal>> "schema" : {</p><p class=MsoNormal>> "loadingURI" : "file:/C:/x3d-code/www.web3d.org/specifications/x3d-3.3-JSONSchema.json# <http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json>",</p><p class=MsoNormal>> "pointer" : "/definitions/@geoSystem/oneOf/0/additionalItems"</p><p class=MsoNormal>> },</p><p class=MsoNormal>> "instance" : {</p><p class=MsoNormal>> "pointer" : "/X3D/Scene/-children/4/GeoViewpoint/-geoOrigin/GeoOrigin/@geoSystem/2"</p><p class=MsoNormal>> },</p><p class=MsoNormal>> "domain" : "validation",</p><p class=MsoNormal>> "keyword" : "enum",</p><p class=MsoNormal>> "message" : "instance value (\"N\") not found in enum (possible values: [\"AM\",\"AN\",\"BN\",\"BR\",\"CC\",\"CD\",\"EA\",\"EB\",\"EC\",\"ED\",\"EE\",\"EF\",\"FA\",\"HE\",\"HO\",\"ID\",\"IN\",\"KA\",\"RF\",\"SA\",\"WD\",\"WE\"])",</p><p class=MsoNormal>> "value" : "N",</p><p class=MsoNormal>> "enum" : [ "AM", "AN", "BN", "BR", "CC", "CD", "EA", "EB", "EC", "ED", "EE", "EF", "FA", "HE", "HO", "ID", "IN", "KA", "RF", "SA", "WD", "WE" ]</p><p class=MsoNormal>> } ],</p><p class=MsoNormal>> </p><p class=MsoNormal>> etc.</p><p class=MsoNormal>> </p><p class=MsoNormal>> all the best, Don</p><p class=MsoNormal>> -- </p><p class=MsoNormal>> Don Brutzman Naval Postgraduate School, Code USW/Br brutzman@nps.edu <mailto:brutzman@nps.edu></p><p class=MsoNormal>> Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149 <tel:%2B1.831.656.2149></p><p class=MsoNormal>> X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman</p><p class=MsoNormal>> </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>all the best, Don</p><p class=MsoNormal>-- </p><p class=MsoNormal>Don Brutzman Naval Postgraduate School, Code USW/Br brutzman@nps.edu</p><p class=MsoNormal>Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149</p><p class=MsoNormal>X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>