first .osm format import

- import osm convert it to Drawing and use it as resolved path.
- Not ready , first test over lab/valbonne_oct_2020.osm
This commit is contained in:
philippe lhardy
2020-10-31 15:44:23 +01:00
parent 99716e57d3
commit 8af19bdb59
12 changed files with 17220 additions and 503 deletions

View File

@@ -0,0 +1,37 @@
package org.artisanlogiciel.osm;
public class NodeRef {
long id;
Node node;
public NodeRef(long id) {
this.id = id;
}
public void setNode(Node node) {
this.node = node;
}
public Node getNode()
{
return node;
}
public String toString()
{
return node != null ? node.toString(): "nd:" + id;
}
@Override
public int hashCode() {
return Long.hashCode(id);
}
@Override
public boolean equals(Object o) {
if ( o instanceof NodeRef ) {
return ((NodeRef) o).id == id;
}
return false;
}
}