当前位置: 首页>>代码示例>>Python>>正文


Python Process.WPSProcess类代码示例

本文整理汇总了Python中pywps.Process.WPSProcess的典型用法代码示例。如果您正苦于以下问题:Python WPSProcess类的具体用法?Python WPSProcess怎么用?Python WPSProcess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了WPSProcess类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self, identifier, version, title, abstract):
     # init process
     WPSProcess.__init__(
         self,
         identifier=identifier,
         version = version,
         title=title,
         storeSupported = "false",
         statusSupported = "false",
         abstract=abstract,
         grassLocation = False)
     self.ICMMworldstateURL = self.addLiteralInput (identifier = "ICMMworldstateURL",
                                             type = type(""),
                                             title = "ICMM WorldState id")
     self.icmmRef=self.addLiteralOutput(identifier = "ICMMindicatorRefURL",
                                       type = type (""),
                                       title = "URL to access indicator reference from ICMM")
     self.icmmVal=self.addLiteralOutput(identifier = "ICMMindicatorValueURL",
                                       type = type (""),
                                       title = "URL to access indicator value from ICMM")
     self.value=self.addLiteralOutput(identifier = "value",
                                      type = type (""),
                                      title = "indicator value")
     # for ICMM and OOI
     self.doUpdate = 1              # 1: recalculate existing indicator; 0: use existing value
     self.ICMMworldstate = None     # Access-object for ICMM WorldState
     self.worldstateDescription = None  # description of WorldState: ICMMname, ICMMdescription, ICMMworldstateURL, OOIworldstateURL
开发者ID:crismaproject,项目名称:BasicIndicators,代码行数:27,代码来源:Indicator.py

示例2: __init__

    def __init__(self):

        ##
        # Process initialization
        WPSProcess.__init__(self,
            identifier = "returner",
            title="Return process",
            abstract="""This is demonstration process of PyWPS, returns the same file, it gets on input, as the output.""",
            version = "1.0",
            storeSupported = True,
            statusSupported = True)

        ##
        # Adding process inputs
        
        self.dataIn = self.addComplexInput(identifier="data",
                    title="Input vector data",
                    formats = [{'mimeType':'text/xml'}])

        self.textIn = self.addLiteralInput(identifier="text",
                    title = "Some width")

        ##
        # Adding process outputs

        self.dataOut = self.addComplexOutput(identifier="output",
                title="Output vector data",
                formats =  [{'mimeType':'text/xml'}])

        self.textOut = self.addLiteralOutput(identifier = "text",
                title="Output literal data")
开发者ID:AnnaHomolka,项目名称:PyWPS,代码行数:31,代码来源:returner.py

示例3: __init__

  def __init__(self,Identifier,Title,Abstract): 

    # Call of WPSProcess constructor
    WPSProcess.__init__(self,
            identifier = Identifier,
            title = Title,
            abstract = Abstract,
            version = "1.0",
            storeSupported = True,
            statusSupported = True)

    # Initialization of structure for form widgets 
    self.IOFields = dict()
    self.IOFields["input"] = dict()
    self.IOFields["input"]["wfs"] = dict()
    self.IOFields["input"]["wcs"] = dict()
    self.IOFields["input"]["param"] = dict()
    self.IOFields["input"]["scroll"] = dict()
    self.IOFields["input"]["checkbox"] = dict()
    self.IOFields["input"]["gml"] = dict()
    self.IOFields["input"]["coordxy"] = dict()
    self.IOFields["input"]["workspace"] = dict()
    
    self.IOFields["output"] = dict()
    self.IOFields["output"]["param"] = dict()
    self.IOFields["output"]["wms"] = dict()
开发者ID:BVService,项目名称:bvservice-wps,代码行数:26,代码来源:BVServiceWPSProcess.py

示例4: __init__

    def __init__(self):
        WPSProcess.__init__(self, identifier = "complexprocess",
            title="Complex process",
            storeSupported=True)

        self.vectorin = self.addComplexInput(identifier="vectorin",
                                                 title="Vector file",
                                                 formats = [{"mimeType":"application/xml"}])

        self.rasterin = self.addComplexInput(identifier="rasterin",
                                                 title="Raster file",
                                                 formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'image/png'}, {'mimeType': 'image/gif'}, {'mimeType': 'image/jpeg'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])

        self.pausein = self.addLiteralInput(identifier="pause",
                                                 title="Pause the process",
                                                 abstract="Pause the process for several seconds, so that status=true can be tested",
                                                 default = False,
                                                 type = type(True))

        self.vectorout = self.addComplexOutput(identifier="vectorout",
                                                 title="Vector file",
                                                 formats = [{"mimeType":"application/xml"},{"mimeType":"text/plain"},{"mimeType":"text/xml"}])
        self.rasterout = self.addComplexOutput(identifier="rasterout",
                                                 title="Raster file",
                                                 formats = [{"mimeType":"image/tiff"}])
开发者ID:zzpwelkin,项目名称:PyWPS,代码行数:25,代码来源:tests.py

示例5: __init__

  def __init__(self):
    WPSProcess.__init__(self, identifier = 'r.cost', title = 'Creates a raster map showing the cumulative cost of moving between different geographic locations on an input raster map whose cell category values represent cost.', version = 1, statusSupported = True, storeSupported = True, metadata = [{'type': 'simple', 'title': 'raster'}, {'type': 'simple', 'title': 'cost surface'}, {'type': 'simple', 'title': 'cumulative costs'}, {'type': 'simple', 'title': 'cost allocation'}], abstract = 'http://grass.osgeo.org/grass70/manuals/html70_user/r.cost.html')

    # Literal and complex inputs
    self.addComplexInput(identifier = 'input', title = 'Name of input raster map containing grid cell cost information', minOccurs = 1, maxOccurs = 1, formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'image/png'}, {'mimeType': 'image/gif'}, {'mimeType': 'image/jpeg'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])
    self.addComplexInput(identifier = 'start_points', title = 'Name of starting vector points map', abstract = 'Or data source for direct OGR access', minOccurs = 0, maxOccurs = 1, formats = [{'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/dgn', 'schema': 'None', 'encoding': 'None'}, {'mimeType': 'application/shp', 'schema': 'None', 'encoding': 'None'}, {'mimeType': 'application/x-zipped-shp', 'schema': 'None', 'encoding': 'None'}])
    self.addComplexInput(identifier = 'stop_points', title = 'Name of stopping vector points map', abstract = 'Or data source for direct OGR access', minOccurs = 0, maxOccurs = 1, formats = [{'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/dgn', 'schema': 'None', 'encoding': 'None'}, {'mimeType': 'application/shp', 'schema': 'None', 'encoding': 'None'}, {'mimeType': 'application/x-zipped-shp', 'schema': 'None', 'encoding': 'None'}])
    self.addComplexInput(identifier = 'start_rast', title = 'Name of starting raster points map', minOccurs = 0, maxOccurs = 1, formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'image/png'}, {'mimeType': 'image/gif'}, {'mimeType': 'image/jpeg'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])
    self.addLiteralInput(identifier = 'start_coordinates', title = 'Coordinates of starting point(s) (E,N)', minOccurs = 0, maxOccurs = 1024, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'stop_coordinates', title = 'Coordinates of stopping point(s) (E,N)', minOccurs = 0, maxOccurs = 1024, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'max_cost', title = 'Maximum cumulative cost', minOccurs = 0, maxOccurs = 1, type = type(0), default = 0)
    self.addLiteralInput(identifier = 'null_cost', title = 'Cost assigned to null cells. By default, null cells are excluded', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'percent_memory', title = 'Percent of map to keep in memory', minOccurs = 0, maxOccurs = 1, type = type(0), default = 40)
    self.addLiteralInput(identifier = '-k', title = 'Use the Knights move; slower, but more accurate', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-n', title = 'Keep null values in output raster map', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-r', title = 'Start with values in raster map', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-i', title = 'Print info about disk space and memory requirements and exit', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = 'grass_resolution_ns', title = 'Resolution of the mapset in north-south direction in meters or degrees', abstract = 'This parameter defines the north-south resolution of the mapset in meter or degrees, which should be used to process the input and output raster data. To enable this setting, you need to specify north-south and east-west resolution.', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'grass_resolution_ew', title = 'Resolution of the mapset in east-west direction in meters or degrees', abstract = 'This parameter defines the east-west resolution of the mapset in meters or degrees, which should be used to process the input and output raster data.  To enable this setting, you need to specify north-south and east-west resolution.', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'grass_band_number', title = 'Band to select for processing (default is all bands)', abstract = 'This parameter defines band number of the input raster files which should be processed. As default all bands are processed and used as single and multiple inputs for raster modules.', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')

    # complex outputs
    self.addComplexOutput(identifier = 'output', title = 'Name for output raster map', formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])

    self.addComplexOutput(identifier = 'nearest', title = 'Name for output raster map with nearest start point', formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])

    self.addComplexOutput(identifier = 'outdir', title = 'Name for output raster map to contain movement directions', formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])
开发者ID:crazyjoe1291,项目名称:wps-grass-bridge,代码行数:27,代码来源:r_cost.py

示例6: __init__

    def __init__(self):
        """Process initialization"""
        # init process
        WPSProcess.__init__(self,
            identifier = "Management_Transit", # must be same, as filename
            title="Management WPS",
            version = "0.1",
            storeSupported = "true",
            statusSupported = "true",
            abstract="Process for generating walkshed")

	self.start_point = self.addLiteralInput(identifier="StartPoint",
                    title = "Walking start point", type=StringType)

	self.start_time = self.addLiteralInput(identifier="StartTime",
                    title = "Walking start time", type=StringType)	

	self.walking_time_period = self.addLiteralInput(identifier="WalkingTimePeriod",
                    title = "Walking time period", type=StringType)

	self.walking_speed = self.addLiteralInput(identifier="WalkingSpeed",
                    title = "Walking speed", type=StringType)

	self.bus_waiting_time = self.addLiteralInput(identifier="BusWaitingTime",
                    title = "bus waiting time", type=StringType)

	self.bus_ride_time = self.addLiteralInput(identifier="BusRideTime",
                    title = "bus ride time", type=StringType)

	self.distance_decay_function = self.addLiteralInput(identifier="DistanceDecayFunction",
                    title = "use distance decay function or not", type=StringType)

	self.walkScore = self.addLiteralOutput(identifier="AccessiblityScore",
                title="accessiblity score", type=StringType)
开发者ID:mepa1363,项目名称:wyp-wrapper-pywps-centralized-transit,代码行数:34,代码来源:Management_Transit.py

示例7: __init__

    def __init__(self):
        WPSProcess.__init__(
            self,
            identifier="simple_plot",
            title="Simple NetCDF Plotter",
            version="0.2",
            abstract="Simple NetCDF Plotter",
            statusSupported=True,
            storeSupported=True
        )

        self.dataset = self.addComplexInput(
            identifier="dataset",
            title="Dataset (NetCDF)",
            minOccurs=1,
            maxOccurs=1,
            maxmegabites=5000,
            formats=[{"mimeType": "application/x-netcdf"}],
        )

        # self.variable = self.addLiteralInput(
        #     identifier="variable",
        #     title="Variable",
        #     abstract="Variable to plot",
        #     type=type(''),
        #     minOccurs=1,
        #     maxOccurs=1,
        #     )

        self.output = self.addComplexOutput(
            identifier="output",
            title="Plot",
            formats=[{"mimeType": "image/png"}],
            asReference=True,
        )
开发者ID:bird-house,项目名称:hummingbird,代码行数:35,代码来源:wps_ncplot.py

示例8: __init__

 def __init__(self):
     # init process
     WPSProcess.__init__(
         self,
         identifier="seriouslyDeterioratedIndicator", #the same as the file name
         version = "1.0",
         title="Seriously deteriorated patients",
         storeSupported = "false",
         statusSupported = "false",
         abstract="Number of patients with (actual health) less than (health at the beginning - 50)",
         grassLocation = False)
     self.ICMMworldstateURL = self.addLiteralInput (identifier = "ICMMworldstateURL",
                                             type = type(""),
                                             title = "ICMM WorldState id")
     self.ooi=self.addLiteralOutput(identifier = "OOIindicatorURL",
                                       type = type (""),
                                       title = "URL to access indicator from OOI")
     self.icmmRef=self.addLiteralOutput(identifier = "ICMMindicatorRefURL",
                                       type = type (""),
                                       title = "URL to access indicator reference from ICMM")
     self.icmmVal=self.addLiteralOutput(identifier = "ICMMindicatorValueURL",
                                       type = type (""),
                                       title = "URL to access indicator value from ICMM")
     self.value=self.addLiteralOutput(identifier = "value",
                                      type = type (""),
                                      title = "indicator value")
     # for ICMM and OOI
     self.indicatorPropertyId = 62  # Seriously Deteriorated
     self.doUpdate = 1              # 1: recalculate existing indicator; 0: use existing value
     self.ICMMworldstate = None     # Access-object for ICMM WorldState
     self.OOIworldstate = None      # Access-object for OOI WorldState
开发者ID:crismaproject,项目名称:BasicIndicators,代码行数:31,代码来源:seriouslyDeterioratedIndicator.py

示例9: __init__

 def __init__(self):
    logging.debug("init");
    # init process
    WPSProcess.__init__(self,
                        identifier="WCS_subsetting", #the same as the file name
                        title="SpatialSelection",
                        version = "1.0",
                        storeSupported = True,
                        statusSupported = True,
                        abstract="Spatial extraction/subsetting.",
                        grassLocation =False)
    self.resource = self.addLiteralInput(identifier="resource",title = "Input file(s)",abstract="application/netcdf",type=type("S"),
                                         default="http://opendap.knmi.nl/knmi/thredds/dodsC/IS-ENES/TESTSETS/tasmax_day_EC-EARTH_rcp26_r8i1p1_20760101-21001231.nc",minOccurs=0,maxOccurs=1024)
    self.outputFileName = self.addLiteralInput(identifier="outputFileName",title = "Output file name",type="String",default="wcs.nc")
    self.coverage = self.addLiteralInput(identifier = "coverage",title = "Coverage",type="String",default="tasmax")
    
    self.bbox = self.addLiteralInput(identifier = "bbox",title = "Bounding box in defined coordinate system",type="String",minOccurs=4,maxOccurs=4,default="-180,-90,180,90")
    self.crs = self.addLiteralInput(identifier = "crs",title = "Coordinate reference system",type="String",default="EPSG:4326")
    self.dates = self.addLiteralInput(identifier = "dates",title = "Start/stop/resolution in ISO8601 format",type="String",default="2076-01-01T12:00:00Z/2076-02-01T12:00:00Z/P1D")
    self.resx = self.addLiteralInput(identifier = "resx",title = "X resolution",type="String",default="1")
    self.resy = self.addLiteralInput(identifier = "resy",title = "Y resolution",type="String",default="1")
    self.tags = self.addLiteralInput(identifier = "tags",title = "Your tag for this process",type="String",default="provenance_research_knmi");
    self.opendapURL = self.addLiteralOutput(identifier = "opendapURL",title = "opendapURL");
    self.outputFormat = self.addLiteralInput(identifier = 'outputFormat',
                        title = 'outputFormat',
                        type="String",
                        default = 'netcdf')
    self.outputFormat.values = ["netcdf","geotiff","aaigrid"]#,"gtiff","aaigrid"]
开发者ID:KNMI,项目名称:impactwps,代码行数:28,代码来源:WCS_subsetting.py

示例10: __init__

 def __init__(self):
     """Process initialization"""
     WPSProcess.__init__(self, identifier=os.path.split(__file__)[-1].split('.')[0], title='averager', version=0.1, abstract='Average a variable over a (many) dimension', storeSupported='true', statusSupported='true')
     self.domain = self.addComplexInput(identifier='domain', title='domain over which to average', formats=[{'mimeType': 'text/json', 'encoding': 'utf-8', 'schema': None}])
     self.download = self.addLiteralInput(identifier='download', type=bool, title='download output', default=False)
     self.dataIn = self.addComplexInput(identifier='variable', title='variable to average', formats=[{'mimeType': 'text/json'}], minOccurs=1, maxOccurs=1)
     self.average = self.addComplexOutput(identifier='average', title='averaged variable', formats=[{'mimeType': 'text/json'}])
开发者ID:ThomasMaxwell,项目名称:CDS-WPS-AaaS,代码行数:7,代码来源:averager.py

示例11: __init__

  def __init__(self):
    WPSProcess.__init__(self, identifier = 'r.sunmask', title = 'Either exact sun position (A) is specified, or date/time to calculate the sun position (B) by r.sunmask itself.', version = 1, statusSupported = True, storeSupported = True, metadata = [{'type': 'simple', 'title': 'raster'}, {'type': 'simple', 'title': 'solar'}, {'type': 'simple', 'title': 'sun position'}], abstract = 'http://grass.osgeo.org/grass70/manuals/html70_user/r.sunmask.html')

    # Literal and complex inputs
    self.addComplexInput(identifier = 'elevation', title = 'Name of input elevation raster map', minOccurs = 1, maxOccurs = 1, formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'image/png'}, {'mimeType': 'image/gif'}, {'mimeType': 'image/jpeg'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])
    self.addLiteralInput(identifier = 'altitude', title = 'Altitude of the sun above horizon, degrees (A)', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'azimuth', title = 'Azimuth of the sun from the north, degrees (A)', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'year', title = 'Year (B)', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')
    self.addLiteralInput(identifier = 'month', title = 'Month (B)', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')
    self.addLiteralInput(identifier = 'day', title = 'Day (B)', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')
    self.addLiteralInput(identifier = 'hour', title = 'Hour (B)', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')
    self.addLiteralInput(identifier = 'minute', title = 'Minutes (B)', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')
    self.addLiteralInput(identifier = 'second', title = 'Seconds (B)', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')
    self.addLiteralInput(identifier = 'timezone', title = 'Timezone', abstract = 'East positive, offset from GMT, also use to adjust daylight savings', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')
    self.addLiteralInput(identifier = 'east', title = 'Easting coordinate (point of interest)', abstract = 'Default: map center', minOccurs = 0, maxOccurs = 1, type = type("string"), allowedValues = '*')
    self.addLiteralInput(identifier = 'north', title = 'Northing coordinate (point of interest)', abstract = 'Default: map center', minOccurs = 0, maxOccurs = 1, type = type("string"), allowedValues = '*')
    self.addLiteralInput(identifier = '-z', title = 'Dont ignore zero elevation', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-s', title = 'Calculate sun position only and exit', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-g', title = 'Print the sun position output in shell script style', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = 'grass_resolution_ns', title = 'Resolution of the mapset in north-south direction in meters or degrees', abstract = 'This parameter defines the north-south resolution of the mapset in meter or degrees, which should be used to process the input and output raster data. To enable this setting, you need to specify north-south and east-west resolution.', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'grass_resolution_ew', title = 'Resolution of the mapset in east-west direction in meters or degrees', abstract = 'This parameter defines the east-west resolution of the mapset in meters or degrees, which should be used to process the input and output raster data.  To enable this setting, you need to specify north-south and east-west resolution.', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'grass_band_number', title = 'Band to select for processing (default is all bands)', abstract = 'This parameter defines band number of the input raster files which should be processed. As default all bands are processed and used as single and multiple inputs for raster modules.', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')

    # complex outputs
    self.addComplexOutput(identifier = 'output', title = 'Name for output raster map', formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])
开发者ID:crazyjoe1291,项目名称:wps-grass-bridge,代码行数:25,代码来源:r_sunmask.py

示例12: __init__

    def __init__(self):
        WPSProcess.__init__(self,
            identifier="analogs_viewer",
            title="Analogs -- Viewer",
            version = "0.1",
            abstract="Visualisation of text output of analogue process",
            statusSupported=True,
            storeSupported=True)

        self.resource = self.addComplexInput(
            identifier="resource",
            title="Analogues",
            abstract="Analogues text file",
            minOccurs=1,
            maxOccurs=1,
            #maxmegabites=5000,
            formats=[{"mimeType":"text/plain"}],
            )

        self.output_html = self.addComplexOutput(
            identifier="output_html",
            title="html viewer",
            abstract="web browser compatible hmtl file",
            formats=[{"mimeType":"text/html"}],
            asReference=True,
            )

        self.output_txt = self.addLiteralOutput(
            identifier="output_txt",
            title="modified analogs txt file",
            abstract="txt file for analog viewer",
            default=None,
            type=type(''),
            )
开发者ID:mcalvcas,项目名称:flyingpigeon,代码行数:34,代码来源:wps_analogs_viewer.py

示例13: __init__

  def __init__(self):
    WPSProcess.__init__(self, identifier = 'v.surf.bspline', title = 'Performs bicubic or bilinear spline interpolation with Tykhonov regularization.', version = 1, statusSupported = True, storeSupported = True, metadata = [{'type': 'simple', 'title': 'vector'}, {'type': 'simple', 'title': 'surface'}, {'type': 'simple', 'title': 'interpolation'}, {'type': 'simple', 'title': 'LIDAR'}], abstract = 'http://grass.osgeo.org/grass70/manuals/html70_user/v.surf.bspline.html')

    # Literal and complex inputs
    self.addComplexInput(identifier = 'input', title = 'Name of input vector point map', abstract = 'Or data source for direct OGR access', minOccurs = 1, maxOccurs = 1, formats = [{'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/dgn', 'schema': 'None', 'encoding': 'None'}, {'mimeType': 'application/shp', 'schema': 'None', 'encoding': 'None'}, {'mimeType': 'application/x-zipped-shp', 'schema': 'None', 'encoding': 'None'}])
    self.addLiteralInput(identifier = 'layer', title = 'Layer number or name', abstract = 'Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.', minOccurs = 0, maxOccurs = 1, type = type("string"), default = "1")
    self.addComplexInput(identifier = 'sparse_input', title = 'Name of input vector map with sparse points', abstract = 'Or data source for direct OGR access', minOccurs = 0, maxOccurs = 1, formats = [{'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/dgn', 'schema': 'None', 'encoding': 'None'}, {'mimeType': 'application/shp', 'schema': 'None', 'encoding': 'None'}, {'mimeType': 'application/x-zipped-shp', 'schema': 'None', 'encoding': 'None'}])
    self.addComplexInput(identifier = 'mask', title = 'Raster map to use for masking (applies to raster output only)', abstract = 'Only cells that are not NULL and not zero are interpolated', minOccurs = 0, maxOccurs = 1, formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'image/png'}, {'mimeType': 'image/gif'}, {'mimeType': 'image/jpeg'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])
    self.addLiteralInput(identifier = 'sie', title = 'Length of each spline step in the east-west direction', minOccurs = 0, maxOccurs = 1, type = type(0.0), default = 4.0)
    self.addLiteralInput(identifier = 'sin', title = 'Length of each spline step in the north-south direction', minOccurs = 0, maxOccurs = 1, type = type(0.0), default = 4.0)
    self.addLiteralInput(identifier = 'method', title = 'Spline interpolation algorithm', minOccurs = 0, maxOccurs = 1, type = type("string"), default = "linear", allowedValues = ['linear', 'cubic'])
    self.addLiteralInput(identifier = 'lambda_i', title = 'Tykhonov regularization parameter (affects smoothing)', minOccurs = 0, maxOccurs = 1, type = type(0.0), default = 0.01)
    self.addLiteralInput(identifier = 'column', title = 'Name of the attribute column with values to be used for approximation', abstract = 'If not given and input is 3D vector map then z-coordinates are used.', minOccurs = 0, maxOccurs = 1, type = type("string"), allowedValues = '*')
    self.addLiteralInput(identifier = 'solver', title = 'The type of solver which should solve the symmetric linear equation system', minOccurs = 0, maxOccurs = 1, type = type("string"), default = "cholesky", allowedValues = ['cholesky', 'cg'])
    self.addLiteralInput(identifier = 'maxit', title = 'Maximum number of iteration used to solve the linear equation system', minOccurs = 0, maxOccurs = 1, type = type(0), default = 10000)
    self.addLiteralInput(identifier = 'error', title = 'Error break criteria for iterative solver', minOccurs = 0, maxOccurs = 1, type = type(0.0), default = 1e-06)
    self.addLiteralInput(identifier = 'memory', title = 'Maximum memory to be used for raster output (in MB)', minOccurs = 0, maxOccurs = 1, type = type(0), default = 300)
    self.addLiteralInput(identifier = '-c', title = 'Find the best Tykhonov regularizing parameter using a "leave-one-out" cross validation method', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-e', title = 'Estimate point density and distance for the input vector points within the current region extends and quit', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = 'grass_resolution_ns', title = 'Resolution of the mapset in north-south direction in meters or degrees', abstract = 'This parameter defines the north-south resolution of the mapset in meter or degrees, which should be used to process the input and output raster data. To enable this setting, you need to specify north-south and east-west resolution.', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'grass_resolution_ew', title = 'Resolution of the mapset in east-west direction in meters or degrees', abstract = 'This parameter defines the east-west resolution of the mapset in meters or degrees, which should be used to process the input and output raster data.  To enable this setting, you need to specify north-south and east-west resolution.', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'grass_band_number', title = 'Band to select for processing (default is all bands)', abstract = 'This parameter defines band number of the input raster files which should be processed. As default all bands are processed and used as single and multiple inputs for raster modules.', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')

    # complex outputs
    self.addComplexOutput(identifier = 'output', title = 'Name for output vector map', formats = [{'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/3.1.1/base/gml.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'application/xml', 'schema': 'http://schemas.opengis.net/gml/2.1.2/feature.xsd', 'encoding': 'UTF-8'}, {'mimeType': 'text/xml', 'schema': 'http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd', 'encoding': 'UTF-8'}])

    self.addComplexOutput(identifier = 'raster_output', title = 'Name for output raster map', formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])
开发者ID:crazyjoe1291,项目名称:wps-grass-bridge,代码行数:27,代码来源:v_surf_bspline.py

示例14: __init__

 def __init__(self):
      WPSProcess.__init__(self,
      identifier = "reducer",
      title="Geotiff sizer reducer",
      version = "0.1",
      abstract="GDAL and Numpy code that will reduze the dimension of a satelite image by using a mean calculation of values",
      storeSupported = "true",
      statusSupported = "true")
      
      self.reductionFactor=self.addLiteralInput(identifier = "reductionFactor",
                                                title = "Reduction factor (fraction)",
                                                abstract="Reduction factor between 0 and 1.0 that will be use do reducec the image",
                                                minOccurs=1,
                                                type=types.FloatType,
                                                allowedValues=("*")
                                                )
                                          #      default=0.5)
      self.imageIn=self.addComplexInput(identifier="imageInput",
                                         title="Geotiff input",
                                         abstract="Image that will be reduced",
                                         formats=[{"mimeType": "image/tiff"}]
                                       )
      
      self.imageOut=self.addComplexOutput(identifier="imageOutput",
                                          title="Geotiff output",
                                          abstract="Reduced image",
                                          formats=[{"mimeType": "image/tiff"}]
                                          )
开发者ID:doclements,项目名称:PyWPS,代码行数:28,代码来源:reducer.py

示例15: __init__

  def __init__(self):
    WPSProcess.__init__(self, identifier = 'r.stats', title = 'Generates area statistics for raster map.', version = 1, statusSupported = True, storeSupported = True, metadata = [{'type': 'simple', 'title': 'raster'}, {'type': 'simple', 'title': 'statistics'}], abstract = 'http://grass.osgeo.org/grass70/manuals/html70_user/r.stats.html')

    # Literal and complex inputs
    self.addComplexInput(identifier = 'input', title = 'Name of raster map(s) to report on', minOccurs = 1, maxOccurs = 1024, formats = [{'mimeType': 'image/tiff'}, {'mimeType': 'image/geotiff'}, {'mimeType': 'application/geotiff'}, {'mimeType': 'application/x-geotiff'}, {'mimeType': 'image/png'}, {'mimeType': 'image/gif'}, {'mimeType': 'image/jpeg'}, {'mimeType': 'application/x-erdas-hfa'}, {'mimeType': 'application/netcdf'}, {'mimeType': 'application/x-netcdf'}])
    self.addLiteralInput(identifier = 'separator', title = 'Field separator', abstract = 'Special characters: newline, space, comma, tab', minOccurs = 0, maxOccurs = 1, type = type("string"), default = "space")
    self.addLiteralInput(identifier = 'nv', title = 'String representing no data cell value', minOccurs = 0, maxOccurs = 1, type = type("string"), default = "*")
    self.addLiteralInput(identifier = 'nsteps', title = 'Number of floating-point subranges to collect stats from', minOccurs = 0, maxOccurs = 1, type = type(0), default = 255)
    self.addLiteralInput(identifier = 'sort', title = 'Sort output statistics by cell counts', abstract = 'Default: sorted by categories or intervals', minOccurs = 0, maxOccurs = 1, type = type("string"), allowedValues = ['asc', 'desc'])
    self.addLiteralInput(identifier = '-a', title = 'Print area totals in square meters', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-c', title = 'Print cell counts (sortable)', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-p', title = 'Print approximate (total percent may not be 100%) percents', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-l', title = 'Print category labels', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-1', title = 'One cell (range) per line', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-g', title = 'Print grid coordinates (east and north)', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-x', title = 'Print x and y (column and row)', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-A', title = 'Print averaged values instead of intervals (floating-point maps only)', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-r', title = 'Print raw indexes of floating-point ranges (floating-point maps only)', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-n', title = 'Do not report no data value', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-N', title = 'Do not report cells where all maps have no data', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-C', title = 'Report for cats floating-point ranges (floating-point maps only)', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = '-i', title = 'Read floating-point map as integer (use maps quant rules)', minOccurs = 0, maxOccurs = 1, type = type(True), default = False, allowedValues = [True, False])
    self.addLiteralInput(identifier = 'grass_resolution_ns', title = 'Resolution of the mapset in north-south direction in meters or degrees', abstract = 'This parameter defines the north-south resolution of the mapset in meter or degrees, which should be used to process the input and output raster data. To enable this setting, you need to specify north-south and east-west resolution.', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'grass_resolution_ew', title = 'Resolution of the mapset in east-west direction in meters or degrees', abstract = 'This parameter defines the east-west resolution of the mapset in meters or degrees, which should be used to process the input and output raster data.  To enable this setting, you need to specify north-south and east-west resolution.', minOccurs = 0, maxOccurs = 1, type = type(0.0), allowedValues = '*')
    self.addLiteralInput(identifier = 'grass_band_number', title = 'Band to select for processing (default is all bands)', abstract = 'This parameter defines band number of the input raster files which should be processed. As default all bands are processed and used as single and multiple inputs for raster modules.', minOccurs = 0, maxOccurs = 1, type = type(0), allowedValues = '*')

    # complex outputs
    self.addComplexOutput(identifier = 'output', title = 'Name for output file (if omitted or "-" output to stdout)', formats = [{'mimeType': 'text/plain'}])
开发者ID:crazyjoe1291,项目名称:wps-grass-bridge,代码行数:28,代码来源:r_stats.py


注:本文中的pywps.Process.WPSProcess类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。