openstreetmap

Upload KML file into database and display on OpenLayers Map

Hi, I want to create a simple form on my wordpress site so that people can upload KML files which will then be stored in the db and the route shown on on openlayers map - openstreetmap. The project is for a hiking site for storing hiking routes. Any docs for this/ forums / advice. I'm completely new to this map stuff. Cheers Andy ...

Is there another way to extract data dump from Planet.osm?

Hi! I need a data dump from planet.osm fiel for the NCR region in the Philippines. I'll be using it for an OpenStreetMap project. Is there a way that I can extract a small part of the planet.osm without downloading the whole file? I mean, the planet.osm file is 11GB in size, and I'll be only needing a fraction of it. Thank you in advance...

Merging XML files

Hello! How do I merge multiple XML files, without having redundant data? I have a project using OpenStreetMap, and the data dumps are in XML format. But becuase I plan to divide my target area in the map, then some nodes(points in the map) will be repeated in the XML files. I want to merge all that XML files, and prevent redundant data i...

Creating street block overlays from google map data or other map APIs

My question is the following: How can I grab 'blocks' in a city for use in a game? (And then display them shaded in a certain color?) My general idea is to use real blocks of your city in a game, that you can own/sell. I want to display the areas you own as polygon overlays in google maps. Are google maps the way forward, or are other...

How do I plot the points (data) from the database to the OpensStreetMap?

Hi! I wonder how the mapping thing works in the OpenStreetMap. I'm building an app that uses my own database(which I will build using OSM dumps using Osmosis; same as in the OpenStreetMap website). I have really no idea how it works. Thanks in advance! :D ...

Can I use PostgreSQL 8.3.x for OpenStreetMap?

Hi! I'm trying to install phpPgAdmin as an XAMPP addon when I encountered an error because the latest phpPgAdmin supports upto PostgreSQL version 8.3.x. So I decided to install PostgreSQL 8.3.11 instead of the latest (PGSQL 8.4.x). Will this matter to my OSM application? Thanks! ...

PHP for an OpenStreetMap Application

Hi! I'm doing a project using OpenStreetMap and OpenLayers. Currently, my task is to insert the data from the OSM file that I have to a PostgreSQL. When I checked out Osmosis (the tool for transferring data from the OSM file to the database), it says there that, in one example, "Import a planet file into a local PostgreSQL rails port dat...

How to download OpenStreetMap tiles from CloudMade?

how to download cloudmade map tiles? i have to download tiles with different zoom levels? how save these tiles to database for later loading? any sample code available? any help is appreciated.. ...

Where to get/extract relational data on administrative regions of the world?

Hi all, I'm working on a web-application that operates on services. Every service is normally provided over some (possibly several distinct) geographical domain(s) like city, county, region, state, country or worldwide. Typical tasks: users will submit their location as lng,lat and I will need to find what are the services availabl...

PostGIS : nearest linestring to a given point

Hi guys. I've been using PostGIS in a long time now but never had to use the LINESTRING geometry ... yet! :) Here's what I would like to do : I have a table of linestrings (representing streets of a given city, SRID 3395) and I would like to find the nearest linestrings to a given point (GPS position, SRID 4326). The solution I found ...

How can I automatically plot markers for addresses on a Google or OpenStreetMap?

I have a list of UK addresses and would like to plot them on a google or openstreetmap (I dont mind which). Is there a way to render a batch of addresses on a map with dots to represent the location (rather then the standard marker). To make things slightly more complex, I would like to change the colour and size of some markers. The...

OpenLayers problem with marker icons

I'm creating OSM map in my web site and adding some markers with openlayer.. My problem is that I allways get the same icon for marker.. <script type="text/javascript"> var map = new OpenLayers.Map("heatMap"); var mapnik = new OpenLayers.Layer.OSM(); map.addLayer(mapnik); map.setCenter(new OpenLayers.LonLat(-4.05759429879...

Ideal database for geo (map) data

I'm looking for suggestions for an ideal database or data structure for storing a map. Essentially, the map consists of "ways" which are like roads, paths, etc. Ways contain nodes (which have a latitude and longitude coordinate, and sometimes an altitude.) Any such database or structure: should be able to locate all the nodes in a bo...

Adding markers from a SQL db to OSM

I'm new to OpenStreetMap and I've been browsing the wiki and the net and I can't seem to find a tutorial anywhere but I've seen examples on the net. Basically I want to generate my own OpenStreetmap and plot markers taking the latitude and longitude from a MySQL database and plotting them on my map. When the user clicks on a mark I'd l...

Display WMS Layer Based on Zoom Level

Hello StackOverflow, I've been at this all day long and honestly I'm out of ideas. I have some WMS layers that I would like to display/not display depending on the current zoom level. Yes, I have went through the API docs and they seem to be clear as day, but I follow everything that is suggested and I'm not getting the results desire...