Comments (2)
test.cpp
#define USE_UNSTABLE_GEOS_CPP_API
#include <geos/geom/GeometryFactory.h>
#include <iostream>
int main() {
auto gfact = geos::geom::GeometryFactory::create();
auto pt = gfact->createPoint();
std::cout << pt->toString() << std::endl;
return 0;
}
Compiles fine with
g++ test.cpp -o test -lgeos
What are you doing differently?
from geos.
Oh, I put #define USE_UNSTABLE_GEOS_CPP_API after #include Geos headers.
My bad.
But this discribtion in README is a little misleading.
"To remove the compiler warning, define USE_UNSTABLE_GEOS_CPP_API somewhere in the program."
from geos.
Related Issues (20)
- GEOSLineSubstring segfault with fraction = NaN HOT 3
- Stack overflow in LineSegment.h
- Segmentation Fault in FacetSequence.cpp
- heap-buffer overflow in geos_ts_c.cpp HOT 1
- heap-buffer overflow at line 2631 in geos_ts_c.cpp HOT 1
- stack-buffer-overflow related to non-DE9IM argument for GEOSRelatePatternMatch_r
- Encountered some issues when using 'voronoi_polygons' HOT 1
- What's the format of MULTIPOINT ? HOT 2
- GEOS policy for Z ordinate value population? HOT 18
- CoordinateSequence constructors change dimension to 3, fail to set hasZ HOT 2
- Versioning confusion
- [Documentation][CAPI] Missing comment lines for `tree` parameter` in `GEOSSTRtree_(build|destroy)` methods
- Standardize capi unit tests to always use the non-reentrant API HOT 1
- Add function to split geometries HOT 2
- CMake CMP0153 HOT 1
- CompoundCurve construction should ensure sections are continuous
- `GEOSBuffer` on a valid Polygon creates MultiPolygon with sliver geometry HOT 1
- Geometry produced by ST_SimplifyPreserveTopology is not stable across multiple runs HOT 28
- 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
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.