Ignore:
Timestamp:
28/03/08 11:48:17 (12 years ago)
Author:
spascoe
Message:

Bug fix for GetFeatureInfo?. The basic mechanism appears to work now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons/wms_controller.py

    r3696 r3697  
    303303 
    304304    def GetFeatureInfo(self): 
     305        # Housekeeping 
     306        version = self.getOwsParam('version', default=self.validVersions[0]) 
     307        if version not in self.validVersions: 
     308            raise InvalidParameterValue('Version %s not supported' % version, 
     309                                        'version') 
    305310        layerName, layerObj = self._getLayerParam('query_layers') 
    306311        format = self.getOwsParam('info_format') 
     
    330335            dimValues[dimName] = self.getOwsParam(dimName, default=defaultValue) 
    331336        # Get pixel location 
    332         i = self.getOwsParam('i') 
    333         j = self.getOwsParam('j') 
     337        i = int(self.getOwsParam('i')) 
     338        j = int(self.getOwsParam('j')) 
    334339 
    335340        # Translate to geo-coordinates 
Note: See TracChangeset for help on using the changeset viewer.