Changeset 782


Ignore:
Timestamp:
12/04/06 15:15:20 (14 years ago)
Author:
domlowe
Message:

added code to resolve hrefs and srsName refs to real objects

Location:
TI02-CSML/trunk/newparser
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/newparser/Parser.py

    r781 r782  
    194194# class SRSReferenceGroup: 
    195195#     +srsName[0...]:anyURI 
    196 #     +srsDimension[0...1]:positiveInteger 
     196# #     +srsDimension[0...1]:positiveInteger 
    197197    def __init__(self,srsName=None,srsDimension=None): 
    198198        if srsName: 
  • TI02-CSML/trunk/newparser/test.py

    r781 r782  
    1616####################################################### 
    1717# 1. Test parsing from CSML file 
    18 tree = ElementTree(file='example.xml') 
     18#tree = ElementTree(file='example.xml') 
     19tree = ElementTree(file='era40gridseries.xml') 
    1920dataset = Dataset() 
    2021 
     
    2627 
    2728#resolve references: (not implemented yet) 
    28 #dataset=parser_extra.ParserPostProcessor(dataset).resolveReferences() 
     29dataset=parser_extra.ParserPostProcessor(dataset).resolveReferences() 
    2930 
    3031#This creates a new CSML document string from the CSML objects in memory. 
     
    3536strCSML= parseString(tostring(csml)).toprettyxml() 
    3637strCSML=parser_extra.removeInlineNS(strCSML) 
    37 #print strCSML 
     38print strCSML 
    3839 
Note: See TracChangeset for help on using the changeset viewer.