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 <gnonth...@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

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to