Wykres commitów

173 Commity (5682422e2fc43a0f1f565ee15e14c982a623a2db)

Autor SHA1 Wiadomość Data
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
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
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
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
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 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
Étienne Loks f196de198e Indexer: fix bad logic for condition on 0-9 index 2012-04-03 23:31:04 +02:00
Étienne Loks 9508973464 upper_unaccent_string is missing from the base i18n class 2012-04-02 23:22:35 +02:00
Jeroen van Rijn d38ea65c5b forgot comma in previous patch to i18n.py, fix
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-02 22:57:53 +02:00
Jeroen van Rijn c663d98b1e i18n.py: Added two more prefixes to Dutch i18n class
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-01 11:00:04 +02:00
Étienne Loks f1a2e9f3d8 Indexer: regroup street beginning with a digit into a single category 2012-04-01 02:49:12 +02:00
Étienne Loks 2dda067173 multi-page: fix background color of the page number of the blank page 2012-04-01 02:24:46 +02:00
Thomas Petazzoni 752afb5dd0 MultiPageRenderer constructor fix
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 02:24:19 +02:00
Thomas Petazzoni f4adfa19bc Fix some remaining bugs on StreetIndex construction move to SinglePageRenderer
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 02:07:35 +02:00
Étienne Loks b20bfeb191 multi-page: adjust page number size of direction arrows 2012-04-01 01:47:13 +02:00
Gael UTARD e34791cd55 Remove dead code about zoom_level
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-01 01:46:31 +02:00
Étienne Loks 8a6b15f924 Draw utils refactoring 2012-04-01 01:46:01 +02:00
Gael UTARD 56a1a63872 Fix generation of csv file for "no index" layout
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-01 01:45:47 +02:00
Gael UTARD c4cf3307b8 Propose a default amongst compatible paper sizes
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-01 01:45:29 +02:00
Étienne Loks cc2cafc29c multi-page: don't rotate the label of the south arrow, minor fix 2012-04-01 01:09:46 +02:00
Thomas Petazzoni fd4ed60f54 multi-page: only support pdf as output format
For the moment, the CSV generated by the multi-page renderer is
completely incorrect. It would require more work, and is not essential
to put this multi-page renderer in production, so let's disable it for
now. We can make it work later on, and enable it again if we want.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 23:13:55 +02:00
David MENTRE 2a4109f41a Move street index creation into single page renderer
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-03-31 22:59:10 +02:00
Étienne Loks ea17da8623 multi-page: drawing neighbour arrows 2012-03-31 20:21:02 +02:00
Thomas Petazzoni 1869b9c5fd renderers: add a get_compatible_output_formats() method
The single page renderers can output PNG, SVGZ, PDF and CSV, but by
design, the multi page renderer can only output PDF and CSV. So we
introduce a get_compatible_output_formats() in the renderer class so
that users of OcitySMap2 can find out which formats are possible
depending on the choosen layout.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 19:22:30 +02:00
David MENTRE 58beafb881 In layoutlib/multi_page_renderer.py, use shared draw_utils.render_page_number()
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-03-31 18:46:12 +02:00
David MENTRE 8379cd7862 Print page number at bottom of multi-page map index
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-03-31 18:46:10 +02:00
Gael UTARD f5f6cd58ce Set grid size to 40 mm +/- 33%
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-03-31 18:45:52 +02:00
Étienne Loks c68369dbe8 multi-page refactoring: remove overview page from map pages list 2012-03-31 17:05:19 +02:00
Étienne Loks fa81ce86a8 multi-page: add a more suitable style for shade of outside town 2012-03-31 16:39:41 +02:00
Étienne Loks 06ea895391 multi-page: fix and improve page number
* position fixed
 * add a rectangle to draw inside
 * left and right alternance for page position
2012-03-31 16:03:50 +02:00
Étienne Loks b4a619df3c fix comments, add copyright notice, multipage: fix page numbers 2012-03-31 15:47:05 +02:00
Étienne Loks 4b706221d1 multi-page: add an intentionally blank page 2012-03-31 12:38:05 +02:00
David MENTRE a4ac0f1805 multi-page index: wrap long labels over several lines
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-03-31 10:54:57 +02:00
David MENTRE cf6ce9585b multi-page index: en entry repeated several times in a row is only printed once
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-03-31 10:54:54 +02:00
Thomas Petazzoni d3fdeffb21 multi-page: update copyright header
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 09:46:16 +02:00
Étienne Loks 3a94a3e6a1 multi-page overview: adjust automatically the size of page number on the map 2012-03-31 08:57:52 +02:00
Gael UTARD ad1eb8789f Reduce multipage grid line width
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-03-31 02:02:22 +02:00