Changeset 31104
- Timestamp:
- Mar 31, 2011, 1:25:16 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/perl/pspsSchema2xml.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/perl/pspsSchema2xml.pl
r31101 r31104 67 67 68 68 # VOTable file 69 my $votOutput = new IO::File("> votable.xml");69 my $votOutput = new IO::File(">tables.vot"); 70 70 my $votWriter = new XML::Writer(OUTPUT => $votOutput, DATA_MODE => 1, DATA_INDENT=>2); 71 71 $votWriter->xmlDecl('UTF-8'); … … 381 381 # get VOTable type 382 382 my $votType = "undef"; 383 my $arraySize = 1; 383 384 if ($type eq "TBYTE") {$votType = "unsignedByte";} 384 385 elsif ($type eq "TSHORT") {$votType = "short";} … … 387 388 elsif ($type eq "TFLOAT") {$votType = "float";} 388 389 elsif ($type eq "TDOUBLE") {$votType = "double";} 389 elsif ($type eq "TSTRING") {$votType = "char"; }390 elsif ($type eq "TSTRING") {$votType = "char"; $arraySize = 24;} 390 391 391 392 $votWriter->startTag('FIELD', 392 393 "name" => $name, 394 "arraysize" => $arraySize, 393 395 "datatype" => $votType); 394 396 $votWriter->endTag();
Note:
See TracChangeset
for help on using the changeset viewer.
