NDEVR
API Documentation
MercatorImageRequest

Contains the information for requesting a 2D top-down view of a geographic location to be used with a AerialImage service such as google earth. More...

Collaboration diagram for MercatorImageRequest:
[legend]

Public Member Functions

 MercatorImageRequest ()
 Default constructor.
 MercatorImageRequest (const ConstPointer< WebMercatorTileService > &service, Bounds< 2, fltp08 > bounds, Vector< 2, uint04 > size, WebMercatorTile::DPI dpi=WebMercatorTile::DPI::e_auto)
 Constructs a request from a tile service, geographic bounds, image size, and DPI.
WebMercatorTile::DPI getDPI () const
 Returns the effective DPI setting for this request.
WebMercatorTile::Resolution getResolution () const
 Returns the tile resolution appropriate for this request.
fltp08 getScaleFactor () const
 Returns a scale factor derived from the DPI and resolution settings.
UUID getUUID () const
 Computes a UUID that uniquely identifies this request based on its parameters.
void setBrushToDefault ()
 Resets all feature brush colors to their defaults.

Public Attributes

Bounds< 2, fltp08bounds_wgs84
 Geographic bounding box in WGS-84 coordinates.
ArialColorTheme color_theme [cast< uint04 >(ArialFeatureList::e_feature_list_size)]
 Per-feature color theme array.
WebMercatorTile::DPI dpi = WebMercatorTile::DPI::e_auto
 Requested DPI setting.
String generated_image
 Path or identifier for the generated composite image.
bool include_labels = false
 Whether to include text labels on tiles.
LogPtr log
 Log pipe for status and error messages.
UUID request_id
 Unique identifier for this request.
ConstPointer< WebMercatorTileServiceservice = nullptr
 The tile service used for this request.
Vector< 2, uint04size
 Desired output image size in pixels.

Detailed Description

Contains the information for requesting a 2D top-down view of a geographic location to be used with a AerialImage service such as google earth.


Class: AerialImageRequest

=

Definition at line 194 of file MercatorImageManager.h.

Constructor & Destructor Documentation

◆ MercatorImageRequest()

MercatorImageRequest::MercatorImageRequest ( const ConstPointer< WebMercatorTileService > & service,
Bounds< 2, fltp08 > bounds,
Vector< 2, uint04 > size,
WebMercatorTile::DPI dpi = WebMercatorTile::DPI::e_auto )

Constructs a request from a tile service, geographic bounds, image size, and DPI.

Parameters
[in]serviceThe tile service to use for generating URLs.
[in]boundsThe WGS-84 geographic bounding box for the request.
[in]sizeThe desired output image dimensions in pixels.
[in]dpiThe DPI setting (defaults to automatic selection).

References dpi, WebMercatorTile::e_auto, service, and size.

Member Function Documentation

◆ getDPI()

WebMercatorTile::DPI MercatorImageRequest::getDPI ( ) const

Returns the effective DPI setting for this request.

Returns
The DPI value, resolving e_auto if necessary.

◆ getResolution()

WebMercatorTile::Resolution MercatorImageRequest::getResolution ( ) const

Returns the tile resolution appropriate for this request.

Returns
The Resolution value to use.

◆ getScaleFactor()

fltp08 MercatorImageRequest::getScaleFactor ( ) const

Returns a scale factor derived from the DPI and resolution settings.

Returns
The scale factor as a floating-point value.
Note
Purpose is unclear; may relate to converting between tile pixels and output pixels.

◆ getUUID()

UUID MercatorImageRequest::getUUID ( ) const

Computes a UUID that uniquely identifies this request based on its parameters.

Returns
The computed UUID.

The documentation for this struct was generated from the following file: