Namespace for the Map Tools module of TerraLib. More...
Namespaces | |
namespace | serialize |
Classes | |
class | AbstractChartRenderer |
This is the base class for chart renderers. More... | |
class | AbstractExternalGraphicRenderer |
An abstract class for conversion of Symbology Enconding ExternalGraphic elements to an image pattern. More... | |
class | AbstractLayer |
This is the base class for layers. More... | |
class | AbstractLayerRenderer |
It renders the objects associated to an abstract layer. i.e. a generic renderer. More... | |
class | AbstractLayerRendererFactory |
This is the concrete factory for renderers of a AbstractLayer. i.e. builds a generic renderer. More... | |
class | AbstractMapDisplay |
It defines the concept of a map display responsible for controlling how a set of layers are displayed. More... | |
class | AbstractMarkRenderer |
An abstract class for conversion of Symbology Enconding Mark elements to an image pattern. More... | |
class | AbstractRenderer |
It renders the objects associated to a layer. More... | |
class | Canvas |
A canvas is an abstraction of a drawing area. More... | |
class | CanvasConfigurer |
A Symbology Enconding visitor that configures a given canvas based on symbolizers elements. If you want to use this visitor, use a command like: te::map::CanvasConfigurer cc(canvas); cc.config(symbolizer); More... | |
class | Chart |
This class represents the informations needed to build map charts. More... | |
class | ChartRendererManager |
This is a singleton for managing chart renderer instance available in the system. More... | |
struct | CompareAbstractLayerPtrTitle |
class | DataSetAdapterLayer |
A layer with reference to a DataSetTypeConverter. More... | |
class | DataSetLayer |
A layer with reference to a dataset. More... | |
class | ExternalGraphicRendererManager |
This is a singleton for managing all external graphic renderers instances available in the system. More... | |
class | FilterEncoder |
A visitor that converts a TerraLib Expression to OGC Filter Expression. More... | |
class | FolderLayer |
A layer that can be used as a container for other kind of layers. More... | |
class | Grouping |
This class contains the parameters needed for grouping the values of a Property. More... | |
class | MapDisplay |
This class controls how a set of layers are displayed. More... | |
class | MarkRendererManager |
This is a singleton for managing all mark renderers instances available in the system. More... | |
struct | MarkRendererParams |
class | Module |
This singleton defines the TerraLib Map Tools module entry. More... | |
class | QueryEncoder |
A visitor that converts a OGC Filter Expression to TerraLib Expression. More... | |
class | QueryLayer |
A layer resulting from a query. More... | |
class | QueryLayerRenderer |
It renders the objects associated to a query layer. More... | |
class | QueryLayerRendererFactory |
This is the concrete factory for renderers of a QueryLayer. More... | |
class | RasterContrast |
This class contains the parameters needed to apply dynamic contrast over a raster. More... | |
class | RasterLayer |
A layer with reference to a raster. More... | |
class | RasterTransform |
A Raster Transform is a class that defines functions to transform a styled raster. More... | |
class | RasterTransformConfigurer |
A Raster Transform configurer generates a Raster Transform given a RasterSymbolzier. More... | |
class | RendererFactory |
This is the abstract factory for layer renderers. More... | |
class | WorldDeviceTransformer |
This class implements the logic for transforming from device coordinate to world coordinate and vice-versa. More... | |
Typedefs | |
typedef boost::intrusive_ptr< AbstractLayer > | AbstractLayerPtr |
typedef boost::intrusive_ptr< DataSetAdapterLayer > | DataSetAdapterLayerPtr |
typedef boost::intrusive_ptr< DataSetLayer > | DataSetLayerPtr |
typedef boost::intrusive_ptr< FolderLayer > | FolderLayerPtr |
typedef te::da::DataSetType | LayerSchema |
typedef boost::intrusive_ptr< QueryLayer > | QueryLayerPtr |
typedef boost::intrusive_ptr< RasterLayer > | RasterLayerPtr |
Enumerations | |
enum | AlignType { Top = 1 , Center = 2 , Bottom = 3 , Left = 4 , Right = 5 } |
This enum contains values to control the alignment of components (like Canvas and MapDisplay). More... | |
enum | ChartType { Pie , Bar } |
The chart types. More... | |
enum | CompositionMode { SourceOver , DestinationOver , Clear , Source , Destination , SourceIn , DestinationIn , SourceOut , DestinationOut , SourceAtop , DestinationAtop , Xor , Plus , Multiply , Screen , Overlay , Darken , Lighten , ColorDodge , ColorBurn , HardLight , SoftLight , Difference , Exclusion } |
The composition mode used to render the canvas. More... | |
enum | GroupingType { EQUAL_STEPS , QUANTIL , STD_DEVIATION , UNIQUE_VALUE } |
The grouping type associated to the layer. More... | |
enum | ImageType { UNKNOWN = 0 , PNG = 1 , JPEG = 2 , GIF = 3 , BMP = 4 , XPM = 5 , XBM = 6 , WBMP = 7 , TIFF = 8 } |
This enum specifies the possible input and output image formats supported by the canvas API. More... | |
enum | LineCapStyle { ButtCap = 0x00 , SquareCap = 0x10 , RoundCap = 0x20 } |
This enum encodes enumerated values telling how line strings should be capped (at the two ends of the line string). More... | |
enum | LineDashStyle { NoLine = 0 , SolidLine = 1 , DashLine = 2 , DotLine = 3 , DashDotLine = 4 , DashDotDotLine = 5 , CustomDashLine = 6 } |
This enum encodes enumerated values telling how lines should be drawn. e.g. as a plain line or dash line, etc. More... | |
enum | LineJoinStyle { MiterJoin = 0x00 , BevelJoin = 0x40 , RoundJoin = 0x80 } |
This enum encodes enumerated values telling how line strings should be joined (between line segments). More... | |
enum | PtMarkerType { MarkerNone = 0 , MarkerSquare = 1 , MarkerDiamond = 2 , MarkerCircle = 3 , MarkerCrossedCircle = 4 , MarkerSemiEllipseLeft = 5 , MarkerSemiEllipseRight = 6 , MarkerSemiEllipseUp = 7 , MarkerSemiEllipseDown = 8 , MarkerTriangleLeft = 9 , MarkerTriangleRight = 10 , MarkerTriangleUp = 11 , MarkerTriangleDown = 12 , MarkerFourRays = 13 , MarkerCross = 14 , MarkerX = 15 , MarkerDash = 16 , MarkerDot = 17 , MarkerPixel = 18 , MarkerPattern = 19 } |
enum | Visibility { NOT_VISIBLE , VISIBLE , PARTIALLY_VISIBLE } |
Each layer can have three states of visibility. More... | |
Functions | |
TEMAPEXPORT double | AdjustToPrecision (double val, int precision, bool reduce=false) |
It adjusts a value to the precision specified. More... | |
TEMAPEXPORT int | CalculatePlanarZone (te::gm::Envelope latLongBox) |
Calculates the UTM zone from a Geographic envelope. More... | |
TEMAPEXPORT void | CopyAbstractLayerInfo (const te::map::AbstractLayer *refLayer, te::map::AbstractLayer *layer) |
Make a copy of refLayer abstract attributes to layer. Creating new id. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarker (PtMarkerType type, int width, const te::color::RGBAColor &color) |
It creates a point marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerCircle (int width, const te::color::RGBAColor &color) |
It create a circle marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerCross (int width, const te::color::RGBAColor &color) |
It create a cross marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerCrossedCircle (int width, const te::color::RGBAColor &color) |
It create a colorssed circle marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerDash (int width, const te::color::RGBAColor &color) |
It create a dash marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerDiamond (int width, const te::color::RGBAColor &color) |
It create a diamond marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerDot (int width, const te::color::RGBAColor &color) |
It create a dot marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerFourRays (int width, const te::color::RGBAColor &color) |
It creates a four rays marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerPixel (int width, const te::color::RGBAColor &color) |
It create a pixel marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerSemiEllipseDown (int width, const te::color::RGBAColor &color) |
It create a semi ellipse down marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerSemiEllipseLeft (int width, const te::color::RGBAColor &color) |
It create a semi ellipse left marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerSemiEllipseRight (int width, const te::color::RGBAColor &color) |
It create a semi ellipse right marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerSemiEllipseUp (int width, const te::color::RGBAColor &color) |
It create a semi ellipse left marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerSquare (int width, const te::color::RGBAColor &color) |
It create a square marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerTriangleDown (int width, const te::color::RGBAColor &color) |
It create a semi triangle down marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerTriangleLeft (int width, const te::color::RGBAColor &color) |
It create a semi triangle left marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerTriangleRight (int width, const te::color::RGBAColor &color) |
It create a semi triangle right marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerTriangleUp (int width, const te::color::RGBAColor &color) |
It create a semi triangle up marker. More... | |
TEMAPEXPORT te::color::RGBAColor ** | CreateMarkerX (int width, const te::color::RGBAColor &color) |
It create a x marker. More... | |
TEMAPEXPORT te::da::DataSet * | DataSet2Memory (te::da::DataSet *dataset) |
It creates a new In-Memory dataset with the items from the given dataset. More... | |
TEMAPEXPORT void | DrawGeometries (te::da::DataSet *dataset, const std::size_t &gpos, Canvas *canvas, int fromSRID, int toSRID, te::common::TaskProgress *task=0) |
It draws the data set geometries in the given canvas using the informed SRS. More... | |
TEMAPEXPORT void | DrawGeometries (te::da::DataSetType *type, te::da::DataSourcePtr ds, Canvas *canvas, const te::gm::Envelope &bbox, int bboxSRID, int srid, te::se::FeatureTypeStyle *style) |
It draws the data set geometries in the given canvas using the informed SRID and style. More... | |
TEMAPEXPORT void | DrawGraphicStroke (const te::se::Graphic *graphic, const te::gm::Geometry *geom, Canvas *canvas, double gap, double initialGap=0., double offset=0.) |
It draws the geometry in the given canvas with marks. More... | |
TEMAPEXPORT void | DrawGraphicStroke (const te::se::Symbolizer *symbolizer, const te::gm::Geometry *geom, Canvas *canvas) |
It draws the geometry in the given canvas with marks. More... | |
TEMAPEXPORT void | DrawGraphicStrokeLine (const te::se::Graphic *graphic, const te::gm::LineString *lineString, Canvas *canvas, double gap, double initialGap=0., double offset=0.) |
It draws the geometry in the given canvas with marks. More... | |
TEMAPEXPORT void | DrawPointAlongLine (const te::gm::LineString *line, Canvas *canvas, const te::se::Graphic *graphic, double gap, double initialGap) |
It draws marks along a line in the given canvas. More... | |
TEMAPEXPORT void | DrawRaster (te::da::DataSetType *type, te::da::DataSourcePtr ds, Canvas *canvas, const te::gm::Envelope &bbox, int bboxSRID, const te::gm::Envelope &visibleArea, int srid, te::se::CoverageStyle *style, te::map::RasterContrast *rc, const double &scale, bool *cancel) |
TEMAPEXPORT void | DrawRaster (te::rst::Raster *raster, Canvas *canvas, const te::gm::Envelope &bbox, int bboxSRID, const te::gm::Envelope &visibleArea, int srid, te::se::CoverageStyle *style, te::map::RasterContrast *rc, const double &scale, bool *cancel) |
TEMAPEXPORT void | GetDashStyle (const std::string &dasharray, std::vector< double > &style) |
Converts a dasharray pattern coded by a string to a vector of double. More... | |
TEMAPEXPORT te::da::DataAccessPtr | GetDataAccess (te::map::AbstractLayerPtr absLayer) |
It gets the dataAccess that can be used to access data information from the given layer. More... | |
TEMAPEXPORT te::gm::Envelope | GetExtent (const std::list< te::map::AbstractLayerPtr > &layers, int srid, bool onlyVisibles) |
It calculates the extent of the given layers in the given SRID. More... | |
TEMAPEXPORT te::gm::Envelope | GetExtent (const te::map::AbstractLayerPtr &layer, int srid, bool onlyVisibles) |
It calculates the extent of the given layer in the given SRID. More... | |
TEMAPEXPORT te::rst::Raster * | GetExtentRaster (te::rst::Raster *raster, int w, int h, const te::gm::Envelope &bbox, int bboxSRID, const te::gm::Envelope &visibleArea, int srid) |
TEMAPEXPORT te::gm::GeomType | GetGeomType (const te::map::AbstractLayerPtr &layer) |
It gets the geometry type of the given layer. More... | |
TEMAPEXPORT std::list< te::map::AbstractLayer * > | GetPlainLayerList (const std::list< te::map::AbstractLayerPtr > &listLayersTree) |
From the given layer list containing an optional hierarchical structure, returns a plain list without any hierarchy. More... | |
TEMAPEXPORT te::rst::Raster * | GetRaster (AbstractLayer *layer) |
It gets the raster referenced by the given data set layer. More... | |
TEMAPEXPORT te::rst::RasterProperty * | GetRasterProperty (AbstractLayer *layer) |
It gets the raster property referenced by the given data set layer. More... | |
TEMAPEXPORT te::gm::Envelope | GetSelectedExtent (const std::list< te::map::AbstractLayerPtr > layers, int srid, bool onlyVisibles) |
It calculates the extent of selected objects of the given layers in the given SRID. More... | |
TEMAPEXPORT te::gm::Envelope | GetSelectedExtent (const te::map::AbstractLayerPtr layer, int srid, bool onlyVisibles) |
It calculates the extent of selected objects of the given layer in the given SRID. More... | |
TEMAPEXPORT std::string | GetUTMProj4FromZone (int zone) |
Returns proj4 string with UTM projection in the specified zone (Only working for south). More... | |
TEMAPEXPORT void | GetVisibleLayers (const std::list< te::map::AbstractLayer * > &layers, std::list< te::map::AbstractLayer * > &visibleLayers) |
TEMAPEXPORT void | GetVisibleLayers (const std::list< te::map::AbstractLayerPtr > &layers, std::list< te::map::AbstractLayerPtr > &visibleLayers) |
It gets the visible layers of the given layer list. More... | |
TEMAPEXPORT void | GetVisibleLayers (const te::map::AbstractLayerPtr &layer, std::list< te::map::AbstractLayerPtr > &visibleLayers) |
It gets the visible layers of the given layer. More... | |
TEMAPEXPORT te::gm::Envelope | GetWorldBoxInPlanar (const te::gm::Envelope &worldBox, int srid) |
It gets the requested envelope on a UTM planar projection. More... | |
template<class iterator > | |
void | GroupingByEqualSteps (std::string attrName, iterator begin, iterator end, int nSteps, std::vector< te::se::Rule * > &rules, int precision=0) |
It groups the values defined by a range of iterators using the equal steps algorithm. More... | |
template<class iterator > | |
void | GroupingByQuantil (std::string attrName, iterator begin, iterator end, int nSteps, std::vector< te::se::Rule * > &rules, int precision=0) |
It groups the values defined by a range of iterators using the quantil algorithm. More... | |
template<class iterator > | |
void | GroupingByStdDeviation (std::string attrName, iterator begin, iterator end, double nDevs, std::vector< te::se::Rule * > &rules, std::string &meanTitle, int precision=0) |
It groups the values defined by a range of iterators using the standard deviation algorithm. More... | |
TEMAPEXPORT void | GroupingByUniqueValues (std::string attrName, std::vector< std::string > &inputValues, int dataType, std::vector< te::se::Rule * > &rules, int precision) |
It groups the values using the unique value algorithm. More... | |
Namespace for the Map Tools module of TerraLib.
typedef boost::intrusive_ptr<AbstractLayer> te::map::AbstractLayerPtr |
Definition at line 626 of file AbstractLayer.h.
typedef boost::intrusive_ptr<DataSetAdapterLayer> te::map::DataSetAdapterLayerPtr |
Definition at line 157 of file DataSetAdapterLayer.h.
typedef boost::intrusive_ptr<DataSetLayer> te::map::DataSetLayerPtr |
Definition at line 148 of file DataSetLayer.h.
typedef boost::intrusive_ptr<FolderLayer> te::map::FolderLayerPtr |
Definition at line 123 of file FolderLayer.h.
Definition at line 66 of file AbstractLayer.h.
typedef boost::intrusive_ptr<QueryLayer> te::map::QueryLayerPtr |
Definition at line 186 of file QueryLayer.h.
typedef boost::intrusive_ptr<RasterLayer> te::map::RasterLayerPtr |
Definition at line 165 of file RasterLayer.h.
enum te::map::AlignType |
This enum contains values to control the alignment of components (like Canvas and MapDisplay).
Enumerator | |
---|---|
Top | Top. |
Center | Center. |
Bottom | Bottom. |
Left | Left. |
Right | Right. |
enum te::map::ChartType |
The composition mode used to render the canvas.
Enumerator | |
---|---|
SourceOver | This is the default mode. The alpha of the source is used to blend the pixel on top of the destination. |
DestinationOver | The alpha of the destination is used to blend it on top of the source pixels. |
Clear | The pixels in the destination are cleared (set to fully transparent) independent of the source. |
Source | The output is the source pixel. (This means a basic copy operation and is identical to SourceOver when the source pixel is opaque). |
Destination | The output is the destination pixel. This means that the blending has no effect. |
SourceIn | The output is the source, where the alpha is reduced by that of the destination. |
DestinationIn | The output is the destination, where the alpha is reduced by that of the source. |
SourceOut | The output is the source, where the alpha is reduced by the inverse of destination. |
DestinationOut | The output is the destination, where the alpha is reduced by the inverse of the source. |
SourceAtop | The source pixel is blended on top of the destination, with the alpha of the source pixel reduced by the alpha of the destination pixel. |
DestinationAtop | The destination pixel is blended on top of the source, with the alpha of the destination pixel is reduced by the alpha of the destination pixel. |
Xor | The source, whose alpha is reduced with the inverse of the destination alpha, is merged with the destination, whose alpha is reduced by the inverse of the source alpha. |
Plus | Both the alpha and color of the source and destination pixels are added together. |
Multiply | The output is the source color multiplied by the destination. Multiplying a color with white leaves the color unchanged, while multiplying a color with black produces black. |
Screen | The source and destination colors are inverted and then multiplied. Screening a color with white produces white, whereas screening a color with black leaves the color unchanged. |
Overlay | Multiplies or screens the colors depending on the destination color. The destination color is mixed with the source color to reflect the lightness or darkness of the destination. |
Darken | The darker of the source and destination colors is selected. |
Lighten | The lighter of the source and destination colors is selected. |
ColorDodge | The destination color is brightened to reflect the source color. A black source color leaves the destination color unchanged. |
ColorBurn | The destination color is darkened to reflect the source color. A white source color leaves the destination color unchanged. |
HardLight | Multiplies or screens the colors depending on the source color. A light source color will lighten the destination color, whereas a dark source color will darken the destination color. |
SoftLight | Darkens or lightens the colors depending on the source color. Similar to CompositionMode_HardLight. |
Difference | Subtracts the darker of the colors from the lighter. Painting with white inverts the destination color, whereas painting with black leaves the destination color unchanged. |
Exclusion | Similar to CompositionMode_Difference, but with a lower contrast. Painting with white inverts the destination color, whereas painting with black leaves the destination color unchanged. |
The grouping type associated to the layer.
enum te::map::ImageType |
This enum specifies the possible input and output image formats supported by the canvas API.
This enum encodes enumerated values telling how line strings should be capped (at the two ends of the line string).
This enum encodes enumerated values telling how lines should be drawn. e.g. as a plain line or dash line, etc.
This enum encodes enumerated values telling how line strings should be joined (between line segments).
enum te::map::Visibility |
Each layer can have three states of visibility.
TEMAPEXPORT double te::map::AdjustToPrecision | ( | double | val, |
int | precision, | ||
bool | reduce = false |
||
) |
It adjusts a value to the precision specified.
value | The value to be adjusted. |
precision | The precision the given value must be adjusted to. |
reduce | Flag indicating if the value must be added or subtracted to the value represented by the precision. |
\output The value adjusted to the precision specified.
Referenced by GroupingByEqualSteps(), and GroupingByQuantil().
TEMAPEXPORT int te::map::CalculatePlanarZone | ( | te::gm::Envelope | latLongBox | ) |
Calculates the UTM zone from a Geographic envelope.
latLongBox | Geographic envelope |
TEMAPEXPORT void te::map::CopyAbstractLayerInfo | ( | const te::map::AbstractLayer * | refLayer, |
te::map::AbstractLayer * | layer | ||
) |
Make a copy of refLayer abstract attributes to layer. Creating new id.
refLayer | The reference layer |
layer | Target layer |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarker | ( | PtMarkerType | type, |
int | width, | ||
const te::color::RGBAColor & | color | ||
) |
It creates a point marker.
type | The marker type. |
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerCircle | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a circle marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerCross | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a cross marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerCrossedCircle | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a colorssed circle marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerDash | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a dash marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerDiamond | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a diamond marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerDot | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a dot marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerFourRays | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It creates a four rays marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerPixel | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a pixel marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerSemiEllipseDown | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a semi ellipse down marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerSemiEllipseLeft | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a semi ellipse left marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerSemiEllipseRight | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a semi ellipse right marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerSemiEllipseUp | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a semi ellipse left marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerSquare | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a square marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerTriangleDown | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a semi triangle down marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerTriangleLeft | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a semi triangle left marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerTriangleRight | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a semi triangle right marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerTriangleUp | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a semi triangle up marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::color::RGBAColor ** te::map::CreateMarkerX | ( | int | width, |
const te::color::RGBAColor & | color | ||
) |
It create a x marker.
width | The marker width. |
color | The marker color. |
TEMAPEXPORT te::da::DataSet * te::map::DataSet2Memory | ( | te::da::DataSet * | dataset | ) |
It creates a new In-Memory dataset with the items from the given dataset.
dataset | The dataset which will provide the items. Do not pass NULL! |
TEMAPEXPORT void te::map::DrawGeometries | ( | te::da::DataSet * | dataset, |
const std::size_t & | gpos, | ||
Canvas * | canvas, | ||
int | fromSRID, | ||
int | toSRID, | ||
te::common::TaskProgress * | task = 0 |
||
) |
It draws the data set geometries in the given canvas using the informed SRS.
dataset | The data set that will be drawn. |
gpos | The geometry property position that will be drawn. |
canvas | The canvas were the data set geometries will be drawn. |
fromSRID | The SRID of data set geometries. |
srid | The SRID to be used to draw the data set geometries. |
task | An optional task that can be used cancel the draw process. |
TEMAPEXPORT void te::map::DrawGeometries | ( | te::da::DataSetType * | type, |
te::da::DataSourcePtr | ds, | ||
Canvas * | canvas, | ||
const te::gm::Envelope & | bbox, | ||
int | bboxSRID, | ||
int | srid, | ||
te::se::FeatureTypeStyle * | style | ||
) |
It draws the data set geometries in the given canvas using the informed SRID and style.
The informed bounding box (bbox) is used to constraint the data set to be drawn. Here, we assume that the given bbox was pre-processed. i.e. the bbox was clipped and contains the same projection of data set geometries.
type | The data set type that describes the data set that will be drawn. |
ds | A datasource that will be used to retrieve the data set objects. |
canvas | The canvas were the data set geometries will be drawn. |
bbox | The interest area to render the geometries. |
bboxSRID | The SRID of interest area. |
srid | The SRID to be used to draw the data set geometries. |
style | The style that will be used. |
TEMAPEXPORT void te::map::DrawGraphicStroke | ( | const te::se::Graphic * | graphic, |
const te::gm::Geometry * | geom, | ||
Canvas * | canvas, | ||
double | gap, | ||
double | initialGap = 0. , |
||
double | offset = 0. |
||
) |
It draws the geometry in the given canvas with marks.
symb | The geometry style that will be drawn. |
geom | The geometry that will be drawn. |
canvas | The canvas were the data set geometries will be drawn. |
TEMAPEXPORT void te::map::DrawGraphicStroke | ( | const te::se::Symbolizer * | symbolizer, |
const te::gm::Geometry * | geom, | ||
Canvas * | canvas | ||
) |
It draws the geometry in the given canvas with marks.
symbolizer | The geometry style that will be drawn. |
geom | The geometry that will be drawn. |
canvas | The canvas were the data set geometries will be drawn. |
TEMAPEXPORT void te::map::DrawGraphicStrokeLine | ( | const te::se::Graphic * | graphic, |
const te::gm::LineString * | lineString, | ||
Canvas * | canvas, | ||
double | gap, | ||
double | initialGap = 0. , |
||
double | offset = 0. |
||
) |
It draws the geometry in the given canvas with marks.
symb | The geometry style that will be drawn. |
geom | The geometry that will be drawn. |
canvas | The canvas were the data set geometries will be drawn. |
TEMAPEXPORT void te::map::DrawPointAlongLine | ( | const te::gm::LineString * | line, |
Canvas * | canvas, | ||
const te::se::Graphic * | graphic, | ||
double | gap, | ||
double | initialGap | ||
) |
It draws marks along a line in the given canvas.
line | The geometry style that will be drawn. |
canvas | The canvas were the data set geometries will be drawn. |
graphic | The graphic configuration of a mark that will be drawn. |
initialGap | The initial gap to draw marks in a line. |
gap | The gap between marks. |
TEMAPEXPORT void te::map::DrawRaster | ( | te::da::DataSetType * | type, |
te::da::DataSourcePtr | ds, | ||
Canvas * | canvas, | ||
const te::gm::Envelope & | bbox, | ||
int | bboxSRID, | ||
const te::gm::Envelope & | visibleArea, | ||
int | srid, | ||
te::se::CoverageStyle * | style, | ||
te::map::RasterContrast * | rc, | ||
const double & | scale, | ||
bool * | cancel | ||
) |
TEMAPEXPORT void te::map::DrawRaster | ( | te::rst::Raster * | raster, |
Canvas * | canvas, | ||
const te::gm::Envelope & | bbox, | ||
int | bboxSRID, | ||
const te::gm::Envelope & | visibleArea, | ||
int | srid, | ||
te::se::CoverageStyle * | style, | ||
te::map::RasterContrast * | rc, | ||
const double & | scale, | ||
bool * | cancel | ||
) |
TEMAPEXPORT void te::map::GetDashStyle | ( | const std::string & | dasharray, |
std::vector< double > & | style | ||
) |
Converts a dasharray pattern coded by a string to a vector of double.
dasharray | The dasharray pattern coded by a string. |
style | The vector of double that will be filled with the values extracted from dasharray string. |
TEMAPEXPORT te::da::DataAccessPtr te::map::GetDataAccess | ( | te::map::AbstractLayerPtr | absLayer | ) |
It gets the dataAccess that can be used to access data information from the given layer.
absLayer | The layer from which the data will be access |
TEMAPEXPORT te::gm::Envelope te::map::GetExtent | ( | const std::list< te::map::AbstractLayerPtr > & | layers, |
int | srid, | ||
bool | onlyVisibles | ||
) |
It calculates the extent of the given layers in the given SRID.
layers | The layer list that will be consulted. |
srid | The result extent SRID. |
onlyVisibles | A flag that indicates if the method should consider only the visible layers. |
TEMAPEXPORT te::gm::Envelope te::map::GetExtent | ( | const te::map::AbstractLayerPtr & | layer, |
int | srid, | ||
bool | onlyVisibles | ||
) |
It calculates the extent of the given layer in the given SRID.
layer | The layer that will be consulted. |
srid | The result extent SRID. |
onlyVisibles | A flag that indicates if the method should consider only the visible layers. |
TEMAPEXPORT te::rst::Raster * te::map::GetExtentRaster | ( | te::rst::Raster * | raster, |
int | w, | ||
int | h, | ||
const te::gm::Envelope & | bbox, | ||
int | bboxSRID, | ||
const te::gm::Envelope & | visibleArea, | ||
int | srid | ||
) |
TEMAPEXPORT te::gm::GeomType te::map::GetGeomType | ( | const te::map::AbstractLayerPtr & | layer | ) |
It gets the geometry type of the given layer.
layer | The layer that will be consulted. |
TEMAPEXPORT std::list< te::map::AbstractLayer * > te::map::GetPlainLayerList | ( | const std::list< te::map::AbstractLayerPtr > & | listLayersTree | ) |
From the given layer list containing an optional hierarchical structure, returns a plain list without any hierarchy.
listLayersTree | The layer list containing an optional hierarchical structure |
TEMAPEXPORT te::rst::Raster * te::map::GetRaster | ( | AbstractLayer * | layer | ) |
It gets the raster referenced by the given data set layer.
layer | The data set layer that will be used to retrieve the raster. |
Exception | It will throw an exception if the raster could not be retrieved. |
TEMAPEXPORT te::rst::RasterProperty * te::map::GetRasterProperty | ( | AbstractLayer * | layer | ) |
It gets the raster property referenced by the given data set layer.
layer | The data set layer that will be used to retrieve the raster property. |
Exception | It will throw an exception if the raster property could not be retrieved. |
TEMAPEXPORT te::gm::Envelope te::map::GetSelectedExtent | ( | const std::list< te::map::AbstractLayerPtr > | layers, |
int | srid, | ||
bool | onlyVisibles | ||
) |
It calculates the extent of selected objects of the given layers in the given SRID.
layers | The layer list that will be consulted. |
srid | The result extent SRID. |
onlyVisibles | A flag that indicates if the method should consider only the visible layers. |
TEMAPEXPORT te::gm::Envelope te::map::GetSelectedExtent | ( | const te::map::AbstractLayerPtr | layer, |
int | srid, | ||
bool | onlyVisibles | ||
) |
It calculates the extent of selected objects of the given layer in the given SRID.
layer | The layer that will be consulted. |
srid | The result extent SRID. |
onlyVisibles | A flag that indicates if the method should consider only the visible layers. |
TEMAPEXPORT std::string te::map::GetUTMProj4FromZone | ( | int | zone | ) |
Returns proj4 string with UTM projection in the specified zone (Only working for south).
UTM | Zone |
TEMAPEXPORT void te::map::GetVisibleLayers | ( | const std::list< te::map::AbstractLayer * > & | layers, |
std::list< te::map::AbstractLayer * > & | visibleLayers | ||
) |
TEMAPEXPORT void te::map::GetVisibleLayers | ( | const std::list< te::map::AbstractLayerPtr > & | layers, |
std::list< te::map::AbstractLayerPtr > & | visibleLayers | ||
) |
It gets the visible layers of the given layer list.
layers | The layer list that will be consulted. |
visibleLayers | A layer list that will be filled with the visible layers. |
TEMAPEXPORT void te::map::GetVisibleLayers | ( | const te::map::AbstractLayerPtr & | layer, |
std::list< te::map::AbstractLayerPtr > & | visibleLayers | ||
) |
It gets the visible layers of the given layer.
layer | The layer that will be consulted. |
visibleLayers | A layer list that will be filled with the visible layers. |
TEMAPEXPORT te::gm::Envelope te::map::GetWorldBoxInPlanar | ( | const te::gm::Envelope & | worldBox, |
int | srid | ||
) |
It gets the requested envelope on a UTM planar projection.
worldBox | WordBox to be transformed to planar |
srid | The WorldBox SRID to transform from |
void te::map::GroupingByEqualSteps | ( | std::string | attrName, |
iterator | begin, | ||
iterator | end, | ||
int | nSteps, | ||
std::vector< te::se::Rule * > & | rules, | ||
int | precision = 0 |
||
) |
It groups the values defined by a range of iterators using the equal steps algorithm.
begin | The iterator associated to the first element value. |
end | The iterator associated to the last element value. |
nSteps | The number of steps. |
rules | The container of rules items. |
precision | The precision to be used in the conversion of the values. |
countElements | The flag indicating if the counting of elements must be done. |
\output The groups will be stored in the container of legend items.
Definition at line 96 of file GroupingAlgorithms.h.
References AdjustToPrecision(), te::common::Convert2String(), te::fe::CreateFilterByStep(), MAX, MIN, te::se::Rule::setFilter(), and te::se::Rule::setName().
void te::map::GroupingByQuantil | ( | std::string | attrName, |
iterator | begin, | ||
iterator | end, | ||
int | nSteps, | ||
std::vector< te::se::Rule * > & | rules, | ||
int | precision = 0 |
||
) |
It groups the values defined by a range of iterators using the quantil algorithm.
begin | The iterator associated to the first element value. |
end | The iterator associated to the last element value. |
nSteps | The number of steps. |
rules | The container of rules items. |
precision | The precision to be used in the conversion of the values. |
countElements | The flag indicating if the counting of elements must be done. |
\output The groups will be stored in the container of legend items.
Definition at line 150 of file GroupingAlgorithms.h.
References AdjustToPrecision(), te::common::Convert2String(), te::fe::CreateFilterByStep(), te::se::Rule::setFilter(), and te::se::Rule::setName().
void te::map::GroupingByStdDeviation | ( | std::string | attrName, |
iterator | begin, | ||
iterator | end, | ||
double | nDevs, | ||
std::vector< te::se::Rule * > & | rules, | ||
std::string & | meanTitle, | ||
int | precision = 0 |
||
) |
It groups the values defined by a range of iterators using the standard deviation algorithm.
begin | The iterator associated to the first element value. |
end | The iterator associated to the last element value. |
nDevs | The number of deviations. |
rules | The container of rules items. |
rmean | The mean value. |
precision | The precision to be used in the conversion of the values. |
countElements | The flag indicating if the counting of elements must be done. |
\output The groups will be stored in the container of legend items.
Definition at line 218 of file GroupingAlgorithms.h.
References te::common::Convert2String(), te::fe::CreateFilterByStep(), MAX, MIN, te::se::Rule::setFilter(), te::se::Rule::setName(), and TE_TR.
TEMAPEXPORT void te::map::GroupingByUniqueValues | ( | std::string | attrName, |
std::vector< std::string > & | inputValues, | ||
int | dataType, | ||
std::vector< te::se::Rule * > & | rules, | ||
int | precision | ||
) |
It groups the values using the unique value algorithm.
attrName | The attribute name used do create the group. |
inputValues | The data to be grouped by unique values. |
dataType | The data type of the values. |
rules | The container of rules items where the groups will be placed. \precision The precision to be used in the conversion of the values. |
\output The groups will be stored in the container of legend items.