Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
flet-libgeos / include / geos / index / strtree / GeometryItemDistance.h
Size: Mime:
/**********************************************************************
 *
 * GEOS - Geometry Engine Open Source
 * http://geos.osgeo.org
 *
 * Copyright (C) 2016 Daniel Baston
 *
 * 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: index/strtree/GeometryItemDistance.java (JTS-1.14)
 *
 **********************************************************************/

#pragma once

#include <geos/geom/Geometry.h>
#include <geos/index/strtree/ItemDistance.h>

namespace geos {
namespace index {
namespace strtree {
class GEOS_DLL GeometryItemDistance : public ItemDistance {
public:
    /**
     * Computes the distance between two {@link Geometry} items,
     * using the {@link Geometry#distance(Geometry)} method.
     *
     * @param item1 an item which is a Geometry
     * @param item2 an item which is a Geometry
     * @return the distance between the geometries
     * @throws ClassCastException if either item is not a Geometry
     */
    double distance(const ItemBoundable* item1, const ItemBoundable* item2) override;
};

}
}
}