Exemple #1
0
 def get_engine(self):
     """
     Retrives GeoServer engine
     """
     engine = GeoServerSpatialDatasetEngine(endpoint=self.endpoint,
                                            username=self.username,
                                            password=self.password)
     engine.public_endpoint = self.public_endpoint
     return engine
Exemple #2
0
 def get_engine(self):
     """
     Retrives GeoServer engine
     """
     engine = GeoServerSpatialDatasetEngine(endpoint=self.endpoint,
                                            username=self.username,
                                            password=self.password)
     engine.public_endpoint = self.public_endpoint
     return engine
Exemple #3
0
    def get_engine(self):
        """
        Retrieves spatial dataset engine
        """
        engine = None

        if self.engine == self.GEOSERVER:
            engine = GeoServerSpatialDatasetEngine(endpoint=self.endpoint,
                                                   username=self.username,
                                                   password=self.password)
            engine.public_endpoint = self.public_endpoint

        elif self.engine == self.THREDDS:
            if self.username and self.password:
                session_manager.set_session_options(auth=(str(self.username),
                                                          str(self.password)))

            catalog_endpoint = str(self.endpoint).rstrip('/') + '/catalog.xml'
            engine = TDSCatalog(str(catalog_endpoint))

        return engine