All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.capabilities-1.1.1.vm Maven / Gradle / Ivy

There is a newer version: 1.5.3
Show newest version



    
        OGC:WMS
        $catalogue.serverInfo.name
        $catalogue.serverInfo.abstract
        
#foreach($keyword in $catalogue.serverKeywords)        
            $keyword
#end            
        
        
        
            
                $catalogue.contactInfo.name
                $catalogue.contactInfo.organisation
            
            $catalogue.contactInfo.telephone
            $catalogue.contactInfo.email
        
        none
        none
    
    
        
            
                application/vnd.ogc.wms_xml
                
                    
                        
                            
                        
                    
                
            
            
#foreach($imageFormat in $supportedImageFormats) 
                $imageFormat
#end                
                
                    
                        
                            
                        
                    
                
            
            
#foreach($featureInfoFormat in $supportedFeatureInfoFormats) 
                $featureInfoFormat
#end                
                
                    
                        
                            
                        
                    
                
            
        
        
            application/vnd.ogc.wms_xml
        
        
            $catalogue.serverInfo.name
#foreach($supportedCrs in $supportedCrsCodes)
            $supportedCrs
#end            
#foreach($dataset in $datasets)            
            
                $catalogue.getDatasetTitle($dataset.id)
#foreach($variable in $dataset.topLevelVariables)
## Recursively(?) insert layers here.  Depends how we want to implement layer structure in Capabilities doc...
#layer111($dataset $variable $verbose $variable.children)
#end                
            
#end        
        
    

##
##
## End of actual capabilities document.  Layer macro follows.
##
##
#macro(layer111 $dataset $variableMetadata $verboseTimes $children)
#set($parent = ($children && $children.size() > 0))
#set($supportedStyles = $catalogue.styleCatalogue.getSupportedStyles($variableMetadata, $catalogue.layerNameMapper))
#set($plottable = ($supportedStyles && $supportedStyles.size() > 0))
#set($layerName = $catalogue.layerNameMapper.getLayerName($dataset.id, $variableMetadata.id))
#set($layerMetadata = $catalogue.getLayerMetadata($variableMetadata))
#if(!$layerMetadata.disabled)
    
#if($plottable && $layerName && !$parent)
        $layerName
#end
#if($layerMetadata.title)
        $layerMetadata.title
#end
#if($layerMetadata.description)
        $layerMetadata.description
#end
#if($parent)
#if($supportedStyles.size() > 0)
#layer111($dataset $variableMetadata $verbose false)
#end
#foreach($child in $variableMetadata.children)
#layer111($dataset $child $verbose $child.children)
#end
#else
#if($variableMetadata.horizontalDomain.geographicBoundingBox)
#set($bbox = $variableMetadata.horizontalDomain.geographicBoundingBox)
        
        
#end
#if($variableMetadata.temporalDomain)
## We have a non-null temporal domain
        
#end
#if($variableMetadata.verticalDomain)
## We have a non-null vertical domain
        
#end            
    
#if($variableMetadata.temporalDomain)
## We have a non-null temporal domain
#set($tDomain = $variableMetadata.temporalDomain)
#if($GISUtils.isTemporalDomainTimeAxis($tDomain))
## Discrete temporal domain
        
#if($verboseTimes)
#foreach($tval in $tDomain.coordinateValues)
            $TimeUtils.dateTimeToISO8601($tval)#if($foreach.hasNext),#end
#end            
#else
            $TimeUtils.getTimeStringForCapabilities($tDomain.coordinateValues)
#end
        
#else
## Continuous temporal domain
        
            $TimeUtils.dateTimeToISO8601($tDomain.extent.low)/$TimeUtils.dateTimeToISO8601($tDomain.extent.high)/0
        
#end                    
#end
##
#if($variableMetadata.verticalDomain)
## We have a non-null vertical domain
#set($zDomain = $variableMetadata.verticalDomain)
#if($zDomain.verticalCrs.isPressure())
#set($zUnits = "ncwms:pressure")
#elseif($zDomain.verticalCrs.isPositiveUpwards())
#set($zUnits = "ncwms:height")
#else
#set($zUnits = "ncwms:depth")
#end
#if($GISUtils.isVerticalDomainVerticalAxis($zDomain))
## Domain is a VerticalAxis
## Set the units attribute to a pseudo-CRS
        
#foreach($zval in $zDomain.coordinateValues)
            $zval#if($foreach.hasNext),#end
#end            
        
#else
## Continuous vertical domain
        
            $zDomain.extent.low/$zDomain.extent.high/0
        
#end
#end
#foreach($style in $supportedStyles)
#if($catalogue.styleCatalogue.styleUsesPalette($style))
#foreach($paletteName in $availablePalettes)
        
#end
#else
        
#end
#end
#end

#end
#end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy