SFCGAL 2.3.0
SFCGAL::Surface Class Reference

Abstract Surface class. More...

#include <Surface.h>

Public Member Functions

 ~Surface () override
 destructor
auto dimension () const -> int override
 Get the dimension of the surface.

Protected Member Functions

 Surface ()
 [OGC/SFS]"The area of this Surface, as measured in the spatial reference system of this Surface"
 Surface (Surface const &other)
 no copy constructor

Detailed Description

Abstract Surface class.

Constructor & Destructor Documentation

◆ ~Surface()

SFCGAL::Surface::~Surface ( )
overridedefault

destructor

◆ Surface() [1/2]

SFCGAL::Surface::Surface ( )
protecteddefault

[OGC/SFS]"The area of this Surface, as measured in the spatial reference system of this Surface"

[OGC/SFS]"The mathematical centroid for this Surface as a Point. The result in not guaranteed to be on this Surface" [OGC/SFS]"A Point guaranteed to be on this Surface"

Warning
empty point is isEmpty() no default constructor

◆ Surface() [2/2]

SFCGAL::Surface::Surface ( Surface const & other)
protecteddefault

no copy constructor

Parameters
otherThe surface to copy from

Member Function Documentation

◆ dimension()

auto SFCGAL::Surface::dimension ( ) const -> int
nodiscardoverride

Get the dimension of the surface.

Returns
2 (surfaces are 2-dimensional)