Re: [OSM-dev] generate image failed

2012-02-02 Thread Graham Jones
It looks like www-data needs write permission on /var/run/renderd?

Graham

from my phone

On 3 Feb 2012 07:37, "Anwar Azulfa"  wrote:

I have reconfigure mod_tile again, then

when i try to restart apache2, renderd
then execute renderd -f, image still not found

this is pieces of output:

Serif-Bold.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf
Running in foreground mode...
renderd[18198]: Starting stats thread
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: ERROR: Failed repeatedly to write stats, giving up



i have grant tiledir to www-data in order to can accessed by webserver.

this is my /etc/renderd.onf

*[renderd]*
*;socketname=/var/run/renderd/renderd.sock*
*num_threads=4*
*tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET*
*stats_file=/var/run/renderd/renderd.stats*
*
*
*[mapnik]*
*#plugins_dir=/usr/lib/mapnik/input*
*plugins_dir=/usr/local/lib/mapnik2/input*
*font_dir=/usr/share/fonts/truetype/ttf-dejavu*
*font_dir_recurse=1*
*
*
*[default]*
*URI=/osm_tiles2/*
*XML=/home/dewirobiatul/src/mapnik-style/osm.xml*
*;HOST=localhost*

what should i do to solve this ?


2012/2/3 Andre Joost 
>
> Am 03.02.2012 04:13, schrieb Anwar Azulfa:
>
...
-- 
Regards,
M.Iftakhul Anwar



___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate image failed

2012-02-02 Thread Anwar Azulfa
I have reconfigure mod_tile again, then

when i try to restart apache2, renderd
then execute renderd -f, image still not found

this is pieces of output:

Serif-Bold.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf
renderd[18198]: DEBUG: Loading font:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf
Running in foreground mode...
renderd[18198]: Starting stats thread
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: Failed to open stats file: 2
renderd[18198]: ERROR: Failed repeatedly to write stats, giving up



i have grant tiledir to www-data in order to can accessed by webserver.

this is my /etc/renderd.onf

*[renderd]*
*;socketname=/var/run/renderd/renderd.sock*
*num_threads=4*
*tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET*
*stats_file=/var/run/renderd/renderd.stats*
*
*
*[mapnik]*
*#plugins_dir=/usr/lib/mapnik/input*
*plugins_dir=/usr/local/lib/mapnik2/input*
*font_dir=/usr/share/fonts/truetype/ttf-dejavu*
*font_dir_recurse=1*
*
*
*[default]*
*URI=/osm_tiles2/*
*XML=/home/dewirobiatul/src/mapnik-style/osm.xml*
*;HOST=localhost*

what should i do to solve this ?


2012/2/3 Andre Joost 

> Am 03.02.2012 04:13, schrieb Anwar Azulfa:
>
>  I check on /usr/lib/ ,obviously that there are libmapnik.0.7.so and
>> libmapnk2.so
>>
>> Then i remove them and build mapnik2 again.
>>
>> Now i got no error when i try to import mapnik2 on pythn
>>
>> Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
>> [GCC 4.4.5] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>
>>> import mapnik2
>
>
>> But my mad_tile still don't generate image on webserver.
>> when i execute renderd -f on mod_tile inside, i got error message like
>> bellow:
>>
>> renderd: error while loading shared libraries: libmapnik.so.2.0: cannot
>> open shared object file: No such file or directory
>>
>>
> Sorry, I dont use renderd. Did you manage to get generate_img.py working?
>
> One thing I got stuck with:
> Mapnik 2.0.0 starts with "try: import mapnik2" which was changed to
> "import mapnik" in Mapnik 2.0.1. Maybe renderd still uses the wrong
> directory?
>
> Greetings,
>
> André Joost
>
>
> __**_
> dev mailing list
> dev@openstreetmap.org
> http://lists.openstreetmap.**org/listinfo/dev
>



-- 
Regards,
M.Iftakhul Anwar
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] renderd mod_tile

2012-02-02 Thread yvecai

Is mapnik working alone?
Check with ./generate_image.py.
Yves

Le 03/02/2012 05:39, Dewi Robiatul mubararah a écrit :

when I start rendering the command. / render-f
I get an error, you can see here http://pastebin.com/nNcBDndV

please solution :)


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate_xml.py problem with fonts

2012-02-02 Thread Andre Joost

Am 02.02.2012 23:41, schrieb Alexandre Busquets:

Hi,

I try to generate my osm.xml file with this command
/generate_xml.py osm.xml my_osm.xml --dbname xxx --user xxx --password xxx
--host localhost --port 5432
but I have this error:

Traceback (most recent call last):
   File "./generate_xml.py", line 201, in
 serialize(template_xml,options)
   File "./generate_xml.py", line 77, in serialize
 mapnik.load_map(m,xml,True)
RuntimeError: Failed to find font face '' in FontSet 'book-fonts'

I downloaded the code from
http://svn.openstreetmap.org/applications/rendering/mapnik/

My scenario is:
ubuntu server 10.04
libmapnik0.7 from package
python-mapnik from package
mapnik-utils from package


What is the problem?



The current Style files are made for mapnik2, and won't work with 0.7.1 
anymore.


HTH,
André Joost




___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate image failed

2012-02-02 Thread Andre Joost

Am 03.02.2012 04:13, schrieb Anwar Azulfa:

I check on /usr/lib/ ,obviously that there are libmapnik.0.7.so and
libmapnk2.so

Then i remove them and build mapnik2 again.

Now i got no error when i try to import mapnik2 on pythn

Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import mapnik2



But my mad_tile still don't generate image on webserver.
when i execute renderd -f on mod_tile inside, i got error message like
bellow:

renderd: error while loading shared libraries: libmapnik.so.2.0: cannot
open shared object file: No such file or directory



Sorry, I dont use renderd. Did you manage to get generate_img.py working?

One thing I got stuck with:
Mapnik 2.0.0 starts with "try: import mapnik2" which was changed to 
"import mapnik" in Mapnik 2.0.1. Maybe renderd still uses the wrong 
directory?


Greetings,
André Joost


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] renderd mod_tile

2012-02-02 Thread Dewi Robiatul mubararah
when I start rendering the command. / render-f
I get an error, you can see here http://pastebin.com/nNcBDndV

please solution :)___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate image failed

2012-02-02 Thread Anwar Azulfa
I check on /usr/lib/ ,obviously that there are libmapnik.0.7.so and
libmapnk2.so

Then i remove them and build mapnik2 again.

Now i got no error when i try to import mapnik2 on pythn

Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapnik2
>>>

But my mad_tile still don't generate image on webserver.
when i execute renderd -f on mod_tile inside, i got error message like
bellow:

renderd: error while loading shared libraries: libmapnik.so.2.0: cannot
open shared object file: No such file or directory


What is that, what should i do to solve it ?


2012/2/2 Andre Joost 

> Am 02.02.2012 10:56, schrieb Anwar Azulfa:
>
>  It's not working on me,
>>
>> what repository which i must add to install mapnik2 or libmapnik2 ?
>>
>> i hvae add repostiry
>>
>> apt-get install python-software-properties
>>
>> sudo apt-get install python-mapnik2
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> E: Unable to locate package python-mapnik2
>>
>>
>> Any idea to solve it ?
>>
>>
> Sorry, I am only working on Windows with a pre-compiled binary.
>
> Have a look here:
> https://github.com/mapnik/**mapnik/wiki/Mapnik2
>
> HTH,
> André joost
>
>
>
>
> __**_
> dev mailing list
> dev@openstreetmap.org
> http://lists.openstreetmap.**org/listinfo/dev
>



-- 
Regards,
M.Iftakhul Anwar
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] [Nominatim] Import hangs inside virtualized host

2012-02-02 Thread fatzopilot

Hi,

hope this is the right/best place to ask.
I am trying to import the mapquest npi data inside a virtualized
environment and it gets stuck all the time after a while. Latest svn
version tried is 27508 and last time it got stuck after 38765(k) features.
I don't think the problem is related to nominatim directly but rather to a
problem with inter process communication in the virtualized environment
(afaics nominatim uses pipes to connect to postgres). Probably, the
problem would not occur in a non virtualized environment. Since I still
would like to see it running virtualized, I am trying to understand the
cause of the problem, so I run it "straced". Here is the output of the
last few lines (of ~160GB in total) before it got stuck:

recvfrom(3, "2\0\0\0\4n\0\0\0\4C\0\0\0\rDELETE 0\0Z\0\0\0\5I", 16384, 0,
NULL, NULL) = 30
sendto(3, "B\0\0\0.\0search_name_delete\0\0\0\0\1\0\0\0"..., 69,
MSG_NOSIGNAL, NULL, 0) = 69
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "2\0\0\0\4n\0\0\0\4C\0\0\0\rDELETE 0\0Z\0\0\0\5I", 16384, 0,
NULL, NULL) = 30
sendto(3, "B\0\0\0004\0place_addressline_delete\0\0"..., 75, MSG_NOSIGNAL,
NULL, 0) = 75
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "2\0\0\0\4n\0\0\0\4C\0\0\0\rDELETE 0\0Z\0\0\0\5I", 16384, 0,
NULL, NULL) = 30
sendto(3, "B\0\0\0\301\0placex_insert\0\0\0\0\16\0\0\0\n2060"..., 216,
MSG_NOSIGNAL, NULL, 0) = 216
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "2\0\0\0\4n\0\0\0\4C\0\0\0\17INSERT 0 1\0Z\0\0\0\5I", 16384,
0, NULL, NULL) = 32
sendto(3, "B\0\0\0q\0place_addressline_insert\0\0"..., 136, MSG_NOSIGNAL,
NULL, 0) = 136
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(3, "2\0\0\0\4n\0\0\0\4C\0\0\0\17INSERT 0 1\0Z\0\0\0\5I", 16384,
0, NULL, NULL) = 32
sendto(3, "B\0\0\0

Could somebody tell me what is the problem here?

Thanks
fatzopilot

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate_xml.py problem with fonts

2012-02-02 Thread Lennard

On 2-2-2012 23:41, Alexandre Busquets wrote:


I downloaded the code from
http://svn.openstreetmap.org/applications/rendering/mapnik/

...

libmapnik0.7 from package


Try:

svn co -r27279 http://svn.openstreetmap.org/applications/rendering/mapnik/


--
Lennard

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] generate_xml.py problem with fonts

2012-02-02 Thread Alexandre Busquets
Hi,

I try to generate my osm.xml file with this command
/generate_xml.py osm.xml my_osm.xml --dbname xxx --user xxx --password xxx
--host localhost --port 5432
but I have this error:

Traceback (most recent call last):
  File "./generate_xml.py", line 201, in 
serialize(template_xml,options)
  File "./generate_xml.py", line 77, in serialize
mapnik.load_map(m,xml,True)
RuntimeError: Failed to find font face '' in FontSet 'book-fonts'

I downloaded the code from
http://svn.openstreetmap.org/applications/rendering/mapnik/

My scenario is:
ubuntu server 10.04
libmapnik0.7 from package
python-mapnik from package
mapnik-utils from package


What is the problem?

Thanks.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Copying data from OSM to another open mapping project using the same software stack.

2012-02-02 Thread andrzej zaborowski
On 2 February 2012 12:48, Morten Olsen Lysgaard  wrote:
> Case:
> I export an bbox containing some features from the OSM database using the
> api.
> Now I want to push those features as new features to another database,
> OpenAviationMap, running the same API. That means that all the id's in the
> OSM XML are invalid for the OpenAviationMap database.
>
> What I'm wondering: What transformations would i have to do with an XML file
> from OSM to upload it to another database running rails_port.
> I've understood i have to create unique negative ids for each object in the
> XML, but what about version, changeset date and all those other attributes.
> What are the correct attributes for data that's "new" to a database?
>
> Note: I want to upload the "new" data using JOSM. Right now, if I try it
> complains that I'm trying to modify objects that don't exist in my database.

You'd also need to make sure there's action="create" attached to the
imported objects.  Version and changeset might be ignored by the
rails_port when you're creating objects (not sure), but likely JOSM
will just ignore all of those attributes when generating the change
xml.

Cheers

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] OpenKinect and OpenStreetMap

2012-02-02 Thread Cyrille Giquello
Hi,

I would like to know if someone has write the code to drive the
OpenStreetMap map consultation/navigation with a Kinect.
Do you know something about that ? Google does not help me with
"OpenKinect OpenStreetMap"

Regards

-- 
Cyrille.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Copying data from OSM to another open mapping project using the same software stack.

2012-02-02 Thread Morten Olsen Lysgaard

Case:
I export an bbox containing some features from the OSM database using 
the api.
Now I want to push those features as new features to another database, 
OpenAviationMap, running the same API. That means that all the id's in 
the OSM XML are invalid for the OpenAviationMap database.


What I'm wondering: What transformations would i have to do with an XML 
file from OSM to upload it to another database running rails_port.
I've understood i have to create unique negative ids for each object in 
the XML, but what about version, changeset date and all those other 
attributes.

What are the correct attributes for data that's "new" to a database?

Note: I want to upload the "new" data using JOSM. Right now, if I try it 
complains that I'm trying to modify objects that don't exist in my database.


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate image failed

2012-02-02 Thread Andre Joost

Am 02.02.2012 10:56, schrieb Anwar Azulfa:

It's not working on me,

what repository which i must add to install mapnik2 or libmapnik2 ?

i hvae add repostiry

apt-get install python-software-properties

sudo apt-get install python-mapnik2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-mapnik2


Any idea to solve it ?



Sorry, I am only working on Windows with a pre-compiled binary.

Have a look here:
https://github.com/mapnik/mapnik/wiki/Mapnik2

HTH,
André joost



___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] generate image failed

2012-02-02 Thread Anwar Azulfa
It's not working on me,

what repository which i must add to install mapnik2 or libmapnik2 ?

i hvae add repostiry

apt-get install python-software-properties

sudo apt-get install python-mapnik2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-mapnik2


Any idea to solve it ?

2012/2/2 Andre Joost 

> Am 02.02.2012 07:32, schrieb Andre Joost:
>
>
>
>> The osm.xml style file you used is made for mapnik 2
>>
>
> EDIT:
>
> You have to install that, unless you find the old Styles and python files
> for mapnik 0.7.1 somewhere.
>
>
> HTH,
> ajoessen
>
>
>
> __**_
> dev mailing list
> dev@openstreetmap.org
> http://lists.openstreetmap.**org/listinfo/dev
>



-- 
Regards,
M.Iftakhul Anwar
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev