[mapserver-users] Pyhton mapscript import error
gautamvs
gautamvs at gmail.com
Thu Feb 26 05:10:28 PST 2009
Hi Guillaume,
I followed the steps you had mentioned. I was able to install and import
python mapscript successfully.Thanks for the same.
Still I was not able to get images anti-aliased while seeding using
tilecache_seed.py
cmd used:
python tilecache_seed.py rmap_vector 0 3 -f
tilecache.cfg
<snip>
[rmap_vector]
type=MapServer
layers=road
mapfile=/var/www/html/mapserver/test.map
antialias=true
#scaling=antialias (tried this options also)
bbox=....
levels=8
resolutions=0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.000021457672119140625,0.0000107288360595703125,0.00000536441802978515625,0.000002682209014892578125
</snip>
While I was able to get anti-aliased image using python mapscript with same
mapfile
<snip>
>>> import mapscript
>>> mapfile = '/var/www/html/mapserver/test.map'
>>> m = mapscript.mapObj(mapfile)
>>> img =m.draw()
>>> img.save('map.png')
</snip>
map.png is anti-aliased image (as i have taken output format in mapfile
using AGG driver)
What could be the reason that tilecache_seed.py is not genreating the
anti-aliased image.
regards
Gautam
--
View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2389536.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list