#include "gstlearn_export.hpp"
#include "Polygon/PolyElem.hpp"
#include "Basic/VectorNumT.hpp"
#include "Basic/AStringable.hpp"
#include "Basic/ASerializable.hpp"
#include "Basic/CSVformat.hpp"
Classes | |
class | Polygons |
Functions | |
GSTLEARN_EXPORT void | db_polygon (Db *db, Polygons *polygon, bool flag_sel=false, bool flag_period=false, bool flag_nested=false, const NamingConvention &namconv=NamingConvention("Polygon", true, true, true, ELoc::fromKey("SEL"))) |
GSTLEARN_EXPORT int | dbPolygonDistance (Db *db, Polygons *polygon, double dmax, int scale, int polin, const NamingConvention &namconv=NamingConvention("Distance")) |
GSTLEARN_EXPORT int | db_selhull (Db *db1, Db *db2, double dilate=0., bool verbose=false, const NamingConvention &namconv=NamingConvention("Hull", true, true, true, ELoc::fromKey("SEL"))) |
GSTLEARN_EXPORT void db_polygon | ( | Db * | db, |
Polygons * | polygon, | ||
bool | flag_sel, | ||
bool | flag_period, | ||
bool | flag_nested, | ||
const NamingConvention & | namconv | ||
) |
Create a selection if the samples of a Db are inside Polygons
[in] | db | Db structure |
[in] | polygon | Polygons structure |
[in] | flag_sel | true if previous selection must be taken into account |
[in] | flag_period | true if first coordinate is longitude (in degree) and must be cycled for the check |
[in] | flag_nested | Option for nested polyelems (see details) |
[in] | namconv | Naming Convention |
GSTLEARN_EXPORT int db_selhull | ( | Db * | db1, |
Db * | db2, | ||
double | dilate, | ||
bool | verbose, | ||
const NamingConvention & | namconv | ||
) |
Select samples from a file according to the 2-D convex hull computed over the active samples of a second file
[in] | db1 | descriptor of the Db serving for convex hull calculation |
[in] | db2 | descriptor of the Db where the mask must be stored |
[in] | dilate | Radius of the dilation |
[in] | verbose | Verbose flag |
[in] | namconv | Naming convention |
GSTLEARN_EXPORT int dbPolygonDistance | ( | Db * | db, |
Polygons * | polygon, | ||
double | dmax, | ||
int | scale, | ||
int | polin, | ||
const NamingConvention & | namconv | ||
) |
Determine the distance to a polyline
[in] | db | Db structure |
[in] | polygon | Polygons structure |
[in] | dmax | Maximum distance |
[in] | scale | Scaling option 0 : no scaling >0 : scaling between 0 and 1 <0 : scaling between 1 and 0 |
[in] | polin | Option for checking against the polygon 0 : no check >0 : if sample is outside polygon, return TEST <0 : if sample is inside polygon, return TEST |
[in] | namconv | Naming convention |