#include "geoslib_old_f.h"#include "Core/CSV.hpp"#include "Db/Db.hpp"#include "Basic/AStringable.hpp"#include "Basic/Utilities.hpp"#include "Basic/File.hpp"#include "Basic/ASerializable.hpp"#include "Basic/CSVformat.hpp"#include "Polygon/Polygons.hpp"Functions | |
| int | dbPolygonDistance (Db *db, Polygons *polygon, double dmax, int scale, int polin, const NamingConvention &namconv) |
| void | db_polygon (Db *db, const Polygons *polygon, bool flag_sel, bool flag_period, bool flag_nested, const NamingConvention &namconv) |
| int | db_selhull (Db *db1, Db *db2, double dilate, bool verbose, const NamingConvention &namconv) |
Variables | |
| VectorDouble | _emptyVec |
| PolyElem | _emptyElem |
| void db_polygon | ( | Db * | db, |
| const 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 |
| 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 |
| 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 |
| PolyElem _emptyElem |
| VectorDouble _emptyVec |
Create a Polygon by loading the contents of a Neutral File
| neutralFilename | Name of the Neutral File |
| verbose | Verbose flag |