In PDF some text is only searchable with the backwards spelling of the street name. I also noticed that in the SVG format, the text objects that make up the street name are in reverse order. Is there a way to fix this? For example when I search for Woodside St, I can't find it, unless I search for "tS edisdooW".

please help :o(

This question is marked "community wiki".

asked 20 May '11, 16:06

Formaggio%20Verdi's gravatar image

Formaggio Verdi
6113
accept rate: 0%


This is a problem with the way mapnik renders text. I'll work on mapnik's text engine soon and I'll try to make sure the output order is observed.

permanent link

answered 22 May '11, 00:54

R2D2_C3PO's gravatar image

R2D2_C3PO
7111
accept rate: 100%

Thanks for the clear answer! I also saw something in the SVG and did some experimenting. When I look at my SVG in Notepad for example, the TEXT objects that make up a street name will look something like this for the word "WOOD" (pseudo code):

id=2986 text = "d" id=2990 text = "o" id=2994 text = "o" id=2998 text = "w"

And no matter what order these lines are in, they will spell "Wood"....however, if you reverse the order of the lines, it will THEN become searchable by "Wood", not by "dooW".

I don't know if this gives you more clues. Forgive my redundancy if you already know this.

Thanks!

(23 May '11, 16:38) Formaggio Verdi

No there is no set way to fix this. The export PDF (and SVG) formats are primarily focused for display.

permanent link

answered 21 May '11, 16:23

Firefishy's gravatar image

Firefishy
1.2k73551
accept rate: 31%

edited 21 May '11, 17:15

When this result is given by the export tab function from the main openstreetmap.org site you can try some other apps to produce pdf files containing rendered OSM areas:

Maperitive ... Maposmatic ... mapgen.pl

Maybe that street names are searchable in the output files ...

When you want to search for more possibilities to render the map and have a PDF as result, have a look at "Rendering" in the OSM wiki.

permanent link

answered 21 May '11, 17:06

stephan75's gravatar image

stephan75
12.4k353209
accept rate: 6%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×176
×110
×30
×1

question asked: 20 May '11, 16:06

question was seen: 3,816 times

last updated: 23 May '11, 16:38

powered by OSQA