parveenarora / meramap Goto Github PK
View Code? Open in Web Editor NEWFast Track Deployment of Customised OSM Tile Server
License: GNU General Public License v3.0
Fast Track Deployment of Customised OSM Tile Server
License: GNU General Public License v3.0
The postinst script sends so much of its output to logfiles that it can appear to hang while running. Adding some messages to give the user confidence that it is still working would be useful.
Apache is installed using apt-get, rather than specifying it as a dependency in the debian package. This means that the newmap version of postinst will not work within a debian package.
Installation of meramap.deb installs log files in newmap/logfiles directory. This directory should be empty on a clean install or the user could be confused when trying to debug problems.
osm2pgsql fails when postinst run as root (as it will in a debian package), because root is not a postgresql user. Need to specify the postgresql username on the command line to fix this.
Just adding a -U parameter does not seem to work - might need to set and use a password too?
Hi,
the index.html from var/www/map/ uses remote JS-Files (like http://www.openlayers.org/api/OpenLayers.js).
I use my own OSM-Server to be independent from others.
In my opinion we should place a daily cronjob on the server, which updates the local js-files.
If you agree, I will implement/commit this.
Cheers,
Timo
Reports successful installation even when it fails - we should monitor the return codes for the commands to see if they were successful or not and report success/failure correctly.
When postinst is executed as root (as it will when incorporated into debian package, the postgresql configuration fails.
Postinst needs modifying to execute postgresql configuration as user postgres (postgresql super user).
Also needs write permission on logfiles directory for postgres user, otherwise it will fail.
Extract from meramap.log
Setting up database and user...
Done!
./generate_tiles.sh: line 10: logfiles/tiles.log: No such file or directory
./generate_tiles.sh: line 11: /home/graham/bin/mapnik/osm.xml: No such file or d
irectory
./generate_tiles.sh: line 13: logfiles/tiles.log: No such file or directory
render_tiles( (75.724000000000004, 30.73, 76.046999999999997, 30.969999999999999
) /home/graham/bin/mapnik/osm.xml /home/graham/bin/mapnik/tiles/ 0 0 World )
Traceback (most recent call last):
File "./z0_generate_tiles.py", line 209, in
render_tiles(bbox, mapfile, tile_dir, 0, 0, "World")
File "./z0_generate_tiles.py", line 130, in render_tiles
renderer = RenderThread(tile_dir, mapfile, queue, printLock, maxZoom)
File "./z0_generate_tiles.py", line 59, in init
mapnik.load_map(self.m, mapfile, True)
RuntimeError: Could not load map file '/home/graham/bin/mapnik/osm.xml': File do
es not exist
Hi,
I would wish me a script, which replaces localhost with an entered name in the install progress. For example
index.html: newLayer = new OpenLayers.Layer.OSM("New Layer","http://localhost/OSMAP/${z}/${x}/${y}.png"
(at the moment you are not able to view the map from remote, because the remote server have not the OSM installed).
In this step I would implement an apache-config with a vhost with the entered name for /var/www/map, too.
If you agree, I will implement this and commit it.
Kind regards,
Timo
Cheers,
Timo
The apache dependency is addressed in postinst by using 'apt-get install'. This will not work when incorporated into a debian package, so it needs modifying to use a debian dependency instead (like the rest of the dependencies).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.