Re: [OSM-dev] generate image failed

2012-03-06 Thread Peter Körner

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 ?


Because this question was not answered in that thread I'd like to point 
to my tutorial which includes installing mapnik2 from the testing-repo 
under ubuntu and debian:




Peter

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


Re: [OSM-dev] generate image failed

2012-02-03 Thread Graham Jones
Very true.  Should have said thar the user running renderd needs access to
the directory, sorry!

from my phone

On 3 Feb 2012 11:50, "Lynn W. Deffenbaugh (Mr)" 
wrote:

 Or renderd needs to run as user www-data?

Lynn (D) - KJ4ERJ



On 2/3/2012 2:53 AM, Graham Jones wrote:
>
> It looks like www-data needs write permission on /var...

___
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-03 Thread Lynn W. Deffenbaugh (Mr)

Or renderd needs to run as user www-data?

Lynn (D) - KJ4ERJ

On 2/3/2012 2:53 AM, Graham Jones wrote:


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


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


Re: [OSM-dev] generate image failed

2012-02-03 Thread Anwar Azulfa
i have granted  /var/run/renderd, my tile_dir to www-data

but still error like that,



2012/2/3 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
>
>


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


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] 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


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


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


Re: [OSM-dev] generate image failed

2012-02-01 Thread 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


Re: [OSM-dev] generate image failed

2012-02-01 Thread Andre Joost

Am 02.02.2012 03:42, schrieb Anwar Azulfa:

Hi All,

I try to genenerate image with mapnik on my other server,But if's failed

i got error message like :

*$./generate_image.py *
*Traceback (most recent call last):*
*  File "./generate_image.py", line 42, in*
*mapnik.load_map(m,mapfile)*
*RuntimeError: Required attribute 'name' is missing in TextSymbolizer in
style 'area-text'*


..


*Source: mapnik*
*Version: 0.7.1-6*



What's the error ?
what should i do ?



The osm.xml style file you used is made for mapnik 2
Either install that, or use the mapnik-german style from svn, which 
still expects mapnik 0.7


HTH,
ajoessen



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


[OSM-dev] generate image failed

2012-02-01 Thread Anwar Azulfa
Hi All,

I try to genenerate image with mapnik on my other server,But if's failed

i got error message like :

*$./generate_image.py *
*Traceback (most recent call last):*
*  File "./generate_image.py", line 42, in *
*mapnik.load_map(m,mapfile)*
*RuntimeError: Required attribute 'name' is missing in TextSymbolizer in
style 'area-text'*


My Mapnik version like when i try to execute : *apt-cache show libmapnik**
*
*
*Package: libmapnik-dev*
*Priority: optional*
*Section: universe/libdevel*
*Installed-Size: 748*
*Maintainer: Ubuntu Developers *
*Original-Maintainer: Debian GIS Project <
pkg-grass-de...@lists.alioth.debian.org>*
*Architecture: i386*
*Source: mapnik*
*Version: 0.7.1-6*



What's the error ?
what should i do ?
-- 
Regards,
M.Iftakhul Anwar
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev