Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions capi/geos_ts_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,10 @@ extern "C" {
GEOSGridIntersectionFractions_r(GEOSContextHandle_t extHandle, const Geometry* g, double xmin, double ymin,
double xmax, double ymax, unsigned nx, unsigned ny, float* buf)
{
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
return execute(extHandle, 0, [&]() {
Envelope env(xmin, xmax, ymin, ymax);
double dx = env.getWidth() / static_cast<double>(nx);
Expand All @@ -1900,6 +1904,9 @@ extern "C" {

return 1;
});
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
}

Geometry*
Expand Down
3 changes: 2 additions & 1 deletion include/geos/algorithm/distance/DistanceToPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#pragma once

#include <geos/export.h>
#include <geos/geom/LineSegment.h> // for composition

namespace geos {
Expand All @@ -43,7 +44,7 @@ namespace distance { // geos::algorithm::distance
*
* Also computes two points which are separated by the distance.
*/
class DistanceToPoint {
class GEOS_DLL DistanceToPoint {
public:

DistanceToPoint() {}
Expand Down
Loading