Changeset 4008 for cows


Ignore:
Timestamp:
09/06/08 12:22:19 (11 years ago)
Author:
spascoe
Message:

New COWS distribution. See [4005] for description.

Location:
cows/trunk
Files:
26 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/bbox_util.py

    r3553 r4008  
    22Utilities for manipulating bounding boxes as a tuple (llx, lly, urx, ury) 
    33 
    4 @note: This has no connection with the ows_common data model.  This module 
     4@note: This has no connection with the cows data model.  This module 
    55    will probably move eventually. 
    66 
  • cows/trunk/cows/builder.py

    r3553 r4008  
    1111from cStringIO import StringIO 
    1212 
    13 from ows_common.model import * 
     13from cows.model import * 
    1414 
    1515class ServiceMetadataBuilder(object): 
     
    172172    from pkg_resources import resource_filename 
    173173    loader = TemplateLoader( 
    174                [resource_filename('ows_common.pylons.templates', '')]) 
     174               [resource_filename('cows.pylons.templates', '')]) 
    175175    t = loader.load('wms_capabilities_1_1_1.xml') 
    176176 
  • cows/trunk/cows/exceptions.py

    r3553 r4008  
    99""" 
    1010 
    11 from ows_common.model.exception_report import OwsError 
     11from cows.model.exception_report import OwsError 
    1212 
    1313class OperationNotSupported(OwsError): 
  • cows/trunk/cows/helpers.py

    r3553 r4008  
    44# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt 
    55""" 
    6 Helper functions for constructing ows_common objects 
     6Helper functions for constructing cows objects 
    77 
    88@author: Stephen Pascoe 
    99""" 
    1010 
    11 from ows_common.model import * 
     11from cows.model import * 
    1212 
    1313def domain(value=None, possibleValues=None, **kwargs): 
  • cows/trunk/cows/model/__init__.py

    r3553 r4008  
    55 
    66The abstract model classes are all imported here.  For service-specific 
    7 classes import ows_common.model.w*s 
     7classes import cows.model.w*s 
    88 
    99""" 
  • cows/trunk/cows/model/contents.py

    r3561 r4008  
    99""" 
    1010 
    11 from ows_common.model.iso19115_subset import Keywords 
    12 from ows_common.model.data_identification import Description 
     11from cows.model.iso19115_subset import Keywords 
     12from cows.model.data_identification import Description 
    1313 
    1414class Contents(object): 
  • cows/trunk/cows/model/data_identification.py

    r3553 r4008  
    99""" 
    1010 
    11 from ows_common.model.iso19115_subset import Keywords 
     11from cows.model.iso19115_subset import Keywords 
    1212 
    1313class Description(object): 
  • cows/trunk/cows/model/operations_metadata.py

    r3553 r4008  
    1717""" 
    1818 
    19 from ows_common.model.iso19115_subset import OnlineResource 
     19from cows.model.iso19115_subset import OnlineResource 
    2020 
    2121class OperationsMetadata(object): 
  • cows/trunk/cows/model/service_identification.py

    r3778 r4008  
    99""" 
    1010 
    11 from ows_common.model.data_identification import Description 
     11from cows.model.data_identification import Description 
    1212 
    1313class ServiceIdentification(Description): 
  • cows/trunk/cows/model/wcs.py

    r3553 r4008  
    44# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt 
    55""" 
    6 Extends ows_common classes where necessary for implementing WMS 1.3.0 
     6Extends cows classes where necessary for implementing WMS 1.3.0 
    77 
    88@author: Dominic Lowe, Stephen Pascoe 
     
    1212 
    1313 
    14 from ows_common.contents import Contents, DatasetSummary 
    15 from ows_common.domain import Domain 
     14from cows.contents import Contents, DatasetSummary 
     15from cows.domain import Domain 
    1616 
    1717class WcsDatasetSummary(DatasetSummary): 
  • cows/trunk/cows/model/wms.py

    r3696 r4008  
    44# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt 
    55""" 
    6 Extends ows_common classes where necessary for implementing WMS 1.3.0 
     6Extends cows classes where necessary for implementing WMS 1.3.0 
    77 
    88@author: Stephen Pascoe 
    99""" 
    1010 
    11 from ows_common.model.contents import DatasetSummary 
    12 from ows_common.model.domain import Domain 
     11from cows.model.contents import DatasetSummary 
     12from cows.model.domain import Domain 
    1313 
    1414class WmsDatasetSummary(DatasetSummary): 
  • cows/trunk/cows/pylons/decorators.py

    r3372 r4008  
    55""" 
    66Decorators for annotating OWS server controllers with information used 
    7 to populate the ows_common model. 
     7to populate the cows model. 
    88 
    99@author: Stephen Pascoe 
    1010""" 
    1111 
    12 from ows_common.util import make_domain 
    13 from ows_common.exceptions import *  
     12from cows.util import make_domain 
     13from cows.exceptions import *  
    1414import inspect 
    1515 
  • cows/trunk/cows/pylons/ows_controller.py

    r3786 r4008  
    1313from webhelpers import url_for 
    1414 
    15 from ows_common import exceptions as OWS_E 
    16 from ows_common.util import negotiate_version, check_updatesequence 
    17 from ows_common.builder import loadConfigFile 
    18 from ows_common import helpers 
    19  
    20 from ows_common.model import * 
     15from cows import exceptions as OWS_E 
     16from cows.util import negotiate_version, check_updatesequence 
     17from cows.builder import loadConfigFile 
     18from cows import helpers 
     19 
     20from cows.model import * 
    2121 
    2222from genshi.template import TemplateLoader 
     
    3333# Instantiate Genshi template loader 
    3434templateLoader = TemplateLoader( 
    35     resource_filename('ows_common.pylons', 'templates'), 
     35    resource_filename('cows.pylons', 'templates'), 
    3636    auto_reload=True, 
    3737    ) 
  • cows/trunk/cows/pylons/validators.py

    r3778 r4008  
    1010""" 
    1111 
    12 from ows_common.exceptions import * 
     12from cows.exceptions import * 
    1313 
    1414def single_layer(layers): 
  • cows/trunk/cows/pylons/wms_controller.py

    r3956 r4008  
    1616import Image 
    1717 
    18 from ows_common.model.wms import WmsDatasetSummary, Dimension 
    19 from ows_common.model import PossibleValues, WGS84BoundingBox, BoundingBox, Contents 
    20 from ows_common.pylons import ows_controller 
    21 from ows_common.exceptions import * 
    22 from ows_common import bbox_util 
     18from cows.model.wms import WmsDatasetSummary, Dimension 
     19from cows.model import PossibleValues, WGS84BoundingBox, BoundingBox, Contents 
     20from cows.pylons import ows_controller 
     21from cows.exceptions import * 
     22from cows import bbox_util 
    2323 
    2424class WMSController(ows_controller.OWSController): 
     
    2727    class attribute to implement a WMS. 
    2828 
    29     @cvar layerMapper: an ows_common.service.wms_iface.ILayerMapper object. 
     29    @cvar layerMapper: an cows.service.wms_iface.ILayerMapper object. 
    3030 
    3131    """ 
     
    121121                queryable = False 
    122122                 
    123             # Create the ows_common object 
     123            # Create the cows object 
    124124            ds = WmsDatasetSummary(identifier=layerName, 
    125125                                   titles=[layer.title], 
  • cows/trunk/cows/service/imps/pointrenderer.py

    r3812 r4008  
    99import sys 
    1010import ImageColor, Image, ImageDraw, ImageFont 
    11 from ows_common.service.imps.StationCollection import StationCollection 
    12 from ows_common.bbox_util import geoToPixel 
     11from cows.service.imps.StationCollection import StationCollection 
     12from cows.bbox_util import geoToPixel 
    1313 
    1414import pylons 
  • cows/trunk/cows/service/wms_gdal.py

    r3745 r4008  
    11""" 
    2 An implementation of ows_common.service.wms_iface that uses GDAL to support 
     2An implementation of cows.service.wms_iface that uses GDAL to support 
    33warping between multiple coordinate reference systems.  This implementation 
    44relies on a further interface, IGDALDataSource, to provide the data. 
     
    1010""" 
    1111 
    12 from ows_common.service.wms_iface import * 
    13 from ows_common.bbox_util import geoToPixel 
     12from cows.service.wms_iface import * 
     13from cows.bbox_util import geoToPixel 
    1414from osgeo import osr, gdal 
    1515 
  • cows/trunk/cows/service/wms_iface.py

    r3696 r4008  
    55renderring engine by creating classes that implement these interfaces 
    66-- there is no need to mess around with Pylons controllers or the 
    7 ows_common metadata model. 
     7cows metadata model. 
    88 
    99The interface was designed with several requirements in mind: 
  • cows/trunk/cows/test/test_genshi_util.py

    r3481 r4008  
    66""" 
    77 
    8 from ows_common.pylons.genshi_util import RenameElementFilter 
     8from cows.pylons.genshi_util import RenameElementFilter 
    99from genshi import XML, QName 
    1010 
  • cows/trunk/cows/test/test_wms_gdal.py

    r3745 r4008  
    11""" 
    2 Test ows_common.service.wms_gdal. 
     2Test cows.service.wms_gdal. 
    33 
    44""" 
    55 
    6 from ows_common.service.wms_gdal import * 
     6from cows.service.wms_gdal import * 
    77from pkg_resources import resource_filename 
    88from osgeo import gdal, osr 
     
    6161class TestGDAL(unittest.TestSuite): 
    6262    def setUp(self): 
    63         filename = resource_filename('ows_common.test', 'data/obs_gdal.png') 
     63        filename = resource_filename('cows.test', 'data/obs_gdal.png') 
    6464        self.globalDS = StaticDataSource(filename) 
    65         fn2 = resource_filename('ows_common.test', 'data/ukcip_rainfall.png') 
     65        fn2 = resource_filename('cows.test', 'data/ukcip_rainfall.png') 
    6666        self.ukDS = StaticDataSource(fn2) 
    6767 
  • cows/trunk/cows/util.py

    r3671 r4008  
    99""" 
    1010 
    11 from ows_common import exceptions as OWS_E 
     11from cows import exceptions as OWS_E 
    1212 
    1313 
  • cows/trunk/cows/xml/__init__.py

    r3553 r4008  
    44# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt 
    55""" 
    6 Reads XML fragments and creates ows_common objects. 
     6Reads XML fragments and creates cows objects. 
    77 
    88This package is written in a functional rather than object orientated 
    99style.  Each function expects an ElementTree node as it's first 
    10 argument and returns an ows_common object. 
     10argument and returns an cows object. 
    1111 
    1212@author: Stephen Pascoe 
    1313""" 
    1414 
    15 from ows_common.xml.service_identification import * 
    16 from ows_common.xml.service_provider import * 
    17 from ows_common.xml import ns 
    18 from ows_common.xml.util import * 
    19 from ows_common.model import ServiceMetadata 
     15from cows.xml.service_identification import * 
     16from cows.xml.service_provider import * 
     17from cows.xml import ns 
     18from cows.xml.util import * 
     19from cows.model import ServiceMetadata 
    2020 
    2121def service_metadata(node): 
  • cows/trunk/cows/xml/iso19115_subset.py

    r3553 r4008  
    55""" 
    66Reads XML fragments from the OWS ISO19115 subset package v1.1.0 and 
    7 creates ows_common objects. 
     7creates cows objects. 
    88 
    99Each function expects an ElementTree node as it's first argument and returns 
    10 an ows_common object. 
     10an cows object. 
    1111 
    1212@author: Stephen Pascoe 
    1313""" 
    1414 
    15 from ows_common.xml import ns 
    16 from ows_common.xml.util import * 
    17 from ows_common.model.iso19115_subset import * 
     15from cows.xml import ns 
     16from cows.xml.util import * 
     17from cows.model.iso19115_subset import * 
    1818 
    1919 
  • cows/trunk/cows/xml/service_identification.py

    r3553 r4008  
    55""" 
    66Reads XML fragments from the OWS ServiceIdentification package v1.1.0 and 
    7 creates ows_common objects. 
     7creates cows objects. 
    88 
    99Each function expects an ElementTree node as it's first argument and returns 
    10 an ows_common object. 
     10an cows object. 
    1111 
    1212@author: Stephen Pascoe 
    1313""" 
    1414 
    15 from ows_common.xml import ns 
    16 from ows_common.xml.util import * 
    17 from ows_common.model.service_identification import * 
    18 from ows_common.xml.iso19115_subset import * 
     15from cows.xml import ns 
     16from cows.xml.util import * 
     17from cows.model.service_identification import * 
     18from cows.xml.iso19115_subset import * 
    1919 
    2020def service_identification(node): 
     
    3333def add_description(node, ows_object): 
    3434    """ 
    35     @note: This breaks the pattern of other functions in the ows_common.xml 
     35    @note: This breaks the pattern of other functions in the cows.xml 
    3636        package.  It is needed to add attributes to subclasses of Description. 
    3737        Also it should be in a data_identification module. 
  • cows/trunk/cows/xml/service_provider.py

    r3553 r4008  
    55""" 
    66Reads XML fragments from the OWS ServiceProvider package v1.1.0 and 
    7 creates ows_common objects. 
     7creates cows objects. 
    88 
    99Each function expects an ElementTree node as it's first argument and returns 
    10 an ows_common object. 
     10an cows object. 
    1111 
    1212@author: Stephen Pascoe 
    1313""" 
    1414 
    15 from ows_common.xml import ns 
    16 from ows_common.xml.util import * 
    17 from ows_common.xml.iso19115_subset import * 
    18 from ows_common.model.service_provider import * 
     15from cows.xml import ns 
     16from cows.xml.util import * 
     17from cows.xml.iso19115_subset import * 
     18from cows.model.service_provider import * 
    1919 
    2020def service_provider(node): 
  • cows/trunk/setup.py

    r3811 r4008  
    22 
    33setup( 
    4     name='ows_common', 
    5     version='0.1.1', 
     4    name='cows', 
     5    version='0.2rc1', 
     6     
     7    description='CEDA OGC Web Services Framework (COWS).  A framework for creatining integrated OGC web services using Pylons', 
     8    author='Stephen Pascoe', 
     9    author_email='S.Pascoe@rl.ac.uk', 
     10    url='http://proj.badc.rl.ac.uk/ndg/wiki/OwsFramework', 
     11     
     12    classifiers=[ 
     13    'Development Status :: 4 - Beta', 
     14    'Environment :: Web Environment', 
     15    'Framework :: Pylons', 
     16    'Intended Audience :: Developers', 
     17    'Intended Audience :: Science/Research', 
     18    'License :: OSI Approved :: GNU General Public License (GPL)', 
     19    'Operating System :: POSIX :: Linux', 
     20    'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', 
     21    'Topic :: Scientific/Engineering :: Atmospheric Science', 
     22    'Topic :: Scientific/Engineering :: Visualization', 
     23    ] 
     24 
    625    packages=find_packages(), 
    726    include_package_data=True 
Note: See TracChangeset for help on using the changeset viewer.