def _readXputFile(self, file_cards, card_name, directory, session,
                      spatial=False, spatialReferenceID=None,
                      replaceParamFile=None, **kwargs):
        """
        Read specific IO file for a GSSHA project to the database.
        """
        # Automatically derive the spatial reference system, if possible
        if spatialReferenceID is None:
            spatialReferenceID = self._automaticallyDeriveSpatialReferenceId(directory)

        card = self.getCard(card_name)
        if card:
            fileIO = file_cards[card.name]
            filename = card.value.strip('"').strip("'")

            # Invoke read method on each file
            return self._invokeRead(fileIO=fileIO,
                                    directory=directory,
                                    filename=filename,
                                    session=session,
                                    spatial=spatial,
                                    spatialReferenceID=spatialReferenceID,
                                    replaceParamFile=replaceParamFile,
                                    **kwargs)
def _readXputFile ( self , file_cards , card_name , directory , session , spatial = False , spatialReferenceID = None , replaceParamFile = None , ** kwargs ) : if spatialReferenceID is None : spatialReferenceID = self . _automaticallyDeriveSpatialReferenceId ( directory ) card = self . getCard ( card_name ) if card : fileIO = file_cards [ card . name ] filename = card . value . strip ( '"' ) . strip ( "'" ) return self . _invokeRead ( fileIO = fileIO , directory = directory , filename = filename , session = session , spatial = spatial , spatialReferenceID = spatialReferenceID , replaceParamFile = replaceParamFile , ** kwargs )
Read specific IO file for a GSSHA project to the database.