/usr/include/geos/operation/distance/GeometryLocation.h is in libgeos-dev 3.2.2-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | /**********************************************************************
* $Id: GeometryLocation.h 2561 2009-06-08 10:37:11Z strk $
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: operation/distance/GeometryLocation.java rev. 1.7 (JTS-1.10)
*
**********************************************************************/
#ifndef GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
#define GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
#include <geos/export.h>
#include <geos/geom/Coordinate.h> // for composition
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
}
}
namespace geos {
namespace operation { // geos::operation
namespace distance { // geos::operation::distance
/** \brief
* Represents the location of a point on a Geometry.
*
* Maintains both the actual point location
* (which may not be exact, if the point is not a vertex)
* as well as information about the component
* and segment index where the point occurs.
* Locations inside area Geometrys will not have an associated segment index,
* so in this case the segment index will have the sentinel value of
* INSIDE_AREA.
*/
class GEOS_DLL GeometryLocation {
private:
const geom::Geometry *component;
int segIndex;
geom::Coordinate pt;
public:
/** \brief
* A Special value of segmentIndex used for locations
* inside area geometries.
*
* These locations are not located on a segment,
* and thus do not have an associated segment index.
*/
static const int INSIDE_AREA = -1;
/** \brief
* Constructs a GeometryLocation specifying a point on a geometry,
* as well as the segment that the point is on (or INSIDE_AREA if
* the point is not on a segment).
*
* @param component the component of the geometry containing the point
* @param segIndex the segment index of the location, or INSIDE_AREA
* @param pt the coordinate of the location
*/
GeometryLocation(const geom::Geometry *component,
int segIndex, const geom::Coordinate &pt);
/** \brief
* Constructs a GeometryLocation specifying a point inside an
* area geometry.
*
* @param component the component of the geometry containing the point
* @param pt the coordinate of the location
*/
GeometryLocation(const geom::Geometry *component,
const geom::Coordinate &pt);
/**
* Returns the geometry component on (or in) which this location occurs.
*/
const geom::Geometry* getGeometryComponent();
/**
* Returns the segment index for this location.
*
* If the location is inside an
* area, the index will have the value INSIDE_AREA;
*
* @return the segment index for the location, or INSIDE_AREA
*/
int getSegmentIndex();
/**
* Returns the geom::Coordinate of this location.
*/
geom::Coordinate& getCoordinate();
/** \brief
* Tests whether this location represents a point
* inside an area geometry.
*/
bool isInsideArea();
};
} // namespace geos::operation::distance
} // namespace geos::operation
} // namespace geos
#endif // GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
/**********************************************************************
* $Log$
* Revision 1.1 2006/03/21 17:55:01 strk
* opDistance.h header split
*
**********************************************************************/
|