17 #include <geos/geom/Location.h>
18 #include <geos/geom/Position.h>
19 #include <geos/export.h>
95 int aDim = DIM_NOT_PART;
100 int bDim = DIM_NOT_PART;
101 bool bIsHole =
false;
107 std::string dimensionSymbol(
int dim)
const;
108 void locationString(
int index,
bool isForward, std::ostream& os)
const;
126 , aLocLeft(LOC_UNKNOWN)
127 , aLocRight(LOC_UNKNOWN)
128 , aLocLine(LOC_UNKNOWN)
131 , bLocLeft(LOC_UNKNOWN)
132 , bLocRight(LOC_UNKNOWN)
133 , bLocLine(LOC_UNKNOWN) {};
144 initBoundary(p_index, p_locLeft, p_locRight, p_isHole);
147 int dimension(
int index)
const {
return index == 0 ? aDim : bDim; };
148 void initBoundary(
int index,
Location locLeft,
Location locRight,
bool p_isHole);
149 void initCollapse(
int index,
bool p_isHole);
150 void initLine(
int index);
151 void initNotPart(
int index);
162 void setLocationLine(
int index,
Location loc);
163 void setLocationAll(
int index,
Location loc);
164 void setLocationCollapse(
int index);
172 bool isLine(
int index)
const;
173 bool isLinear(
int index)
const;
174 bool isKnown(
int index)
const;
175 bool isNotPart(
int index)
const;
176 bool isBoundaryEither()
const;
177 bool isBoundaryBoth()
const;
186 bool isBoundaryCollapse()
const;
192 bool isBoundaryTouch()
const;
193 bool isBoundary(
int index)
const;
194 bool isLineLocationUnknown(
int index)
const;
200 bool isBoundarySingleton()
const;
207 bool isLineInArea(
int index)
const;
208 bool isHole(
int index)
const;
209 bool isCollapse(
int index)
const;
210 Location getLineLocation(
int index)
const;
216 bool isInteriorCollapse()
const;
222 bool isCollapseAndNotPartInterior()
const;
230 bool isLineInterior(
int index)
const;
243 Location getLocationBoundaryOrLine(
int index,
int position,
bool isForward)
const;
251 Location getLocation(
int index)
const;
252 Location getLocation(
int index,
int position,
bool isForward)
const;
253 bool hasSides(
int index)
const;
258 friend std::ostream& operator<<(std::ostream& os,
const OverlayLabel& ol);
259 void toString(
bool isForward, std::ostream& os)
const;
A Position indicates the position of a Location relative to a graph component (Node, Edge, or Area).
Definition: Position.h:39
Definition: OverlayLabel.h:90
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:34