[Ubuntu] Python mapscript Segmentation fault
Frank Broniewski
brfr at metrico.lu
Tue Feb 15 10:05:02 EST 2011
Hi,
I have a problem with python mapscript concerning the OWSRequest.
Whenever I pass an URL to setParameter and call OWSDispatch(request)
mapscript crashes with a segfault. A small snippet for testing:
request = mapscript.OWSRequest()
request.setParameter('LAYERS','post')
request.setParameter('SLD', 'http://192.168.0.111/sld/style.sld')
request.setParameter('FORMAT','image/png')
request.setParameter('SERVICE','WMS')
request.setParameter('VERSION','1.1.1')
request.setParameter('REQUEST','GetMap')
request.setParameter('STYLES','')
request.setParameter('EXCEPTIONS','application/vnd.ogc.se_inimage')
request.setParameter('SRS','EPSG:2169')
request.setParameter('BBOX','64757.194165115,66551.046310101,89442.805834885,83748.953689899')
request.setParameter('WIDTH','1399')
request.setParameter('HEIGHT','975')
map = mapscript.mapObj('/usr/local/mapconf/share/osm.map')
map.OWSDispatch(request)
Map debug level is 5, console output is:
brfr at E033:/usr/local/www$ python ows_test.py
Content-type: image/png
Segmentation fault
I am using the following sources:
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main
deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
hardy main
Whenever I pass the request to the mapserver cgi all works as expected.
It seems the parameter parser for python mapscript uses another parser
than cgi-mapserver. Using urllib.quote, urllib.quote_plus doesn't help
any further.
Many thanks for help and tipps
Frank
--
Frank BRONIEWSKI
METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN
tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
More information about the Ubuntu
mailing list