asked 20 Oct '11, 11:34 alexz Gnonthgol ♦ |
You have to register with your own server. You'll need a working email server setup to actually receive the confirmation mail, but you could also check the users table directly with the psql command line tool and manually activate the user that has been created. I forgot what the field was - something like You are seeing a full-blown map because the tiles are renderd by openstreetmap.org. You could change that to point to your local tiles but in order for that to work you first have to have local tiles at all! Tiles are not produced by the rails port software that you have installed. Instead, they are produced by a tile server bassed on the Mapnik rendering engine which has its own PostGIS database (you cannot use the same that you are using with the rails port, instead you have to use Osmosis to dump data from your database into XML format, then use osm2pgsql to load into the rendering database). There's a howto on setting up a tile server and there's also copious documentation on the wiki, e.g. here. Don't forget that most of these documents assume that you want to load "real" OSM data; loading your own data instead always means first exporting it with Osmsois. answered 20 Oct '11, 12:08 Frederik Ramm ♦ Ok, it looks like i don't really need the tile server and a postgis database, even though i already installed it.
(20 Oct '11, 14:26)
alexz
2
Of course the "export again to XML with Osmosis" step is only required if you have made changes you wish to appear in the map. In theory, a special version of osm2pgsql could be built that populates GIS tables directly from OSM data tables but since only few people have OSM server+tile server on the same machine this doesn't exist. The generate_xml.py doesn't come into this picture, it is only part of a one-time setup step (whereas the rest has to be repeated to update your tiles). generate_tiles.py is one of many options to create tiles. Others (mod_tile and tirex/renderd) are more complex.
(20 Oct '11, 14:42)
Frederik Ramm ♦
Thanks! But if i edit my map (and changes are saved in my osm db, right?) then in order to view them i have to export with osmosis + import with osm2pgsql + generate_tiles.py .... then what? Please help me sort it out.
(20 Oct '11, 15:11)
alexz
|
answered 20 Oct '11, 12:11 Gnonthgol ♦ i can't change the osm server url in JOSM to localhost:3000. It just doesn't validate.Am i doing something wrong?
(20 Oct '11, 14:43)
alexz
1
Are you sure that you have the correct url? It would be the exact string "http://localhost:3000/api". What error message do you get from JOSM? What does the logs from the server say when you try to add the api to JOSM?
(20 Oct '11, 23:28)
Gnonthgol ♦
Thanks a lot! That worked. Though i don't see any map in JOSM after i click "new layer". Should it be this way? I had my osm server on.
(21 Oct '11, 07:26)
alexz
1
In JOSM "new layer" creates a new empty OSM layer. "Download" downloads OSM data from the current server and add it to the current layer (or optionaly a new layer). It is possible that your server does not contain any map at the location and you would get an empty layer from the server.
(21 Oct '11, 10:11)
Gnonthgol ♦
|
my server contain a few data. when I try to download (the url and the account are valid (http://localhost:3000/api)) it says internal server error.
You're going to have to provide a bit more useful information (e.g. what you've done so far) about what your problem is if you want a helpful answer. Also - it would make sense to ask a separate question rather than asking a new question as an "answer" to this one.
Hello, I used Rails to point my local tile server.In web broswer, I typed http://localhost:3000 it showed my own map.But when I click sign up, An error occoured:ActionControll::InvalidAuthencity Token.I hope can get your help.
@gleide As I said above to the previous person, you're going to have to provide a bit more useful information (e.g. what you've done so far) about what your problem is if you want a helpful answer. Also - it would make sense to ask a separate question rather than asking a new question as an "answer" to this one. Maybe a more interactive channel like #osm-dev on IRC would be a better option?