28#ifndef __TERRALIB_MAPTOOLS_INTERNAL_UTILS_H
29#define __TERRALIB_MAPTOOLS_INTERNAL_UTILS_H
240 const double& scale,
bool* cancel);
This is the base class for Layers.
A helper class for 24-bit RGBA (Red-Green-Blue-Alpha channel) color.
This class can be used to inform the progress of a task.
A class that models the description of a dataset.
A dataset is the unit of information manipulated by the data access module of TerraLib.
An Envelope defines a 2D rectangular region.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
LineString is a curve with linear interpolation between points.
This is the base class for layers.
A canvas is an abstraction of a drawing area.
A layer with reference to a dataset.
This class contains the parameters needed to apply dynamic contrast over a raster.
An abstract class for raster data strucutures.
The CoverageStyle defines the styling that is to be applied to a subset of Coverage data.
The FeatureTypeStyle defines the styling that is to be applied to a dataset that can be viewed as a f...
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
A Symbolizer describes how a feature is to appear on a map.
An abstract class for data providers like a DBMS, Web Services or a regular file.
Enumerations related to Geometry module.
An Envelope defines a 2D rectangular region.
Namespace for the Common module of TerraLib.
Namespace for the DataAccess API of TerraLib.
boost::shared_ptr< DataSource > DataSourcePtr
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Namespace for the Map Tools module of TerraLib.
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...
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.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
TEMAPEXPORT te::rst::RasterProperty * GetRasterProperty(AbstractLayer *layer)
It gets the raster property referenced by the given data set layer.
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.
TEMAPEXPORT void GetDashStyle(const std::string &dasharray, std::vector< double > &style)
Converts a dasharray pattern coded by a string to a vector of double.
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.
TEMAPEXPORT te::gm::GeomType GetGeomType(const te::map::AbstractLayerPtr &layer)
It gets the geometry type of the given layer.
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.
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 int CalculatePlanarZone(te::gm::Envelope latLongBox)
Calculates the UTM zone from a Geographic envelope.
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.
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.
TEMAPEXPORT te::gm::Envelope GetWorldBoxInPlanar(const te::gm::Envelope &worldBox, int srid)
It gets the requested envelope on a UTM planar projection.
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.
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::da::DataSet * DataSet2Memory(te::da::DataSet *dataset)
It creates a new In-Memory dataset with the items from the given dataset.
TEMAPEXPORT void CopyAbstractLayerInfo(const te::map::AbstractLayer *refLayer, te::map::AbstractLayer *layer)
Make a copy of refLayer abstract attributes to layer. Creating new id.
TEMAPEXPORT std::string GetUTMProj4FromZone(int zone)
Returns proj4 string with UTM projection in the specified zone (Only working for south).
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.
TEMAPEXPORT te::rst::Raster * GetRaster(AbstractLayer *layer)
It gets the raster referenced by the given data set layer.
Namespace for the Raster module of TerraLib.
Namespace for the Symbology Encoding module of TerraLib.
An abstract class for raster data strucutures.