- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

# FuzzyPointLocator.h

    00001 /**********************************************************************
    00002  * $Id: FuzzyPointLocator.h 2780 2009-12-03 19:46:43Z mloskot $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2006 Refractions Research Inc.
    00008  *
    00009  * This is free software; you can redistribute and/or modify it under
    00010  * the terms of the GNU Lesser General Public Licence as published
    00011  * by the Free Software Foundation.
    00012  * See the COPYING file for more information.
    00013  *
    00014  ***********************************************************************
    00015  *
    00016  * Last port: operation/overlay/validate/FuzzyPointLocator.java rev. 1.1 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_OP_OVERLAY_FUZZYPOINTLOCATOR_H
    00021 #define GEOS_OP_OVERLAY_FUZZYPOINTLOCATOR_H
    00022
    00023 #include <geos/algorithm/PointLocator.h> // for composition
    00024 #include <geos/geom/Geometry.h> // for auto_ptr visibility of dtor
    00025 #include <geos/geom/Location.h> // for Location::Value enum
    00026
    00027 #include <vector>
    00028 #include <memory> // for auto_ptr
    00029
    00030 // Forward declarations
    00031 namespace geos {
    00032         namespace geom {
    00033                 class Geometry;
    00034                 class Coordinate;
    00035         }
    00036 }
    00037
    00038 namespace geos {
    00039 namespace operation { // geos::operation
    00040 namespace overlay { // geos::operation::overlay
    00041 namespace validate { // geos::operation::overlay::validate
    00042
    00053 class FuzzyPointLocator {
    00054
    00055 public:
    00056
    00057         FuzzyPointLocator(const geom::Geometry& geom, double nTolerance);
    00058
    00059         geom::Location::Value getLocation(const geom::Coordinate& pt);
    00060
    00061 private:
    00062
    00063         const geom::Geometry& g;
    00064
    00065         double tolerance;
    00066
    00067         algorithm::PointLocator ptLocator;
    00068
    00069         std::auto_ptr<geom::Geometry> linework;
    00070
    00071         // this function has been obsoleted
    00072         std::auto_ptr<geom::Geometry> getLineWork(const geom::Geometry& geom);
    00073
    00075         //
    00078         std::auto_ptr<geom::Geometry> extractLineWork(const geom::Geometry& geom);
    00079
    00080     // Declare type as noncopyable
    00081     FuzzyPointLocator(const FuzzyPointLocator& other);
    00082     FuzzyPointLocator& operator=(const FuzzyPointLocator& rhs);
    00083 };
    00084
    00085 } // namespace geos::operation::overlay::validate
    00086 } // namespace geos::operation::overlay
    00087 } // namespace geos::operation
    00088 } // namespace geos
    00089
    00090 #endif // ndef GEOS_OP_OVERLAY_FUZZYPOINTLOCATOR_H
    00091
    00092 /**********************************************************************
    00093  * $Log$
    00094  **********************************************************************/
    00095