A PreparedGeometry is a shell around a SFCGAL::Geometry.
More...
#include <PreparedGeometry.h>
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/3]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
| ) |
|
◆ PreparedGeometry() [2/3]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
std::unique_ptr< Geometry > && | geometry, |
|
|
srid_t | srid = 0 ) |
◆ PreparedGeometry() [3/3]
SFCGAL::PreparedGeometry::PreparedGeometry |
( |
Geometry * | geometry, |
|
|
srid_t | srid = 0 ) |
◆ ~PreparedGeometry()
SFCGAL::PreparedGeometry::~PreparedGeometry |
( |
| ) |
|
|
virtualdefault |
◆ asEWKB()
auto SFCGAL::PreparedGeometry::asEWKB |
( |
boost::endian::order | wkbOrder = boost::endian::order::native, |
|
|
bool | asHex = false ) const -> std::string |
◆ asEWKT()
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 |
◆ envelope()
auto SFCGAL::PreparedGeometry::envelope |
( |
| ) |
const |
◆ geometry() [1/2]
auto SFCGAL::PreparedGeometry::geometry |
( |
| ) |
|
◆ geometry() [2/2]
auto SFCGAL::PreparedGeometry::geometry |
( |
| ) |
const |
◆ invalidateCache()
void SFCGAL::PreparedGeometry::invalidateCache |
( |
| ) |
|
◆ load()
template<class Archive >
void SFCGAL::PreparedGeometry::load |
( |
Archive & | ar, |
|
|
const unsigned int | ) |
|
inline |
◆ resetGeometry()
void SFCGAL::PreparedGeometry::resetGeometry |
( |
Geometry * | geom | ) |
|
◆ save()
template<class Archive >
void SFCGAL::PreparedGeometry::save |
( |
Archive & | ar, |
|
|
const unsigned int | ) const |
|
inline |
◆ serialize()
template<class Archive >
void SFCGAL::PreparedGeometry::serialize |
( |
Archive & | ar, |
|
|
const unsigned int | version ) |
|
inline |
◆ SRID() [1/2]
srid_t & SFCGAL::PreparedGeometry::SRID |
( |
| ) |
|
|
inline |
◆ SRID() [2/2]
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 |