I have begin from scratch and use command :<br><br>./osm2pgsql -lsc --slim -O gazetteer -C 2000 -d gazetteer ~/AllMap/indonesia.osm.bz2<br><br>to load osm file to gazetteer db.<br><br>But when i execute :<br><br>cat gazetteer-functions.sql | psql gazetteer<br>
<br>[output]<br><br><i>CREATE FUNCTION<br>CREATE FUNCTION<br>...<br>...<br>ERROR:  type "planet_osm_ways" does not exist<br>...<br>ERROR:  type "place_boundingbox" does not exist<br>ERROR:  type "place_boundingbox" does not exist<br>
ERROR:  type "place_boundingbox" does not exist<br>CONTEXT:  compilation of PL/pgSQL function "update_place" near line 2<br>ERROR:  type "place_boundingbox" does not exist<br>CONTEXT:  compilation of PL/pgSQL function "update_place" near line 2<br>
CREATE FUNCTION<br>CREATE FUNCTION</i><b><br></b><br>on documentation tell me that if i get error message like <b>ERROR:  type "planet_osm_ways" does not exist</b> <br><br><br><br>But i have import db use slim option, that is : ./osm2pgsql -lsc --slim -O gazetteer -C 2000 -d gazetteer ~/AllMap/indonesia.osm.bz2 <br>
<br>actually -s is slim, but i add --slim which it's same.<br><br><br>Any suggestions about it ?<br><br><br><br>Thanks<br><div class="gmail_quote">2011/12/22 Sarah Hoffmann <span dir="ltr"><<a href="mailto:lonvia@denofr.de">lonvia@denofr.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<div class="im"><br>
On Wed, Dec 21, 2011 at 03:16:39PM +0700, Anwar Azulfa wrote:<br>
> Thanks for all your reply,<br>
><br>
><br>
> I have re deploy my osm2pgsql with nominatim_commit.patch<br>
><br>
> But the error still same.<a href="http://pastebin.com/ctQScVhA" target="_blank">http://pastebin.com/ctQScVhA</a><br>
><br>
> What will happen if i ignore it ?<br>
<br>
</div>As Mike said, it is not a good idea to ignore the error because it<br>
tells you that something more fundamental is going wrong.<br>
<div class="im"><br>
> > On Wed, Dec 21, 2011 at 06:17:54AM +0700, Anwar Azulfa wrote:<br>
</div><div class="im">> > > 3.load planet data<br>
> > > ./osm2pgsql -S default.style --slim -d gazetteer -C 2048<br>
> > > ~/AllMap/indonesia.osm.bz2<br>
<br>
</div>Actually, you are using the wrong output here. You<br>
are creating a database for mapnik, not for the gazetteer. The<br>
correct command line should be:<br>
<br>
./osm2pgsql -lsc -d gazetteer -O gazetteer -C 2048 ~/AllMap/indonesia.osm.bz2<br>
<font color="#888888"><br>
<br>
Sarah<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<div>M.Iftakhul Anwar</div><div><br></div><br>