[Tile-serving] [osm2pgsql] Incorrect polygons with OSM file from API (#151)

Paul Norman notifications at github.com
Sat May 31 07:21:15 UTC 2014


```
gis=# select st_astext(st_transform(way,4326)) from planet_osm_polygon;
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                          st_astext                                                                           │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ POLYGON((-123.023319837423 49.2321809836722,-123.015505841924 49.2327052801087,-123.013512210814 49.2326201072465,-123.01288482742 49.232593300055,-123.0128…│
│…28233557 49.2303090627327,-123.012806224833 49.2294284827441,-123.012841528623 49.2293546848408,-123.023319837423 49.2321809836722))                         │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
(1 row)
```


For reference, when I import the geofabrik BC PBF
```
gis=# select st_astext(st_transform(way,4326)) from planet_osm_polygon where osm_id=23165846;
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                          st_astext                                                                           │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ POLYGON((-123.023328371419 49.222046562621,-123.023319837423 49.2321809836722,-123.015505841924 49.2327052801087,-123.013512210814 49.2326201072465,-123.012…│
│…88482742 49.232593300055,-123.012828143726 49.2303090627327,-123.012806224833 49.2294284827441,-123.012841528623 49.2293546848408,-123.012703727059 49.22477…│
│…65941483,-123.012642551788 49.22199616369,-123.023328371419 49.222046562621))                                                                                │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
(1 row)
```

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/151#issuecomment-44720080
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140531/e1f50e1c/attachment.html>


More information about the Tile-serving mailing list