/usr/include/geos/algorithm/BoundaryNodeRule.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 | /**********************************************************************
* $Id: BoundaryNodeRule.h 2809 2009-12-06 01:05:24Z mloskot $
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2009 Sandro Santilli <strk@keybit.net>
*
* 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: algorithm/BoundaryNodeRule.java rev 1.4 (JTS-1.10)
*
**********************************************************************/
#ifndef GEOS_ALGORITHM_BOUNDARYNODERULE_H
#define GEOS_ALGORITHM_BOUNDARYNODERULE_H
// Forward declarations
// ...
namespace geos {
namespace algorithm { // geos::algorithm
/**
* An interface for rules which determine whether node points
* which are in boundaries of {@link Lineal} geometry components
* are in the boundary of the parent geometry collection.
* The SFS specifies a single kind of boundary node rule,
* the {@link Mod2BoundaryNodeRule} rule.
* However, other kinds of Boundary Node Rules are appropriate
* in specific situations (for instance, linear network topology
* usually follows the {@link EndPointBoundaryNodeRule}.)
* Some JTS operations allow the BoundaryNodeRule to be specified,
* and respect this rule when computing the results of the operation.
*
* @author Martin Davis
* @version 1.7
*
* @see operation::relate::RelateOp
* @see operation::IsSimpleOp
* @see algorithm::PointLocator
*/
class BoundaryNodeRule {
public:
// virtual classes should always have a virtual destructor..
virtual ~BoundaryNodeRule() {}
/**
* Tests whether a point that lies in <tt>boundaryCount</tt>
* geometry component boundaries is considered to form part of
* the boundary of the parent geometry.
*
* @param boundaryCount the number of component boundaries that
* this point occurs in
* @return true if points in this number of boundaries lie in
* the parent boundary
*/
virtual bool isInBoundary(int boundaryCount) const=0;
/** \brief
* The Mod-2 Boundary Node Rule (which is the rule specified
* in the OGC SFS).
*
* @see Mod2BoundaryNodeRule
*/
static const BoundaryNodeRule& MOD2_BOUNDARY_RULE;
/** \brief
* The Endpoint Boundary Node Rule.
*
* @see EndPointBoundaryNodeRule
*/
static const BoundaryNodeRule& ENDPOINT_BOUNDARY_RULE;
/** \brief
* The MultiValent Endpoint Boundary Node Rule.
*
* @see MultiValentEndPointBoundaryNodeRule
*/
static const BoundaryNodeRule& MULTIVALENT_ENDPOINT_BOUNDARY_RULE;
/** \brief
* The Monovalent Endpoint Boundary Node Rule.
*
* @see MonoValentEndPointBoundaryNodeRule
*/
static const BoundaryNodeRule& MONOVALENT_ENDPOINT_BOUNDARY_RULE;
/** \brief
* The Boundary Node Rule specified by the OGC Simple Features
* Specification, which is the same as the Mod-2 rule.
*
* @see Mod2BoundaryNodeRule
*/
static const BoundaryNodeRule& OGC_SFS_BOUNDARY_RULE;
};
} // namespace geos::algorithm
} // namespace geos
#endif // GEOS_ALGORITHM_BOUNDARYNODERULE_H
|