[OSM-dev] How to get bbox data of OSM export feature to a file
Hello All, I need to export the data which is in form of latitudes and longitudes when we click on the export feature of openstreetmap.org Actually I am making a Web Interface to generate tiles of the area as selected by the user after going on the osm export, But I don't know how to take only those values from there to anywhere else in the file or in the-database. My intention is to provide a interface that user can select the area of his interest to generate tiles from the openstreetmap.org Please give me suggestions about how to do that? Thank You. -- Parveen Arora www.parveenarora.in E-Mail: m...@parveenarora.in ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How to get bbox data of OSM export feature to a file
Hi Parveen, I need to export the data which is in form of latitudes and longitudes when we click on the export feature of openstreetmap.org I am not sure I understand your question, but what I think you are asking is: How do I display a slippy map on a web site and determine the bounding box (lon/lat of bottom left and top right corner) of the displayed map once the user has adjusted it (panned and zoomed to select a particular area)? If that is the question, you should look at OpenLayers or Leaflet to display the map, then extract the appropriate javascript properties to get the coordinates of the map being displayed. The OSM Export function will do this (but I am not sure exactly how it works - you can probably look at the javascript your browser is running to see (I am sure it will be interacting with OpenLayers). Alternatively, I have done something similar in Openlayers here: http://code.google.com/p/townguide/source/browse/#svn%2Ftrunk%2Fwww (look at SubmitForm.php and osm_map.js, Or something that I have started on, but not finished using leaflet here: https://github.com/jones139/disrend/blob/master/www/application/media/js/editmap.js (look at the map2json function - map.getBounds seems to do it). Hope that helps - sorry if I have answered the wrong question! Regards Graham. -- Graham Jones Hartlepool, UK. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Extracting just national boundaries
Am 05.08.2011 17:24, schrieb Igor Podolskiy: Basically, to implement a --used-relations you need to compute the transitive closure of a possibly cyclic graph with relations as nodes and memberships as edges, and this is not trivial if all you have is a data stream and no loops - which is the Osmosis model. Osmosis does something very similar in its --cascading-relations option, did you try that? Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Extracting just national boundaries
Hi, On 06.08.2011 17:38, Peter Körner wrote: Am 05.08.2011 17:24, schrieb Igor Podolskiy: Basically, to implement a --used-relations you need to compute the transitive closure of a possibly cyclic graph with relations as nodes and memberships as edges, and this is not trivial if all you have is a data stream and no loops - which is the Osmosis model. Osmosis does something very similar in its --cascading-relations option, did you try that? yes, I know about --cascading-relations, but it's a --bounding-box option, not a standalone task. On the other hand, you're right, you always could do something like --bbox -90,-180,90,180 cascading-relations=yes and have something like --used-relations - thanks for the pointer! Igor ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev