<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Update, Problem with creating function in PostgreSQL database <span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;direction:ltr;font-size-adjust:none;font-stretch:100%;float:none;background-color:rgb(255,255,255)">openstreetmap</span><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;direction:ltr;font-size-adjust:none;font-stretch:100%;float:none;background-color:rgb(255,255,255)">.  While trying to reinstall the databases I encountered this error preventing me from creating the three functions:  <span style="font:400 13.6px/19.72px SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;text-align:left;color:rgb(36,41,46);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:pre;word-break:normal;word-wrap:normal;float:none;background-color:transparent">psql -d openstreetmap -c "CREATE FUNCTION maptile_for_point(int8, int8, int4) RETURNS int4 AS '`pwd`/db/functions/libpgosm', 'maptile_for_point' LANGUAGE C STRICT"  I did replace the pwd with my path.  It is returning no such file or directory.  I have a libpgosm file that was used to make libpgosm.so.  However no other file or folder are present.  

Any help would be appreciated,
Austin
</span></span></div></div></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Sun, Jan 27, 2019 at 11:31 AM Austin Harrison <<a href="mailto:harrija0@gmail.com">harrija0@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Good day,  I am trying to set up the web front end on my local server for a custom world.  I followed directions on switch2osm and have a working tile server.  I then followed directions for the rails port of OpenStreetMap-website and have a web front end.  It lets me log in and I have registered the app.  I have two issues (and maybe more).</div><div><br></div><div>1) Configure local tile server:  When I try to edit the leaflet.js and OpenStreetMap.js files under /vendor/assets I only get a grey background in my website at <a href="http://localhost:3000" target="_blank">http://localhost:3000</a>.  My tile server: <a href="http://golarionmap.arma5.com/pf/0/0/0.png" target="_blank">http://golarionmap.arma5.com/pf/0/0/0.png</a></div><div><br></div><div>2) the osm database did not create during rake.  I populated the openstreetmap database with my custom world osm file (only 25mb).  I can see the data in QGIS.  However when it rakes it says 'Model files unchanged' and exits happily.  </div><div><br></div><div>gis@golarion:~/openstreetmap-website$ bundle exec rake db:migrate<br>pngcrush worker: `pngcrush` not found; please provide proper binary or disable this worker (--no-pngcrush argument or `:pngcrush => false` through options)<br>advpng worker: `advpng` not found; please provide proper binary or disable this worker (--no-advpng argument or `:advpng => false` through options)<br>optipng worker: `optipng` not found; please provide proper binary or disable this worker (--no-optipng argument or `:optipng => false` through options)<br>pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)<br>jhead worker: `jhead` not found, `jpegtran` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)<br>jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options)<br>jpegtran worker: `jpegtran` not found; please provide proper binary or disable this worker (--no-jpegtran argument or `:jpegtran => false` through options)<br>gifsicle worker: `gifsicle` not found; please provide proper binary or disable this worker (--no-gifsicle argument or `:gifsicle => false` through options)<br>svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)<br>Model files unchanged.<br><br></div><div>Here is what I get when I run rails: </div><div>gis@golarion:~/openstreetmap-website/vendor/assets/leaflet$ bundle exec rails server<br>=> Booting Puma<br>=> Rails 5.2.2 application starting in development<br>=> Run `rails server -h` for more startup options<br>pngcrush worker: `pngcrush` not found; please provide proper binary or disable this worker (--no-pngcrush argument or `:pngcrush => false` through options)<br>advpng worker: `advpng` not found; please provide proper binary or disable this worker (--no-advpng argument or `:advpng => false` through options)<br>optipng worker: `optipng` not found; please provide proper binary or disable this worker (--no-optipng argument or `:optipng => false` through options)<br>pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)<br>jhead worker: `jhead` not found, `jpegtran` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)<br>jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options)<br>jpegtran worker: `jpegtran` not found; please provide proper binary or disable this worker (--no-jpegtran argument or `:jpegtran => false` through options)<br>gifsicle worker: `gifsicle` not found; please provide proper binary or disable this worker (--no-gifsicle argument or `:gifsicle => false` through options)<br>svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)<br>Puma starting in single mode...<br>* Version 3.12.0 (ruby 2.3.8-p459), codename: Llamas in Pajamas<br>* Min threads: 5, max threads: 5<br>* Environment: development<br>* Listening on tcp://<a href="http://0.0.0.0:3000" target="_blank">0.0.0.0:3000</a><br><br></div><div>Perhaps #1 is related to #2 but even so, if the working tile server is rendering from the other database why can't I get it to show as the background map like the default OSM tile set?</div><div><br></div><div>Thanks for your help,</div><div>Austin (osm:harrija0)</div></div></div></div></div>
</blockquote></div>