# functions that don't depend on other packages
export(
 krige,stackRasterList,
 grfConditional,
NNmat, gmrfPrecUncond,simLgcp,simPoissonPP,
 lgm, excProb, likfitLgm, loglikLgm
)

export(matern)
S3method(matern, Raster)
S3method(matern, SpatialPointsDataFrame)
S3method(matern, SpatialPoints)
S3method(matern, dist)
S3method(matern, default)

# functions which depend on RandomFields
importFrom(RandomFields, GaussRF)
export(GaussRF)
S3method(GaussRF, Raster)
S3method(GaussRF, SpatialPointsDataFrame)
S3method(GaussRF, SpatialPoints)
S3method(GaussRF, default)

# functions which depend on OpenStreetMap
# OpenStreetMap is listed as Depends
# since it doesn't seem to work well with Imports
# importFrom(OpenStreetMap, openmap,openproj,plot.OpenStreetMap)
export(openmap)
S3method(openmap, matrix)
S3method(openmap, Extent)
S3method(openmap, default)
#export(plot.OpenStreetMap)
#S3method(plot, OpenStreetMap)

# functions depending on spatstat
importFrom(spatstat,as.im,as.im.matrix)
export(as.im)
S3method(as.im, RasterLayer)

# functions depending on geonames
importFrom(geonames, GNcities)
export( GNcities)
S3method(GNcities, matrix)
S3method(GNcities, Extent)
S3method(GNcities, default)

importFrom(geoR, as.geodata)



export(maternGmrfPrec)
S3method(maternGmrfPrec, dgCMatrix)
S3method(maternGmrfPrec, matrix)
S3method(maternGmrfPrec, default)

export(variog)
S3method(variog, SpatialPointsDataFrame)
S3method(variog, default)

export(variog.mc.env)
S3method(variog.mc.env, SpatialPointsDataFrame)
S3method(variog.mc.env, default)


# Import all packages listed as Imports or Depends
import(
  sp,
  raster,
  OpenStreetMap,
  Matrix
)

importFrom(pracma, trapz)

