4 #ifndef FIRE_GEAR_GEOM_GEOMETRYCONVERTER_HPP_INCLUDED
5 #define FIRE_GEAR_GEOM_GEOMETRYCONVERTER_HPP_INCLUDED
7 #include <geos/geom/PrecisionModel.h>
11 #include "fire/export.hpp"
13 #include "fire/gear/geom/GeometryCache.hpp"
14 #include "fire/gear/geom/PrecisionModel.hpp"
19 class GeometryFactory;
20 class CoordinateSequence;
28 class GeometryFactory;
29 class CoordinateSequence;
34 class GeometryCollection;
85 geos::geom::Geometry* convert(
const Geometry& geometry);
102 Geometry* convert(
const geos::geom::Geometry& geometry);
119 geos::geom::Geometry* createPoint(
const Geometry& geometry);
136 geos::geom::Geometry* createLineString(
const Geometry& geometry);
153 geos::geom::Geometry* createLinearRing(
const Geometry& geometry);
170 geos::geom::Geometry* createPolygon(
const Geometry& geometry);
187 geos::geom::Geometry* createGeometryCollection(
const Geometry& geometry);
204 geos::geom::Geometry* createMultiPoint(
const Geometry& geometry);
221 geos::geom::Geometry* createMultiLineString(
const Geometry& geometry);
238 geos::geom::Geometry* createMultiPolygon(
const Geometry& geometry);
255 Geometry* createPoint(
const geos::geom::Geometry& geometry);
272 Geometry* createLineString(
const geos::geom::Geometry& geometry);
289 Geometry* createLinearRing(
const geos::geom::Geometry& geometry);
306 Geometry* createPolygon(
const geos::geom::Geometry& geometry);
323 Geometry* createGeometryCollection(
const geos::geom::Geometry& geometry);
342 static boost::shared_ptr< geos::geom::GeometryFactory > getGeosGeometryFactory(
GeometryFactory* geometryFactory);
359 static boost::shared_ptr< geos::geom::PrecisionModel > getGeosPrecisionModel(
const PrecisionModel& precisionModel);
381 static boost::shared_ptr< geos::geom::Geometry > toGeosGeometry(
Geometry& geometry,
bool evaluateEnvelope =
false);
398 static Geometry* fromGeosGeometry(
const geos::geom::Geometry& geometry);
432 static Envelope* fromGeosEnvelope(geos::geom::Envelope* envelope);
449 static std::vector< CoordinateSequence* >* getAllCoordinateSequences(
const Geometry& geometry);
466 static CoordinateSequence* fromGeosCoordinateSequence(
const geos::geom::CoordinateSequence& geosCoordinateSequence);
483 static geos::geom::CoordinateSequence* toGeosCoordinateSequence(
const CoordinateSequence& coordinateSequence);
500 static void updateCoordinateSequence(
Geometry& fireGeometry, geos::geom::Geometry* geosGeometry);
551 static geos::geom::CoordinateSequence* getGeosCoordinates(
Geometry* geometry);
Definition: PrecisionModel.hpp:50
Definition: GeometryConverter.hpp:67
Definition: GeometryFactory.hpp:52
Definition: Envelope.hpp:31
Definition: CoordinateSequence.hpp:49
Definition: Geometry.hpp:69
Type
Definition: PrecisionModel.hpp:77