Re: [OSM-dev] extracting house-number from string

2009-03-13 Thread Cartinus
On Saturday 14 March 2009 03:48:44 Stefan Breunig wrote:
>  this regex doesn't match any housenumber in "3rd
> street". It matches
> [number][maybe a single letter][word boundary].

So it misses 5bis and 135sous ?
These are valid housenumbers in The Netherlands.

-- 
m.v.g.,
Cartinus

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


Re: [OSM-dev] extracting house-number from string

2009-03-13 Thread Stefan Breunig
True about \d. But this regex doesn't match any housenumber in "3rd
street". It matches
[number][maybe a single letter][word boundary].

Greetings
xeen

On Fri, Mar 13, 2009 at 19:11, Marcus Wolschon  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Stefan Breunig schrieb:
>> /[0-9]+[a-z]?(?:$|\b)/i
>>
>> I guess a regular expression should be suitable. The above is from
>> my head and untested. [0-9]+     – matches any amount of numbers
>> [a-z]?     – optionally matches a letter (?:$|\b)   – either
>> matches the end of the string or a word boundary (space, dot, etc.)
>>  /i           – search case insensitve
>>
>> Should work for the examples you gave. You might want to limit the
>> [a-z] to [a-l] because I haven't even heard of an "123 f", so it
>> ignores some of the typos (i.e. 3r avenue). No idea how that works
>> for languages other than English. The regex will find "5" as
>> housenumber if someone e.g. writes "5. avenue".
>
> Hello Stefan,
> I thought about such a regexp but the issue is
> that in "5th street" it would match "5th" and there
> is neither a house-number "5th" nor a street named "street".
>
> If we can`t find anything better I`ll probably
> have to go this way and make special cases for
> X+("st","nd","rd","th").
> I though that maybe someone else already encountered
> this issue and we could discuss how he/she dealt with it.
> (I am still quite puzzled how things like the freeform-address-
> search in Google can actually work.)
>
> Sadly there are quite many address-formats. With
> french having the house-number before the street
> and the US with street-names that begin with numbers,...
> it gets quite complicated.
>
> BTW: You should not use a-z but \D to stay unicode-compatible,
> One developer of TS is russian and I would hate to break
> address-search for cyrillic names for him ;)
>
> Marcus
>
>>
>>
>> On Fri, Mar 13, 2009 at 16:28, Marcus Wolschon
>>  wrote:
>>> Hello,
>>>
>>> does anyone know a good algorithm to extract the house-number
>>> from a string containing street-name and house-number? Cases
>>> coollected so far:
>>>
>>> // "xyz 12" // "xyz 12b" // "11b xyz" // "11 xyz" // "xyz" //
>>> "5th avenue" // "3rd avenue" // "2nd avenue" // "1st avenue"
>>>
>>> I need it for adding routing to house-numbers to the Traveling
>>> Salesman -navigator.
>>>
>>>
>>> Marcus
>>>
>>> ___ dev mailing list
>>> dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
>>>
>>>
>>
>>
>>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkm6oeAACgkQf1hPnk3Z0cQkjgCguPQBMNwCSeORrsVfasYnjDTi
> CV8Aniu340l+h1sr38g736zRdv9io78B
> =cKpX
> -END PGP SIGNATURE-
>
>



-- 
Please encrypt your mail:
http://mathphys.fsk.uni-heidelberg.de/~stefan/publickey.asc
FP: 2620 E737 FD50 60AB 86B6 1B9D 3BFD AFFB 5B15 6893

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


Re: [OSM-dev] GSoC'09

2009-03-13 Thread Stefan de Konink
rajan vaish wrote:
> Though,I really don't understand why will there be a problem when using 
> a Sugar version or for that sake any platform,since OSM is something web 
> based too and is basically browser dependent (Firefox in this case) ,or 
> may be I am not getting your question properly,I own an XO and have used 
> the browser ..

Because the OLPC is so god damned slow any non-web app will give a 
better user experience than the build in browser.


Stefan

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


Re: [OSM-dev] GSoC'09

2009-03-13 Thread rajan vaish
Though,I really don't understand why will there be a problem when using a
Sugar version or for that sake any platform,since OSM is something web based
too and is basically browser dependent (Firefox in this case) ,or may be I
am not getting your question properly,I own an XO and have used the browser
..
Rajan

On Sat, Mar 14, 2009 at 1:19 AM, Stefan de Konink  wrote:

> rajan vaish wrote:
>
>> Hi Stefan,
>> I created a *web* based tool actually,the desktop version was for Windows
>> (since there was a news of Microsoft showing interest in OLPC with Windows )
>> ,this is the tool,I produced >
>> http://vaish.rajan.googlepages.com/Atlas.exe ,make sure that you have
>> mapserver and openlayers installed before hand,to test it. Thanks.
>>
>
> ...now I understand why people were so excited when I mentioned a Sugar
> version.
>
>
> Stefan
>
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] GSoC'09

2009-03-13 Thread Stefan de Konink
rajan vaish wrote:
> Hi Stefan,
> I created a *web* based tool actually,the desktop version was for 
> Windows (since there was a news of Microsoft showing interest in OLPC 
> with Windows ) ,this is the tool,I produced > 
> http://vaish.rajan.googlepages.com/Atlas.exe ,make sure that you have 
> mapserver and openlayers installed before hand,to test it. Thanks.

...now I understand why people were so excited when I mentioned a Sugar 
version.


Stefan

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


Re: [OSM-dev] GSoC'09

2009-03-13 Thread rajan vaish
Hi Stefan,
I created a *web* based tool actually,the desktop version was for Windows
(since there was a news of Microsoft showing interest in OLPC with Windows )
,this is the tool,I produced >
http://vaish.rajan.googlepages.com/Atlas.exe,make sure that you have
mapserver and openlayers installed before hand,to
test it. Thanks.
Rajan

On Sat, Mar 14, 2009 at 12:59 AM, Stefan de Konink  wrote:

> rajan vaish wrote:
>
>> I am Rajan,a CS major from India.I interned online for One Laptop per
>> Child creating a Geography teaching tool using GeoRSS,MapServer and
>> OpenLayers in summer'08. I am really looking forward to participate and work
>> for OSM this year and there are few things of my interest on which I would
>> like to work .. 2 of which have already been posted .
>>
>
> Hey, I have two OLPC's here exacly for this reason. Do you have a solution
> for the fact it is rather difficult to connect to for example an external
> GPS using the OLPC?
>
> I was basically looking into rendering simple maps in Sugar. What tool did
> you produce?
>
>
> Stefan
>
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [josm-dev] WMS-Plugin: timeout too fast?

2009-03-13 Thread Henrik Niehaus
Tobias Wendorff schrieb:
> Dear Dirk,
> 
> it seems like the WMS-Plugins doesn't wait long enough to get tiles
> from slow WMS-servers.
> 
> Since many WMS-servers need a lot of time to transform images to
> WGS84, the timeout should be higher.
> 
> Is there a "hidden" setting or tweak?
> 
> Best regards,
> Tobias

I have added timeouts with a timeout of 30 seconds for both connect and
read operations. They can be configured on the "Einstein"-Tab in the
settings "wmsplugin.timeout.". Values should be the timeout in seconds.
 The changes are checked in the cvs and should be available with the
next release.

BR
Henrik


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


Re: [OSM-dev] GSoC'09

2009-03-13 Thread Stefan de Konink
rajan vaish wrote:
> I am Rajan,a CS major from India.I interned online for One Laptop per 
> Child creating a Geography teaching tool using GeoRSS,MapServer and 
> OpenLayers in summer'08. I am really looking forward to participate and 
> work for OSM this year and there are few things of my interest on which 
> I would like to work .. 2 of which have already been posted .

Hey, I have two OLPC's here exacly for this reason. Do you have a 
solution for the fact it is rather difficult to connect to for example 
an external GPS using the OLPC?

I was basically looking into rendering simple maps in Sugar. What tool 
did you produce?


Stefan

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


[OSM-dev] GSoC'09

2009-03-13 Thread rajan vaish
Hi,
I am Rajan,a CS major from India.I interned online for One Laptop per Child
creating a Geography teaching tool using GeoRSS,MapServer and OpenLayers in
summer'08. I am really looking forward to participate and work for OSM this
year and there are few things of my interest on which I would like to work
.. 2 of which have already been posted .
1-OSM for visually impaired (HTML header tags as per W3C guidelines can be
done and source-destination pair can be set,which result in
direction,something like MapQuest by AOL such that its very supportive to
Screen Readers like JAWS --- I am currently working on a research based
analysis of an Email client for visually impaired for ASSETS'09 mentored by
a Researcher from IBM ).
2-JOSM History Support .
3-OSM/Slippy maps with Markers (i.e A window opens on clicking a particular
spot with more information - something implemented on OpenLayers using
GeoRSS and very common on Google maps ) .
I am a newbie but very fast learner ,it has been just sometime since I have
been browsing through OSM and really keen to work on it.
Looking forward to listen from interested mentors ,so that can discuss
further issues and design the implementation model for any of these 3 ideas
mentioned. Thank you,
Rajan
http://linkedin.com/in/rajanvaish
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Participation in gsoc 2009

2009-03-13 Thread Mario Ferraro
Mikel Maron ha scritto:
> At least 2 of the 4 Google Summer of Code students, Arindam and Subhodip 
> were actually already active in OSM, and continue to be.

[just an example, not directly talking to Mikel, snip all the thread :))]

Hi all,
sorry for resuming this old thread, but I had a very busy month and I 
wasn't synced with OSM lists.

I don't want to be polemic and I don't want to feel a little bit 
offended, I'll take it as an encouragement to advertise my works better, 
even if it's not in my own nature (actually also sending a mail like 
this makes me feel bad, but I think you can understand what not sending 
it would mean, even if Frederik already said something about it). Don't 
call me an "hard-core OSM developer/mapper/ambassador", but at least for 
the mean of fairness (to me and to GSoC), even if I didn't achieve a new 
release of OsmaFrontend (too few time but I'm slowly on the way), this 
is what I've done after GSoC08[0].

Please don't take this as some kind of ugly narcissistic email, but only 
as an opportunity for me to clearly tell you that I'm still actively 
here, up and running... and I hope that the OSM community, which I 
always define "my" community and to which I'm always thankful for the 
opportunity that has given me running GSoC08, is still here with me.

No hard feelings.

Mario Ferraro

[0]

[Blog]
http://osmarenderfrontend.wordpress.com

[Commits]
http://cia.vc/stats/author/merio/

[MyTaH Firefox extension]
http://osmarenderfrontend.wordpress.com/2008/12/17/mytah-firefox-extension-02/
http://wiki.openstreetmap.org/wiki/MyTaH

[...@h contributes]
http://server.tah.openstreetmap.org/User/show/byid/683/

[OSM Code Swarm videos]
http://osmarenderfrontend.wordpress.com/2008/11/24/openstreetmap-code-swarm/
http://www.youtube.com/watch?v=rrqSVBZRKUY
(http://twitter.com/SteveC/status/1021271184)

[Activity in Italy]
http://www.ls-lug.org/LinuxDay/ORARIO.htm
http://wiki.openstreetmap.org/wiki/Pompeii#Presenti_al_Mapping_Party
http://www.mail-archive.com/search?q=mario+ferraro&l=talk-it%40openstreetmap.org

[SOTM09, I'm listed since January]
http://wiki.openstreetmap.org/wiki/State_Of_The_Map_2009/Who%27s_going%3F#Seriously_planning_to_go

[Proposal for a project, trying to find the time to begin the development]
http://wiki.openstreetmap.org/wiki/Featurama

[Personal Page]
http://wiki.openstreetmap.org/wiki/User:Merio

[IRC]
Idling as Merio in #osm, #osm-dev, #osmtracker

==
Even if not directly related to OSM, I'm contributing back to GSoC too, 
coding JS stuff patches for Melange, the web application which is 
currently handling GSoC09
http://groups.google.com/group/melange-soc-dev/search?group=melange-soc-dev&q=mario+ferraro&qt_g=Cerca+in+questo+gruppo

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


Re: [OSM-dev] extracting house-number from string

2009-03-13 Thread Stefan Breunig
/[0-9]+[a-z]?(?:$|\b)/i

I guess a regular expression should be suitable. The above is from my
head and untested.
[0-9]+ – matches any amount of numbers
[a-z]? – optionally matches a letter
(?:$|\b)   – either matches the end of the string or a word boundary
(space, dot, etc.)
/i   – search case insensitve

Should work for the examples you gave. You might want to limit the
[a-z] to [a-l] because I haven't even heard of an "123 f", so it
ignores some of the typos (i.e. 3r avenue). No idea how that works for
languages other than English. The regex will find "5" as housenumber
if someone e.g. writes "5. avenue".


On Fri, Mar 13, 2009 at 16:28, Marcus Wolschon  wrote:
> Hello,
>
> does anyone know a good algorithm to extract
> the house-number from a string containing
> street-name and house-number?
> Cases coollected so far:
>
>  // "xyz 12"
>        // "xyz 12b"
>        // "11b xyz"
>        // "11 xyz"
>        // "xyz"
>        // "5th avenue"
>        // "3rd avenue"
>        // "2nd avenue"
>        // "1st avenue"
>
> I need it for adding routing to house-numbers to the Traveling
> Salesman -navigator.
>
>
> Marcus
>
> ___
> dev mailing list
> dev@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>



-- 
Please encrypt your mail:
http://mathphys.fsk.uni-heidelberg.de/~stefan/publickey.asc
FP: 2620 E737 FD50 60AB 86B6 1B9D 3BFD AFFB 5B15 6893

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


Re: [OSM-dev] extracting house-number from string

2009-03-13 Thread Ed Loach
> does anyone know a good algorithm to extract
> the house-number from a string containing
> street-name and house-number?

I'm not entirely sure what you're planning. I'm guessing storing
house numbers as numeric fields would save storage space, but not
all addresses even have numbers (some are just building names).

Would an alternative to be to return all strings for the relevant
street that contains what the user enters as house name/number and
let them select one? 

Ed



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


[OSM-dev] extracting house-number from string

2009-03-13 Thread Marcus Wolschon
Hello,

does anyone know a good algorithm to extract
the house-number from a string containing
street-name and house-number?
Cases coollected so far:

 // "xyz 12"
// "xyz 12b"
// "11b xyz"
// "11 xyz"
// "xyz"
// "5th avenue"
// "3rd avenue"
// "2nd avenue"
// "1st avenue"

I need it for adding routing to house-numbers to the Traveling
Salesman -navigator.


Marcus

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


Re: [osmosis-dev] ivy problem

2009-03-13 Thread Brett Henderson
This woodstox breakage is frustrating.  The build broke a few weeks back 
because I was auto selecting the latest version of the woodstox 
libraries.  The latest version introduced had broken checksums so I 
locked it at the last working version.  Now that also has broken checksums.

The fallback I have is to check a valid woodstox library into the 
osmosis/repo directory which is searched before public repositories.  I 
don't have time to do it now unfortunately.

If somebody has the time, download the woodstox 3.2.8 library and put it 
into the osmosis/repo directory structure along with a matching ivy 
config file.  The existing libraries there can be used as an example.

Relying on public repositories is always fraught with danger.  Perhaps I 
should look at configuring a repository on the osm dev server with all 
required libs ...

Brett Henderson wrote:
> All ivy files are stored in /.ivy2
>
> The Internet downloaded files are under the cache directory.  The 
> Woodstox Stax xml parser should be in there somewhere along with its 
> sha1 value.  Hopefully that is enough to get you by for now, I'll take 
> a closer look as soon as I can.
>
> Frederik Ramm wrote:
>> Hi,
>>
>> I'm trying to build Osmosis trunk and I get an error from Ivy:
>>
>> [ivy:resolve]   [FAILED ] 
>> org.codehaus.woodstox#wstx-lgpl;3.2.8!wstx-lgpl.jar: invalid sha1: 
>> expected=8898bbf8f5b17f5e59dde8324eceba6469171766 
>> computed=833a57ee3dc3aa7ac347c8dea98dc38de42e4938 (10409ms)
>>
>> Hacker that I am, I grepped through the files for the "expected" 
>> value, hoping to be able to simply change it so that the above check 
>> succeeds, but I could not find it. Can somebody tell me how this can 
>> be fixed, or can I possibly build Osmosis without "wstx", whatever 
>> that may be?
>>
>> Bye
>> Frederik
>>
>>   
>
>


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


Re: [OSM-dev] 0.6 move and downtime (re-scheduled)

2009-03-13 Thread Matt Amos
On Fri, Mar 13, 2009 at 8:34 AM, Florian Lohoff  wrote:
> So it is sensible to make it mirroring and it might even be a benefit to
> do an 1 -> N mirroring.
>
> Rule of thumb:
>
>        More concurrent readers -> More spindles

this is why we have ROMA/TRAPI/etc... they're able to satisy the most
common read requests. as stefan said, we're scaling out. with the
added advantage that some of them aren't hosted locally and are able
to stay up even if there are problems with the main site's network or
power.

and, as grant said, scaling out on the master DB is something that
we're going to be very cautious about for the moment.

there's another rule of thumb though: more spindles -> more failures ;-)

cheers,

matt

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


Re: [OSM-dev] 0.6 move and downtime (re-scheduled)

2009-03-13 Thread Florian Lohoff
On Fri, Mar 13, 2009 at 03:41:16AM +0100, Stefan de Konink wrote:
> Mirroring will not increase performance because your RAID card will not 
> a priori know what files you are interested in, only the blocks you are 
> interested in and in the worst case will grab the same data from the 
> same disks and compare it ;)

In case of raid1 (mirroring) it should not compare data on simple read
but only do so in case of a reported ECC/disk block error.

Mirroring will increase performance with multiple concurrent readers
which is obviously the case with the OSM API Server. In the case of a
single reader you are right - it would not help latency but probably
streaming data (which would need intelligent read ahead)

So it is sensible to make it mirroring and it might even be a benefit to
do an 1 -> N mirroring.

Rule of thumb:

More concurrent readers -> More spindles

This is why 72GB disks are still common in storage systems.

Flo
-- 
Florian Lohoff  f...@rfc822.org +49-171-2280134
Those who would give up a little freedom to get a little 
  security shall soon have neither - Benjamin Franklin


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


Re: [OSM-dev] 0.6 move and downtime (re-scheduled) - TS 1.0 also postponed

2009-03-13 Thread marcus.wolschon
On Thu, 12 Mar 2009 16:00:19 +, Grant Slater
 wrote:
> Dear all
> 
> The API downtime scheduled for the 0.6 API transition has been postponed 
> due to delays acquiring the new database server.
> 
> The re-scheduled API downtime for the 0.6 API upgrade is now the weekend 
> of the 17-20th April 2009.
> 
> Original announcement...
> http://lists.openstreetmap.org/pipermail/talk/2009-January/033294.html
> 
> Developer information:
> http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6


As Traveling Salesman also makes use of API 0.6 the release
of it's Version 1.0 must also be postponed to 2009-04-17 .
Current 0.9 -versions are very stable already but direct
map-download/update for small areas from the API does not work
until API 0.6 has gone public.

http://travelingsales.sourceforge.net

Marcus

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