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:
34
java/org/artisanlogiciel/osm/Node.java
Normal file
34
java/org/artisanlogiciel/osm/Node.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package org.artisanlogiciel.osm;
|
||||
|
||||
/**
|
||||
* https://wiki.openstreetmap.org/wiki/Node
|
||||
*/
|
||||
public class Node {
|
||||
NodeRef ref;
|
||||
double lat;
|
||||
double lon;
|
||||
|
||||
public NodeRef getRef() {
|
||||
return ref;
|
||||
}
|
||||
|
||||
public Node(NodeRef ref, double lat, double lon) {
|
||||
this.ref = ref;
|
||||
ref.setNode(this);
|
||||
this.lat = lat;
|
||||
this.lon = lon;
|
||||
}
|
||||
|
||||
public double getLat() {
|
||||
return lat;
|
||||
}
|
||||
|
||||
public double getLon() {
|
||||
return lon;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return "(id=" + ref.id + " lon=" + lon + " lat=" + lat + ")";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user