Configure local tile server in OSM-Website
Austin Harrison
harrija0 at gmail.com
Sun Jan 27 21:10:06 UTC 2019
Update, Problem with creating function in PostgreSQL database openstreetmap.
While trying to reinstall the databases I encountered this error preventing
me from creating the three functions: 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
On Sun, Jan 27, 2019 at 11:31 AM Austin Harrison <harrija0 at gmail.com> wrote:
> 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).
>
> 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 http://localhost:3000. My tile server:
> http://golarionmap.arma5.com/pf/0/0/0.png
>
> 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.
>
> gis at golarion:~/openstreetmap-website$ bundle exec rake db:migrate
> pngcrush worker: `pngcrush` not found; please provide proper binary or
> disable this worker (--no-pngcrush argument or `:pngcrush => false` through
> options)
> advpng worker: `advpng` not found; please provide proper binary or disable
> this worker (--no-advpng argument or `:advpng => false` through options)
> optipng worker: `optipng` not found; please provide proper binary or
> disable this worker (--no-optipng argument or `:optipng => false` through
> options)
> pngquant worker: `pngquant` not found; please provide proper binary or
> disable this worker (--no-pngquant argument or `:pngquant => false` through
> options)
> jhead worker: `jhead` not found, `jpegtran` not found; please provide
> proper binary or disable this worker (--no-jhead argument or `:jhead =>
> false` through options)
> jpegoptim worker: `jpegoptim` not found; please provide proper binary or
> disable this worker (--no-jpegoptim argument or `:jpegoptim => false`
> through options)
> jpegtran worker: `jpegtran` not found; please provide proper binary or
> disable this worker (--no-jpegtran argument or `:jpegtran => false` through
> options)
> gifsicle worker: `gifsicle` not found; please provide proper binary or
> disable this worker (--no-gifsicle argument or `:gifsicle => false` through
> options)
> svgo worker: `svgo` not found; please provide proper binary or disable
> this worker (--no-svgo argument or `:svgo => false` through options)
> Model files unchanged.
>
> Here is what I get when I run rails:
> gis at golarion:~/openstreetmap-website/vendor/assets/leaflet$ bundle exec
> rails server
> => Booting Puma
> => Rails 5.2.2 application starting in development
> => Run `rails server -h` for more startup options
> pngcrush worker: `pngcrush` not found; please provide proper binary or
> disable this worker (--no-pngcrush argument or `:pngcrush => false` through
> options)
> advpng worker: `advpng` not found; please provide proper binary or disable
> this worker (--no-advpng argument or `:advpng => false` through options)
> optipng worker: `optipng` not found; please provide proper binary or
> disable this worker (--no-optipng argument or `:optipng => false` through
> options)
> pngquant worker: `pngquant` not found; please provide proper binary or
> disable this worker (--no-pngquant argument or `:pngquant => false` through
> options)
> jhead worker: `jhead` not found, `jpegtran` not found; please provide
> proper binary or disable this worker (--no-jhead argument or `:jhead =>
> false` through options)
> jpegoptim worker: `jpegoptim` not found; please provide proper binary or
> disable this worker (--no-jpegoptim argument or `:jpegoptim => false`
> through options)
> jpegtran worker: `jpegtran` not found; please provide proper binary or
> disable this worker (--no-jpegtran argument or `:jpegtran => false` through
> options)
> gifsicle worker: `gifsicle` not found; please provide proper binary or
> disable this worker (--no-gifsicle argument or `:gifsicle => false` through
> options)
> svgo worker: `svgo` not found; please provide proper binary or disable
> this worker (--no-svgo argument or `:svgo => false` through options)
> Puma starting in single mode...
> * Version 3.12.0 (ruby 2.3.8-p459), codename: Llamas in Pajamas
> * Min threads: 5, max threads: 5
> * Environment: development
> * Listening on tcp://0.0.0.0:3000
>
> 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?
>
> Thanks for your help,
> Austin (osm:harrija0)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190127/7bfc2a00/attachment.html>
More information about the rails-dev
mailing list