Closed aslastnikova closed 8 months ago
Hello, @poggenhans, @immel-f, any updates on my pull request?
Hi, and thank you for your MR. I appreciate the effort you must have put into this, but to be honest, it would have been simpler had you raised an issue to discuss potential solutions before implementing one.
I think it is a good idea to add versioning support to lanelet2, but I think your changes touch the interface a bit too much in terms of memory layout and ABI compability for something that probably only a few people will actually use and change.
Here is what I would propose:
AttributeMap
of a primitive if it is different from 1
.1
.ConstPrimitive
and Primitive
classes get getVersion and setVersion respectively that will just return or set the value of that attribute or use 1 as default (I wouldn't offer incrementing because that might be too narrow for some use cases)using Version = std::uint64_t
for better semantics (similarly as we have it with ID). If it is an optional attribute anyways, it makes sense to use the full 64 bits.AttributeMap
.That way we can still offer this feature while still keeping the interface and the ABI stable.
This PR is stale because it has been open for 90 days with no activity. Is this PR still work in progress? If yes, mark it as "WIP" or comment, otherwise it will be closed in 30 days.
This PR was closed because it has been stalled for 30 days with no activity.
Hello, I'm currently working on algorythm to merge changes, made on base of one map, but done by different people. For this reason, I need to determine the last version of changed primitives,luckily, the osm format has "version" field, but in Lanelet2 library the version field was hardcodly set to "1". So, here some updates I've done:
Updated Python API with versioning functionality.