On Thu, 2008-12-11 at 13:32 +0000, [email protected] wrote:
> Dear List,
> 
> First, my appologies that I am completely new to Mapnik. Any help is useful to
> me.
> 
> I've recently tried to set up a map server using MS-Windows 2003 server (std
> ed). So I've followed installation procedures on
> http://wiki.openstreetmap.org/index.php/Mapnik
> 
> Installed:
> PostgresSQL 8.3 with PostGIS 1.3.3 extension
> Some map information for UK imported to PostGIS using osm2pgsql
> Python2.5 on C:\python25
> ActivePerl5.10 on C:\Perl
> mapnik-0_5_1 Win32 binary (Unzipped) and put in c:\mapnik-0_5_1
> Copied the site-packages to c:\python25\Lib\site-packages
> Set the path to include c:\Python25, etc.
> 
> The " from mapnik import * " runs fine in python
> Then test with demo\python\rundemo.py runs perfectly with 3 images of
> easter canada (ottawa, montreal) generated. So far so good!
> 
> I then
> 
> Downloaded mapnik scripts 
> (svn.openstreetmap.org/applications/rendering/mapnik)
> and put in d:\mapnik
> 
> unzip (http://tile.openstreetmap.org/world_boundaries-spherical.tgz and
>        http://hypercube.telascience.org/~kleptog/processed_p.zip) to
> :\mapnik\world_boundaries\
> 
> After modifying the set-mapnik-env to set-mapnik-env.bat (with export changed 
> to
> SET in DOS batch scripts and call %* to run arguments)
> 
> The " set-mapnik-env.bat customize-mapnik-map.pl > osm.xml " command in DOS
> prompt succeeded (no errors given).
> 
> But when do command " set-mapnik-env.bat generate_image.py "
> The python gives an error saying this
> 
> =====================================================
> D:\mapnik>set-mapnik-env.bat generate_image.py
>  got exception ...
> Traceback (most recent call last):
>   File "D:\mapnik\generate_image.py", line 37, in <module>
>     load_map(m,mapfile)
> RuntimeError: failed opening file: The handle is invalid.
> =====================================================

Check whether the paths to all your shapefiles are OK.

I imagine the error above is the equivalent to "bad file descriptor"
error that is seen on Unix when an incorrect or missing shapefile is
specified in the xml file.

        Jon


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

Reply via email to