- Timestamp:
- 03/07/12 17:39:04 (9 years ago)
- Location:
- mauRepo/HPFos/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/HPFos/trunk/resources/requirements.txt
r8421 r8431 8 8 # to your pip install 9 9 ceda-markup==0.0.3 10 ceda-moles-model==0.1. 010 ceda-moles-model==0.1.1 11 11 12 12 #This package should be available in the machine where CedaManager will be deployed -
mauRepo/HPFos/trunk/src/HPFos/moles3epb.py
r8417 r8431 117 117 return None 118 118 119 def getGeograpicExtentGeometry(self, ge):120 '''121 Creates the appropriate postgis geometry from a EX_GeographicExtent122 @param ge: an EX_GeographicExtent instance123 @return: a postgix text geometry124 '''125 if isinstance(ge, EX_GeographicBoundingBox):126 return create_st_setSRID(ge.westBoundLongitude, ge.southBoundLatitude, \127 ge.eastBoundLongitude, ge.northBoundLatitude)128 return None129 130 131 132 119 def getUnifyObservationCollectionGE(self, collection): 133 120 """ … … 149 136 """ 150 137 151 collections = self._session.query(CEDA_ObservationCollection).all() 152 ''' 153 for item in self._session.query(CEDA_ObservationCollection): 154 collections.append(self.searchSelectiveLoadByInstance(item, \ 155 ['identifier', 'geographicExtent'])) 156 ''' 138 collections = self._session.query(CEDA_ObservationCollection).all() 157 139 if bbox == None: 158 140 return collections … … 377 359 def executeNative(self, sqlNative): 378 360 return EPB.executeNative(sqlNative, self._session) 361 362 def getGeograpicExtentGeometry(self, ge): 363 ''' 364 Creates the appropriate postgis geometry from a EX_GeographicExtent 365 @param ge: an EX_GeographicExtent instance 366 @return: a postgix text geometry 367 ''' 368 if isinstance(ge, EX_GeographicBoundingBox): 369 return create_st_setSRID(ge.westBoundLongitude, ge.southBoundLatitude, \ 370 ge.eastBoundLongitude, ge.northBoundLatitude) 371 return None
Note: See TracChangeset
for help on using the changeset viewer.