Salhi,

Are you "kredik" on irc as well?

Re: the steps below that are leading to a crash:

1) can you explain the big picture a bit more? Are you changing anything in the Mapnik code or are you just explaining these steps as context for the crash/problem?

2) specifically, what are you doing with both ogr and gdal?

3) regarding the crash it appears related to threading. You likely need to make sure that boost AND mapnik were built with proper threading support. I bet boost was if the threading library was built, but for mapnik you need to pass compiler flags like:

-DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE

and at least with gcc also -ftemplate-depth-100

for more info search for 'thread' in 
http://trac.mapnik.org/browser/trunk/SConstruct

Dane

On Apr 2, 2010, at 8:08 AM, SALHI MOHAMED wrote:

hello

I'm trying to build leads a card using mapnik.
Here are the steps I have done:

* Opening ogr datasource -> ds
* Get the layer -> ly
* Retrieve the extent of the layer -> (w, h)
* Calculated image size -> (w / output_pixel_size, h / output_pixel_size) -> (wi, hi)
* Prepare an image GDAL rgb output of this size

* Creates a datasource mapnik
* We will rasterizer output image block by block (eg block size = 1024x1024)

Init zone in mapnik
* Visited this area in a buffer in memory via the agg renderer
/ / Buffer
Image32 buf (iBlocSize, iBlocSize);
unsigned int * pData = (unsigned int *) buf.data (). getData ();

/ / Made this area into a buffer in memory
/ / (Render Map to year Image32 AGG)
agg_renderer <Image32> ren (* tMap, buf);
 ren.apply ();

at this stage, just in education
ren.apply ();
the manufacturer of projection
Call it an init ()
and just after leaving the manufacturer, it crashes

The debugger tells me the function basic_timed_mutex:: lock () in file
basic_timed_mutex.hpp that exists in
C: \ Program Files \ boost \ boost_1_42 \ boost \ thread \ win32

y-a-there anyone who can help me?
I finally ffélicite any assistance.
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to