| 6 | static auto s_logger = log4cplus::Logger::getInstance("generative.geometryflattener"); |
| 7 | |
| 8 | static bool is_multi_geometry(const geos::geom::Geometry* geometry) |
| 9 | { |
| 10 | switch (geometry->getGeometryTypeId()) |
| 11 | { |
| 12 | case geos::geom::GeometryTypeId::GEOS_CIRCULARSTRING: |
| 13 | case geos::geom::GeometryTypeId::GEOS_CURVEPOLYGON: |
| 14 | case geos::geom::GeometryTypeId::GEOS_LINEARRING: |
| 15 | case geos::geom::GeometryTypeId::GEOS_LINESTRING: |
| 16 | case geos::geom::GeometryTypeId::GEOS_POINT: |
| 17 | case geos::geom::GeometryTypeId::GEOS_POLYGON: |
| 18 | return false; |
| 19 | |
| 20 | case geos::geom::GeometryTypeId::GEOS_COMPOUNDCURVE: |
| 21 | case geos::geom::GeometryTypeId::GEOS_GEOMETRYCOLLECTION: |
| 22 | case geos::geom::GeometryTypeId::GEOS_MULTICURVE: |
| 23 | case geos::geom::GeometryTypeId::GEOS_MULTILINESTRING: |
| 24 | case geos::geom::GeometryTypeId::GEOS_MULTIPOINT: |
| 25 | case geos::geom::GeometryTypeId::GEOS_MULTIPOLYGON: |
| 26 | case geos::geom::GeometryTypeId::GEOS_MULTISURFACE: |
| 27 | return true; |
| 28 | } |
| 29 | return false; |
| 30 | } |
| 31 | |
| 32 | namespace generative { |
| 33 | GeometryFlattener::GeometryFlattener(const geos::geom::Geometry& geometry) : m_geometry(geometry) |
no outgoing calls
no test coverage detected