Re: [OSM-dev] Disallowing certain characters in tag keys

2010-10-16 Thread OJ W
+1. much sanity ensues.

On Sat, Oct 16, 2010 at 7:44 PM, Jochen Topf joc...@remote.org wrote:
 So I'd like us to think about whether we can disallow a few characters from
 appearing in tag keys.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] aviation maps?

2010-08-11 Thread OJ W
If you have a source of data that can be used, then entering that into
openstreetmap is usually trivial.  Getting the data tends to be the
problem.

For example I have a converter for [some elements of] ARINC424 data,
although it's not legally possible to upload the results.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] aviation maps?

2010-08-11 Thread OJ W
On Wed, Aug 11, 2010 at 5:57 PM, Ákos Maróy a...@maroy.hu wrote:
 in Europe at least, airspace information is freely available

Like this?

http://www.nats-uk.ead-it.com/public/index.php%3Foption=com_contenttask=blogcategoryid=167Itemid=220.html

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM - POI files?

2010-04-17 Thread OJ W
Can anyone with working software/instructions help out on this thread:

http://forum.ctc.org.uk/viewtopic.php?f=5t=36113

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] OSM - POI files?

2010-04-16 Thread OJ W
Is there some application that extracts a list of POIs from an OSM
file, e.g. as GPX or whatever?

It would need to collapse each polygon down into one central point, so
that the output is just a list of points.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Pyroutelib vs Pyroutelib2?

2010-02-17 Thread OJ W
I should probably know more about the history of this program than I
do, but here goes...

I think pyroutelib was part of some huge GUI application for mobile
phones, whereas pyroutelib2 just pulled-out the routing code into a
smaller set of files that was easier to import into another project.

It looks like pyroutelib2 requires you to specify the transport type
when you first load the OSM data (LoadOsm::__init__ takes transport
as a parameter). So findNode will probably return a node that you can
travel from, because it only stored such nodes whilst loading the
data.





On Mon, Feb 15, 2010 at 10:23 PM, Tareq Ismail
hellothereta...@gmail.com wrote:
 Hello,

 I was wondering what the main differences between Pyroutelib
 (http://wiki.openstreetmap.org/wiki/PyrouteLib,
 http://svn.openstreetmap.org/applications/routing/pyroute/) and Pyroutelib2
 ( http://wiki.openstreetmap.org/wiki/Talk:PyrouteLib,
 http://svn.openstreetmap.org/applications/routing/pyroutelib2/) were and why
 the two exist.

 One would assume that Pyroutelib2 is more recent but I think it may not be.
 I noticed that the findNode method in loadOSM.py doesn't accept a travel
 type (car, cycle, etc) and that leads me to believe it may return a node
 that is not travel-able by a specific vehicle?

 Thanks,


 Tareq Ismail

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev



___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Finding closet node for PyrouteLib?

2010-02-10 Thread OJ W
The data object in that routing module should have a findNode()
function that gives the nearest routable node for your chosen
transport type.  This function is located in loadOsm.py

(don't just choose the nearest OSM node since that might be a county
boundary or something - the findNode function returns the nearest node
which is on a path that you can travel)







On Wed, Feb 10, 2010 at 9:30 PM, Tareq Ismail hellothereta...@gmail.com wrote:
 Hello all!

 I'm new to OSM and am glad to be a part of the community! I posted the
 following question on the newbies thread and was told to post it here
 instead.

 I have an application that has many addresses that I have geocoded. I am
 trying to use Pyroutelib (see here:
 http://wiki.openstreetmap.org/wiki/PyrouteLib) to find routing distances
 from one address to another. It seems that the library does not accept
 lat/lon (from the addresses I geocoded) as an input and only does node to
 node routing. I thought I should then try to find the closet node to my
 lat/lon position for my address, then send that node in to Pyroutelib for
 routing.

 Any suggestions as to how to do this? Is there something simple that I
 haven't thought of?
 Thanks all!


 Tareq

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev



___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Coordinate to Pixel at lowzoom

2009-10-08 Thread OJ W
Do the conversion at 8 zoom levels higher than your tile (i.e. the
tile which that pixel represents)

i.e. if someone clicks the top-left pixel of 1,1...@z1 then do tile2ll of
256,2...@z8.  If they click the 3rd pixel across from that then do
tile2ll of 256+3,2...@z8.

(replace 8 by log2 of your tile width, if you're not using 256x256)


On Thu, Oct 8, 2009 at 2:36 AM, Lynn W. Deffenbaugh (Mr)
ldeff...@homeside.to wrote:
 I understand the discussion on the following URL about the tile names
 and the long2tilex, lat2tiley, tilex2long, and tiley2lat functions.

 http://wiki.openstreetmap.org/index.php/Slippy_map_tilenames

 However, at zoom levels less than 4 (or so), I get a worsening offset to
 the north and south of the equator as I map objects onto the maps.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Coordinate to Pixel at lowzoom

2009-10-08 Thread OJ W
err, that should probably be z9 in my example. Something like:

lookup_x = tile_x * tile_width + pixel_x
lookup_y = tile_y * tile_width + pixel_y
lookup_z = tile_z + log2(tile_width)

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Corrupted/missing text in OSM node pages?

2009-08-08 Thread OJ W
OSM node history page seems to be letting some HTML through from node
tags, while deleting anything between angle-brackets. Compare
http://www.openstreetmap.org/api/0.6/node/458755979 with
http://www.openstreetmap.org/browse/node/458755979

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] remove redirect from old ti...@home server?

2009-07-28 Thread OJ W
Currently http://dev.openstreetmap.org/~ojw/ is redirecting to
tah.openstreetmap.org.  Would it greatly inconvenience anyone if I
stopped that from happening and put an actual website on
dev.openstreetmap.org/~ojw/ ?

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Fw: [Geowanking] [Fwd: [Ann] LinkedGeoData.org]

2009-07-15 Thread OJ W
like the WOEID system that Yahoo! were pushing for us to use?

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Slippy Map Elevation Overlay

2009-04-30 Thread OJ W
It's computationally a bit more expensive on the server, but you can
have a tile server that makes the white areas of regular maps
transparent and overlays them on top of relief maps (i.e. opposite
order to what you tried).  It's trivial PHP/GD code, and uses less CPU
on the client-side than having semitransparent overlays (which can be
*very* slow), but only works when the road map doesn't contain
antialiased edges.

update: I found an example implementation, but it seems to be
overlaying something with antialiased roads :(

http://dev.openstreetmap.org/~ojw/relief/





On Tue, Apr 28, 2009 at 10:30 PM, Graham Jones (Physics)
grahamjo...@physics.org wrote:
 I have had a quick go at http://maps.webhop.net/srtm.html.  It sort of works
 - the high ground stands out, and you can see the shape of the ground, and
 you can switch the overlay off and on.  It does not work that well as an
 overlay though because it is not really transparent enough.  I find that
 sometimes the transparency works quite well and you can see the map
 underneath, and others it is practically opaque.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] GSoC Ideas

2009-03-26 Thread OJ W
PHP code is available to stitch-together map images from existing
tileservers into an PNG/JPEG image (for use by things like mediawiki
plugins):

http://dev.openstreetmap.org/~ojw/GetMap/

maybe could add some drawing code to that, e.g. to plot locations, add icons?

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM data on on-board-terminals

2009-03-07 Thread OJ W
we did a bit of work with python/cairo that sounds similar to your idea:

http://wiki.openstreetmap.org/wiki/Pyrender

the way that works is: you have lots of OSM files each containing
enough data to draw one tile.  Many formats have been tried- osm.gz
files are probably easiest to understand.

then have a program which renders those to PNG.  Pyrender does this
using cairo, but any graphics library will do.

You can use it as a library ('give me PNG data for tile x'), or python
can even run its own http server if you want to run your program as a
javascript page or something in an embedded web browser.

As you say, the benefit of storing data instead of tiles is that you
can update rendering rules on-the-fly, while still having the PNG
tiles output for caching etc.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Fwd: Static Maps URL

2009-02-05 Thread OJ W
It doesn't have markers, but this URL will stitch images together:

http://dev.openstreetmap.org/~ojw/GetMap/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Complete tileset - experiments with tile sizes and disk space

2008-12-22 Thread OJ W
On Mon, Dec 22, 2008 at 1:43 PM, Bill Magee b...@billmagee.co.uk wrote:
 I don't do *nix but on WinXP the typical allocation size for large disks
 is 4kb (and I assume other file systems will do similar). Any tile under
 4kb (lots of them) will occupy this 4kb regardless.

Back when ti...@home stored its images in one file each, I think the
sysadmins chose a block size of 512 bytes for exactly that reason.
That would have been on Linux with ReiserFS though, so probably
doesn't help for your app.

The replacement scheme was
http://wiki.openstreetmap.org/wiki/Tiles%40home/Tileset_as_one_file
which puts 1366 tiles in each file (along with compression for various
types of blank tiles) - apparently it doesn't take long to extract the
PNG data for any given tile from such files.

Depending on what you're rendering, you may find that most tiles are
blank (more so for specialist layers like bus routes, less so for
layers with autogenerated content on like contours) so it's worth
considering those when calculating the expected disk usage.
(plain-colour 'blank' tiles might be sea or forest etc., as well as
just empty land, depending on your rendering)

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] surveillance cams not shown in any render

2008-12-12 Thread OJ W
In the current stylesheet I think I can see:

rule e=node k=amenity v=speed_trap


On Fri, Dec 12, 2008 at 1:37 PM, 80n 80n...@gmail.com wrote:
 Speed cameras did used to be rendered in Osmarender.  Not sure whether it
 has been removed deliberately (some people are opposed to helping motorists
 break the law) or accidentally (never attribute to malice...).

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] The wiki defines the database (was: relations)

2008-11-05 Thread OJ W
On Wed, Nov 5, 2008 at 1:35 AM, Erik Johansson [EMAIL PROTECTED] wrote:
 On Wed, Nov 5, 2008 at 12:26 AM, Matt Amos [EMAIL PROTECTED] wrote:
 there have been occasions when real mappers have documented their
 tags on the wiki, only to have the wiki pages overwritten by someone
 else's better ideas. maybe this puts some people off?

 Yes that is very cumbersome but how often does this happen

Several hundred times recently?

http://wiki.openstreetmap.org/index.php?title=Special:Contributionslimit=500target=Circeus

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] What country is something in?

2008-11-02 Thread OJ W
Perhaps someone who knows GIS software could take a simple coastline
dataset like GSHHS (doesn't need to be as detailed as PGS or OSM, and
GSHHS doesn't split-up polygons) then expand all the coasts by 20
miles and provide an OSM file that we can import sections of as part
of a country's border?



On Fri, Oct 31, 2008 at 5:53 PM, Roland Olbricht [EMAIL PROTECTED] wrote:
 That's why it was so surprising to see the imported USA and California
 borders in OSM running along the beach - surely we want to move them
 out to sea?

 It's just additional data. So a user with sound knowledge of the U.S. border
 regulation might simply correct or delete the robot generated sea border.

 Still, the coastline contains way more nodes than any other kind of
 borderline. So using only the beach as border would fill up a program working
 with boundary data with about 70 times more data than the solution with a
 generated sea boundary.

 Currently the borders are marked with the 2 countries - do we need to
 allow region:left=international if it's a border with the ocean
 instead of another country?

 From my point of view, these tags in the individual ways aren't anyway a good
 idea, as they are more difficult to maintain consistent and complete than a
 relation would be.

 Beside that, I have no idea whether it is useful to have a relation collecting
 all the ways that are boundary of the open sea.

 Cheers,
 Roland

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Best way to validate user input

2008-11-02 Thread OJ W
How about this for a link showing some of the features displayed on
typical charts?

http://www.avn.faa.gov/index.asp?xml=naco/online/aero_guide

Does X-plane/flightgear have any radionavigation data they could add
to the chart? OSM itself only has airports+runways at the moment.



On Sat, Nov 1, 2008 at 12:52 PM, Iván Sánchez Ortega
[EMAIL PROTECTED] wrote:
 El Sábado, 1 de Noviembre de 2008, spaetz escribió:
  - Somehow add visual feedback to the final map renders to validate user
  data.  Since our data is appropriate to aeronautical maps this wouldn't
  necessarily fit well with existing infrastructure.

 an aeronautical layer via the [EMAIL PROTECTED] infrastructure?

 Sounds cool. Now, somebody please explain how an Aeronautical chart works:

 http://en.wikipedia.org/wiki/Aeronautical_chart
 http://www.skyvector.com (slippy propietary aero chart)

 Providing such charts via [EMAIL PROTECTED] seems like a great idea - how 
 difficult would it
 to create the stylesheets for osmarender?

 --
 --
 Iván Sánchez Ortega [EMAIL PROTECTED]

 Proudly running Debian Linux with 2.6.26-1-amd64 kernel, KDE 3.5.9, and PHP
 5.2.6-5 generating this signature.
 Uptime: 13:47:42 up 72 days,  2:43,  2 users,  load average: 0.69, 0.99, 0.64

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev



___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] What country is something in?

2008-10-31 Thread OJ W
That's why it was so surprising to see the imported USA and California
borders in OSM running along the beach - surely we want to move them
out to sea?

Currently the borders are marked with the 2 countries - do we need to
allow region:left=international if it's a border with the ocean
instead of another country?



On Wed, Oct 29, 2008 at 10:32 PM, Roland Olbricht
[EMAIL PROTECTED] wrote:
 * the coastline doesn't constitute the real border of the country

 Most countries just don't have their border on the coastline but claim a zone
 of about 22.2 km (12 nautical miles). See e.g.
 http://en.wikipedia.org/wiki/Territorial_waters
 For example, this prevents that a ferry between the mainland and a nearby
 island already gets an international ferry. So it might be desireable to have
 as border rather a smoothend 12-nm-zone than the coastline.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Good explanation of latitude-to-pixel conversion?

2008-05-17 Thread OJ W
This set of functions might be more readable

http://svn.openstreetmap.org/applications/routing/pyroute/tilenames.py

and covers stuff like finding the edges of tiles, as well as just the
mercator stuff

On Sat, May 17, 2008 at 4:11 PM, David MENTRE [EMAIL PROTECTED] wrote:
 Hello,

 On Sat, May 17, 2008 at 2:29 PM, Nick Whitelegg
 [EMAIL PROTECTED] wrote:
 I have the code to do this, but I guess I'm one of these people that like
 to understand what's actually going on :-)

 You are not the only one. I followed the same path (pun intended) a few
 weeks ago.

 The specific formula I mean (represented in Java) is:

 public static int latToY(double lat,int zoom)
 {
double f = Math.sin((Math.PI/180)*lat);

int y = (int)Math.round
(Math.pow(2,zoom+7) + 0.5*Math.log((1+f)/(1-f)) *
 (-Math.pow(2,zoom+8)/(2*Math.PI)));
return y;
 }

 The code you give is to translate a (lat, zoom) to x coordinate, you
 have a more direct formula applying the Mercator projection to the lat
 value:
  http://wiki.openstreetmap.org/index.php/Mercator

 In the above page, it helps to know that r_minor and r_major are Earth
 Equatorial and Polar radii[1].

 The original post helps to understand why taking into account the
 variation of radius was necessary:
  http://osdir.com/ml/gis.openstreetmap.devel/2006-12/msg00016.html

 OJ W [EMAIL PROTECTED] writes:

 e.g. wikipedia will tell you all about how mercator itself works:

 http://en.wikipedia.org/wiki/Mercator_projection

 This is a very useful page.

 and for the tiles, alll you do is say select the bit of
 mercator-projected map between two arbitrary latitudes (which happen
 to be numerically special but you don't need to care about that) and
 call that range the limits of your map in Y.

 you then just start dividing Y into halves and quarters etc. to do the tiles.

 In fact, I found explanation in
 http://wiki.openstreetmap.org/index.php/Slippy_map_tilenames sufficient
 after thinking a little about it.

 I hope it helps,
 Yours,
 d.

 Footnotes:
 [1]  http://en.wikipedia.org/wiki/Earth

 --
 GPG/PGP key: A3AD7A2A David MENTRE [EMAIL PROTECTED]
  5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


[OSM-dev] Openlayers cyclemap permalinks

2008-05-17 Thread OJ W
The cycle map seems to have the openlayers permalink bug [1] - is it
possible to apply the latest openlayers corrections so that it uses
lat/long in permalinks?

Can someone from OL also reply to this, saying how to do the correction?



[1] 
http://www.gravitystorm.co.uk/osm/?zoom=13lat=6781599.86453lon=-126905.18782layers=B00

6781599 degrees north is not the usual way of representing positions

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


[OSM-dev] Filtered export using OSMXAPI?

2008-05-15 Thread OJ W
Just occurred to me (sorry if this is obvious) that the export tab
could let you type in a couple of tag/value pairs and generate a link
to OSMXAPI of the area with the filter you've specified.

So you could export (e.g.) all train lines within the visible area,
without too much new code...

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


Re: [OSM-dev] download a bbox from tiles

2008-04-08 Thread OJ W
On Tue, Apr 8, 2008 at 4:19 PM, Sven Grüner [EMAIL PROTECTED] wrote:

 Edoardo Marascalchi schrieb:
  how can i download just a section of the map giving a bbox?
  in the party video render script the url is defined as:
 
 http://dev.openstreetmap.org/~ojw/bbox/?W=12.381605S=43.108255E=12.393933N=43.117255width=600height=600http://dev.openstreetmap.org/%7Eojw/bbox/?W=12.381605S=43.108255E=12.393933N=43.117255width=600height=600
  but is'nt working..

 Looking fo this?
 http://tah.openstreetmap.org/MapOf/

 regards, Sven

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev




no, this is something that specifies exact positions for the edges of the
map...
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


Re: [OSM-dev] download a bbox from tiles

2008-04-08 Thread OJ W
Try zooming out.  It can't find a zoom level detailed enough to give the
resolution it wants

e.g. this works:

http://dev.openstreetmap.org/~ojw/bbox/?W=12.381605S=43.108255E=12.403933N=43.127255width=600height=600


Based on the extent of map requested, and size of image, it tries to pick a
reasonable zoom level.  Looks like it didn't find one for your sample URL.



On Tue, Apr 8, 2008 at 4:04 PM, Edoardo Marascalchi 
[EMAIL PROTECTED] wrote:

 how can i download just a section of the map giving a bbox?
 in the party video render script the url is defined as:

 http://dev.openstreetmap.org/~ojw/bbox/?W=12.381605S=43.108255E=12.393933N=43.117255width=600height=600http://dev.openstreetmap.org/%7Eojw/bbox/?W=12.381605S=43.108255E=12.393933N=43.117255width=600height=600
 but is'nt working..
 how have i to change? i can't find any information in the wiki..

 Edoardo
 --
 Edoardo Marascalchi
 ICT Consultant

 website: http://www.edoardomarascalchi.it
 skype: My status skype:asca_edom?call

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev


Re: [OSM-dev] slippymap doesnt wrap around +-180deg

2008-04-02 Thread OJ W
Follow the F-22's ;) http://it.slashdot.org/article.pl?sid=07/02/25/2038217
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev