Re: [OSM-dev] Hosting documentation for OSM related projects

2008-07-12 Thread Jochen Topf
On Fri, Jul 11, 2008 at 11:14:21AM +0200, bvh wrote:
 The current 'documentation' for merkaartor is just some bunch of static
 html files that I host on my personal website. As a result it is
 badly lacking. Sven Lanke approached me with the idea to keep the
 documentation inside subversion, which then gets checked out on the
 web server so that it is easier for people to make corrections 
 and additions.

You can have the documenation in subversion and serve it directly from
there. You can set the svn:mime-type property on the html files to text/html
and they will be served properly to the browser. For an example see
http://svn.openstreetmap.org/applications/utils/maplint/html/index.html .

I am not sure its a good idea performance wise, though.

Jochen
-- 
Jochen Topf  [EMAIL PROTECTED]  http://www.remote.org/jochen/  +49-721-388298


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


Re: [OSM-dev] Hosting documentation for OSM related projects

2008-07-12 Thread Thomas Wood
I'd prefer to see documentation on the wiki, to lower the entry
barrier to potential documenters!
The potlatch docs are quite worth a look, its subsection of the wiki
is very clearly laid out and easy to use.

-- 
Regards,
Thomas Wood
(Edgemaster)

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


Re: [OSM-dev] Hosting documentation for OSM related projects

2008-07-12 Thread bvh
On Sat, Jul 12, 2008 at 07:20:15PM +0200, Jochen Topf wrote:
  The current 'documentation' for merkaartor is just some bunch of static
  html files that I host on my personal website. As a result it is
  badly lacking. Sven Lanke approached me with the idea to keep the
  documentation inside subversion, which then gets checked out on the
  web server so that it is easier for people to make corrections 
  and additions.
 You can have the documenation in subversion and serve it directly from
 there. You can set the svn:mime-type property on the html files to text/html
 and they will be served properly to the browser. For an example see
 http://svn.openstreetmap.org/applications/utils/maplint/html/index.html .

Very nice trick! What about included images?

 I am not sure its a good idea performance wise, though.

I don' t think merkaartor documentation is going to be a big traffic
draw?

cu bart

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


Re: [josm-dev] downloading data along a gpx track

2008-07-12 Thread David Earl
On 11/07/2008 20:43, mariner wrote:
 Hi there,
 
 There is one feature I am really missing in JOSM. It's the ability to 
 donwload the data of OSM near a gpx track.
 
 I would like to place a feature request here on the list.

You can fill in a request in the Trac system, here:
http://josm.openstreetmap.de/newticket

 It would be great to get only the data from JOSM, which is really 
 important. This is mostly beside a track. Maybe 100 meters on each side 
 around the logpoints. Would something like this be possible? I would 
 like to help, but have no idea where to start...

I can see how this might be useful if you had a long ribbon of a track.

I don't think it would be particularly hard to repeatedly download an 
area centred on (a well chosen subset of) the points on a track. They'd 
be squares, not circles, around a point, and you'd always get complete 
ways so some will be go outside the box, but it would essentially do 
what you want.

However, this would mean making many calls on the server instead of just 
one, albeit for small areas each time.

Therefore I think it would probably be very slow to download, for no 
fault of JOSM.

You can always do something approximating this manually: zoom in to the 
start of your track with the screen showing 100m or so on either side. 
Download. Move the viewed area along the track a b it and download 
again, and so on. Tedious for a really long track perhaps, but will do 
the job.

David

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


Re: [josm-dev] Unclosed ways

2008-07-12 Thread Mark Williams
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dirk Stöcker wrote:
 On Thu, 10 Jul 2008, Frederik Ramm wrote:
 
 I try to build my unclosed ways tester. Now it seems to run fairly 
 good, but I'm not sure I catched all area types. Currently I have:
 If I were you I'd write a simple script to parse a planet file and
 dump the tags of every way where the last node equals the first.
 Straighforward to write, doesn't even require memory (node id
 equality is sufficient, node position not required), just a few hours
 of cpu time. That will give you a very good idea of how people tag
 areas; of yourse you'll have some circular roads, roundabouts etc. as
 well but it should be obvious to the human being which are meant so
 be areas.
 
 Well. Actually roundabouts are correct. I made an unclosed way checker 
 and no area checker. And an roundabout should be closed too :-)
 
 I will see if I find time for that at weekend.
 
 Ciao

Quite a few roundabouts aren't closed.

Reason being, if it goes over one road then under another, you need
different way sections to get layering  bridge correct.

An example:
http://www.openstreetmap.org/?lat=51.49664lon=0.27121zoom=16layers=0B0FFF

I don't think they need checking, I just don't like that assumption!

Mark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIePYDJfMmcSPNh94RApfTAJ9XFpkEE4y3gwKu2sQKYw8HePlZYACePNII
dtEAYPtV264bM2Yp8Oc5mU4=
=+i2Y
-END PGP SIGNATURE-


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


Re: [josm-dev] Unclosed ways

2008-07-12 Thread Dirk Stöcker
On Sat, 12 Jul 2008, Mark Williams wrote:

 Quite a few roundabouts aren't closed.

 Reason being, if it goes over one road then under another, you need
 different way sections to get layering  bridge correct.

 An example:
 http://www.openstreetmap.org/?lat=51.49664lon=0.27121zoom=16layers=0B0FFF

 I don't think they need checking, I just don't like that assumption!

Well, for sure the checks will produce false positives. That is always a 
balance between false positives and false negatives (i.e. not reported 
problems).

The check already helped me to find a non-closed roundabout and lots of 
natural/build/landuse problems, so I consider it useful. Also different 
types are reported with different texts, so ignoring certain types is 
easy. Test it and report problems, when they are really disturbing. But 
keep in mind, that avoiding false positives always means an increase of 
false negatives.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)

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


Re: [josm-dev] Presets in toolbar broken

2008-07-12 Thread Dirk Stöcker

On Sat, 12 Jul 2008, Christoph Eckert wrote:


http://josm.openstreetmap.de/ticket/1088


Checked in a fix for this. Not closing yet, as some stuff to do (mainly
adding icons :-).

When you add an item like this now

item name=Streets de:name=Straßen icon=presets/motorway.png/item

then it will be displayed accordingly (current SVN)

The de:name is only required as long as translation is not updated.


I didn't understand it yet. I have:

item name=Streets/Motorway icon=presets/motorway.png
label text=Edit a Motorway /

...


How can I now group them together with an icon for the group?


Nah, no grouping. I didn't change the data structure that much. Only add
item name=Streets icon=presets/motorway.png/item
above the first Streets/... item as normal item. When the item has no 
sub-tags (nothing meaningful between item and /item) and also no / 
in the name, then it will be taken as icon-supplier (actually as main 
preset menu initiation, which is otherwise done automatically). Add 
de:name=Straßen to have the german translation working (or else you get 
an icon Streets menu without submenus and Straßen group without icon).

Or you can update translation, has same effect :-)

ATM it is:
  item name=Streets/item
  item name=Streets/Motorway/item

Better would be
  group name=Straßen
item name=Motorway/item
  /group
but that's a major change I did not want to do right now.

Ciao
--
http://www.dstoecker.eu/ (PGP key available)___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/josm-dev