Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::RasterMosaicer Class Reference

Classes

struct  MapSignature
 

Public Member Functions

 RasterMosaicer (long long cacheSize=200000000)
 
virtual void SetParameter (const std::string &key, const std::string &value)
 
virtual std::string GetParameter (const std::string &key) const
 
virtual void ClearParameter (const std::string &key)
 
virtual void ClearParameters ()
 
virtual bool AddMapSignature (const std::string &id, int pri, Maria::ValueBag &params)
 
virtual void RemoveMapSignature (const std::string &id)
 
virtual void ClearMapSignatures ()
 
virtual bool AddDataSet (const std::string &mapSignatureId, const std::vector< std::string > &files, Maria::ValueBag &params)
 
virtual bool CalcTileCacheSpec (const std::string &mapSignature, Maria::TileCacheSpec &tcs, const std::string &projString)
 
BasicGeoTypes::RectD CalcBoundingRect (const std::string &mapSource, const std::shared_ptr< Maria::IProjector > &pj)
 
virtual std::string GetMapParameter (const std::string &mapSignatureId, const std::string &parameterName)
 
virtual void SetMapParameter (const std::string &mapSignatureId, const std::string &parameterName, const std::string &parameterValue)
 
virtual void GetMapSignatures (std::vector< std::string > &mapSignatures)
 Fill the given list with all added map signature ids.
 
virtual void GetResolutionAreas (const std::string &mapSource, std::vector< Maria::ResolutionArea > &resolutionAreas)
 
MosaicResult BuildRaster (Maria::GeoBitmap &data, std::shared_ptr< Maria::RasterProjector > vp, double nominalScale, const std::string &mapSignature, std::shared_ptr< Metadata > nativeMetadata)
 Build a raster map for the given map signature.
 
MosaicResult BuildRasterTile (Maria::GeoBitmap &data, Maria::TileId tileId, const Maria::TileCacheSpec &tcs, const std::string &mapSignature, std::shared_ptr< Metadata > nativeMetadata)
 
void SetIndexFileDirectory (const std::string &dir)
 
const std::string & GetIndexFileDirectory () const
 
void SetUseIndexFiles (bool useIndexFiles)
 
bool GetUseIndexFiles () const
 
void LogStartupInfo ()
 Write version info to log.
 
void AddMapSignatureMetadata (const std::string &mapSignature, std::shared_ptr< Metadata > nativeMetadata)
 Add embedded metadata for a given map signature.
 
const std::shared_ptr< Maria::IProjectorGetDefaultProjector (const std::string &mapSource)
 
bool GetDefaultTiling (const std::string &mapSource, Maria::TileCacheSpec &tcs)
 

Member Function Documentation

◆ AddDataSet()

bool RasterMosaicer::AddDataSet ( const std::string &  mapSignatureId,
const std::vector< std::string > &  files,
Maria::ValueBag params 
)
virtual

Add a new dataset to the map. This method will add a new data set to the given map signature. If no such map signature exists, a new one is created. A data set is a set of files with the same projection and raster band configuration. Each data set is reprojected and rescaled separately and merged together with the rest of the map signature. Data sets are merged in the order they are added to the map signature (Later datasets appear on top of earlier ones).

◆ AddMapSignature()

bool RasterMosaicer::AddMapSignature ( const std::string &  id,
int  pri,
Maria::ValueBag params 
)
virtual

Add a new map signature. A map signature is a named collection of datasets (see below). All raster map queries are referenced by this map signature ID.

◆ CalcBoundingRect()

BasicGeoTypes::RectD RasterMosaicer::CalcBoundingRect ( const std::string &  mapSource,
const std::shared_ptr< Maria::IProjector > &  pj 
)

Calc bounding rectangle for the given map signature, in the given projection.

◆ CalcTileCacheSpec()

bool RasterMosaicer::CalcTileCacheSpec ( const std::string &  mapSignature,
Maria::TileCacheSpec tcs,
const std::string &  projString 
)
virtual

Calculate tile cache spec for a map signature. This method will calculate a suitable tile cache spec for the given map signature. This spec will have a quadratic root tile encompassing the entire dataset and the given projection. If no projection is given, or if projection is "native", the default projection for the dataset will be used. Note that this method will not set tile size or nominal scale.

◆ ClearMapSignatures()

void RasterMosaicer::ClearMapSignatures ( )
virtual

Remove all map signatures.

◆ ClearParameter()

void RasterMosaicer::ClearParameter ( const std::string &  key)
virtual

Remove the parameter with the given key.

◆ ClearParameters()

void RasterMosaicer::ClearParameters ( )
virtual

Clear all parameters.

◆ GetDefaultProjector()

const std::shared_ptr< Maria::IProjector > RasterMosaicer::GetDefaultProjector ( const std::string &  mapSource)

Get default projector for the given map signature. If different projections are used for the datasets in the signature, any one of them may be returned.

◆ RemoveMapSignature()

void RasterMosaicer::RemoveMapSignature ( const std::string &  id)
virtual

Remove the map signature with the given ID from the mosaicer.

◆ SetParameter()

void RasterMosaicer::SetParameter ( const std::string &  key,
const std::string &  value 
)
virtual

Add global setup parameter. These are parameters related to the entire mosaic. Map signatures and datasets may also have their own parameters. Valid parameters are:

  • multiThread - Use multithreading when cutting and reprojecting images.
  • maxMemorySize - Maximum memory size (in bytes) to use when reprojecting images.
  • nodata - Nodata value to use for the target bitmap. Only used for elevation data. Default is 0.

The documentation for this class was generated from the following files: