4 #ifndef FIRE_GEAR_GEOM_ENVELOPE_HPP_INCLUDED
5 #define FIRE_GEAR_GEOM_ENVELOPE_HPP_INCLUDED
7 #include <geos/geom/Envelope.h>
9 #include <boost/smart_ptr/shared_ptr.hpp>
14 #include "fire/export.hpp"
16 #include "fire/gear/projection/Projector.hpp"
17 #include "fire/gear/geom/Coordinate.hpp"
18 #include "fire/gear/Entity.hpp"
39 std::auto_ptr< geos::geom::Envelope > envelope;
47 std::auto_ptr< fire::gear::projection::Projector > _projector;
63 Envelope(
double x1,
double x2,
double y1,
double y2,
int srid = 0);
105 void init(
int srid = 0);
114 void init(
double x1,
double x2,
double y1,
double y2,
int srid = 0);
136 void setDestinationProjection(
int destSrid);
146 double getWidth()
const;
151 double getHeight()
const;
156 double getArea()
const;
161 double getMaxX()
const;
166 double getMaxY()
const;
171 double getMinX()
const;
176 double getMinY()
const;
193 void translate(
double deltaX,
double deltaY);
199 void expandBy(
double deltaX,
double deltaY);
204 void expandBy(
double distance);
210 void expandToInclude(
double x,
double y);
225 void setSrid(
int srid);
232 bool contains(
double x,
double y)
const;
251 bool intersects(
double x,
double y)
const;
280 bool isPoint()
const;
292 bool covers(
double x,
double y)
const;
322 std::string toString()
const;
328 double distance(
const Envelope& envelope)
const;
330 void project(
const int& srid);
337 void _init(
int srid);
Definition: Coordinate.hpp:48
Definition: EnvelopeSh.hpp:18
Definition: Entity.hpp:44
Definition: Envelope.hpp:31
Definition: Geometry.hpp:69