/usr/include/geos/geom/LinearRing.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 | /**********************************************************************
* $Id: LinearRing.h 2556 2009-06-06 22:22:28Z strk $
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
* Copyright (C) 2005 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: geom/LinearRing.java rev. 1.32 (JTS-1.10)
*
**********************************************************************/
#ifndef GEOS_GEOS_LINEARRING_H
#define GEOS_GEOS_LINEARRING_H
#include <geos/export.h>
#include <string>
#include <vector>
#include <geos/platform.h>
#include <geos/geom/LineString.h>
#include <geos/inline.h>
// Forward declarations
namespace geos {
namespace geom { // geos::geom
class Coordinate;
class CoordinateArraySequence;
}
}
namespace geos {
namespace geom { // geos::geom
/**
* \brief
* Models an OGC SFS <code>LinearRing</code>.
*
* A LinearRing is a LineString which is both closed and simple.
* In other words,
* the first and last coordinate in the ring must be equal,
* and the interior of the ring must not self-intersect.
* Either orientation of the ring is allowed.
*
* A ring must have either 0 or 4 or more points.
* The first and last points must be equal (in 2D).
* If these conditions are not met, the constructors throw
* an {@link IllegalArgumentException}
*/
class GEOS_DLL LinearRing : public LineString {
public:
LinearRing(const LinearRing &lr);
/**
* \brief Constructs a <code>LinearRing</code> with the given points.
*
* @param points points forming a closed and simple linestring, or
* <code>null</code> or an empty array to create the empty
* geometry.
* This array must not contain <code>null</code> elements.
* If not null LinearRing will take ownership of points.
*
* @param newFactory the GeometryFactory used to create this geometry
*
*/
LinearRing(CoordinateSequence* points,
const GeometryFactory *newFactory);
/// Hopefully cleaner version of the above
LinearRing(CoordinateSequence::AutoPtr points,
const GeometryFactory *newFactory);
virtual Geometry *clone() const { return new LinearRing(*this); }
virtual ~LinearRing();
/** \brief
* Returns <code>Dimension.FALSE</code>, since by definition
* LinearRings do not have a boundary.
*
* @return Dimension::False
*/
int getBoundaryDimension() const;
/** \brief
* Returns <code>true</code>, since by definition LinearRings
* are always simple.
*
* @return <code>true</code>
*
* @see Geometry::isSimple
*/
bool isSimple() const;
std::string getGeometryType() const;
virtual GeometryTypeId getGeometryTypeId() const;
void setPoints(CoordinateSequence* cl);
Geometry* reverse() const;
private:
void validateConstruction();
};
} // namespace geos::geom
} // namespace geos
//#ifdef GEOS_INLINE
//# include "geos/geom/LinearRing.inl"
//#endif
#endif // ndef GEOS_GEOS_LINEARRING_H
/**********************************************************************
* $Log$
* Revision 1.4 2006/04/11 11:16:25 strk
* Added LineString and LinearRing constructors by auto_ptr
*
* Revision 1.3 2006/04/10 17:35:44 strk
* Changed LineString::points and Point::coordinates to be wrapped
* in an auto_ptr<>. This should close bugs #86 and #89
*
* Revision 1.2 2006/03/24 09:52:41 strk
* USE_INLINE => GEOS_INLINE
*
* Revision 1.1 2006/03/09 16:46:49 strk
* geos::geom namespace definition, first pass at headers split
*
**********************************************************************/
|