Comments (6)
Ok, so you adapt Eigen::Matrix
to Boost.Geometry Point concept. The code above looks ok.
What's the program you're compiling? I see that you're creating R-tree and passing std::pair<Eigen::Matrix<...>, double>
as ValueType. Is that correct? Or are you calling some algorithm?
The NOT_VALID_INDEXABLE_TYPE
MPL assertion occurs when tag<ValueType>::type
is neither point_tag, box_tag nor segment_tag. Could you check in your code if the tag is set properly? E.g.: std::cout << boost::is_same<bg::tag<Eigen::Matrix<...>>::type, point_tag>::value;
.
How are you including Boost.Geometry in your code and what is the order of includes? It's possible that the order of #includes
is important for GCC. This wouldn't be the first time something like this happen with this compiler.
from geometry.
// [[Rcpp::export]]
void test_tag()
{
Rcout << boost::is_same<bg::tag<Eigen::Matrix<double, 2, 1>>::type, bg::point_tag>::value << std::endl;
}
Returns 1.
from geometry.
Tried moving header to first and last in source file without luck.
from geometry.
This may be a problem with wrong traits specializations. If Eigen::Matrix
rows, cols, options etc. are int
, not std::size_t
then DimensionCount
in specializations should be of type int
too.
Btw, I see that Eigen::Matrix
is defined as:
Matrix<typename Scalar,
int RowsAtCompileTime,
int ColsAtCompileTime,
int Options = 0,
int MaxRowsAtCompileTime = RowsAtCompileTime,
int MaxColsAtCompileTime = ColsAtCompileTime>
Maybe this particular compiler would prefer to have all 6 template parameters in specializations? You pass only 3.
Ok, so bg::tag
seems to work. How about some simple algorithm? Does distance(p1, p2)
or disjoint(p1, p2)
compile and generate correct result?
from geometry.
from geometry.
Ok, great.
from geometry.
Related Issues (20)
- MSVC CI may not take effect HOT 2
- Mandate C++17 by default HOT 6
- union_ returns invalid polygon HOT 3
- Can't build with geometry.hpp in CLR project HOT 2
- Union producing self intersections after 1.78 HOT 3
- union_ perturbs a point and returns wrong result
- invalid intersection for CCW polygons HOT 3
- Wrong result in difference of linestrings
- buffer returns an invalid result HOT 1
- intersection returns an extra point in the output
- Combination of within and difference return wrong result
- within returns a wrong result with multi-linestrings
- static assertion failed: Not implemented for this Geometry's coordinate system HOT 1
- difference returns wrong results if double is the data type HOT 1
- Difference returns wrong result if hole touch the boundary of subtrahend HOT 2
- [Question] Get edges intersected with bounding boxes using boost::geometry::index::intersects HOT 2
- `boost::geometry::buffer()` of linestring returns inner polygon HOT 3
- Intersection gives incorrect result for polygon and line HOT 1
- Difference failed on two simple integer multi polygons (integral geometries cannot represent non-integral vertices/intersections) HOT 7
- Compilation Error with Boost.Geometry and NVCC (CUDA 12.4): '__T0' does not name a type 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 geometry.