Fwd: Expressing 2- and 3-D coordinates

From: Alasdair Allan <aa-at-astro.ex.ac.uk>
Date: Thu, 15 Dec 2005 15:50:55 +0000

Ray Plante wrote:
> I'd be curious to hear which parser(s) are not processing lists > properly.

The are others, but LibXML2 springs to mind. See the following dump of the data structure it generates post-parse, as you can see that crd:Value2 ends up in a single tag.

          'WhereWhen' => {
                          'ObservationLocation' => {
                                                   'crd:AstroCoords' => {
                                                                        

'crd:Position2D' => {
'crd:Value2' => '148.88 69.06', 'unit' => 'deg', 'crd:Error2PA' => { 'crd:Size' => '0.02 0.01', 'crd:PosAngle' => { 'reference' =>
'North',
'content' =>
'15'
} } },
'crd:Time' => {
'unit' => 's', 'crd:Error' => '1.0', 'crd:TimeInstant' => { 'crd:ISOTime' =>
'2005-04-15T23:59:59'
} },
'coord_system_id' => 'FK5-UTC-TOPO'
},
'stc:AstroCoordSystem' => {
'stc:TimeFrame' => { 'stc:TimeScale' => 'UTC', 'stc:TOPOCENTER' => {}, 'stc:Name' => 'Time' }, 'ID' => 'FK5-UTC-TOPO', 'stc:SpaceFrame' => { 'stc:FK5' => { 'stc:Equinox' => 'J2000.0' }, 'stc:TOPOCENTER' => {}, 'stc:SPHERICAL' => { 'coord_naxes' => '2' }, 'stc:Name' => 'Equatorial' } } } },

Cheers,
Al. Received on 2005-12-15Z16:52:08