Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Jochen Topf
On Sun, May 31, 2009 at 01:41:39AM -0400, Russ Nelson wrote:
 The OSM webserver will tell you the ten people with home locations  
 closest to your home location.  It would be useful to be able to get  
 more than that, for the purpose of inviting people to attend mapping  
 parties so they can become more effective and enthusiastic OSM  
 contributors.  If you move your home location to the location of the  
 mapping party, you can get ten people, and if you move it around some  
 more, you can get more than just those ten.
 
 So, being intolerant of boring, repetitive activities, I've written a  
 program to find OSM users by their home location.  You give it a  
 lat,lon, and the radius in degrees of the circle in which you want to  
 find people, and it repeatedly changes your home location until it's  
 gotten everyone.
 
 Is this program a good thing or a bad thing?  If it's a good thing,  
 then great, I'll use it.  If it's a bad thing, then how do we stop  
 other people less cooperative than myself from writing the same program?

There are two issues here: First, the issue of server overload etc. This
could be solved simply by creating regular dumps of users with their home
locations. Kind of like the planet dumps. Its easier for users of the
data and easier on the database.

The other issue is privacy. Yes, people have willingly added a home
location, but it is different if you get bulk access to this. I don't
see this as a big issue considering that the home location is voluntary
and that much more information about users is available from the main
body of data itself, namely not only a home location but all the places
they have ever edited data. But some people may not like this.

And while we are on the topic: I think home location is a bit limiting.
How about giving users the option to add an (unlimited) number of
locations, maybe not as a point but as a bounding box and tag them.
And make it explicit that this information is public. Users can use this
to mark their home (location=home) or workplace (location=work). Or they
can express an interest in some area (interest=changes). Applications
external to the core can read this information and do things with it,
such as producing personalized feeds of changes.

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/  +49-721-388298


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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Emilie Laffray
Hello,

I guess it all depends on whether the users have accepted to make public
their location. I am not sure whether the site allows to decide whether
to make public or not your location.
Personally, while I understand your enthusiasm, I would find annoying to
receive a pre-formatted message asking me to do more for Open Street
Map. I am more than happy to help people in the same area as me, and I
actually did contact someone editing my hometown for that very purpose.
But I would get twitchy if it was done a mass scale.
This is a hobby project for me and I would consider your practice to be
a bit like bullying. But that's just me.
However, it varies from people to people and if they choose to make
their location public I see no reason not to send them an email. I just
wouldn't like it. The key thing is that you have to be careful about
privacy in this case.

Emilie Laffray

Russ Nelson wrote:
 The OSM webserver will tell you the ten people with home locations  
 closest to your home location.  It would be useful to be able to get  
 more than that, for the purpose of inviting people to attend mapping  
 parties so they can become more effective and enthusiastic OSM  
 contributors.  If you move your home location to the location of the  
 mapping party, you can get ten people, and if you move it around some  
 more, you can get more than just those ten.

 So, being intolerant of boring, repetitive activities, I've written a  
 program to find OSM users by their home location.  You give it a  
 lat,lon, and the radius in degrees of the circle in which you want to  
 find people, and it repeatedly changes your home location until it's  
 gotten everyone.

 Is this program a good thing or a bad thing?  If it's a good thing,  
 then great, I'll use it.  If it's a bad thing, then how do we stop  
 other people less cooperative than myself from writing the same program?

 --
 Russ Nelson - http://community.cloudmade.com/blog - 
 http://wiki.openstreetmap.org/wiki/User:RussNelson
 r...@cloudmade.com - Twitter: Russ_OSM - 
 http://openstreetmap.org/user/RussNelson


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




signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Tom Hughes
Russ Nelson wrote:

 So, being intolerant of boring, repetitive activities, I've written a  
 program to find OSM users by their home location.  You give it a  
 lat,lon, and the radius in degrees of the circle in which you want to  
 find people, and it repeatedly changes your home location until it's  
 gotten everyone.

I had heard rumours that such a program existed...

 Is this program a good thing or a bad thing?  If it's a good thing,  
 then great, I'll use it.  If it's a bad thing, then how do we stop  
 other people less cooperative than myself from writing the same program?

Well it's certainly bad from a technological point of view, and from the 
point of view of the stress it potentially places on the site. The 
correct way to solve the problem is to enhance the facilities the site 
offers for visualising mappers locations.

We may also of course want to strengthen the privacy controls we offer 
users at the same time.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://www.compton.nu/

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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Tom Hughes
Emilie Laffray wrote:

 I guess it all depends on whether the users have accepted to make public
 their location. I am not sure whether the site allows to decide whether
 to make public or not your location.

Well first of all we don't require anybody to give their location at 
all, though some people might want to (as it becomes their default map 
view when logged in) but not make it public.

Secondly, if it is set then only people that have made their data public 
are visible, but of course all new members get that state automatically 
and can't change it. Plus anybody wanting to edit the map now needs to 
make their edits public.

 However, it varies from people to people and if they choose to make
 their location public I see no reason not to send them an email. I just
 wouldn't like it. The key thing is that you have to be careful about
 privacy in this case.

I would suggest that we (a) add a new reveal my location preference 
and then (b) add better features for browsing a map with users who have 
chosen to reveal their location marked.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://www.compton.nu/

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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Joe Richards

How about a set of contact preferences?  It would be easy to say allow other 
OSMers to contact me for mapping parties etc.  Perhaps for old users this 
could be set to on by default, but we send them a little message so that they 
can change it straight away if they want to.

Something like the ITOWorld OSM Mapper would be great on the site (or at least 
linked to), so that people can see activity in their areas of interest
http://www.itoworld.com/static/osmmapper



- Original Message 
From: Emilie Laffray emilie.laff...@gmail.com
To: Russ Nelson r...@cloudmade.com
Cc: dev@openstreetmap.org
Sent: Sunday, 31 May, 2009 9:26:02
Subject: Re: [OSM-dev] finding OSM users by their home locations

Hello,

I guess it all depends on whether the users have accepted to make public
their location. I am not sure whether the site allows to decide whether
to make public or not your location.
Personally, while I understand your enthusiasm, I would find annoying to
receive a pre-formatted message asking me to do more for Open Street
Map. I am more than happy to help people in the same area as me, and I
actually did contact someone editing my hometown for that very purpose.
But I would get twitchy if it was done a mass scale.
This is a hobby project for me and I would consider your practice to be
a bit like bullying. But that's just me.
However, it varies from people to people and if they choose to make
their location public I see no reason not to send them an email. I just
wouldn't like it. The key thing is that you have to be careful about
privacy in this case.

Emilie Laffray

Russ Nelson wrote:
 The OSM webserver will tell you the ten people with home locations  
 closest to your home location.  It would be useful to be able to get  
 more than that, for the purpose of inviting people to attend mapping  
 parties so they can become more effective and enthusiastic OSM  
 contributors.  If you move your home location to the location of the  
 mapping party, you can get ten people, and if you move it around some  
 more, you can get more than just those ten.

 So, being intolerant of boring, repetitive activities, I've written a  
 program to find OSM users by their home location.  You give it a  
 lat,lon, and the radius in degrees of the circle in which you want to  
 find people, and it repeatedly changes your home location until it's  
 gotten everyone.

 Is this program a good thing or a bad thing?  If it's a good thing,  
 then great, I'll use it.  If it's a bad thing, then how do we stop  
 other people less cooperative than myself from writing the same program?

 --
 Russ Nelson - http://community.cloudmade.com/blog - 
 http://wiki.openstreetmap.org/wiki/User:RussNelson
 r...@cloudmade.com - Twitter: Russ_OSM - 
 http://openstreetmap.org/user/RussNelson


 ___
 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 OSM users by their home locations

2009-05-31 Thread Tom Hughes
Joe Richards wrote:

 How about a set of contact preferences?  It would be easy to say allow other 
 OSMers to contact me for mapping parties etc.  Perhaps for old users this 
 could be set to on by default, but we send them a little message so that 
 they can change it straight away if they want to.

That's basically unenforceable though - we have no way of knowing what a 
message is about when somebody sends it.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://www.compton.nu/

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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Lennard
Russ Nelson wrote:
 The OSM webserver will tell you the ten people with home locations  
 closest to your home location.  It would be useful to be able to get  

Ticket #1425 requested to return more than 10 nearby mappers too.

http://trac.openstreetmap.org/ticket/1425

-- 
Lennard

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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Matt Amos
On Sun, May 31, 2009 at 11:41 AM, Tom Hughes t...@compton.nu wrote:
 Joe Richards wrote:
 How about a set of contact preferences?  It would be easy to say allow 
 other OSMers to contact me for mapping parties etc.  Perhaps for old users 
 this could be set to on by default, but we send them a little message so 
 that they can change it straight away if they want to.

 That's basically unenforceable though - we have no way of knowing what a
 message is about when somebody sends it.

if we want to keep the map on the users' pages showing the nearest
other users to them, we might as well offer this data publicly. as
russ said, it's one script and a bunch of server load away from being
public anyway.

in my opinion it's evil to contact users who haven't opted in to be
contacted. it's a valid point of view that they implicitly opted in,
but i don't think this is what most users intended when they added a
home location - it's certainly not what i intended.

i like jochen's idea of being able to additionally put in a bbox (or
maybe several) that are areas of interest - please contact me about
OSM activities in this area. we could then make the users' home
locations private, but show a map of which users are interested in
areas near your home location. of course, a simple notify me about
OSM activites in my area checkbox could make it very easy to create a
bbox centred on your home location.

this could also start allowing 3rd party sites to easily offer a
follow changes in my areas of interest feature, which has been often
requested.

cheers,

matt

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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Russ Nelson

On May 31, 2009, at 7:00 AM, Matt Amos wrote:

 if we want to keep the map on the users' pages showing the nearest
 other users to them, we might as well offer this data publicly. as
 russ said, it's one script and a bunch of server load away from being
 public anyway.

Right.  If we want to protect people's privacy, then we should change  
the map on the users' pages.  We shouldn't claim to protect people's  
privacy and then do so ineffectually.

 in my opinion it's evil to contact users who haven't opted in to be
 contacted. it's a valid point of view that they implicitly opted in,
 but i don't think this is what most users intended when they added a
 home location - it's certainly not what i intended.

By this principle, nobody -- not any individual editor, not the OSMF  
-- can send email to any user.  And yet, OSM has an email system, and  
people are encouraged to use it to ask users about their edits.

 i like jochen's idea of being able to additionally put in a bbox (or
 maybe several) that are areas of interest - please contact me about
 OSM activities in this area. we could then make the users' home
 locations private,

+1

And then create a way to Send an email to a location which gets  
archived so that people who come along later can see earlier messages  
posted to that location.

If we could get those bounding boxes (to protect privacy, without  
usernames), that could also let us find the places in which nobody (or  
few people) are interested.  If there are holes in the interest level,  
then the map isn't going to be very good in those locations.

--
Russ Nelson - http://community.cloudmade.com/blog - 
http://wiki.openstreetmap.org/wiki/User:RussNelson
r...@cloudmade.com - Twitter: Russ_OSM - 
http://openstreetmap.org/user/RussNelson


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


[OSM-dev] Coastline Rendering

2009-05-31 Thread brendan barrett
Hey all.

I'm trying to render coastlines in an app that I am building using OSM
data (The rendering engine just draws shapes and I have to determine
what shapes to draw). I've been able to learn a lot from the wiki
about how coastlines are created (anti-clockwise and joined end on
end), but still have an issue with deciding where there is sea and
where there is land if zoomed into an area with no features.

From what I saw, there is a binary file somewhere that maps out the
land / sea areas that you can query if you find no coastline ways etc.
Is this the best / only approach? If so, where could I find this file?
Should I create one myself? Does it work well over the whole globe?

Does anyone with coastline rendering experience have any suggestions
on how best to solve this problem?

I'd really appreciate any input as I want to render coastlines in
real-time using the data pretty much as is (i.e. not convert to shape
files etc). This is for a client side application using real-time
rendering, so I am looking for the fastest approach.

Regards,
Brendan

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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Matt Amos
On Sun, May 31, 2009 at 1:46 PM, Russ Nelson r...@cloudmade.com wrote:
 On May 31, 2009, at 7:00 AM, Matt Amos wrote:

 if we want to keep the map on the users' pages showing the nearest
 other users to them, we might as well offer this data publicly. as
 russ said, it's one script and a bunch of server load away from being
 public anyway.

 Right.  If we want to protect people's privacy, then we should change
 the map on the users' pages.  We shouldn't claim to protect people's
 privacy and then do so ineffectually.

+1 - it probably doesn't matter so much in urban areas, where the
inaccuracy of the home location is much greater than the distance
between houses. in rural areas it's more of an issue...

 in my opinion it's evil to contact users who haven't opted in to be
 contacted. it's a valid point of view that they implicitly opted in,
 but i don't think this is what most users intended when they added a
 home location - it's certainly not what i intended.

 By this principle, nobody -- not any individual editor, not the OSMF
 -- can send email to any user.  And yet, OSM has an email system, and
 people are encouraged to use it to ask users about their edits.

sorry - i should have restricted my statement to unsolicited mass
mails (i.e: spam) by other users.

clearly the OSMF needs to be able to contact users in an official
capacity (e.g: questionable edits, license changes, etc...), and OSM
users may want to directly contact eachother to resolve similar issues
on a less official level. it's difficult to enforce technically, but,
in my opinion, we should be strongly discouraging mass sending of
unsolicited messages.

 And then create a way to Send an email to a location which gets
 archived so that people who come along later can see earlier messages
 posted to that location.

this is an interesting idea - what would you use it for?

there's been lots of talk in the past about incorporating OSB into the
main OSM site, which would have a similar set of features.

 If we could get those bounding boxes (to protect privacy, without
 usernames), that could also let us find the places in which nobody (or
 few people) are interested.  If there are holes in the interest level,
 then the map isn't going to be very good in those locations.

even with usernames - i think it's acceptable to say that a
declaration of interest in an area is public knowledge. a map overlay
shading by username would be very interesting/pretty/useful (delete as
appropriate).

cheers,

matt

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


[OSM-dev] Max size of changeset with josm (in kb)

2009-05-31 Thread Sam Vekemans
Hi,
I already got part of the answer - 50,000 (things; nodes, lines, areas
-total) so now i want to know, what approx size (in mb, kb) is safe?
I loaded a changeset of 358 kb and it seemed happy. Would 1 meg be too much?

I know that there is a max geographical download area built in, (it's
say's download area OK, size probably acceptable by server) but is
there a time out or an exact max file size to download? (a squak
level) (i know that i download a large area when im tracing from my
GPS Tracks.  (Victoria is about 8 megs) and so it takes a little time
to load, so i dont load that big area any more, i just open that old
Victoria file, then zoom to the area im working in, then get the
latest updates for that small area.

Also, is there an easy way i can chop the .osm file into 4 or 16 happy
geographical area chunks? Thus, smaller file sizes to deal with.
Thanks,
Sam

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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Chris Jones
On 31 May 2009, at 06:41, Russ Nelson wrote:

 The OSM webserver will tell you the ten people with home locations
 closest to your home location.  It would be useful to be able to get
 more than that, for the purpose of inviting people to attend mapping
 parties so they can become more effective and enthusiastic OSM
 contributors.  If you move your home location to the location of the
 mapping party, you can get ten people, and if you move it around some
 more, you can get more than just those ten.

Sounds evil... but less evil than your current method of spamming  
everyone who has edited something nearby.

--
Chris Jones, SUCS Admin
http://sucs.org

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


[OSM-dev] osm2pgsql problems

2009-05-31 Thread Mikel Maron
Hi

Running osm2pgsql and running into problems. Trying to load all of planet.osm. 
From the osm2pgsql log, it appears that after it has finished loading all 
nodes, the process errors without notice.

Looking in the postgresql log, at the time the log ends, there are these 
messages...

2009-05-29 15:14:34 PDT ERROR:  unexpected EOF on client connection
2009-05-29 15:14:34 PDT CONTEXT:  COPY planet_osm_line, line 1
2009-05-29 15:14:34 PDT STATEMENT:  COPY planet_osm_line 
(osm_id,access,addr:flats,addr:housenumber,addr:interpolation,admin_level,aerialway,aeroway,amenity,area,barrier,bicycle,bridge,boundary,building,construction,cutting,disused,embankment,foot,highway,historic,horse,junction,landuse,layer,learning,leisure,lock,man_made,military,motorcar,name,name:en,name:ar,natural,oneway,power,power_source,place,railway,ref,religion,residence,route,service,sport,tourism,tracktype,tunnel,waterway,width,wood,z_order,way_area,way)
 FROM STDIN
2009-05-29 15:14:34 PDT ERROR:  unexpected EOF on client connection

..followed by similar messages for the other tables.

Anyone have any advice on how resolve/debug this problem.

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


[OSM-dev] Alternative to lan/lon / zoomable search grid

2009-05-31 Thread Munich Orientation Convention
.

Hi,

 

I've developed a polar search grid where the index can also be an
intelligent postal code, see google mapplets
http://www.volksnav.com/mapplet www.volksnav.com/mapplet. During a
presentation to Google Zurich they've suggested to develop such tools also
for OSM. 

 

Can anybody help me on that? Which environment is needed?

 

Thank you in advance,  Henry Koehler / VolksNav 

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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Michael Kugelmann
Tom Hughes schrieb:
 I would suggest that we (a) add a new reveal my location preference 
 and then (b) add better features for browsing a map with users who have 
 chosen to reveal their location marked
+1
A better tool would be very fine. As the 10 persons are bit very much - 
especially in larger cities like Munich and under concern of the 
increasing number of people involved in OSM/mapping.

Very welcome would be a map based tool to see who is mapping in a 
certain area. You can achieve this by changing your location. But this 
trick is not the best way IMHO.


Best regards,
Michael.



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


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Paul Johnson
Matt Amos wrote:
 On Sun, May 31, 2009 at 1:46 PM, Russ Nelson r...@cloudmade.com wrote:
 On May 31, 2009, at 7:00 AM, Matt Amos wrote:
 if we want to keep the map on the users' pages showing the nearest
 other users to them, we might as well offer this data publicly. as
 russ said, it's one script and a bunch of server load away from being
 public anyway.
 Right.  If we want to protect people's privacy, then we should change
 the map on the users' pages.  We shouldn't claim to protect people's
 privacy and then do so ineffectually.
 
 +1 - it probably doesn't matter so much in urban areas, where the
 inaccuracy of the home location is much greater than the distance
 between houses. in rural areas it's more of an issue...

Well, my neighborhood happens to be surprisingly well mapped for TIGER,
about the only obstacle for someone finding me is that it doesn't
include elevation data, and I live in a nonoplex (think duplex, but 9
instead of 2).



signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Paul Johnson
Tom Hughes wrote:
 Emilie Laffray wrote:
 
 I guess it all depends on whether the users have accepted to make public
 their location. I am not sure whether the site allows to decide whether
 to make public or not your location.
 
 Well first of all we don't require anybody to give their location at 
 all, though some people might want to (as it becomes their default map 
 view when logged in) but not make it public.

This feature alone makes me wish there was a remember me checkbox,
since my laptop's always with me and nobody else uses it.

 I would suggest that we (a) add a new reveal my location preference 
 and then (b) add better features for browsing a map with users who have 
 chosen to reveal their location marked.

I'm in favor.



signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] finding OSM users by their home locations

2009-05-31 Thread Paul Johnson
Matt Amos wrote:

 in my opinion it's evil to contact users who haven't opted in to be
 contacted. it's a valid point of view that they implicitly opted in,
 but i don't think this is what most users intended when they added a
 home location - it's certainly not what i intended.

I'm not sure it's a valid point of view beyond the current assumption:
You want to hear from other OSM users trying to contact you, without
necessarily revealing contact information.  It's generally OK to assume
people want to hear from other humans, but not OK to assume they want
automated or bulk messages without them opting in first.  I think trying
to push beyond that might result in folks reporting OSM messages as
spam, which is an annoying and sometimes expensive problem to fix.  Err
on the conservative side of sending things en masse or automatically
unless it's been specifically requested.




signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Osmosis error read-xml (NullPointerException)

2009-05-31 Thread Brett Henderson
marcus.wolsc...@googlemail.com wrote:
 On Thu, 28 May 2009 17:42:02 +1000, Brett Henderson br...@bretth.com
 wrote:
   
 Line 43 of RelationMemberWriter above deals with the relation member 
 role.  Your osm file above is missing all of the role attributes on 
 relation members which would cause this problem to occur.

 Perhaps xapi doesn't include the role attribute if it is empty ... I 
 thought it was mandatory ...
 


 So maybe we should add a

 if (member.getRole() == null) {
throw new IllegalArgumentException(no role for reltion-member 
+ member.getElementID() +  of relation  + relation.getID());
 }

 to give better error-messages in this case.

 or much better, add this to 
 RelationMenber:setRole(final String aRole)
 so no illegal members can ever be created.
 (and of cause call the setters from the constructor
  as is good practice to make subclassing easier.)
   
Yep, I'd prefer to add it here so that it's not possible to create an 
invalid member.  I haven't done null checks anywhere so far due to the 
amount of extra code it requires, but it sounds like it would be a good 
idea, at least on the data classes.

Brett


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


Re: [OSM-dev] JSON/GeoJSON output format for 0.6 api

2009-05-31 Thread Frederik Ramm
Hi,

Tels wrote:
 Well, one could fetch the data at z17, see it is below some 
 $ARBITRARY_THRESHOLD, zoom out to z16m, fetch again, and if still below 
 $THRESHOLD, repeat it until either there is too much data (display 
 message) or the user-requested zoomlevel was reached.

I think the ti...@home folks already keep a database that says how 
complex each level-12 tile is. So if we were not so busy telling them 
how they're technologically backwards and how their whole project is 
rubbish, they might just give us that.

I also suspect that the size of a PNG tile would bear a halfway linear 
relationship to the amount of data on that tile, so a HEAD request 
against the tile server could work just as well.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

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


Re: [OSM-dev] [Tilesathome] I'd like a list of the file size of all z12 tilesets

2009-05-31 Thread Ævar Arnfjörð Bjarmason
2009/5/21 Ævar Arnfjörð Bjarmason ava...@gmail.com:
 On Wed, May 20, 2009 at 6:53 PM, Sebastian Spaeth sebast...@sspaeth.de 
 wrote:
 Ævar Arnfjörð Bjarmason wrote:
 I want to play with producing a heat map of the globe where heat is
 determined by the relative size of t...@h tilesets at z12.

 I could also use the tiles themselves, but I suppose the tilesets will
 be a better indicator of complexity. But whatever's easy.

 Could someone with access to the t...@h servers pretty please generate
 this for me? :)

 20:51  spaetz http://tah.openstreetmap.org/media/filesizes.bz2
 20:52  spaetz result of ls --file-type -l -R  filesizes
 20:52  spaetz takes some grepping, and cutting to get the raw sizes,
 but the
                info is in there.

 I converted it to something better using a hacky ad-hoc script (attached):

 http://u.nix.is/~avar/tile-sizes.txt.bz2

I went ahead and created a renderer so it now makes a heat map, it's
under applications/rendering/tah-heatmap in svn:

http://trac.openstreetmap.org/changeset/15441

Example output here:

http://u.nix.is/~avar/osm-heatmap.png

And how to run it:

http://trac.openstreetmap.org/browser/applications/rendering/tah-heatmap/README

Ideally this map would be mostly red around large capital areas and
blue along most of the coastline and other sparsely mapped areas. But
the heatmap() function I ripped from ViewCVS takes values between 0
and  1 (which I normalize to with $tile_size/$max_tile_size) and
since most tiles fall towards the lower end of the size spectrum the
map ends up being mostly blue.

I've been trying to find an algorithm which would intelligently
distribute these values so I'd get the blue/yellow/green/red colors
which compose the canonical heat map, but such numeric crunching isn't
my strongest side. Help would be appreciated.

These are the min/max/average/median t...@h tile sizes, for reference:

Min = 5472
Max = 38211510
Average = 551490
Median = 227879
Number of tiles = 937254

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


Re: [OSM-dev] [Tilesathome] I'd like a list of the file size of all z12 tilesets

2009-05-31 Thread Ævar Arnfjörð Bjarmason
2009/5/31 Ævar Arnfjörð Bjarmason ava...@gmail.com:
 2009/5/21 Ævar Arnfjörð Bjarmason ava...@gmail.com:
 On Wed, May 20, 2009 at 6:53 PM, Sebastian Spaeth sebast...@sspaeth.de 
 wrote:
 Ævar Arnfjörð Bjarmason wrote:
 I want to play with producing a heat map of the globe where heat is
 determined by the relative size of t...@h tilesets at z12.

 I could also use the tiles themselves, but I suppose the tilesets will
 be a better indicator of complexity. But whatever's easy.

 Could someone with access to the t...@h servers pretty please generate
 this for me? :)

 20:51  spaetz http://tah.openstreetmap.org/media/filesizes.bz2
 20:52  spaetz result of ls --file-type -l -R  filesizes
 20:52  spaetz takes some grepping, and cutting to get the raw sizes,
 but the
                info is in there.

 I converted it to something better using a hacky ad-hoc script (attached):

 http://u.nix.is/~avar/tile-sizes.txt.bz2

 I went ahead and created a renderer so it now makes a heat map, it's
 under applications/rendering/tah-heatmap in svn:

 http://trac.openstreetmap.org/changeset/15441

 Example output here:

 http://u.nix.is/~avar/osm-heatmap.png

Using 32 times the median as the maximum value makes things somewhat better:

http://u.nix.is/~avar/osm-heatmap-black-2.png

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


Re: [josm-dev] Only method post is supported on this URI

2009-05-31 Thread Rolf Bode-Meyer
2009/5/31 Maarten Deen md...@xs4all.nl:

 But I did see what was wrong: the upload URL has changed from
 http://www.openstreetmap.com/api to http://api.openstreetmap.org/api (notice 
 the
 www-api and com-org).

I don't know about .com, but http://www.openstreetmap.org/api works fine here.

Rolf

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


Re: [josm-dev] Only method post is supported on this URI

2009-05-31 Thread Shaun McDonald

On 31 May 2009, at 14:04, Maarten Deen wrote:

 Russ Nelson wrote:
 Maarten Deen writes:
 I spent some time adding and changing stuff in JOSM, but when  
 uploading I get
 the message Only method post is supported on this URI.
 This happens to me with the josm-latest (and the version from  
 21-05-2009).

 What is this error, what is going wrong?

 I don't know either, but deleting my 'preferences' file got uploading
 to work again.

 Thanks, but that made it worse initially. It just spat out errors  
 trying to
 upload. But I did see what was wrong: the upload URL has changed from
 http://www.openstreetmap.com/api to http://api.openstreetmap.org/api  
 (notice the
 www-api and com-org).

Why have you been using www.openstreetmap.com? This has never been the  
default in JOSM, as far as I'm aware.

You need to be using either http://www.openstreetmap.org/api or 
http://api.openstreetmap.org/api 
  for it to work now that all other domains (including osm.org and  
openstreetmap.com) redirect to www.openstreetmap.org.

Maybe we need to add this to 
http://josm.openstreetmap.de/wiki/StartupPageSource 
  ?

Shaun


 I do remeber some talk about splitting the general www. URL, but I  
 failed to tie
 this to changing the URL in JOSM.

 FWIW for others who have the same problem.

 Regards,
 Maarten

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


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


Re: [josm-dev] Only method post is supported on this URI

2009-05-31 Thread Maarten Deen
Shaun McDonald wrote:
 On 31 May 2009, at 14:04, Maarten Deen wrote:
 
 Russ Nelson wrote:
 Maarten Deen writes:
 I spent some time adding and changing stuff in JOSM, but when  
 uploading I get
 the message Only method post is supported on this URI.
 This happens to me with the josm-latest (and the version from  
 21-05-2009).

 What is this error, what is going wrong?

 I don't know either, but deleting my 'preferences' file got uploading
 to work again.

 Thanks, but that made it worse initially. It just spat out errors  
 trying to
 upload. But I did see what was wrong: the upload URL has changed from
 http://www.openstreetmap.com/api to http://api.openstreetmap.org/api  
 (notice the
 www-api and com-org).
 
 Why have you been using www.openstreetmap.com? This has never been the  
 default in JOSM, as far as I'm aware.

Probably because in the olden days there were no default settings and this was 
one of the URLs (_the_ URL?) to be used. Or I played around with it in the past 
and never knew it should be .org, I don't know. It always worked and now all of 
a sudden it doesn't.

 You need to be using either http://www.openstreetmap.org/api or 
 http://api.openstreetmap.org/api 
   for it to work now that all other domains (including osm.org and  
 openstreetmap.com) redirect to www.openstreetmap.org.
 
 Maybe we need to add this to 
 http://josm.openstreetmap.de/wiki/StartupPageSource 
   ?

I saw that JOSM now fills the .org address as default, but if in the future the 
API URL changes than it would be a helpful addition.
And in the OSM wiki too.

Regards,
Maarten


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