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:
37
java/org/artisanlogiciel/osm/NodeRef.java
Normal file
37
java/org/artisanlogiciel/osm/NodeRef.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user