Ignore:
Timestamp:
03/04/07 13:13:58 (12 years ago)
Author:
ko23
Message:

Fix MDIP2MOLES cast (see #655)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/ndg_xqueries.py

    r2367 r2372  
    19141914declare namespace gco='http://www.isotc211.org/2005/gco'; 
    19151915declare namespace xsi='http://www.w3.org/2001/XMLSchema-instance';  
    1916  
    19171916declare variable $targetCollection as xs:string {'TargetCollection'}; 
    19181917declare variable $repositoryIdentifier as xs:string {'RepositoryID'}; 
    19191918declare variable $localIdentifier as xs:string {'LocalID'}; 
    1920  
    19211919declare variable $ISO_639-2_ns as xs:string{$voclib:ISO_639-2_ns}; 
    19221920declare variable $ISO_3166_ns as xs:string{$voclib:ISO_3166_ns}; 
     
    19841982    } 
    19851983    else (), 
    1986     let $west := min($DE/moles:dgDataEntity/moles:dgDataSummary//moles:BoundingBox/moles:LimitWest cast as xs:integer) 
     1984    let $west := min($DE/moles:dgDataEntity/moles:dgDataSummary//moles:BoundingBox/moles:LimitWest cast as xs:decimal) 
    19871985    return element WestCoOrdinate {data($west)}, 
    1988     let $east := max($DE/moles:dgDataEntity/moles:dgDataSummary//moles:BoundingBox/moles:LimitEast cast as xs:integer) 
     1986    let $east := max($DE/moles:dgDataEntity/moles:dgDataSummary//moles:BoundingBox/moles:LimitEast cast as xs:decimal) 
    19891987    return element EastCoOrdinate {data($east)}, 
    1990     let $north := max($DE/moles:dgDataEntity/moles:dgDataSummary//moles:BoundingBox/moles:LimitNorth cast as xs:integer) 
     1988    let $north := max($DE/moles:dgDataEntity/moles:dgDataSummary//moles:BoundingBox/moles:LimitNorth cast as xs:decimal) 
    19911989    return element NorthCoOrdinate {data($north)}, 
    1992     let $south := min($DE/moles:dgDataEntity/moles:dgDataSummary//moles:BoundingBox/moles:LimitSouth cast as xs:integer) 
     1990    let $south := min($DE/moles:dgDataEntity/moles:dgDataSummary//moles:BoundingBox/moles:LimitSouth cast as xs:decimal) 
    19931991    return element SouthCoOrdinate {data($south)}, 
    19941992    element DatasetIdentifier {concat($DE/moles:dgMetadataID/moles:repositoryIdentifier, $utillib:moles_id_separator, 'MDIP', $utillib:moles_id_separator, $DE/moles:dgMetadataID/moles:localIdentifier)}, 
Note: See TracChangeset for help on using the changeset viewer.