[Tagging] objects mixing linear and area (for ex fence and landuse)

Kevin Kenny kevin.b.kenny at gmail.com
Mon Jan 18 15:52:29 UTC 2021

On Mon, Jan 18, 2021 at 6:54 AM Martin Koppenhoefer <dieterdreist at gmail.com>

> sent from a phone
> > On 31 Dec 2020, at 05:59, Joseph Eisenberg <joseph.eisenberg at gmail.com>
> wrote:
> > While it's obvious to a human when looking at the rendered object, it's
> rather difficult to write software to interpret this clearly: an object is
> supposed to be an area or a line, not both
> but technically osm2pgsql could create a line for fenced=yes (as if
> there was an overlapping new way tagged with barrier=fence) and a
> polygon for the thing that is fenced, or is this not possible
> currently?

One thing that works wihtout wreaking any violence upon the data model is
to break the fence into two or more pieces and tag each piece with
`barrier=fence`. Then create a multipolygon with the lines as outer ways
and hang the description of the area off of that.  The lines are simple
linear features, so no data consumer has a problem with them, and virtually
all data consumers understand how multipolygons work, so that doesn't cause
a problem either.

73 de ke9tv/2, Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tagging/attachments/20210118/97be85ac/attachment.htm>

More information about the Tagging mailing list