code: def _read(self, directory, filename, session, path, name, extension, spatial, spatialReferenceID, replaceParamFile):
          
          # Assign file extension attribute to file object
          self.fileExtension = extension
          self.filename = filename
  
          self._load_raster_text(path)
          
          if spatial:
              # Get well known binary from the raster file using the MapKit RasterLoader
              wkbRaster = RasterLoader.grassAsciiRasterToWKB(session=session,
                                                             grassRasterPath=path,
                                                             srid=str(spatialReferenceID),
                                                             noData='0')
              self.raster = wkbRaster
docs: Raster Map File Read from File Method