Skip to content

Commit 237c731

Browse files
committed
avoid unnecessary convertion of way_area
1 parent e64d8fd commit 237c731

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

taginfo.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,15 @@ int read_style_file( const std::string &filename, export_list *exlist )
168168
temp.flags = parse_tag_flags(flags, lineno);
169169

170170
// check for special data types, by default everything is handled as text
171-
auto const typ = tagtypes.find(temp.type);
172-
if (typ != tagtypes.end()) {
173-
temp.flags |= typ->second;
171+
//
172+
// Ignore the special way_area column. It is of type real but we don't really
173+
// want to convert it back and forth between string and real later. The code
174+
// will provide a string suitable for the database already.
175+
if (temp.name != "way_area") {
176+
auto const typ = tagtypes.find(temp.type);
177+
if (typ != tagtypes.end()) {
178+
temp.flags |= typ->second;
179+
}
174180
}
175181

176182
if ((temp.flags != FLAG_DELETE) &&

0 commit comments

Comments
 (0)