Re: [OSM-dev] Nominatim (npi / osm)?

2011-12-19 Thread Erik Johansson
On Sun, Dec 18, 2011 at 10:23, Toby Murray toby.mur...@gmail.com wrote:
 I am not very familiar with the internal workings of Nominatim but I
 do know that it takes some very serious hardware to build a database
 from the ground up using an OSM planet file. I believe this is why the
 pre-indexed feature came to be. It allows you to maintain a nominatim
 database without overly expensive equipment. As far as I know,
 MapQuest Open is currently the only source of pre-indexed data. Have
 you read their pages about it?

 http://developer.mapquest.com/web/products/open/nominatim/indexed

 From that page, there is a link to the developer guide which has
 additional details. Although looking through there it seems like their
 service may be broken. The last full dump is from March and the last
 diff is from October...


Since the MQ server  http://nominatim.openstreetmap.org/ hasn't been
updated since august, that comes as no surprise,

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

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


Re: [OSM-dev] White squares in sea inEurope

2011-12-09 Thread Erik Johansson
On Thu, Dec 8, 2011 at 23:19, yvecai yve...@gmail.com wrote:
 On 08. 12. 11 21:54, Erik Johansson wrote:

 On Thu, Dec 8, 2011 at 17:49, yvecaiyve...@gmail.com  wrote:

 On 07. 12. 11 20:26, yvecai wrote:

 I've already seen here and there the effect of a broken coastline, but
 we
 have something different in that server:
 http://osmati.net/osmand/map?zoom=3lat=53.98194lon=23.90625layers=B
 I hope somebody has already seen something like this.

 We are trying to setup a tile server to reduce tile requests on the main
 server from the Osmand Android app.
 Setup is the following:
 Debian 5, postgresql 8.3
 Mapnik 0.7.1
 osm.xml from svn 19/11/2011

 Please don't zoom that much (not  11), we are still facing issues with
 renderd troughput, I may come back on that later.

 Yves

 I said don't zoom  11!  :)
  Ok, I limit the zoom in OpenLayers. No idea about the white squares,
 anybody?

 Which coastline shapefile do you use?

 I figure out that I was using one from one year ago! With a fresh one, it's
 ok now.
 Thanks!

Interesting I would have thought the problem would have been more
intricate than that. I wonder if that old shapefile ever worked.

It looked like it had been optimized in someway removing all square
water polygons or something.

/Erik
-- 
/emj

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


Re: [OSM-dev] osm2pgsql not appending changeset?

2011-12-06 Thread Erik Johansson
On Tue, Dec 6, 2011 at 12:55, Ákos Maróy a...@maroy.hu wrote:
 On 06/12/11 12:37, Peter Körner wrote:
 Am 06.12.2011 11:30, schrieb Ákos Maróy:
 on the OSM wiki, I found a number of update options, and I have to say
 I'm a bit confused. which is the best option if I want to get all the
 updates for the whole planet file, say, each week?

 Call osmosis once a week to download the last 7 day-replicate files and
 push them through osm2pgsql.

 thanks for the input.

 I'm looking at the osmosis documentation, both online, and through
 --help, but can't find pointers on downloading. I see options to derive
 changesets, load OSM XML files into a database, applying changesets,
 sorting, etc.

 could you be more specific?

http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.39#Replication_Tasks

Or the well written prose version:
http://ksmapper.blogspot.com/2011/04/keeping-database-up-to-date-with.html
or lots of links in
http://wiki.openstreetmap.org/wiki/Osmosis/Examples

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


Re: [OSM-dev] speeding up loading an OSM dump into PostGIS?

2011-11-29 Thread Erik Johansson
On Wed, Nov 30, 2011 at 07:25, Ákos Maróy a...@maroy.hu wrote:
 thus, I wonder, what good ways are there to speed up this process?

 or, to put it in the other perspective: what hardware would make be
 needed to make this process faster?

According to the benchmark page SSD can make things fast. Europe was
apparently imported in 8 hours vs 60 hours with spinning media.

http://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks#sly.27s_benchmark_05.2F2010_.28influence_of_SSD.2C_software_RAID_and_memory_on_import_and_diffs.29



-- 
/emj

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


Re: [OSM-dev] Where is the code that checks if the user is logged in before serving the request?

2011-11-18 Thread Erik Johansson
On Fri, Nov 18, 2011 at 10:59, Alexandru icid...@yahoo.com wrote:
 I want to add some more pages behind the authorization feature. Would
 someone please help me with that?


You might want to read up on MVC
http://www.google.com/search?q=introduction+to+MVC

And on Ruby
http://www.google.com/?q=ruby+introduction


Then take the User model and change it until it's broken, the first 20
lines in the controller are specifically interesting:

https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/user_controller.rb

https://github.com/openstreetmap/openstreetmap-website/blob/master/app/views/user/account.html.erb

-- 
/emj

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


Re: [OSM-dev] OSM XML declaration, JOSM, Osmosis et al.

2011-09-21 Thread Erik Johansson
On Wed, Sep 21, 2011 at 8:12 AM, Roland Olbricht roland.olbri...@gmx.de wrote:
 JOSM and Osmosis both
 complain about the absence of version attributes on the individual OSM
 elements for data without meta data.

 Having OSM data with or without meta data is really a useful feature. The same
 data with meta data is three times bigger than without, in a context, where
 data size matters, and the meta data is usually only needed when one wants to
 re-upload the data to the main database.

A bit off topic: I just tried overpass and was surprised that the
default seems to be to strip the version and date, I'm not so keen on
that feature.

Is Overpass so geared for tools that don't care about
uid/date/version/visible etc?

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


Re: [OSM-dev] Improving History and Monitoring

2011-05-07 Thread Erik Johansson
On Sat, May 7, 2011 at 5:46 PM, Mikel Maron mikel_ma...@yahoo.com wrote:

 I have refused to apply patches which do that, because I want somebody to
 fix it properly and I am trying to incentivise people to do so.

 Tom, you're talking about integrating OWL, yes? And in principle, that's the
 best solution ... but it's been over a year that I've heard that, and I just
 want to improve things now, in a way I possibly can.

Even if OWL gets integrated I think Mikels solution would still be
better for many changesets (and vice versa). Considering that OWL in
its current form isn't designed to visualize lots of changesets, this
clearly isn't only about big changesets.

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


Re: [OSM-dev] Implied Tags

2011-04-13 Thread Erik Johansson
On Tue, Apr 12, 2011 at 9:14 PM, Christian Vetter
veaac.fdi...@gmail.com wrote:
 On Tue, Apr 12, 2011 at 9:08 PM, Igor Brejc igor.br...@gmail.com wrote:


 On Tue, Apr 12, 2011 at 9:03 PM, Christian Vetter veaac.fdi...@gmail.com
 wrote:

 And the implied tags noted in the wiki pages?


 Could you be more specific? What tags, what pages?
 Igor

 Implications noted down in the KeyDescription template (
 http://wiki.openstreetmap.org/wiki/Template:KeyDescription ) like e.g.
 http://wiki.openstreetmap.org/wiki/Tag:barrier%3Dbollard .

Can someone tell me why bollards  would imply access=no, and bike=yes
if access=no means you can not access that place, perhaps it should be
car=no?

http://wiki.openstreetmap.org/wiki/Tag:access%3Dno
http://wiki.openstreetmap.org/wiki/Key:access


That said the wiki is best effort documentation, in the same sense
that the understanding  of tags in OSM is best effort. E.g. I still
consider highway=cycleway to imply foot=yes, which I guess is wrong.



-- 
/emj

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


Re: [OSM-dev] Implied Tags

2011-04-13 Thread Erik Johansson
On Wed, Apr 13, 2011 at 10:51 AM, Christian Vetter
veaac.fdi...@gmail.com wrote:
 Hi,

 On Wed, Apr 13, 2011 at 10:44 AM, Erik Johansson e...@kth.se wrote:
 Can someone tell me why bollards  would imply access=no, and bike=yes
 if access=no means you can not access that place, perhaps it should be
 car=no?

 If you look at the access tags, they actually form an access tree.
 Tags can be overwritten by their children, e.g. access=no,vehicle=yes
 means that nobody can access except vehicles and subclasses of
 vehicles.

That sounds good, but bollards allow alot more things and it
dissallows, and I would have to update it with wheelchair=yes,
stroller=yes, pram=yes.

I'm removing access=no from the bollard wiki page.



-- 
/emj

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


Re: [OSM-dev] OSM and MongoDB

2011-04-12 Thread Erik Johansson
On Tue, Apr 12, 2011 at 2:58 AM, Ian Dees ian.d...@gmail.com wrote:
 On Mon, Apr 11, 2011 at 6:36 PM, Sergey Galuzo ser...@microsoft.com wrote:

 Hi,



 I am working on evaluation of MongoDB for several storage solutions at
 hand. Some of them resemble current OSM editing database. I have heard that
 OSM dev is/was evaluating MongoDB also. I was wondering whether it possible
 to share the findings?



 In my experimentation with MongoDB (seen
 here: https://github.com/iandees/mongosm/) I found it to be very slow.
 Inserts were speedy, but bounding-box queries took a long time.

Did you test performance of things like full and history?

-- 
/emj

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


Re: [OSM-dev] Find way with tag containing a carriage return x0D

2011-02-10 Thread Erik Johansson
On Thu, Feb 10, 2011 at 1:54 PM, Robert Whittaker (OSM)
robert.whittaker+...@gmail.com wrote:
 Presumably this is a bug/feature of the XAPI. But presently I'm more
 interested in just finding the way in question so the tagging can be
 fixed. Does anyone know how I could find the way, or better still find
 it for me?

Might it be this one?
http://www.openstreetmap.org/browse/way/23328682


-- 
/emj

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


Re: [OSM-dev] osm2pgsql, planet-110126.osm, doubts

2011-02-09 Thread Erik Johansson
On Wed, Feb 9, 2011 at 12:59 PM, IgnacioZ zigna...@gmail.com wrote:
 Hi!, I have been in a similar situation recently.
 I have been able to redirect the output using gdb as it is mentioned here:
 http://stackoverflow.com/questions/593724/redirect-stderr-stdout-of-a-process-after-its-been-started-using-command-line


Or download this one which does the GDB magic for you:
http://www.isi.edu/~yuri/dupx/

But I still like this one, because you don't really need the fds..
strace -ewrite -s 200 -p $PID 21 | grep write(1

-- 
/emj

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


Re: [OSM-dev] Basic http authentication with OpenStreetMap apis

2011-01-21 Thread Erik Johansson
On Thu, Jan 20, 2011 at 12:06 PM, Alberto Almagro
albertoalma...@gmail.com wrote:
 Hello,

 I'm developing an application that needs to connect to OpenStreetMap's
 API (http://api.openstreetmap.org/ and also
 http://api06.dev.openstreetmap.org/).

 I use maven, hibernate, spring and tapestry. When I execute maven's
 test phase, my application establishes connection successfully with
 OSM only adding a header to the http request like the following:

 Authorization: Basic bV9qb3NlbmhhbnNAd2fiLmRlOmJsdWVkaWFtb25k

 The problems started when I included this use case in the web
 interface, at the beggining it prompted an error telling me that I
 didn't have credentials to connect... so I added the following code:

 HttpClient client = new HttpClient();
                       client.getState().setCredentials(
                                       AuthScope.ANY,
                                       new
 UsernamePasswordCredentials(cuentaOsm.getOsmLoginMail(),
 cuentaOsm.getOsmClearPassword()));

 And after that it prompts me the following error:

 19-ene-2011 23:26:27
 org.apache.commons.httpclient.auth.AuthChallengeProcessor
 selectAuthScheme
 INFO: basic authentication scheme selected
 19-ene-2011 23:26:27 org.apache.commons.httpclient.HttpMethodDirector
 processWWWAuthChallenge
 INFO: Failure authenticating with BASIC 'Web
 Password'@api06.dev.openstreetmap.org:80
 50446 [1481353080@qtp-730403186-0] ERROR
 org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler -
 Processing of request failed with uncaught exception:
 es.udc.gisapp.model.util.exceptions.ServiceException: HTTP error;
 status code = 401
 org.apache.tapestry5.runtime.ComponentEventException:
 es.udc.gisapp.model.util.exceptions.ServiceException: HTTP error;
 status code = 401 [at
 classpath:es/udc/gisapp/web/pages/applicationservice/MigrarBdOsm.tml,
 line 17]

 I don't know what happends, maybe that 'Web Password' realm isn't
 correct... I'm very confused... In the test phase all continues
 working OK.

 ¿Any help please?


Yeah 'Web Password' is correct, but print the Authorization: Basic
headers sent from your library and you will know what went wrong.

bV9qb3NlbmhhbnNAd2fiLmRlOmJsdWVkaWFtb25k
m_josenhans@wg\xe2.de is a strange email


Get a base64 encoding library and do:
HEADER=Authorization: Basic  + base64(username+:+password)

curl -H Authorization: Basic HEADER api.openstreetmap.org/api/0.6/node/create
# this should print Only method put is supported on this URI

-- 
/emj

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


Re: [OSM-dev] Fwd: [OpenStreetMap] ODbL

2011-01-10 Thread Erik Johansson
On Mon, Jan 10, 2011 at 3:13 PM, John Smith deltafoxtrot...@gmail.com wrote:
 On 11 January 2011 00:10, Ian Dees ian.d...@gmail.com wrote:
 public static void main(String[] args) {
     System.out.println(OSM is a community. Perhaps some of the community
 wants to be proactive about the license change.);
 }

 What about the proactive community against the license change, or
 don't they/their views count?

Well you can start informing people who have contributed/touched
Nearmap sourced data, and accepted the ODBL, if you want to.


-- 
/emj

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


Re: [OSM-dev] Compression types in PBF Format

2010-12-03 Thread Erik Johansson
On Wed, Dec 1, 2010 at 4:42 PM, Anthony o...@inbox.org wrote:
 On Wed, Dec 1, 2010 at 10:35 AM, Peter Körner osm-li...@mazdermind.de wrote:
 Am 30.11.2010 23:44, schrieb Anthony:

 On Tue, Nov 30, 2010 at 5:19 PM, Matt Amoszerebub...@gmail.com  wrote:
 because XML is a nearly human-readable, easy to explain and inspect
 format.

 Except when you don't include any line feeds :).

 What can be solved with a perl one-liner (well, everything can be solved
 with a perl one-liner ^^)

 What's the perl one-liner?  I wound up writing a C program.  (Now that
 I think about it, I guess I'd just have to set $/ to '', right?)

This has been asked on IRC as well, interesting that so many people
find the need to insert line feeds into a file.

Perhaps it's better to include them?


-- 
/emj

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


Re: [OSM-dev] Announce search box with result suggestions

2010-11-16 Thread Erik Johansson
On Fri, Nov 5, 2010 at 5:21 PM, Martijn van Exel m...@rtijn.org wrote:
 Hi all,
 The lack of auto-complete or search suggestions like you see in for
 example Google (maps) and the OSM wiki search box has been bugging me for a

Works ok for simple city names, but try typing Llanfairpwllgwyngyll.
Since Nominatim doesn't do substring matches autocomplete doesn't work
for long/tricky names or streetnames.

It looks cool though, and a lot better than the one that is on the
site right now.


http://trac.openstreetmap.org/query?status=acceptedstatus=assignedstatus=newstatus=reopenedgroup=typecomponent=nominatimorder=idcol=idcol=summarycol=typecol=milestonecol=timekeywords=!~desc=1type=enhancement

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


Re: [OSM-dev] Hi.. i want to set up my desktop osm tile server d\to be used with osm-gps-map

2010-09-12 Thread Erik Johansson
On Sun, Sep 12, 2010 at 4:47 PM, ton ph ph.ton.sha...@gmail.com wrote:
 HI ,
   I have been trying to set up my desktop local osm tile server following
 this instruction
 http://weait.com/content/build-your-own-openstreetmap-server.I want to use
 the  map server to be used with osm-gps-map software
 http://nzjrs.github.com/osm-gps-map/.For using my server i need to access my
 server with an address
 http://localhost/#Z/#X/#Y.png.Can anyone help me guiding properly.


What is your problem?
1. is mapnik rendering images
2. have you been able to make osm-gps-map fetch images from localhost

If you follow Weaits guide you should be able to render static pngs
and put them on your webserver at localhost.

Chau /Erik

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


Re: [OSM-dev] XAPI problems and available queries

2010-08-26 Thread Erik Johansson
I'll try to answer the questions and maybe someone else can fill in
where I get things wrong.

On Wed, Aug 25, 2010 at 9:17 PM, Khoa Tran ktr...@mail.usf.edu wrote:
 1) Sometimes, XAPI server responds pretty quick for my query. However, for
 some other time, it's very slow like 5 or 10 minutes to get all the nodes
 (http://www.informationfreeway.org/api/0.6/node[highway=bus_stop][bbox=-82.738031,27.70168,-82.153672,28.252141]
 retrieves approximately 3900 nodes. I know this is a large dataset but the
 xml download file is not that big, under 2MB).

Don't know, sometimes things are slow?

 2) Since data needs to be updated by osmosis to planetdump before XAPI can
 have the new data, I understand that there's a mismatch between real
 openstreetmap database and xapi data. However, I've read on the wiki page
 that planetdump is updated minutely (??). It seems to me it takes more time
 to update the new data. I had to wait 3,4 hours before my new data/change
 took place in XAPI server.

There have been problems with generating the minutely diffs, since the
db updated to pg8.4. Not sure if this will solve it self in the near
time.


 * Is there anything I can do in my application to stay away from the above
 problems? I don't intend to have my own database to handle the same job of
 XAPI server.
 * Is there a way to access OpenStreetMap Postgresql database to GET data
 only besides using the API? I'd love to use something like XAPI but more
 stable.

Only running your own local server, or maybe  take a look at the
different Openstreetmap tool servers out there. I know Openstreetmap,
Wikimedia, French-OSM and German-OSM have tool servers for
openstreetmap, don't think they are ment for this kind of stuff but
you can ask.


 * The last question seems irrelevant to this thread but I can't find an
 answer myself. If a node is deleted, how to get that node WITHOUT the node
 id (e.g. I'd like to use something like
 this http://www.informationfreeway.org/api/0.6/node[highway=bus_stop][bbox=-82.738031,27.70168,-82.153672,28.252141]
 but with all the deleted nodes]

As far as I know there is no such webservice available, except if
Potlatch have a undelete node function. I can give you a copy of the
full history of that area but it takes about 8hours to generate. :-)

/Erik Johansson emj

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


Re: [OSM-dev] New full history dump available

2010-08-03 Thread Erik Johansson
On Mon, Aug 2, 2010 at 9:29 PM, Lars Francke lars.fran...@gmail.com wrote:
 Hi guys,

 Matt Amos was so nice to run the history export again.
 The result is available here:
 http://planet.openstreetmap.org/full-experimental/full-planet-100801.osm.bz2
 and it's grown from 13 GB in February to 17 GB. The regular planet has
 grown from 8 to 10 GB in the same time.

 Have fun and it would always be interesting to know if you're using
 it, having problems with it and what you're using it for.


This is a non issue, but interesting.

I ran bzip2recover on it and every two bz2 blocks are just ~100bytes..
I'm guessing this is an artifact  from parallel bzip2, but that it
could be so extreme was new to me.

Size in bytes for bz2 blocks in full planet history file:
36972 rec00614fullplanet.bz2
152  rec00615fullplanet.bz2

This is from the ordinary planet dump:
107188  rec00025plane.bz2
32877  rec00026planet.bz2

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


Re: [OSM-dev] New OSM binary fileformat implementation.

2010-08-01 Thread Erik Johansson
On Sun, Aug 1, 2010 at 2:35 AM, Brett Henderson br...@bretth.com wrote:
 On Sun, Aug 1, 2010 at 2:26 AM, Frederik Ramm frede...@remote.org wrote:

 Scott, others,

 Scott Crosby wrote:

 I would like to announce code implementing a binary OSM format that
 supports the full semantics of the OSM XML.

 [...]

 The changes to osmosis are just some new tasks to handle reading and
 writing the binary format.

 [...]

 This was 3 months ago.

 What's the status of this project? Are people actively using it? Is it
 still being developed? Can the Osmosis tasks be used in the new Osmosis code
 architecture (see over on osmosis-dev) that Brett has introduced with 0.36?

 I'm curious about this as well.  The main reason for me introducing the new
 project structure was to facilitate the integration of new features like
 this.  They're relatively easy to add (some Ant and Ivy foo required ...),
[...]
 The code hasn't changed a lot, but the build processes have.


Well that's one of the thing Scott said he had no clue on how to do.
From Scotts mail:



Scott Crosby:
 // TODO's

 Probably the most important TODO is packaging and fixing the build system.
 I have no almost no experience with ant and am unfamiliar with java
 packaging practices, so I'd like to request help/advice on ant and 
 suggestions on
 how to package the common parsing/serializing code so that it can be
 re-used across different programs.

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


Re: [OSM-dev] osm.org userpage broken with farsi localization?

2010-04-07 Thread Erik Johansson
On Wed, Apr 7, 2010 at 1:10 PM, Claudius claudiu...@gmx.de wrote:
 It seems that today the farsi translation for www.openstreetmap.org was
 imported from translatewiki [1]. I've set the preferred language for my
 account to fa,de,en and since the update I cannot access my userpage
 [2] any more getting a 500 error:

 This may be a problem in our Ruby On Rails code. 500 occurs with
 exceptions thrown outside of an action (like in Dispatcher setups or
 broken Ruby code)

 Can someone with ruby knowledge please look into it or if no there's not
 time the one who imported the translation revert that farsi import please?

 Claudius

 [1]
 http://translatewiki.net/w/i.php?title=Special:Translatetask=viewlanguage=fagroup=out-osm-site
 [2] http://www.openstreetmap.org/user/Claudius%20Henrichs


A similar problem occurred when the translated strings contained
errors for the Swedish translation. In that case it was missing a
plural string or a {} options.

You probably want to check the error log on the server for to correct this file:
http://trac.openstreetmap.org/browser/sites/rails_port/config/locales/fa.yml

-- 
/emj

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


Re: [OSM-dev] Announcement: new khtml javascript map library

2010-03-06 Thread Erik Johansson
On Sun, Feb 28, 2010 at 7:27 PM, Bernhard zwischenbrugger
b...@datenkueche.com wrote:
 All informations here:
 http://www.khtml.org/iphonemap/help.html

 It provides a very fast, stepless zoom on WebKit Browsers with good
 internet connection.
 iPhone moultitouch is fully supported.

I was amazed of the speed when trying this in Firefox on my old
ultraportable, so I found an iPhone and it's wonderfull on that as
well.

/emj who wants an

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


Re: [OSM-dev] OSM als Map-Service auf Blackberry

2010-01-04 Thread Erik Johansson
On Mon, Jan 4, 2010 at 12:39 PM, Marcus Wolschon mar...@wolschon.biz wrote:
 On Mon, Jan 4, 2010 at 9:30 AM, John Smith deltafoxtrot...@gmail.com wrote:
 2010/1/4 Marcus Wolschon mar...@wolschon.biz:
 Hello,

 on Blackberry the documentation of the net.rim.device.api.lbs.MapField
 -class mentions a current map service. I guess Blackberry Maps
 using Google is the default.

 Does anyone know if there is an SPI to replace it with another map
 or change the location tiles are loaded from
 and if anyone is working on such code?

 There is a few java components to embed in BB apps to show OSM maps.

 http://dev.cloudmade.com/

 Links to one such component...

 I guess you mean
 http://www.nutiteq.com/rim-blackberry-mapping-api-sdk
 http://developers.cloudmade.com/projects/show/j2me-lib-rim

 it would work if we payed the license-fee for every client
 but I was thinking along the lines of a free implementation
 or a sourcecode-example on how to implement this.


Nutiteq allows you to download the lib and use it as long as you
publish your code as GPL. I can't remember if they have published
their source code yet though.  I can only say that nutiteq works for
my simplistic maps.

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


Re: [OSM-dev] Structured error messages from API

2009-12-14 Thread Erik Johansson
On Fri, Dec 11, 2009 at 9:15 PM, Ian Dees ian.d...@gmail.com wrote:
 On Fri, Dec 11, 2009 at 12:39 PM, Matt Amos zerebub...@gmail.com wrote:

 On Fri, Dec 11, 2009 at 6:24 PM, Ian Dees ian.d...@gmail.com wrote:
  Actually, I was just now creating a stub page for API 0.7 brainstorming:
 
   http://wiki.openstreetmap.org/wiki/API_v0.7
 
  Remember, it's a brainstorm: all ideas are good ideas at this point...
  ;-).

 cool! although i'd consider verified users / locked tags to be an
 anti-feature ;-)


 Yea, I suppose that requires some discussion. The idea arose from a meeting
 I recently attended with some US city government GIS people that have
 expressed interest in maintaining (at least part of) their official GIS
 database in OpenStreetMap. Their number one fear/concern is an OSM editor
 changing the official boundary of a state forest, pulling that change back
 to do cartography for a hunting season (for example), and then having a land
 owner call them up asking why people are hunting on their land.


Migurski posted a blog about signing openstreetmap edits. So that you
can be sure that the edit is alright. (But this is ass yout UUID
mostly a client thing)
http://mike.teczno.com/notes/gosm.html

The question is do these bulk imports of legal boundaries really
belong in Openstreetmap? Since they are not really editable, you can
only change them by doing bulk import again.

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


Re: [OSM-dev] OpenstreetMap Trace Analysys

2009-10-12 Thread Erik Johansson
2009/10/12 Iván Sánchez Ortega i...@sanchezortega.es:
 El Lunes, 12 de Octubre de 2009, SteveC escribió:
 bouncing to dev...


 On 7 Oct 2009, at 10:24, Roberto Carisi wrote:
 Hi! I’m working for a research project related to my master degree
 on the openstreetmap traces database.. I was wondering if there is
 some possibility of searching on the database the traces crossing a
 specified area,

 See http://wiki.openstreetmap.org/wiki/API_v0.6#GPS_Traces


So basically: no you don't get the ID of the GPX trace that passes
through the bbox, to do that you need to load the GPX:es in your own
database. There are dumps of all the public  GPX files floating around
those could of course be loaded into a database and do what you want,
this would take sometime though.


-- 
/emj

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


Re: [OSM-dev] what server next?

2009-09-10 Thread Erik Johansson
On Wed, Sep 9, 2009 at 7:26 PM, Graham Jones
grahamjones...@googlemail.com wrote:
 I might give this a bit more thought if I get chance - does anyone have a
 feel for the load on the XAPI servers? - queries per unit time and data
 rate?


There is the munin graphs, but they only give an overview of how much
the OSM servers serve. See: http://wiki.openstreetmap.org/wiki/Servers


In ancient times there was an anonimized log available that contained
lots of data but it has been removed. It would be great to have an
updated version of this.

http://wiki.openstreetmap.org/wiki/Database#Access_logs


And yes having a much faster /api/0.6/map request would be wonderful
(I.E. XAPI or ROMA).


-- 
/emj

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


Re: [OSM-dev] Using OAuth

2009-09-01 Thread Erik Johansson
On Tue, Sep 1, 2009 at 9:33 AM, Sebastian Spaethsebast...@sspaeth.de wrote:
 What are you trying to do that requires the user's email address anyway?

 TilesAtHome would be interested in such an (additional and optional)
 email Permission. This would give me the opportunity to mail users (if
 they wish to do so) on problems with the render clients.

 I'll have a look at using the oauth interface in the future for t...@h.

Just send a private message on the site like normal users have to do,
lets hope that's not frowned upon.


/Erik

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


Re: [OSM-dev] A new take on the mutable idea

2009-06-20 Thread Erik Johansson
On Sat, Jun 20, 2009 at 4:29 AM, Russ Nelsonr...@cloudmade.com wrote:

 On Jun 19, 2009, at 6:49 PM, Frederik Ramm wrote:
  or alternatively make it easy to spot whether such data may
 have been changed by accident.

 There are a lot of reasons to have this facility.  It matches in
 concept with Wikipedia's watchlist.

Osmxapi gives you watch lists, just tag a couple of node, way or
relations with watch:mrRuzzy=immutable_data and you can watch it in
xapi:

http://www.informationfreeway.org/api/0.6/watch/mrRuzzy/immutable_data
http://wiki.openstreetmap.org/wiki/Osmxapi#RSS_Feed


But regarding what Frederik says. Communicating your desires to/onto
other OSM users has always been the hardest part of OSM.

If you had that live feed of OSM data changes then you could setup
your own server that did rollbacks on all immutable data violation
edits. But: Kind of sucks  to have your data rolledback without you
knowing it, even having a dialog saying you are too stupid, don't
edit this might be a bit sucky.


/Erik

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


Re: [OSM-dev] Can SQLite3 handle OSM 150G data file?

2009-05-16 Thread Erik Johansson
On Fri, May 15, 2009 at 10:58 AM, Tomas Kolda ko...@web2net.cz wrote:
 Did you try my version of import? I have no responses, so maybe not :).
 I did not tried complete planet, but indexes was created quite fast.
 30seconds on 150MB osm file.

 I think that you should make a chart (xml size-time to create index)
 and than you can see complexity of creating indexes in sqlite based on
 OSM size. I think that it will be O(n log(n)), but maybe not.

Handling disk isn't the strong point of SQLite, creating your SQLite
DBs on machines with lots of memory will make things useable. You can
always move them to low memory machines later.

Storing the DB on a ram disk while creating will speed things up considerably.

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


Re: [OSM-dev] Bittorrent

2009-04-18 Thread Erik Johansson
On Sat, Apr 18, 2009 at 8:50 AM, D Tucny d...@tucny.com wrote:
 2009/4/18 Simon Ward si...@bleah.co.uk

 On Fri, Apr 17, 2009 at 08:23:19AM -0700, Paul Johnson wrote:
  Stefan de Konink wrote:
   After a few upload problems, a new torrent is available.
  
   http://wiki.openstreetmap.org/wiki/Planet.osm#Bittorrent
 
  Not to nitpick, but in terms of PR, might it be better to use a tracker
  other than The Pirate Bay?

 Selfish and wrong.  It may even help TPB if more high profile projects
 used their tracker for (legal) distribution.

 In terms of PR it could also be seen how an “open” data project
 abandoned an effective method of distributing open data.  If TPB’s
 appeal fails, it sets a bad precedent for any other tracker out there.
[..]
 If anything, TPB has done bad PR for BitTorrent, an open protocol
 and open source implementation developed for the efficient distribution of
 large datasets and now in common perception, a tool to enable one to easily
 obtain copyrighted materials...

 BitTorrent can be an effective method of distributing open data and setting
 up a tracker for a project isn't a massive job,
´
Tell us of  an tracker that your government has deemed politically
correct, you can add this torrent file to that tracker yourself.. Use
Open DNS servers:  208.67.222.222 208.67.220.220  if you need to
access The Pirate bay.

Getting the planet in 15MB/s makes not having it locally easier.

-- 
/emj

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


Re: [OSM-dev] ANNOUNCE: OpenStreetMap maps will be added to Wikimedia projects

2009-04-06 Thread Erik Johansson
On Sun, Apr 5, 2009 at 7:20 PM, Frederik Ramm frede...@remote.org wrote:
 Erik Johansson wrote:

 illustrating all flight paths
 over Europe

 This particular one keeps popping up all the time but there is no such
 thing.

True, but how do you acommodate these kinds of requests. As you say
they are common, and that's probably because the osm servers are
probably the best open source way for storing, editing and visualizing
this kind of data..

So the problem is: You can't add non-street-map data to OSM because we
all see it and will want to remove it. All my examples of data really
has a place in collaborate-GIS, but how to do it? The dirty hack would
be to install more than one instance of OSM api server.

It's the storing of strange data that is most interesting, because OSM
is so good at it.

-- 
/emj

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


Re: [OSM-dev] ANNOUNCE: OpenStreetMap maps will be added to Wikimedia projects

2009-04-05 Thread Erik Johansson
On Sat, Apr 4, 2009 at 8:21 PM, Ævar Arnfjörð Bjarmason
ava...@gmail.com wrote:
 * Wikimedia will set up a database to mirror the OSM data (Planet.osm)

I wonder if Wikipedia will ever need to fork the db in some way.
Wikipedia will often need something else than a streetmap.

Has anyone done work on getting Google maps my maps like features on
OSM? I'm guessing this is something that will be interesting for
Wikipedia, visualizing routes, POI and custom labels. This is database
forking lite.. :-)

/emj

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


Re: [OSM-dev] ANNOUNCE: OpenStreetMap maps will be added to Wikimedia projects

2009-04-05 Thread Erik Johansson
On Sun, Apr 5, 2009 at 12:15 PM, Frederik Ramm frede...@remote.org wrote:
 Hi,

 Stephan Plepelits wrote:
 Has anyone done work on getting Google maps my maps like features on
[..]
 Something like the OpenStreetBrowser? - http://www.openstreetbrowser.org

Not really you can't use that to make custom maps. Some thing like this:
http://openlayers.org/dev/examples/editingtoolbar.html

Or some thing else entirely.



 You don't need a database fork for this, you just have to integrate the
 data (which is happening since the OSM was born).

 I think we're talking about stuff that OSM has no place for (yet,
 perhaps). For example an article illustrating some historic displacement

Borders and historic names, or lets say illustrating all flight paths
over Europe. Stuff that people want to put into the database right
now.

-- 
/emj

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


Re: [OSM-dev] GSoC: formalising knowledge in OSM

2009-04-04 Thread Erik Johansson
2009/3/25 Andy Allan gravityst...@gmail.com:
 2009/3/25 Radomír Černoch radomir.cern...@gmail.com:
 Firstly create the initial ontology to support at
 least all official map elements.

 Hi Radomír,

 There's no such thing. In fact, the lack of a fixed/official ontology
 is held as one of the key defining attributes of the success,
 flexibility and scalability of OSM, so I'm not sure how well your
 project will work in the long run.

This has been repeated so many times, but in reality large parts of
the ontology has been official for quite a while now, haven't it?

The largest problem lies in tags that aren't used much. The meaning of
tags are not just decided by key=value, but also who tagged it and
when the user tagged it. Since every user will interpret tags
differently, so you can never be sure exactly what was meant. E.g.
What exactly is landuse=allotments? Can you walk on
highway=cycleway?

I think Richards idea is one of the better ones if you want to
continue the anarchistic tradition of OSM, every user has their view:
http://www.mail-archive.com/t...@openstreetmap.org/msg12716.html

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


Re: [OSM-dev] IE8 RC1

2009-03-19 Thread Erik Johansson
2009/3/19 Ed Loach e...@loach.me.uk:
 I think it works, but gazetteer isn't particularly quick (or is that
 just me?).

It looks nice and is very nicely done, but has always been dog slow..
Using grep on a CSV file with POIs is faster. You could of course use
google/MSN geocoding instead.

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


Re: [OSM-dev] OSM registration thinks a valid mail is not valid

2009-02-08 Thread Erik Johansson
On Sun, Feb 8, 2009 at 9:38 PM, Eddy Petrișor eddy.petri...@gmail.com wrote:
 What is worse is that it refused an email address containing the +
 character (ignore the spaces, I added them now):

 eddy.petrisor+osmbot @ gmail.com

Works for me, I'm not using an gmail.com address though... I usually
try to enter  # ()[]\;:,@example.com which is a sane address,
sadly almost no one understands that the only way to check an email is
 to send an email to the address rather than checking whether it works
or not.

/Erik

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


Re: [OSM-dev] [OSM-talk] donating read-only api-mirrors

2009-02-06 Thread Erik Johansson
On Fri, Feb 6, 2009 at 10:20 AM, Tom Hughes t...@compton.nu wrote:
 Russ Nelson wrote:
 It seems to work for them.  I think it's a good idea for us.

 while Marcus was suggesting clustering third party servers which is not
 something we will be doing as far as I'm concerned.

How much of the DB load comes from the read only part of the  API, and
what if you remove the area limit on the map call?


--
Emj

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


Re: [OSM-dev] [Mapnik-users] osm2pqsql caching strategy

2009-02-05 Thread Erik Johansson
On Thu, Feb 5, 2009 at 9:05 AM, Nop ekkeh...@gmx.de wrote:

 Hello!

 Currently I am using osmosis to cut the input data for my map into
 sections. This cutting method drops data along the borders and produces
 ugly creases on the map. The mode completeWays=yes is too slow for
 planet files.

 So I am thinking about implementing my own data cutter or a seamless
 data conversion process. Due to  memory considerations, both will need a
 database-driven node cache to work, just like osm2pqsql in --slim mode does.

 The caching of osm2pqsql seems pretty effective, so I wonder what is the
 chaching stragy of the tool? What nodes are kept in cache? What data is
 written to DB?

 Or do you have any other experiences with other tools for node caching?

Openstreetmap question..

You want to import the whole planet, but in sections? Just use
osm2pgsql to import the whole planet and then select sections from the
postgis database, initial import is going to be slower but keeping it
uptodate is going to be easy. Alternatively import a bigger area than
what you need and do the clipping in postgis.

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


Re: [OSM-dev] Distributed Data Store

2009-01-22 Thread Erik Johansson
On Thu, Jan 22, 2009 at 12:02 AM, Stefan de Konink ste...@konink.de wrote:
 Scott Shawcroft wrote:
 We're interested in what kind of computing resources
 to design for (how many machines) and whether we can get access logs in
 order to test our implementation against.

To simulate OSM API traffic you can use the anonymized access logs.
Problems are; VERY old data, and it doesn't contain the calls made by
potlatch.

http://wiki.openstreetmap.org/wiki/Database#Access_logs
http://steve.dev.openstreetmap.org/osm-api.anony.gz


You can also use the minutely diffs to create write traffic, this is
recent data, contains what is inserted by potlatch. But it doesn't
contain the read data so you will loose important data.

http://planet.openstreetmap.org/minute/

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


Re: [OSM-dev] Google doesn't find new wiki urls

2009-01-14 Thread Erik Johansson
On Sun, Jan 4, 2009 at 12:15 PM, Jochen Topf joc...@remote.org wrote:
 Somebody just asked on the German mailing list about Google not finding
 pages from our wiki any more. I just checked this and it does find some,
 but they are all still ../index.php/.. URLs. Looking at the robots.txt and
 the Sitemap, it should find the new ../wiki/.. URLs, but maybe something
 is wrong somewhere.



+1  It's impossible to find stuff on the wiki with google

http://www.google.se/search?q=site%3Awiki.openstreetmap.org+-inurl%3Aindex+-inurl%3Aimages

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


Regards

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


[OSM-dev] Anyone with a speedy gazetteer

2009-01-12 Thread Erik Johansson
I have two questions; why is gazetteer.openstreetmap.org so slow  at
20-50 seconds per request, and if anyone has code for faster variants
of name finders? Speed is essential..

-- 
/emj

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


Re: [OSM-dev] Anyone with a speedy gazetteer

2009-01-12 Thread Erik Johansson
On Mon, Jan 12, 2009 at 3:05 PM, David Earl da...@frankieandshadow.com wrote:
 If we were only searching the names in the planet file or some other
 plain text, life would be simple. But it is a great deal more
 complicated than that to produce useful, contextual results. And I'd be
 the first to agree that it isn't there yet.

The quality of Name Finder is fine IMHO, judged bythe bar set by
commercial options.

BTW, geonames.org gives results in ~3s but on Openstreetmap it still
takes ~30s to get the search panel. Is it possible to do two queries
instead of one?

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


Re: [OSM-dev] downloading partial tilesets to serve locally

2009-01-08 Thread Erik Johansson
On Mon, Jan 5, 2009 at 10:47 AM, Tom Lancaster t...@newhanoian.com wrote:
 On Mon, Jan 5, 2009 at 4:00 PM, Iván Sánchez Ortega i...@sanchezortega.es
 wrote:

 El Lunes, 5 de Enero de 2009, Tom Lancaster escribió:
  newhanoian.com has been leading an effort to complete the OSM Hanoi map
  recently, and we're at a point where we'd like to use OSM tiles in place
  of
  our custom Gmaps + tilelayer solution. Since we're in vietnam we'd like
  to
  download a tileset for Hanoi and the surrounding area and serve it from
  our
  server rather than rely on tile.openstreetmap.org, which is
  network-distant.

 How about setting up a www proxy? It seems to me like an easy solution to
 serve up-to-date tiles efficiently.

 This seems to be the consensus advice, and something I hadn't thought of. Do
 people use squid for this?

 Thanks very much,

 Tom

Varnish is a nice modern reverse proxy which is what you want, if
you only want to proxy one site.

http://varnish.projects.linpro.no/

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


Re: [OSM-dev] Lean and mean Tile- and XML-API-Server

2008-11-21 Thread Erik Johansson
On Sat, Nov 22, 2008 at 12:46 AM, Stefan de Konink [EMAIL PROTECTED] wrote:
 Shaun McDonald wrote:
 On 21 Nov 2008, at 21:07, Stefan de Konink wrote:
 Are the user prefs also in an api?


 Yes user preferences are in the API.

 http://wiki.openstreetmap.org/wiki/Api

 Could you add it to Other API's?


It's in API 0.5:
http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.5#Preferences



-- 
/emj

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


Re: [OSM-dev] Wiki Language Bar Template - Feedback Required

2008-11-19 Thread Erik Johansson
On Tue, Nov 18, 2008 at 5:38 PM, Maarten Deen [EMAIL PROTECTED] wrote:
 it only works when all other pages are made having the same
 pagename as the English page. This is currently not the case for many pages, 
 the
 Main Page being the first one you encounter. Granted: to fix this you will
 only need a move of those pages

Actually you just need to create the english named pages, and redirect
them: e.g.

sv:Main_page:
#redirect[[sv:Huvudsida]]

A small note, not even wikipedia has automagical international linkage
you have to link them yourself.

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


Re: [OSM-dev] Mapnik and sqlite

2008-11-13 Thread Erik Johansson
On Wed, Nov 12, 2008 at 11:55 PM, Tomas Kolda [EMAIL PROTECTED] wrote:
 - I do not know how to make correct render of land. I have map with
 everything, but on blue background (sea). Land is never rendered. I'm
 using SVN version of osm.xml. I tries many projections and also data
 from mapnik tutorial. Nothing works. I do not understand projections...
 Do you have some hints what to try?

Have you installed the shapefiles Openstreetmap uses, and does mapnik find them?

From: http://wiki.openstreetmap.org/index.php/Mapnik
 http://tile.openstreetmap.org/world_boundaries-spherical.tgz (51MB)
 http://hypercube.telascience.org/~kleptog/processed_p.zip (~220MB)

processed_p.zip contains the coastlines
-- 
/emj

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


Re: [OSM-dev] The wiki defines the database

2008-11-06 Thread Erik Johansson
On Thu, Nov 6, 2008 at 3:24 AM, Frederik Ramm [EMAIL PROTECTED] wrote:
 but wherever we can [..] say have it both ways, that's a victory for
 freedom in my opinion.

+1

But software drives tagging, and  one true way is easier for
applications to handle. Considering that parsing tags is something
each applications does on its own, I have to wonder if we can really
have it both ways.


 Out of interest, I'd like to know where Wikipedia currently is
 for example; can I still create articles that don't use the
 structure or will there immediately be a flurry of people telling me what I
 did wrong,

Yes people improve your article in wikipedia. Usually it's style,
language, POV or wiki related. If I post a small article someone might
slap a small templated fact box on the right edge, and usually put it
in the right category and make my links go to the right disambiguated
page.

Try translating this to Openstreetmap, how often do one do that kind
of wikigardening[1]?
[1] http://www.wikipatterns.com/display/wikipatterns/WikiGnome


Richard said they want highway=Toucan to be replaced by five other
tags, he!. Are you sure you as an editor creator want to be bothered
with this, wouldn't it be easier if the wiki took care of that?

One big difference between mediawiki and osm software is that you can
create and improve templates/categories that give you nice things to
put on your page. In OSM there is no crowdsourcing way to make things
render as you want, and no way to make the editing easier. Are simple
presets handled more centralistic than necessary?



--
R /Erik

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


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

2008-11-04 Thread Erik Johansson
COn Tue, Nov 4, 2008 at 6:16 PM, Richard Fairhurst [EMAIL PROTECTED] wrote:
 Erik Johansson wrote:
 This is a really naive and contraproductive argument, nothing is black
 and white.  You have to define what it is you are mapping, and you
 don't do that in the database.

 Yeah, but therein lies the problem.

 The people doing the defining are, in many cases, not the ones who
 are doing the mapping. There are plenty of people voting on things
 just because they like voting.

 If people refrained from discussing and voting unless they had
 _personally_ come up against the problem that the proposal was aiming
 to solve, I think the process would have a lot more respect.

Real mappers don't document; their tags are enough.  Wannabe mappers
read documentation and follow templates. So how should you become a
mapper if there is no documentation. There is a lack of people who are
willing to write something on the wiki, not too many.

Sure the wiki doesn't really define the database, it tells people how
to tag stuff and that is a lot more important than anything else.

BTW, This is still on dev because dev is where the wiki FUD flows deepest.

Regards Erik.

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


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

2008-11-04 Thread Erik Johansson
On Wed, Nov 5, 2008 at 12:27 AM, Ulf Lamping [EMAIL PROTECTED] wrote:
 Any proposed features that see significant real world usage make there
 way onto the map_features page.

 Well, I've recently added some often used tags indicated by tagwatch to
 the Map Features page. It wasn't easy for me to write a good tag
 description, as I couldn't get it from the database or any proposals.

 There are still some tags that are in significant use that I didn't
 added to Map Features, just because I wasn't sure what they really meant ...


Perhaps extract users using this tag from the extended API download,
and mail them?

I've included a hack that does that, but osmxapi includes all lots of
extra data you don't need so it's abit slow. Example:

perl UserStat.pl FIXME survey
user:usage
emj:49
maning:3
JeolF:1
Kekoil:1
casualwalker:1


$k=$ARGV[0];
$v=$ARGV[1];
die(Usage $0 tag key tag value) if($k eq  || $v eq );

open(XAPI, curl 'http://xapi.openstreetmap.org/api/0.5/way\\[$k=$v\\]'|);

while(XAPI){
   $user= $1 if(/ user=.([^']+)/);
   $stat{$user}+=1 if(/k=.FIXME. v=.survey./);
}

print user:usage\n;
foreach $user (sort {$stat{$b} = $stat{$a} } keys %stat){
   print $user:$stat{$user}\n
}



/Erik

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


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

2008-11-04 Thread Erik Johansson
On Wed, Nov 5, 2008 at 12:26 AM, Matt Amos [EMAIL PROTECTED] wrote:
 On Tue, Nov 4, 2008 at 10:46 PM, Erik Johansson [EMAIL PROTECTED] wrote:
 COn Tue, Nov 4, 2008 at 6:16 PM, Richard Fairhurst [EMAIL PROTECTED] wrote:
 The people doing the defining are, in many cases, not the ones who
 are doing the mapping. There are plenty of people voting on things
 just because they like voting.

 If people refrained from discussing and voting unless they had
 _personally_ come up against the problem that the proposal was aiming
 to solve, I think the process would have a lot more respect.

 Real mappers don't document; their tags are enough.  Wannabe mappers
 read documentation and follow templates. So how should you become a
 mapper if there is no documentation. There is a lack of people who are
 willing to write something on the wiki, not too many.

 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, and does
it really warrant that flippant attitude? Having a better way to
handle multiple meanings of tags might help.

But perhaps Frederik is right maybe it's just too much work to
translate wiki preferences automatically to JOSM, potlatch templates
(also stylesheets for Osmarender and Mapnik to take the common
complaint from people who wants new tags).

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


Re: [OSM-dev] OSM and sqlite

2008-09-29 Thread Erik Johansson
On Mon, Sep 29, 2008 at 9:59 PM, Igor Brejc [EMAIL PROTECTED] wrote:
 Jochen Topf wrote:
 On Mon, Sep 29, 2008 at 09:46:40PM +0200, Stefan Keller wrote:

 db4o is also native .NET (but yeah, .NET *and* relational means that
 you are really on the dark side of the force :-).

 But Jochen could be right: I fear all embedded DBMS - whether
 relational or OO - are slow beyond some hundert MBytes.


 I meant slow because of Ruby, not because of Sqlite. Haven't benchmarked
 sqlite.

 Jochen

 I guess it also depends of what exactly you're trying to do with the
 data. I was thinking about using the DB for map rendering, which can be
 quite data- and processing-intensive.
 It looks like I'll have to test it myself when I get the chance and
 write something about it in the Wiki. Thanks for the info, guys.

I tried to use SQLite as a node+way  db while loading a 900MB
planet.osm it was *very* slow until I moved the node cache into a ram
disk (tmpfs). In memory caching doesn't scale to the whole planet, so
you have to write it to disk  and that was atleast 3-20 times slower
on import than mysql.. Then I have very slow laptop disks so hitting
disk is not something I like to do..

So yes it's slow, but I'm sure it's ok for desktop applications.

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


Re: [OSM-dev] Garmin GPX madness

2008-09-22 Thread Erik Johansson
On Mon, Sep 22, 2008 at 2:20 PM, Jon Stockill [EMAIL PROTECTED] wrote:
 - it's a unit dedicated to a single job, which is sometimes better than
 a multipurpose one

 As demonstrated at the leeds mapping party when one of the guys had his
 bluetooth GPS disconnect from his phone, resulting in a fair amount of
 missing track.

Just get a bluetooth GPS with logger, then you can log the datapoints
and  just turn on the PDA to get a map of the area. Having tried it on
a Nokia 770 the other day I can honestly say it works very well to
reference the map.

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


Re: [OSM-dev] Daily Diff parsing - tile expiring

2008-08-20 Thread Erik Johansson
On Thu, Aug 21, 2008 at 1:42 AM, Frederik Ramm [EMAIL PROTECTED] wrote:
 Hi,

 I think that adding the Lat/Lon tag to node references in the ways is not an
 option since it would require a huge amount of queries on the database when
 creating the diffs. The positive side of this would that it would only have
 to be done once.

 If you are happy with supporting only zoom level 16 granularity, you can
 store the tile x and tile y coordinates for each node, that's only 4
 bytes per node.

According to JonB[1] there have been about 84 Million tiles requested
the last 6 months, this is the break down of how many tiles you can
invalidate by using tileposition. Example: at zoom 16 you would get
54% less rerenders, if I haven't done this all wrong.

Doesn't seem that costly to spend 300M*18bit*2=1,4GB and get 100%.

Zoom| % of all tiles in this zoom an above
11  5.22%
12  8.22%
13  13.45%
14  23.26%
15  39.55%
16  54.57%
17  82.92%
18  100.00%

archive from mailinglist:
http://forum.openstreetmap.org/viewtopic.php?pid=2431#p2431

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


Re: [OSM-dev] Mosques and other features of the Muslim world

2008-08-17 Thread Erik Johansson
On Sun, Aug 17, 2008 at 12:38 PM, Tom Hughes [EMAIL PROTECTED] wrote:
the symbols for hospitals here are a crescent and a cross, not
 just a cross. Guess it will require an additional tag to specify a muslim
 hospital. If anyone has time to help work on new symbols for our work here
 in the West Bank, the contribution would be very welcome.

 Is that really a question of the religion of the hospital? [..] or is it that 
 a map
 produced in a Christain country uses one symbol and map produced in
 a Muslin country a different symbol?

Can you have different mapnik stylesheets for different
countries/regions?  And what about hospitals that are on the border of
such an area...

(disregarding that Mikel is using a separate server for this)

-- 
/emj

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


Re: [OSM-dev] curiosity killed the cat...

2008-08-06 Thread Erik Johansson
On Tue, Aug 5, 2008 at 6:16 PM, Stefan de Konink [EMAIL PROTECTED] wrote:
 On Tue, 5 Aug 2008, Frederik Ramm wrote:

  the gps points data are related in some way in the DB to the gpx they
  come from?

 Yes, the table holding the GPX points has a reference to the table
 holding the GPX file info. But it is never published.

 Where can an OSM user request all tracks ever uploaded?

There should be around 30GB[1] of raw gpx data on the server. You will
probably never need all GPX tracks, so webscraping a couple of
houndred tracks slowly is probably the way to go. I recently
downloaded a thousand tracks, and a houndred would have been  enough
to disprove me.

[1] at a minimum of 80 byte per track point and about 400million trackpoints
http://www.openstreetmap.org/stats/data_stats.html

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


Re: [OSM-dev] [OSM-talk] Easy way to export to Illustrator?

2008-04-07 Thread Erik Johansson
On Sun, Apr 6, 2008 at 12:49 AM, Frederik Ramm [EMAIL PROTECTED] wrote:

  I don't see why there isn't an OSM to SVG converter webservice,
 

  To be just a little bit more verbose - depending on the input it takes
 a hell of a lot of CPU time to render an area with Osmarender, even if you
 have the CPU all to yourself.

The problem I did wonder about was how to get the right data on your
render.  So how do I let someone render the slippy map they are seeing
at the moment?

To get a good render from osmarender, Is it enough to know
* zoom level
* bounding box

Things I guess you would like to know is approximate time to render
this data, but I guess no one has done any measurements on this.

-- 
/emj

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