You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2010-09-12 16:33:41

kapfe89
Member
Registered: 2010-09-12
Posts: 3

Map with borders only (no data)

Hi,

i am very new to osm.

I would like to add a map to my website only with the borders of country or states, e.g.

http://www.phil.uni-sb.de/~jakobs/wwwar … dy/usa.gif
http://upload.wikimedia.org/wikipedia/c … nd.svg.png

Background: I like to make a quiz website, with questions like "Where is Houston?"
So i need a map with borders only, and on click, i need latitude and longitude.

Is this possible with osm?

Thanks for your answers.
Martin

Offline

#2 2010-09-13 17:07:20

kapfe89
Member
Registered: 2010-09-12
Posts: 3

Re: Map with borders only (no data)

Can nobody help me?

Offline

#3 2010-09-13 22:45:41

cartinus
Member
From: Houten
Registered: 2008-01-06
Posts: 502

Re: Map with borders only (no data)

Technically this possible with OSM, but the borders within OSM have a lot of detail. There are other free datasets with simpler borders that are probably better suited for your application. (sorry I don't have a link handy)

Offline

#4 2010-09-14 10:24:12

kapfe89
Member
Registered: 2010-09-12
Posts: 3

Re: Map with borders only (no data)

ok, thanks for your reply.

so i should better look for another map?

what do you mean with: the borders are technically? Wouldn't it be possiple to hide all data except the borders between countries?

thanks,
Martin

Offline

#5 2010-09-14 11:25:05

amm
Member
Registered: 2009-09-20
Posts: 618
Website

Re: Map with borders only (no data)

Depending on your level of involvement / expertise, there are several different ways how to do this.

http://help.openstreetmap.org/questions … my-website

describes some of the options available.

For one you can set up your own tile server (e.g. http://weait.com/content/build-your-own … map-server ) and then customize the style sheets to drop everything but the borders. (in this case you might also need to tweak the osm2pgsql style, as otherwise you end importing all of the unneeded data)

I don't currently know of a set of shape files that extract only the border as is available for the costlines ( like http://tile.openstreetmap.org/shoreline_300.tar.bz2 )

Alternatively, you might be able to use the style-editor of cloudmade.com

Offline

#6 2010-09-17 06:18:12

csdf
Member
From: UK, living in Abu Dhabi
Registered: 2009-08-11
Posts: 313
Website

Re: Map with borders only (no data)

Or you could use XAPI to extract just the boundary=administrative ways, then filter out the admin_levels that you're not interested in.

Offline

#7 2011-01-01 01:50:23

Marqqs
Member
Registered: 2011-01-01
Posts: 724

Re: Map with borders only (no data)

Could be done with osmfilter. Example:

bzcat lim.bz2 r.osm.bz2 r.osm.bz2 r.osm.bz2 wr.osm.bz2 lim.bz2 a.osm.bz2 | ./osmfilter -k"admin_level=7" >new.osm

http://wiki.openstreetmap.org/wiki/Osmfilter

Offline

Board footer

Powered by FluxBB