2
  1. I've just setup my osm server. I imported only one country in my db and i want to start editing it. But the problem is that i can not login with any user i come up with. No DB users work, nor the osm.org user. I tried registering but i didn't receive the confirmation message by email. What am i missing?

  2. I also noticed that i have a full blown map. Someone told me it is because the source is still osm.org. So if i'll start editing, will the osm.org map be edited or my private map? I want the changes to be saved on my server.

asked 20 Oct '11, 11:34

alexz's gravatar image

alexz
225212226
accept rate: 0%

edited 20 Oct '11, 12:12

Gnonthgol's gravatar image

Gnonthgol ♦
13.6k15101198

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.

(08 Feb '12, 15:05) ipippo
3

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.

(08 Feb '12, 15:24) SomeoneElse ♦

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.

(31 Oct '17, 15:54) gleide
1

@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?

(31 Oct '17, 15:57) SomeoneElse ♦

2 Answers:
4

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 update users set status='active'; or so.

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.

permanent link

answered 20 Oct '11, 12:08

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
73.3k866641137
accept rate: 24%

Ok, it looks like i don't really need the tile server and a postgis database, even though i already installed it.
But let me get this straight with all i understand by now. First you make an osm database, you import your planet.osm in db with osmosis, then with osmosis you export it again to xml, then you use osm2pgsql to populate GIS, then i use generate_xml.py to generate xml, then generate_tiles.py to generate tiles. And all this has to be a tile generating server? Woaaa.. my brains are blown all over everything.

(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
2
  1. You probably have not set up e-mail on your server. The server do not know what address to send from or to whitch server. The solution is to manualy activate the user you registered. This is described on the wiki. There is also a description of how to get Potlatch2 to work. In JOSM you can change the "osm-server.url" option to your server.
  2. The only part of your page that is still from osm.org should be the slippy maps. When you edit your the map on your server you will edit your own version of the map and the changes won't be uploaded to osm.org and the redering won't be updated. You can change the url of the tiles in the source code (just grep for tile.openstreetmap.org) to a render server you have set up to render the map on your server. This is however not neccesary and overly complex.
permanent link

answered 20 Oct '11, 12:11

Gnonthgol's gravatar image

Gnonthgol ♦
13.6k15101198
accept rate: 16%

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 ♦

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×585
×75
×42

question asked: 20 Oct '11, 11:34

question was seen: 12,085 times

last updated: 31 Oct '17, 15:57

powered by OSQA