Fwd: Expressing 2- and 3-D coordinates

Alasdair Allan aa at astro.ex.ac.uk
Thu Dec 15 07:50:55 PST 2005


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.



More information about the votable mailing list