Closed ltog closed 8 years ago
Hello @ltog , new year, new luck? As I watched some activity on yours on github, may I kindly ask about this feature request? I browsed through all open github issues, and from end-user view, maybe this one is a not-very-high-effort task? Can we give some support to you for solving this?
Hello @stephan75!
new year, new luck?
Yeah, I wanted to use the Holidays to work on new things in osmi-addresses. I did a lot of (uncommited) work on a prototype to implement some multi-threaded code that should speed things up (but won't bring user-visible changes). All commits/issues you see are actually preparations to bring this to life.
maybe this one is a not-very-high-effort task?
I would rate the needed effort as moderate. Since I work on this in my spare time, that could still mean it will take months until it will run on the Geofabrik server... :-\
Can we give some support to you for solving this?
Thanks for the offer! :-)
It depends a bit if you can (or would like to learn to) write code. That of course would be most helpful. I would also be willing to assist/explain so you can get into the code.
If that is not an option there is not so much to be done: One small thing would be to look up some examples where addr:place=...
is actually used to then check if the software works. Such examples may be needed also in other (GitHub) issues. It would be helpful if you (or anybody else) would collect them. Some other issues might need some other additional information. And you are of course welcome to add new issues if you find bugs or have ideas for new (thematically suitable) features.
Best regards!
PS: I don't recognize your nickname. Have we met?
I am quite sure that we have not met yet, but see OSM forum, OSM wiki, help.osm.org, Wochennotiz, etc.
but nevertheless:
I am planning / scheduling a new Wochenaufgabe (weekly task) about missing addr:street. See a draft on https://wiki.openstreetmap.org/wiki/User:Stephan75 (This text is going to be deleted after publishing the Wochenaufgabe) There is an overpass-turbo query about addr-errors I am aiming at. So that can be a basis for getting new or enhanced features to OSM inspector.
Unfortunately I have almost no programming skills, but maybe I can give hints. Can you guide me to the code inside osmi-addresses where objects are filtered and found that have no addr:street ?
Thanks for the link to your user page. Do you aim at fixing specific errors or is the goal a general improvement of quality/quantity of address data?
Does the Wochenaufgabe already have a target publication date? Implementing and deploying this feature is certainly possible but will take time. (Deployment would probably be done by @woodpeck.)
When I was writing my thesis about osmi-addresses (see https://github.com/ltog/osmi-addresses/blob/master/doc/report.pdf ), I described (among others) the following services:
Are you aware of them?
Here's a draft on how to implement this:
FirstHandler
place_lookup_type
(similar to highway_lookup_type
) that contains:place=...
and name=...
into struct and this into multimapplace=...
and name=...
then calculate centroid and write into struct and this into multimapSecondHandler
WaysWithAddressesWriter
to also write buildings tagged with addr:place=...
ConnectionLinePreprocessor
(methods process_node()
and process_way()
) to also read nodes and ways with addr:place=...
set ; Call method handle_connection_line()
ConnectionLineWriter.write_line()
NearestPlaceWriter
This draft is to be adjusted...
I will have a closer look later today about your additions.
Maybe lets talk about Wochenaufgabe via osm.org messaging system. My username is same like here on github.
@stephan75 : I sent you a message...
MapServer Filter expression :
FILTER (([is_ip]=0) AND ("[street]" = '') AND ("[fulladdr]" = ''))
QGIS-Filter:
MapServer Filter expression:
FILTER (([is_ip]=0) AND ("[street]" != '') AND ("[road_id]" = ''))
at https://github.com/ltog/osmi-addresses/blob/a463b2b8f3b0a75d3870013eb17c60b9c96c2b7c /mapserver/addresses.map#L846 :
QGIS-Filter:
is_ip=0 AND street!='' AND road_id is null
QGIS-Filter including places:
is_ip=0 AND ((street!='' AND road_id is null) OR (place!='' AND nody_place_id is null AND wayy_place_id is null))
Next step: Adjust the file mapserver/addresses.map
to show referenced but non-existing place=... .
Sometimes addr:place is used for addresses which are not assigned to a street but to a place (tagged with place=... and name=...).
We should support the addr:place= tagging scheme in two phases:
Do not give an "No addr:street tag" error in this case since "addr:street=" is supposed to be deleted if "addr:place=" is used.Done. See https://github.com/ltog/osmi-addresses/issues/14See: