[x3d-public] Problem with X3DJSONLD.js -- Intermediate *.x3d.new doesn't have containerField on shape, so neither does Java. Is this a problem?

John Carlson yottzumm at gmail.com
Sat Apr 9 17:43:27 PDT 2022


interesting "issues" while running Java generated by JavaSerializer.js.
Sample attached.

Note that the SquawLOD023.x3d.new (intermediate between JSON and Java) does
not contain the containerField='rootNode' that the XML file has.  Should I
explicitly set the containerField on Shape?

Note that the .new.json does not contain a containerField either, nor does
the JSON generated from XML, that the serializer uses as input.

Can someone explain why the containerField was supposed to be 'rootNode'?
 Can we get the X3dToJson.xslt to produce a rootNode containerField for
this case?


I'm guessing this is on a TODO list somewhere.



~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD023
success... containerField mismatch for Shape DEF='', found
containerField='children' but expected containerField='rootNode'
~/X3DJSONLD/src/main/shell
~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD024
success... containerField mismatch for Shape DEF='', found
containerField='children' but expected containerField='rootNode'
~/X3DJSONLD/src/main/shell
~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD025
success... containerField mismatch for Shape DEF='', found
containerField='children' but expected containerField='rootNode'
~/X3DJSONLD/src/main/shell
~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD026
success... containerField mismatch for Shape DEF='', found
containerField='children' but expected containerField='rootNode'
~/X3DJSONLD/src/main/shell
~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD027
success... containerField mismatch for Shape DEF='', found
containerField='children' but expected containerField='rootNode'
~/X3DJSONLD/src/main/shell
~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD028
success... containerField mismatch for Shape DEF='', found
containerField='children' but expected containerField='rootNode'
~/X3DJSONLD/src/main/shell
~/X3DJSONLD/src/main/java ~/X3DJSONLD/src/main/shell
net/coderextreme/x3d_code/www_web3d_org/x3d/content/examples/Basic/Geospatial/SquawLOD029
success... containerField mismatch for Shape DEF='', found
containerField='children' but expected containerField='rootNode'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220409/4d2ff1fd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SquawLOD023.java
Type: application/octet-stream
Size: 93256 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220409/4d2ff1fd/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SquawLOD023.x3d
Type: model/x3d+xml
Size: 77880 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220409/4d2ff1fd/attachment-0001.x3d>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SquawLOD023.x3d.new
Type: application/octet-stream
Size: 77207 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220409/4d2ff1fd/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SquawLOD023.new.json
Type: application/json
Size: 79795 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220409/4d2ff1fd/attachment-0002.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SquawLOD023.json
Type: application/json
Size: 80616 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220409/4d2ff1fd/attachment-0003.json>


More information about the x3d-public mailing list