<div dir="ltr"><div><div><div>Hi Kurt,<br><br></div>Your tool may come in handy when generating diffs because it has a database. I deliberately did not use a database because it can be a lot of work to set this up and I believe the AGIV CRAB data should be usable by anyone.<br>
<br>The interface here is translated: <a href="http://addr.openstreetmap.fr/vlaanderen/">http://addr.openstreetmap.fr/vlaanderen/</a><br><br></div>I just send the csv files to frédéric rodrigo and he uploads them and creates relations etc. If you can send me a new file that would be great when the issue I had have been solved:<br>
<br><div>- Improve the script to handle 'special' chars.</div><div>- Improve the script to Always take the most accurate position.</div><div>- Improve the script to remove data with an end-date before today.<br><br>
</div><div>But if i followed your explanation this should all be ok no? Thanks for the good work. Oh and can you keep the format I used?<br></div><br><a href="https://www.dropbox.com/s/w0nglkunw4x2osk/crab.csv">https://www.dropbox.com/s/w0nglkunw4x2osk/crab.csv</a><br>
<br></div>Dot-comma seperated and the same columns? This will make it easier for frederic to update.<br><div><div><br clear="all"><div class="gmail_extra"><div><div dir="ltr">Met vriendelijke groeten,<br>Best regards,<br>
<br>Ben Abelshausen<br><br></div></div>
<div class="gmail_quote">On Sun, Nov 10, 2013 at 7:44 PM, Kurt Roeckx <span dir="ltr"><<a href="mailto:kurt@roeckx.be" target="_blank">kurt@roeckx.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
I've been looking at creating my own tools for the CRAB data.<br>
I've made some software to import the files provided by AGIV<br>
into a postgresql database. You can find it here:<br>
<a href="https://github.com/kroeckx/crab-tools" target="_blank">https://github.com/kroeckx/crab-tools</a><br>
<br>
To create the same .csv files as Ben generates I suggest you<br>
use the following query:<br>
SELECT<br>
DISTINCT ON (point)<br>
postcode, municipality_name, street_name, house_number_label, ST_Y(ST_Transform(point, 4326)), ST_X(ST_Transform(point, 4326))<br>
FROM crab.address_position<br>
WHERE postcode = ?<br>
ORDER BY point;<br>
<br>
This should give you more addresses and only the valid addresses,<br>
and in most cases it should now end up on the building. It should<br>
also have grouped all the different numbers belonging to the same<br>
building into 1 node.<br>
<br>
I'm not sure how the data on <a href="http://addr.openstreetmap.fr/vlaanderen" target="_blank">http://addr.openstreetmap.fr/vlaanderen</a><br>
is generated exactly. But I'm going to look into improving<br>
things.<br>
<br>
<br>
Kurt<br>
<br>
<br>
_______________________________________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org">Talk-be@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-be" target="_blank">https://lists.openstreetmap.org/listinfo/talk-be</a><br>
</blockquote></div><br></div></div></div></div>