<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 9/16/2016 5:37 PM, Spencer Gardner wrote:<br>
<blockquote
cite="mid:CAHCHdbJeeayHPQKY8r7beOMy=wxG1MO-C32MNEK_oOhQ1w=BVQ@mail.gmail.com"
type="cite">It's not clear to me how osm2pgsql handles multiple
values for the same key on an OSM feature. For example, imagine I
have a way with the following tags:
<div>parking:lane:right=perpendicular</div>
<div>parking:lane:left=parallel<br>
</div>
</blockquote>
<br>
"parking:lane:right" and "parking:lane:left" are different keys.
What happens depends what your tag transform is doing. The default C
tag transforms does nothing special with those keys, so doesn't
change the values or anything. A lua tag transform or a
multi-backend style does what you have defined it to.<br>
<br>
<blockquote
cite="mid:CAHCHdbJeeayHPQKY8r7beOMy=wxG1MO-C32MNEK_oOhQ1w=BVQ@mail.gmail.com"
type="cite">
<div>
<ol>
<li>How does the "parking" column reflect this after the
import assuming that my style file has an entry for parking?<br>
</li>
</ol>
</div>
</blockquote>
<br>
If those are the only tags and there is not a "parking" key on the
feature, the column is null with the C tag transforms.<br>
<br>
<br>
<blockquote
cite="mid:CAHCHdbJeeayHPQKY8r7beOMy=wxG1MO-C32MNEK_oOhQ1w=BVQ@mail.gmail.com"
type="cite">
<div>
<ol>
<li>Is there a way to define styles that separate these? (i.e.
one column for parking:lane:right and another column for
parking:lane:left?</li>
</ol>
<div>My understanding of hstore is that it will suffer from the
same problem--if there's a duplicate entry for the same key it
takes the first and ignores the others. If this is not the
case I'll investigate using that for my purposes.</div>
</div>
</blockquote>
<br>
If you want a column for parking:lane:right and parking:lane:left,
add both to your style file.<br>
<br>
If you want to do something more sophisticated, you need to use Lua
transforms. You could have a column which indicates which sides
there is parking on.
<a class="moz-txt-link-freetext" href="https://github.com/ClearTables/ClearTables/issues/51">https://github.com/ClearTables/ClearTables/issues/51</a> is about
something similar for maxspeed:forward and maxspeed:backward<br>
</body>
</html>