A PreparedGeometry is a shell around a SFCGAL::Geometry.
More...
#include <PreparedGeometry.h>
|
| PreparedGeometry () |
| Default constructor. More...
|
|
| PreparedGeometry (std::unique_ptr< Geometry > &&geometry, srid_t srid=0) |
| Constructor. More...
|
|
| PreparedGeometry (Geometry *geometry, srid_t srid=0) |
| Constructor. More...
|
|
virtual | ~PreparedGeometry () |
|
const Geometry & | geometry () const |
| Geometry accessors. More...
|
|
Geometry & | geometry () |
|
void | resetGeometry (Geometry *geom) |
| Geometry setter. More...
|
|
const srid_t & | SRID () const |
| SRID read only accessor. More...
|
|
srid_t & | SRID () |
| SRID accessor. More...
|
|
const Envelope & | envelope () const |
| Envelope accessor (using cache) More...
|
|
void | invalidateCache () |
| Resets the cache. More...
|
|
std::string | asEWKT (const int &numDecimals=-1) const |
| Convert to an extended WKT (with SRID) More...
|
|
template<class Archive > |
void | save (Archive &ar, const unsigned int) const |
| Serializer. More...
|
|
template<class Archive > |
void | load (Archive &ar, const unsigned int) |
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
| PreparedGeometry () |
| Default constructor. More...
|
|
| PreparedGeometry (std::unique_ptr< Geometry > &&geometry, srid_t srid=0) |
| Constructor. More...
|
|
| PreparedGeometry (Geometry *geometry, srid_t srid=0) |
| Constructor. More...
|
|
virtual | ~PreparedGeometry () |
|
const Geometry & | geometry () const |
| Geometry accessors. More...
|
|
Geometry & | geometry () |
|
void | resetGeometry (Geometry *geom) |
| Geometry setter. More...
|
|
const srid_t & | SRID () const |
| SRID read only accessor. More...
|
|
srid_t & | SRID () |
| SRID accessor. More...
|
|
const Envelope & | envelope () const |
| Envelope accessor (using cache) More...
|
|
void | invalidateCache () |
| Resets the cache. More...
|
|
std::string | asEWKT (const int &numDecimals=-1) const |
| Convert to an extended WKT (with SRID) More...
|
|
template<class Archive > |
void | save (Archive &ar, const unsigned int) const |
| Serializer. More...
|
|
template<class Archive > |
void | load (Archive &ar, const unsigned int) |
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
A PreparedGeometry is a shell around a SFCGAL::Geometry.
It is used to store annex data, like SRID or cached computations
It is noncopyable since it stores a std::unique_ptr<SFCGAL::Geometry>
◆ PreparedGeometry() [1/6]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
| ) |
|
◆ PreparedGeometry() [2/6]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
std::unique_ptr< Geometry > && |
geometry, |
|
|
srid_t |
srid = 0 |
|
) |
| |
◆ PreparedGeometry() [3/6]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
Geometry * |
geometry, |
|
|
srid_t |
srid = 0 |
|
) |
| |
◆ ~PreparedGeometry() [1/2]
SFCGAL::PreparedGeometry::~PreparedGeometry |
( |
| ) |
|
|
virtualdefault |
◆ PreparedGeometry() [4/6]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
| ) |
|
◆ PreparedGeometry() [5/6]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
std::unique_ptr< Geometry > && |
geometry, |
|
|
srid_t |
srid = 0 |
|
) |
| |
◆ PreparedGeometry() [6/6]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
Geometry * |
geometry, |
|
|
srid_t |
srid = 0 |
|
) |
| |
◆ ~PreparedGeometry() [2/2]
virtual SFCGAL::PreparedGeometry::~PreparedGeometry |
( |
| ) |
|
|
virtual |
◆ asEWKT() [1/2]
auto SFCGAL::PreparedGeometry::asEWKT |
( |
const int & |
numDecimals = -1 | ) |
const |
Convert to an extended WKT (with SRID)
- Parameters
-
numDecimals | number of decimals, -1 for keeping the exact rational representation, if possible |
◆ asEWKT() [2/2]
std::string SFCGAL::PreparedGeometry::asEWKT |
( |
const int & |
numDecimals = -1 | ) |
const |
Convert to an extended WKT (with SRID)
- Parameters
-
numDecimals | number of decimals, -1 for keeping the exact rational representation, if possible |
◆ envelope() [1/2]
auto SFCGAL::PreparedGeometry::envelope |
( |
| ) |
const |
◆ envelope() [2/2]
const Envelope& SFCGAL::PreparedGeometry::envelope |
( |
| ) |
const |
◆ geometry() [1/4]
Geometry& SFCGAL::PreparedGeometry::geometry |
( |
| ) |
|
◆ geometry() [2/4]
Geometry& SFCGAL::PreparedGeometry::geometry |
( |
| ) |
|
◆ geometry() [3/4]
auto SFCGAL::PreparedGeometry::geometry |
( |
| ) |
const |
◆ geometry() [4/4]
const Geometry& SFCGAL::PreparedGeometry::geometry |
( |
| ) |
const |
◆ invalidateCache() [1/2]
void SFCGAL::PreparedGeometry::invalidateCache |
( |
| ) |
|
◆ invalidateCache() [2/2]
void SFCGAL::PreparedGeometry::invalidateCache |
( |
| ) |
|
◆ load() [1/2]
template<class Archive >
void SFCGAL::PreparedGeometry::load |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| |
|
inline |
◆ load() [2/2]
template<class Archive >
void SFCGAL::PreparedGeometry::load |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| |
|
inline |
◆ resetGeometry() [1/2]
void SFCGAL::PreparedGeometry::resetGeometry |
( |
Geometry * |
geom | ) |
|
◆ resetGeometry() [2/2]
void SFCGAL::PreparedGeometry::resetGeometry |
( |
Geometry * |
geom | ) |
|
◆ save() [1/2]
template<class Archive >
void SFCGAL::PreparedGeometry::save |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| const |
|
inline |
◆ save() [2/2]
template<class Archive >
void SFCGAL::PreparedGeometry::save |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| const |
|
inline |
◆ serialize() [1/2]
template<class Archive >
void SFCGAL::PreparedGeometry::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
◆ serialize() [2/2]
template<class Archive >
void SFCGAL::PreparedGeometry::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
◆ SRID() [1/4]
srid_t& SFCGAL::PreparedGeometry::SRID |
( |
| ) |
|
|
inline |
◆ SRID() [2/4]
srid_t& SFCGAL::PreparedGeometry::SRID |
( |
| ) |
|
|
inline |
◆ SRID() [3/4]
const srid_t& SFCGAL::PreparedGeometry::SRID |
( |
| ) |
const |
|
inline |
◆ SRID() [4/4]
const srid_t& SFCGAL::PreparedGeometry::SRID |
( |
| ) |
const |
|
inline |
◆ _envelope
boost::optional< Envelope > SFCGAL::PreparedGeometry::_envelope |
|
mutableprotected |
◆ _geometry
std::unique_ptr< Geometry > SFCGAL::PreparedGeometry::_geometry |
|
protected |
◆ _srid
srid_t SFCGAL::PreparedGeometry::_srid |
|
protected |