GEOS 3.6.2
GeometryLocation.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: operation/distance/GeometryLocation.java rev. 1.7 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
20#define GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
21
22#include <geos/export.h>
23
24#include <geos/geom/Coordinate.h> // for composition
25
26// Forward declarations
27namespace geos {
28 namespace geom {
29 class Geometry;
30 }
31}
32
33
34namespace geos {
35namespace operation { // geos::operation
36namespace distance { // geos::operation::distance
37
38
50class GEOS_DLL GeometryLocation {
51private:
52 const geom::Geometry *component;
53 int segIndex;
55public:
63 static const int INSIDE_AREA = -1;
64
75 int segIndex, const geom::Coordinate &pt);
76
85 const geom::Coordinate &pt);
86
91
101
106
112};
113
114} // namespace geos::operation::distance
115} // namespace geos::operation
116} // namespace geos
117
118#endif // GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
119
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
GeometryLocation(const geom::Geometry *component, const geom::Coordinate &pt)
Constructs a GeometryLocation specifying a point inside an area geometry.
bool isInsideArea()
Tests whether this location represents a point inside an area geometry.
GeometryLocation(const geom::Geometry *component, int segIndex, const geom::Coordinate &pt)
Constructs a GeometryLocation specifying a point on a geometry, as well as the segment that the point...
static const int INSIDE_AREA
A Special value of segmentIndex used for locations inside area geometries.
Definition GeometryLocation.h:63
const geom::Geometry * getGeometryComponent()
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for computing the distance between geometries.
Definition opDistance.h:23
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25