-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core OSHDB classes need javadoc #70
Comments
A.) Yes, for the current version this is the right way to create an OSHEntity. long id = osm_id;
List<OSMRelations> versions = ...;
List<OSHNode> relationNodes = ...;
List<OSHWay relationWays = ...;
long baseId = 0L;
long baseTimestamp = 0L;
long baseLongitude = 0L;
long baseLatitude = 0L;
ByteBuffer record = OSHRelation.buildRecord(id, relation, relationNodes, relationWays,baseId, baseTimestamp, baseLongitude, baseLatitude); B.) this question is a little bit confusing. What are the "just the current ones", for an OSHRelation? |
A) could you please point me to where I can find the OSHRelation.buildRecord() method? Am I missing something? I was looking at
B) that is also where I need clarification: what is meant by e.g. Collection nodes? The OSHObject of the Nodes being part of the Relation or also those that might have bin deleted over time (i.e. in earlier version of the the OSHRelation)? |
A), this is basically the same as the code snippet I show you. buildRecord is a new version in an side branch, but it is the same as build. B) we talk about OSHObjects, H for history, so all information over time are relevant :-) in this case, all OSHNodes (which are or were part of the OSHRelation as member) and all OSHWays (which are or were part of the OSHRelation as member) |
👍 thanks for clarification. I will leave it open because javadoc is still missing (and promised with new version 😂 ) |
(please try to use more specific issue titles 🙏 ) |
Sorry for coming back again. Maybe I am not getting this right again, but aren't we doubling things here? Each element of |
Not necessarily, |
For unexperienced developers this: https://github.com/GIScience/oshdb/blob/master/oshdb/src/main/java/org/heigit/bigspatialdata/oshdb/osh/OSHRelation.java#L306 needs to get javadoc!
A) is this the right way to create an OSHEntity (in this example Type: Relation)
B) What are "nodes" and "ways"? All ways that were ever part of of the OSHRelation or just the current ones?
The text was updated successfully, but these errors were encountered: