<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="IncrediMail 1.0" name=GENERATOR>
<STYLE>v\:* {
        BEHAVIOR: url (#default#vml)
}
</STYLE>

<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER></X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style="FONT-SIZE: 12pt; MARGIN: 5px 10px 0px; FONT-FAMILY: Arial" bgColor=#ffffff background="" scroll=yes>
<TABLE id=INCREDIMAINTABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD id=INCREDITEXTREGION style="FONT-SIZE: 12pt; DIRECTION: ltr; POSITION: relative" width="100%">
<DIV id=INCREDI_TEXT_AREA style="PADDING-LEFT: 2px; FONT-SIZE: 10pt; FONT-FAMILY: Comic Sans MS">
<DIV><FONT face=Verdana>Re Bonjour,</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Merci pour ceux qui ont répondu à mon message sur "talk-fr" (Nicolas,Damouns,Étienne,Rodolphe,Frédéric) ....</FONT></DIV>
<DIV><FONT size=2><A href="http://lists.openstreetmap.org/pipermail/talk-fr/2012-April/042333.html">http://lists.openstreetmap.org/pipermail/talk-fr/2012-April/042333.html</A></FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Mon projet concerne "La Nouvelle-Calédonie" (dans un premier temps), et dans un second temps d'autres pays....</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Pour être plus précis, je pense qu'on peux facilement ajouter une table (ou un champ) avec "ID des rues + maxspeed" dans postgresql.<BR>Les données existent dans la base OSM....... Il faut par contre que j'étudie la structure de nominatim (DB).</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Une requête </FONT><A href="http://nominatim.openstreetmap.org/reverse?format=xml&lat=-22.2648630&lon=166.4694287&zoom=18&addressdetails=1"><FONT face=Verdana>http://nominatim.openstreetmap.org/reverse?format=xml&lat=-22.2648630&lon=166.4694287&zoom=18&addressdetails=1</FONT></A><FONT face=Verdana> </FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>donne :<BR><reversegeocode timestamp="Thu, 05 Apr 12 11:48:29 +0100" attribution="Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0." querystring="format=xml&lat=-22.2648630&lon=166.4694287&zoom=18&addressdetails=1"><BR><result place_id="95022773" osm_type="way" osm_id="104632110" lat="-22.2648782958183" lon="166.469206225929">23 Bis, Rue de la Gazelle, Magenta, Magenta Aérodrome, Nouméa, Province Sud, 98800, Nouvelle-Calédonie</result><BR><addressparts><BR><house_number>23 Bis</house_number><BR><road>Rue de la Gazelle</road><BR><suburb>Magenta</suburb><BR><city_district>Magenta Aérodrome</city_district><BR><city>Nouméa</city><BR><county>Province Sud</county><BR><postcode>98800</postcode><BR><country>Nouvelle-Calédonie</country><BR><country_code>nc</country_code><BR></addressparts><BR></reversegeocode></FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Il faudrait juste ajouter le <maxpseed>50</maxpseed> dans le <addressparts> (....) </addressparts></FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Il faudrait modifier le fichier setup.php pour importer cette valeur, ainsi que le fichier reverse.php pour chercher le maxspeed si l'ID (place_id ou osm_id) est définit<BR>Ensuite il faudrait faire une update du fichier reverse.php pour afficher celle-ci.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR><FONT face=Verdana>@Etienne: <BR>Pour le fait que ce ne soit pas défini, si on doit faire toutes les rues de la Nouvelle-Calédonie et définir cette valeur on va le faire, (ou le faire faire) ^_^<BR>La plupart des rues sont à 50, on possède quelques zones à 30 (4 ou 5 rues), et les voies rapides (qui ne sont pas super nombreuse de 70 à 120).</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>@Rodolphe: <BR>Ta proposition pour debian m'intéresse.<BR>Utilise-tu nominatim ?</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Pour le coup des locales, j'ai essayé de passé pgsql en en.utf8 par défaut, mais j'avais des erreurs (en boucle) après la procédure de CREAT/INSERT du début:</FONT></DIV>
<DIV><FONT face=Verdana>Done 1 in 792 @ 0.001263 per second - Rank 21 ETA (seconds): 25649712.000000<BR>index_placex: UPDATE failed: ERREUR: requires UTF8 database encoding CONTEXT: PL/pgSQL function "make_standard_name" line 5 at affectation </FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Ensuite j'ai utilisé une debian EN (sans modifier les locales) et l'erreur est la suivante (toujours en boucle) :</FONT></DIV>
<DIV><FONT face=Verdana>PL/pgSQL function "placex_update" line 290 at FOR over SELECT rows index_placex: UPDATE failed: ERROR: upper bound of FOR loop cannot be null<BR>CONTEXT: PL/pgSQL function "get_osm_rel_members" line 6 at FOR with integer loop variable</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>J'ai fait mes tests sur une VM (2 coeurs, 1,5Gb de RAM) et me suis préparé des commandes pour accélérer mon install : </FONT></DIV>
<DIV><FONT face=Verdana>sed -i 's/shared_buffers = 24MB/shared_buffers = 200MB/g' /etc/postgresql/9.1/main/postgresql.conf<BR>sed -i 's/#fsync = on/fsync = off/g' /etc/postgresql/9.1/main/postgresql.conf<BR>sed -i 's/#autovacuum = on/autovacuum = off/g' /etc/postgresql/9.1/main/postgresql.conf</FONT></DIV>
<DIV><FONT face=Verdana>sed -i 's/gazetteer -C 12000/gazetteer -C 500/g' /usr/src/Nominatim/utils/setup.php<BR>echo -e "<?php\ndefine('CONST_Postgresql_Version','9.1');\ndefine('CONST_Osm2pgsql_Binary','/usr/bin/osm2pgsql');\ndefine('CONST_Osmosis_Binary','/usr/bin/osmosis');\ndefine('CONST_Website_BaseURL','http://192.168.1.16/nominatim/');\n?>" > /usr/src/Nominatim/settings/local.php</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Si vous avez des idées, elles sont les bienvenues, et je précise "une fois de plus" que je peux rémunérer une personne pour cette update, ce qui va me faire gagner un temps précieux.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Louis<BR></FONT></DIV></DIV></TD></TR>
<TR>
<TD id=INCREDIFOOTER width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD width="100%"></TD>
<TD id=INCREDISOUND vAlign=bottom align=middle></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>