Comments (3)
Simplified test case:
// NaN start fraction
// https://github.com/libgeos/geos/issues/1077
template<>
template<>
void object::test<7>
()
{
input_ = fromWKT("LINESTRING EMPTY");
double start = std::numeric_limits<double>::quiet_NaN();
double end = 0.1;
result_ = GEOSLineSubstring(input_, start, end);
ensure(result_ == nullptr);
}
from geos.
Does this indicate we should sanitize all numeric inputs (e.g. by replacing NaN with 0, or else throwing)?
What do other C libs do?
from geos.
I think we just need more testing of NaN inputs. I don't think there's a universal right way to handle them.
from geos.
Related Issues (20)
- Edge of intersection not matching the edge of original polygon HOT 2
- Dynamic library is not fully setup by `make install` ( missing ldconfig ) HOT 3
- `include/geos/constants.h` - relies on transitive inclusion of `std::size_t` which breaks build in C++23 language mode
- Build fails in C++23 language mode due to one forward declaration HOT 3
- `voronoi_polygons` results in "IllegalArgumentException: point array must contain 0 or >1 elements" HOT 2
- could not find libgeos_c HOT 1
- Polygon buffer removes its hole when quadSegs = 0
- Doubts about the goes C interface HOT 1
- `simplify` with `preserve_topology=True` difference for MultiLineString between 3.12.1 and 3.12.2
- MSVC 32-bit test failure with LargestEmptyCircle HOT 1
- Is it possible to export to dxf format HOT 1
- Refactor MCIndexSegmentSetMutualIntersector to match JTS
- MakeValid method HOT 3
- How to split a polygon with a line? HOT 1
- OverlayNG should return Point for intersection between area and zero-length LineString
- Remove prebuilt capi_indexed_predicate binary
- RelateNG DE9IM regression HOT 4
- RelateNG Equals regression HOT 4
- RelateNG boundaryNode DE9IM regression HOT 11
- Dimension handling with setPrecision / reducePrecision HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geos.