[Tile-serving] [osm2pgsql] Straight line cut in 10 pieces by osm2pgsql and leading to mapnik issues (#507)
damiendevienne
notifications at github.com
Fri Nov 20 13:59:46 UTC 2015
Hello,
I had some issue with rendering my data with mapnik and it appears to be related to the way data are stored in the database after import with osm2pgsql.
I use a very simple example data of 2 nodes and 1 way linking them.
When importating this to my database with osm2pgsql, it creates 10 rows in the planet_osm_line table, which in turn creates some problem with mapnik rendering for correctly spacing the text labels on the road.
Is this split normal, and/or is there a way to avoid it?
Thanks a lot.
P.S. the osm file I used to test:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="" copyright="OpenStreetMap" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<bounds minlat="-90" minlon="-180" maxlat="90" maxlon="180"/>
<node id="623" visible="true" lat="-0.339746" lon="6.000000">
</node>
<node id="626" visible="true" lat="7.789438" lon="2.715955">
</node>
<way id="963" visible="true">
<nd ref="626"/>
<nd ref="623"/>
<tag k="name" v="aaaaaaaaaaaaa" />
</way>
</osm>
```
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/507
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151120/abc4e5b8/attachment.html>
More information about the Tile-serving
mailing list