I'm a geo-idiot, and therefore I'm naturally having some difficulty
getting anything to generate tiles for my geotiffs...  I'm attempting
to use mapnik & gdal for the render, and either tilecache or
mapnikserv for the tiles/interface.  So far I've got no luck with
much.  I'm wondering if someone might be able to offer some advice.
I'm certain it's a problem with my configuration...

I'm *successfully* creating pngs with mapnik, via command-line, like this ....

<code>
mapfile = 'CapComplex.xml'
map_output = 'CapComplex.png'
m = mapnik.Map(2021, 2305)
mapnik.load_map(m, mapfile)
bbox = mapnik.Envelope(mapnik.Coord(-97.746225, 30.281582),
mapnik.Coord(-97.733594, 30.267176))
m.zoom_to_box(bbox)
mapnik.render_to_file(m, map_output)
</code>


The xml I generated with the help of Quantumnik ... it looks like this:
<code>
<?xml version="1.0" encoding="utf-8"?>
<Map srs="+proj=latlong +datum=WGS84 " bgcolor="rgba(0,0,0,0)">
   <Style name="CapComplex20090605183119637_style">
       <Rule>
           <RasterSymbolizer/>
       </Rule>
   </Style>
   <Layer name="CapComplex20090605183119637" srs="+proj=latlong
+datum=WGS84 " status="1" clear_label_cache="0" queryable="1">
       <StyleName>CapComplex20090605183119637_style</StyleName>
       <Datasource>
           <Parameter name="file">
/Library/WebServer/Documents/Maps/Large/CapComplex.tif </Parameter>
           <Parameter name="type">gdal</Parameter>
       </Datasource>
   </Layer>
</Map>
</code>


For mapnikserv, I'm using the following nasty little URL:

http://localhost/cgi-bin/mapnikserv.cgi?MAP=%2FLibrary%2FWebServer%2FDocuments%2FMaps%2FLarge%2FCapComplex.xml&MODE=debug&FORMAT=image%2Fpng256&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&bbox=-97.746225,30.281582,-97.733594,30.267176&width=300&height=900

[I should add that even a simpler URL with just the mapfile, bbox,
width/height/format doesn't help in terms of getting results]

Which yields the following in the log file:

<code>
Process:         httpd [22701]
Path:            /usr/sbin/httpd
Identifier:      httpd
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  httpd [97238]

Date/Time:       2009-06-07 17:33:16.936 -0500
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Application Specific Information:
*** single-threaded process forked ***

Thread 0 Crashed:
0   libSystem.B.dylib                   0x00007fff81314f16 __kill + 10
1   libSystem.B.dylib                   0x00007fff81358323 sys_cache_control + 0
2   libSystem.B.dylib                   0x00007fff8133f7e9 __strcat_chk + 40
3   httpd                               0x0000000100011069
ap_scan_script_header_err_core + 786
4   httpd                               0x00000001000115c9
ap_scan_script_header_err_brigade + 44
5   mod_cgi.so                          0x0000000100478f47 0x100476000 + 12103
6   httpd                               0x0000000100001971 ap_run_handler + 90
7   httpd                               0x0000000100002245
ap_invoke_handler + 347
8   httpd                               0x000000010002ee3c
ap_process_request + 103
9   httpd                               0x000000010002b6bd
ap_process_http_connection + 116
10  httpd                               0x0000000100012cd9
ap_run_process_connection + 90
11  httpd                               0x0000000100013128
ap_process_connection + 87
12  httpd                               0x0000000100035b80 child_main + 1155
13  httpd                               0x0000000100035d36 make_child + 329
14  httpd                               0x0000000100035fce
perform_idle_server_maintenance + 510
15  httpd                               0x00000001000364fe ap_mpm_run + 1249
16  httpd                               0x0000000100009be5 main + 2877
17  httpd                               0x0000000100000fac start + 52

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

Reply via email to