[Mapserver-users] python mapscript

Sean Gillies sgillies at frii.com
Thu Dec 12 10:09:54 EST 2002


Sven Jacobi wrote:
> Hello,
> 
> I'm using Mapserve3r inside Zope and want to create
> several layers. As long as I use the normal shapefiles
> as DATA in my mapfile this works fine. 
> But when I want to have a map given from a "picture" (tif)
> I get "Bus errors" from python.
> Below is a small piece of code, have I forget to call some
> functions?
> 
> def drawmap():
>  mymap = mapObj("/home/jacobi/...")
>  mymap.width=600
>  mymap.height=400
>  myimage=mymap.draw()
>  out = myimage.saveImage("blies.png",MS_PNG,50,0,50)
>  return out
> 
> drawmap()
> 
> Any ideas or hints?
> Thanks in forward,
> 
> Cheers,
> Sven
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 

Sven,

Python is not raising a bus error, so the error is most
likely due to problems with your mapscript C lib.  Have
you tried using a TIFF as a raster layer before?  Are
you using GDAL to access the TIFF?  There are many
possible problems, you should provide a bit more data
to help with the diagnosis:

Operating system, software (version/revision), compiler,
Python distribution, etc.

cheers,
Sean

-- 
# Sean Gillies
# sgillies at frii.com




More information about the mapserver-users mailing list