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

Public Member Functions

 RasterProjectorFactory (IProjectorFactory *factory=nullptr)
 
RasterProjectorNew (const RasterProjector *rp)
 
RasterProjectorNew (const char *proj)
 
RasterProjectorNew (const char *proj, const BasicGeoTypes::DblTransform2D &m, int w, int h)
 
RasterProjectorNew (std::shared_ptr< IProjector > proj, const BasicGeoTypes::DblTransform2D &m, int w, int h)
 
RasterProjectorNew (const char *proj, const BasicGeoTypes::PointDXY &ul, const BasicGeoTypes::PointDXY &lr, int w, int h)
 
RasterProjectorNew (std::shared_ptr< IProjector > proj, const BasicGeoTypes::PointDXY &ul, const BasicGeoTypes::PointDXY &lr, int w, int h)
 
RasterProjectorNew (const char *proj, const BasicGeoTypes::GeoPos &ul, const BasicGeoTypes::GeoPos &lr, int w, int h)
 
RasterProjectorGetBaseTileProjector (const char *proj, const BasicGeoTypes::PointDXY &upperLeft, const BasicGeoTypes::PointDXY &lowerRight)
 
RasterProjectorNew (const std::shared_ptr< RasterProjector > &tileBase, double x0, double y0, int w, int h)
 Get a rasterprojector for a subtile image.
 
RasterProjectorGetTileProjector (RasterProjector *tileBase, int tileSize, int lvl, int tx, int ty, bool pointPixel=false)
 
RasterProjectorGetTilesProjector (RasterProjector *tileBase, int tileSize, int lvl, int txMin, int tyMin, int txMax, int tyMax, bool pointPixel=false)
 
Maria::RasterProjectorGetTileProjector (const Maria::TileCacheSpec &tcs, Maria::TileId tileId)
 
RasterProjectorGetRasterProjectorSection (RasterProjector *rp, const BasicGeoTypes::PointDXY &xy, int w, int h)
 
RasterProjectorFromProtoParams (const MariaProtobuf::ProtoRasterProjector &protoRp)
 
MariaProtobuf::ProtoRasterProjector ToProtoParams (RasterProjector *rp)
 

Member Function Documentation

◆ GetRasterProjectorSection()

RasterProjector * Maria::RasterProjectorFactory::GetRasterProjectorSection ( RasterProjector rp,
const BasicGeoTypes::PointDXY xy,
int  w,
int  h 
)

Gets a rasterprojector as a translation/section of a given rasterprojector, keeping the same geoprjector. rp : input rasterprojector xy : point (pixel coordinates) in input rasterprojector corresponding to (0,0) in new one. (Maps to the same geogrphic point). w, h : desired with and height in pixels.

◆ GetTileProjector()

RasterProjector * Maria::RasterProjectorFactory::GetTileProjector ( RasterProjector tileBase,
int  tileSize,
int  lvl,
int  tx,
int  ty,
bool  pointPixel = false 
)
inline

Get a rasterprojector for a given tile in a given tiling. This method will generate a raster projector for the tile given by the tile index (lvl, tx, ty), and given resolution. If the pointPixel flag is set, the raster projector will be extended by a half pixel in all directions, so that the XY coordinate system is a set of grid nodes, instead of area pixels. This is useful when converting datasets from area grids to point pixel grids, but should not be used on general datasets.

◆ New()

RasterProjector * Maria::RasterProjectorFactory::New ( const std::shared_ptr< RasterProjector > &  tileBase,
double  x0,
double  y0,
int  w,
int  h 
)

Get a rasterprojector for a subtile image.

Parameters
tileBasebasetile raster projector
x0
y0x0,y0 is image coordinates of upper left corner in basetile corresponding to 0,0 in desired subtile
wwith of desired subtile in pixels
hheight of desired subtile in pixels
Returns

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