<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255);display:inline !important">When I convert a OSM pbf file to postgres using the following script it does not create
a multipolygon table</span>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
<br>
</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
ogr2ogr -f PostgreSQL PG:"dbname='open_street_map' host='db-host' port='5432' user='postgres' password='pwd'" -lco schema=country country_pbf --config OSM_MAX_TMPFILE_SIZE 1024<br>
</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
<br>
</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
When I do the same thing using osm2pgsql (shown below) it creates the polygon table but not the other_relations table</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
<br>
</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
osm2pgsql -H hostname -U postgres -d open_street_map --output-pgsql-schema=country --create --latlong -G --hstore --tag-transform-script /OpenStreetMap/openstreetmap-<wbr>carto-master/openstreetmap-<wbr>carto.lua -C 2500 --number-processes 5 -S /OpenStreetMap/openstreetmap-<wbr>carto-master/openstreetmap-<wbr>carto.style
country-latest.osm.pbf.<br>
</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
<br>
</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
I did not see this problem when I Googled.</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
<br>
</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
Is this a known issue and is there a work around?</div>
<div style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">
<br>
</div>
<span style="color:rgb(34, 34, 34);font-family:Arial, Helvetica, sans-serif;font-size:small;orphans:2;widows:2;background-color:rgb(255, 255, 255)">Bruce</span><br>
</div>
</body>
</html>