def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.record)
     self.model = None
     # self.df = None
     self.sample = None
     self.cv_results_ = None
     self.target = None
     self.best_score = None
     self.rmse = None
Exemplo n.º 2
0
    def __init__(self, configdict, section, consumes=FORMAT.any):
        Output.__init__(self, configdict, section, consumes)
        self.host = self.cfg.get('host')
        self.port = self.cfg.get('port', '80')
        self.path = self.cfg.get('path')
        self.method = self.cfg.get('method', 'POST')
        self.user = self.cfg.get('user', None)
        self.password = self.cfg.get('password', None)
        self.content_type = self.cfg.get('content_type', 'text/xml')
        # self.accept_type = self.cfg.get('accept_type', self.content_type)

        # If we receive a list(), should we create a HTTP req for each member?
        self.list_fanout = self.cfg.get_bool('list_fanout', True)
        self.req_nr = 0
Exemplo n.º 3
0
    def __init__(self, configdict, section):
        Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)
        self.temp_file = self.cfg.get('temp_file')

        # For creating tables the GFS file needs to be newer than
        # the .gml file. -lco GML_GFS_TEMPLATE somehow does not work
        # so we copy the .gfs file each time with the .gml file with
        # the same base name
        self.gfs_file = self.cfg.get('gfs_file')
        self.lco = self.cfg.get('lco')
        self.ogr2ogr_cmd = self.cfg.get('ogr2ogr_cmd').replace('\\\n',
                                                               ' ').replace(
                                                                   '\n', ' ')
        self.first_run = True
Exemplo n.º 4
0
    def __init__(self, configdict, section, consumes=FORMAT.any):
        Output.__init__(self, configdict, section, consumes)
        self.host = self.cfg.get('host')
        self.port = self.cfg.get('port', '80')
        self.path = self.cfg.get('path')
        self.method = self.cfg.get('method', 'POST')
        self.user = self.cfg.get('user', None)
        self.password = self.cfg.get('password', None)
        self.content_type = self.cfg.get('content_type', 'text/xml')
        # self.accept_type = self.cfg.get('accept_type', self.content_type)

        # If we receive a list(), should we create a HTTP req for each member?
        self.list_fanout = self.cfg.get_bool('list_fanout', True)
        self.req_nr = 0
Exemplo n.º 5
0
    def __init__(self, configdict, section):
        Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)
        self.temp_file = self.cfg.get('temp_file')

        # For creating tables the GFS file needs to be newer than
        # the .gml file. -lco GML_GFS_TEMPLATE somehow does not work
        # so we copy the .gfs file each time with the .gml file with
        # the same base name
        self.gfs_file = self.cfg.get('gfs_file')
        self.lco = self.cfg.get('lco')
        self.spatial_extent = self.cfg.get('spatial_extent')
        self.ogr2ogr_cmd = self.cfg.get('ogr2ogr_cmd').replace('\\\n', ' ').replace('\n', ' ')
        if self.spatial_extent:
            self.ogr2ogr_cmd += ' -spat ' + self.spatial_extent
        self.first_run = True
Exemplo n.º 6
0
    def __init__(self, configdict, section):
        Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)

        self.temp_file = self.cfg.get('temp_file')
        self.regex_vsi_filter = re.compile("^/vsi[a-z0-9_]+/.*", re.I)

        # For creating tables the GFS file needs to be newer than
        # the .gml file. -lco GML_GFS_TEMPLATE somehow does not work
        # so we copy the .gfs file each time with the .gml file with
        # the same base name
        self.gfs_file = self.cfg.get('gfs_file')
        self.lco = self.cfg.get('lco')
        self.spatial_extent = self.cfg.get('spatial_extent')
        self.ogr2ogr_cmd = self.cfg.get('ogr2ogr_cmd').replace('\\\n',
                                                               ' ').replace(
                                                                   '\n', ' ')
        if self.spatial_extent:
            self.ogr2ogr_cmd += ' -spat ' + self.spatial_extent
        self.first_run = True
Exemplo n.º 7
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.any)
Exemplo n.º 8
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)
     self.wfs_host = self.cfg.get('host')
     self.wfs_port = self.cfg.get('port', '80')
     self.wfs_path = self.cfg.get('path')
     self.idgen = self.cfg.get('idgen', 'GenerateNew')
Exemplo n.º 9
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.any)
Exemplo n.º 10
0
 def __init__(self, configdict, section, consumes):
     Output.__init__(self, configdict, section, consumes)
Exemplo n.º 11
0
 def __init__(self, configdict, section, consumes=FORMAT.any):
     Output.__init__(self, configdict, section, consumes)
     # self.accept_type = self.cfg.get('accept_type', self.content_type)
     self.req_nr = 0
Exemplo n.º 12
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)
     log.info("working dir %s" % os.getcwd())
Exemplo n.º 13
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=[FORMAT.ogr_feature, FORMAT.ogr_feature_array])
Exemplo n.º 14
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)
     self.overwrite = self.cfg.get_bool('overwrite')
     self.srid = self.cfg.get_int('srid', -1)
     self.feature_member_tag = self.cfg.get('feature_member_tag')
     self.feature_type_ids = {}
Exemplo n.º 15
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)
     self.overwrite = self.cfg.get_bool('overwrite')
     self.srid = self.cfg.get_int('srid', -1)
     self.feature_member_tag = self.cfg.get('feature_member_tag')
     self.feature_type_ids = {}
Exemplo n.º 16
0
 def __init__(self, configdict, section, consumes):
     Output.__init__(self, configdict, section, consumes)
Exemplo n.º 17
0
 def __init__(self, configdict, section):
     Output.__init__(
         self,
         configdict,
         section,
         consumes=[FORMAT.ogr_feature, FORMAT.ogr_feature_array])
Exemplo n.º 18
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)
     self.file_num = 1
Exemplo n.º 19
0
 def __init__(self, configdict, section):
     Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc)
     self.wfs_host = self.cfg.get('host')
     self.wfs_port = self.cfg.get('port', '80')
     self.wfs_path = self.cfg.get('path')
     self.idgen = self.cfg.get('idgen', 'GenerateNew')