/usr/include/geos/operation/relate/RelateOp.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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | /**********************************************************************
* $Id: RelateOp.h 2557 2009-06-08 09:30:55Z 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/relate/RelateOp.java rev. 1.19 (JTS-1.10)
*
**********************************************************************/
#ifndef GEOS_OP_RELATE_RELATEOP_H
#define GEOS_OP_RELATE_RELATEOP_H
#include <geos/export.h>
#include <geos/operation/GeometryGraphOperation.h> // for inheritance
#include <geos/operation/relate/RelateComputer.h> // for composition
// Forward declarations
namespace geos {
namespace algorithm {
class BoundaryNodeRule;
}
namespace geom {
class IntersectionMatrix;
class Geometry;
}
}
namespace geos {
namespace operation { // geos::operation
namespace relate { // geos::operation::relate
/** \brief
* Implements the SFS <tt>relate()</tt> operation on two
* geom::Geometry objects.
*
* This class supports specifying a custom algorithm::BoundaryNodeRule
* to be used during the relate computation.
*
* <b>Note:</b> custom Boundary Node Rules do not (currently)
* affect the results of other Geometry methods (such
* as {@link Geometry::getBoundary}. The results of
* these methods may not be consistent with the relationship computed by
* a custom Boundary Node Rule.
*
*/
class GEOS_DLL RelateOp: public GeometryGraphOperation {
public:
/** \brief
* Computes the geom::IntersectionMatrix for the spatial relationship
* between two geom::Geometry objects, using the default (OGC SFS)
* Boundary Node Rule
*
* @param a a Geometry to test. Ownership left to caller.
* @param b a Geometry to test. Ownership left to caller.
*
* @return the IntersectonMatrix for the spatial relationship
* between the geometries. Ownership transferred.
*/
static geom::IntersectionMatrix* relate(
const geom::Geometry *a,
const geom::Geometry *b);
/** \brief
* Computes the geom::IntersectionMatrix for the spatial relationship
* between two geom::Geometry objects, using a specified
* Boundary Node Rule
*
* @param a a Geometry to test. Ownership left to caller.
* @param b a Geometry to test. Ownership left to caller.
* @param boundaryNodeRule the Boundary Node Rule to use.
*
* @return the IntersectonMatrix for the spatial relationship
* between the geometries. Ownership transferred.
*/
static geom::IntersectionMatrix* relate(
const geom::Geometry *a,
const geom::Geometry *b,
const algorithm::BoundaryNodeRule& boundaryNodeRule);
/** \brief
* Creates a new Relate operation, using the default (OGC SFS)
* Boundary Node Rule.
*
* @param g0 a Geometry to relate. Ownership left to caller.
* @param g1 another Geometry to relate. Ownership to caller.
*/
RelateOp(const geom::Geometry *g0,
const geom::Geometry *g1);
/** \brief
* Creates a new Relate operation with a specified
* Boundary Node Rule.
*
* @param g0 a Geometry to relate. Ownership left to caller.
* @param g1 another Geometry to relate. Ownership to caller.
* @param boundaryNodeRule the Boundary Node Rule to use
*/
RelateOp(const geom::Geometry *g0,
const geom::Geometry *g1,
const algorithm::BoundaryNodeRule& boundaryNodeRule);
virtual ~RelateOp();
/** \brief
* Gets the IntersectionMatrix for the spatial relationship
* between the input geometries.
*
* @return the geom::IntersectionMatrix for the spatial
* relationship between the input geometries.
* Ownership transferred.
*/
geom::IntersectionMatrix* getIntersectionMatrix();
private:
RelateComputer relateComp;
};
} // namespace geos:operation:relate
} // namespace geos:operation
} // namespace geos
#endif // GEOS_OP_RELATE_RELATEOP_H
/**********************************************************************
* $Log$
* Revision 1.1 2006/03/21 13:11:29 strk
* opRelate.h header split
*
**********************************************************************/
|