Wykres commitów

803 Commity (b810ecaaf71a495a4f35dcf3bcf70ff220842600)

Autor SHA1 Wiadomość Data
Hakan Tandogan 66549d58d2 Transifex language layout configuration 2012-12-19 08:39:06 +01:00
Maxime Petazzoni 6b61f42c23 Add method to get BoundingBox bounds for JSON
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-12-13 17:22:03 -08:00
Maxime Petazzoni e62162fb38 Log message fix in planet-update.sh
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-11-29 11:21:11 -08:00
Konstantin Mochalov 33e3308e7b Specical case for converting street names entirely of status parts, i.e. 'Набережная улица'; more tests, renamed some variables and added comments. 2012-05-18 10:50:37 +02:00
Konstantin Mochalov 89de318bc8 Russian street name normalizer: i18n_ru_generic.user_readable_street, using table of status parts from streetmangler project 2012-05-17 21:40:14 +02:00
Manuel Fuhr 61ae7730f1 Fix broken import (from ocitysmap2 rename).
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-05-10 08:55:10 -07:00
Manuel Fuhr fbbdecba92 Remove stray 'ocitysmap2' stuff from documentation.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-05-10 08:55:06 -07:00
Maxime Petazzoni a94715d2b7 Update translation files
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-05-08 19:53:41 +02:00
Maxime Petazzoni f52d11a621 planet-update script cleanup
Cleanup some of the variable definitions, add -C 5000 by default to the
osm2pgsql process to benefit from better cache hit rate, and fix logging
and output of the maposmatic_admin table update.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-05-08 19:53:39 +02:00
Maxime Petazzoni 1aa5c5b068 Rename OCitySMap Python module from ocitysmap2 to ocitysmap
Renamed ocitysmap2-render as render.py since we don't need/want
"ocitysmap2" in the name anymore. Rename conf template as
ocitysmap.conf.dist for the same reason. Updated INSTALL instructions
accordingly.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-05-08 19:53:37 +02:00
Xuacu Saturio e415b30707 Add i18n_ast_generic class for Asturian
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-05-07 19:47:24 +02:00
David MENTRE e750b22b30 Bug fix: check for wkt!=None in ocitysmap2/__init__.py:_get_geographic_info()
In ocitysmap2/__init__.py:_get_geographic_info(), when one is looking in
the database, the returned "records" can be "[(None,)]". In that case
wkt obtains value None, which breaks the "shapely.wkt.loads(wkt)" call.
We add a protection against that.

Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-05-07 19:45:00 +02:00
Thomas Petazzoni 532c2d585e Fix typo
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-05-07 19:39:56 +02:00
Thomas Petazzoni b46520a900 Add Slovakian translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-05-07 19:30:45 +02:00
Thomas Petazzoni 21cb3d7cf8 Update .po files
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-05-07 19:30:00 +02:00
David MENTRE 6ff959f236 Regenerate locale/ocitysmap.pot to have UTF-8 encoding
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-05-07 19:28:53 +02:00
Thomas Petazzoni 5941fc2f2b Another fix for Asturian translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-05-04 11:48:43 +02:00
Thomas Petazzoni 9b41678371 Fix minor error in Asturian translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-05-04 11:33:52 +02:00
Xuacu Saturio ae90325a56 Add Asturian translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-05-04 11:24:58 +02:00
David MENTRE bf6e75b56f Check that latitude and longitude are different in ocitysmap2-render
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-04-30 10:13:24 +02:00
Thomas Petazzoni fd3b19be26 Fix typo in tr_TR i18n class name
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-28 00:30:16 +02:00
Thomas Petazzoni 61449e275d Move ocitysmap.po for tr_TR to the right location
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-28 00:29:04 +02:00
Thomas Petazzoni 5682422e2f Add logic for tr_TR street index
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-28 00:17:25 +02:00
Hakan Tandogan 26e45f82c2 Add ocitysmap.po for Turkish 2012-04-28 00:10:42 +02:00
Thomas Petazzoni 02d1b91d65 i18n: reorder spanish determinants
Due to the order of spanish determinants, a street such as "Calle de
los Huertos" was indexed under "los Huertos (Calle de)" instead of
"Huertos (Calle de los)". Same problem for "de la" or "de las". By
reordering the determinants so that the most specific ones are
considered first, we can achieve the desired behaviour.

See
http://www.maposmatic.org/rendered//046017_2012-04-27_11-51_MirafloresdelaSierraSpain.png
for an example of many current problems.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-27 16:03:08 +02:00
Manuel Fuhr 232b61686c Fix German translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-24 19:58:28 +02:00
Étienne Loks 2c5aa73c8a Stamen Toner stylesheet: create style files, fix locality, hamlet and village names
As the changes in the base stylesheet begins to be heavy, specific
stylesheets files have been created. Reference files (labels.mms for
labels-ocitysmap.mss and style-toner-standard.mml for
style-toner-ocitysmap.mml) have been added to ocitysmap repository to
track changes on the toner main repository.

style-toner-ocitysmap.mml and labels-ocitysmap.mss have been updated
to display names of localities, hamlets and villages.

INSTALL instructions have been updated.
2012-04-23 22:38:08 +02:00
Étienne Loks 3ea695b53e Add instructions to install Stamen Toner stylesheet.
* instructions given in the Appendix C of INSTALL file
 * Cascadenik patch for mapnik 2
 * scripts to fix installation with current libraries and datas
2012-04-23 22:37:55 +02:00
Rodrigo Avila 30a6aad323 Add abbreviations of prefixes for pt_BR locale
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2012-04-23 21:30:01 +02:00
David MENTRE 7ec2235719 Bug fix: Consider "œ" an "o" letter in French
While we are fixing this, also consider "æ" an "a" letter and "ÿ" a "y"
letter.

Source: https://fr.wikipedia.org/wiki/Alphabet_fran%C3%A7ais

Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-04-23 21:22:38 +02:00
Étienne Loks b376ba5c09 Fix GEOS Intersection error when dealing with malformed ways
In concerned SQL queries this patch apply a 0-buffer to malformed ways.
As malformed ways seem pretty uncommon and as this operation is heavy
for performance issue the query is first run without the 0-buffer and
is re-run with it if the query fails.

With PostGIS 1.5 the failure message is not explicit so we can only
catch the generic psycopg2.InternalError.
2012-04-23 21:19:39 +02:00
Thomas Petazzoni 82ab5d0286 Revert "Add the jobid in the temp directory prefix"
This reverts commit 668b02ae93.
2012-04-23 21:17:31 +02:00
Thomas Petazzoni af2aa4a985 Revert "Fixup syntax typo in previous commit"
This reverts commit c10e75b147.
2012-04-23 21:17:21 +02:00
Thomas Petazzoni 53735e2815 Revert "Add the jobid in the temp directory prefix"
This reverts commit 1b2cfcbcd8.
2012-04-23 21:17:14 +02:00
Thomas Petazzoni 1b2cfcbcd8 Add the jobid in the temp directory prefix
This is committed only for debugging purposes, to help us investigate
the file descriptors leak problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-16 11:39:11 +02:00
Thomas Petazzoni c10e75b147 Fixup syntax typo in previous commit
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-16 11:33:51 +02:00
Thomas Petazzoni 668b02ae93 Add the jobid in the temp directory prefix
This is committed only for debugging purposes, to help us investigate
the file descriptors leak problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-16 11:30:00 +02:00
David MENTRE eb8f41d3d9 Bug fix: CSV file should be generated *after* applying the grid
* The CSV file should be generated after calling apply_grid() method
  which updates the grid location of each label.

Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-04-14 19:12:24 +02:00
Jeroen van Rijn d5e84891af Shorter German translations in ocitysmap.po
To address bug #36166, the translation for Public Building(s) is
replaced with the more literal 'Gebäude(n)', which is slightly
shorter.  Similarly for Education, which was translated as
'Educational institutions', it is replaced this with a more literal
(and shorter) Education -> Bildung.

Of course it doesn't fix the bug, as such, but may help create a
better index on German maps until the bug is fixed properly.

Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-14 10:28:43 +02:00
David MENTRE 4258c6973d Document and provide a patch on MapQuest stylesheet
[Thomas: add similar fix for UK stylesheet]
Signed-off-by: David MENTRE <dmentre@linux-france.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2012-04-12 19:02:01 +02:00
David MENTRE 66bcc1d43b Bug fix: Don't correct with latitude for multi-page renderer
In case of multi-page renderer, we are using Mapnik projection functions
to convert from (lat,lon) to meters and vice-versa. Therefore, contrary
to single page renderer, we don't need to take into account current
latitude, as Mapnik is doing this for us.

Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-04-12 18:33:08 +02:00
Thomas Petazzoni e9a8bf6704 Fix minor formatting issue in de translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-11 08:57:55 +02:00
Jeroen van Rijn 097b6f0077 Small fix in i18n.py for nynorsk
While I'd forgotten to add the norwegian languages to i18n, Thomas's patch to do so contained a typo. This fixes that typo.

Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
CC: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-11 08:47:03 +02:00
Thomas Petazzoni 81ecb55407 Fix typo in previous commit
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 23:22:05 +02:00
Thomas Petazzoni c1991ed6c7 Add Norvegian languages
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 23:17:40 +02:00
Gael UTARD 13615f7eaa Fix scale computations to ensure a minimum zoom level
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-10 20:52:06 +02:00
Gael UTARD a6906098a6 Take margins into account when computing sizes for single page
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-10 20:52:03 +02:00
Jeroen van Rijn c37e4522a8 Updated Norwegian translation
An updated translation for Bokmål (nb-NO) and a new Nynorsk (nn-NO) translation based on the nb-NO translation.
Fixes https://savannah.nongnu.org/bugs/?35372

All credit goes to Guttorm Flatabø <post@guttormflatabo.com>
Patch to MapOSMatic/www/settings.py to add Nynorsk and credit Guttorm to follow shortly.

Signed-off-by: Guttorm Flatabø <post@guttormflatabo.com>
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-10 20:33:47 +02:00
Jeroen van Rijn e030a50cc4 Updated Italian translation
Sent off as patch against current head on behalf of Simone Cortesi.

Signed-off-by: Simone Cortesi <simone@cortesi.com>
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-10 20:32:23 +02:00
Jeroen van Rijn 61dca51842 Mapnik 2.1: update INSTALL and get rid of DeprecationWarning
As of mapnik commit 14700dba16146902ca98fdcacb72b2fba4fa596a,
using 'import mapnik2' raises a DeprecationWarning.
See https://github.com/mapnik/mapnik/issues/941 for details.

Update imports of the mapnik module to use 'import mapnik' and assert
that the installed version is new enough.

We need mapnik 2.1.0 (or at least a version newer than 2.0.0
that supports placement-type="simple") for the Printable Stylesheet,
as per David's suggestion. Thomas pointed out that having the note
in all files was overkill, this patch takes that into account.

Also update INSTALL with instructions on how to build Mapnik from Git
and which specifically tested commit to use if the latest version
doesn't work.

CC: thomas.petazzoni@enix.org
CC: dmentre@linux-france.org
CC: maxime.petazzoni@bulix.org
Tested-by: Jeroen van Rijn <jvrnix@gmail.com>
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-10 20:31:09 +02:00