[sosi2osm] 15/30: Output version=1 to keep osmium happy

Ruben Undheim rubund-guest at moszumanska.debian.org
Sat Oct 4 13:07:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch upstream
in repository sosi2osm.

commit 3cca6f1eb7e81d1bf898ba03d8afd8a22b32798d
Author: Knut Karevoll <gnonthgol at gmail.com>
Date:   Fri Oct 11 23:15:06 2013 +0200

    Output version=1 to keep osmium happy
---
 node.cpp     | 6 +++---
 sosi2osm.cpp | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/node.cpp b/node.cpp
index a4d2a7b..21155fa 100644
--- a/node.cpp
+++ b/node.cpp
@@ -33,7 +33,7 @@ void getCoords(long int* size, double** lat, double** lon) {
 long nodeId = -1;
 long createNode(double lat, double lon, short kp) {
 	if (kp == 0) {
-    	printf("<node id=\"%ld\" lat=\"%.7f\" lon=\"%.7f\" visible=\"true\"/>\n", nodeId, lat, lon);
+    	printf("<node id=\"%ld\" lat=\"%.7f\" lon=\"%.7f\" version=\"1\" visible=\"true\"/>\n", nodeId, lat, lon);
 	    return nodeId--;
     }
     
@@ -63,7 +63,7 @@ long createNode(double lat, double lon, short kp) {
     kpM[lenM] = kp;
     idM[lenM] = nodeId;
     lenM++;
-    printf("<node id=\"%ld\" lat=\"%.7f\" lon=\"%.7f\" visible=\"true\"/>\n", nodeId, lat, lon);
+    printf("<node id=\"%ld\" lat=\"%.7f\" lon=\"%.7f\" version=\"1\" visible=\"true\"/>\n", nodeId, lat, lon);
     return nodeId--;
 }
 
@@ -89,7 +89,7 @@ void outputNode() {
     getCoords(&size, &lat, &lon);
     
     for (int i = 0; i < size; i++) {
-        printf("<node id=\"%ld\" lat=\"%.7f\" lon=\"%.7f\" visible=\"true\">\n", nodeId--, lat[i], lon[i]);
+        printf("<node id=\"%ld\" lat=\"%.7f\" lon=\"%.7f\" version=\"1\" visible=\"true\">\n", nodeId--, lat[i], lon[i]);
         outputTags();
         printf("</node>\n");
     }
diff --git a/sosi2osm.cpp b/sosi2osm.cpp
index 35a2f0b..bdc23be 100644
--- a/sosi2osm.cpp
+++ b/sosi2osm.cpp
@@ -23,7 +23,7 @@ void outputWay() {
     long int* nd;
     long int size = createNodes(&nd);
     
-    printf("<way id=\"%ld\" visible=\"true\">", -getSOSIId());
+    printf("<way id=\"%ld\" version=\"1\" visible=\"true\">", -getSOSIId());
     outputTags();
     
     for (int i = 0; i < size; i++) {
@@ -36,7 +36,7 @@ void outputWay() {
 }
 
 void outputRelation() {
-    printf("<relation id=\"%d\" visible=\"true\">", -getSOSIId());
+    printf("<relation id=\"%ld\" version=\"1\" visible=\"true\">", -getSOSIId());
     outputTags();
     
     char* role = "outer";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/sosi2osm.git



More information about the Pkg-grass-devel mailing list