Skip to content

v0.2.47..v0.2.48 changeset OsmJsonWriter.h

Garret Voltz edited this page Sep 27, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/OsmJsonWriter.h b/hoot-core/src/main/cpp/hoot/core/io/OsmJsonWriter.h
index 635777c..4602e1a 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/OsmJsonWriter.h
+++ b/hoot-core/src/main/cpp/hoot/core/io/OsmJsonWriter.h
@@ -97,7 +97,10 @@ public:
    */
   void SetWriteEmptyTags(bool writeEmpty) { _writeEmptyTags = writeEmpty; }
 
-  void setIncludeCircularError(bool includeCircularError) { _addExportTagsVisitor.setIncludeCircularError( includeCircularError); }
+  void setIncludeCompatibilityTags(bool includeCompatibility)
+  { _includeCompatibilityTags = includeCompatibility; }
+  void setIncludeCircularError(bool includeCircularError)
+  { _addExportTagsVisitor.setIncludeCircularError( includeCircularError); }
 
   virtual QString supportedFormats() override { return ".json"; }
 
@@ -105,6 +108,8 @@ protected:
 
   ConstOsmMapPtr _map;
   bool _includeDebug;
+  // This setting is here to stay in sync with how OsmXmlWriter writes attribute metadata.
+  bool _includeCompatibilityTags;
   int _precision;
   QFile _fp;
   QIODevice* _out;
@@ -129,6 +134,7 @@ protected:
   bool _hasTags(const ConstElementPtr& e);
   void _writeTag(const QString& key, const QString& value, bool& firstTag);
   void _writeTags(const ConstElementPtr& e);
+  void _writeMetadata(const Element& element);
 
 private:
 
@@ -136,6 +142,6 @@ private:
 
 };
 
-} // hoot
+}
 
 #endif // OSMJSONWRITER_H
Clone this wiki locally