[mapserver-dev] Precision about geotransform

Mohamed Saâd HESSANE saad.hessane at gmail.com
Tue Apr 26 05:06:35 EDT 2011


Hy List,
There's no other explication?
Thank's


2011/4/22 Mohamed Saâd HESSANE <saad.hessane at gmail.com>

> Hy list,
> @Lime : I use python mapscript :
>
> #!/usr/bin/python
> # -*- coding: iso-8859-1 -*-
>
> import mapscript
> import time, csv
>
> if __name__ == '__main__' :
>     mapFile = 'mapfile/mapFile.map'
>     maps = mapscript.mapObj(mapFile)
>
>     csvFile = csv.writer(open('rotation.csv', 'a'), delimiter='\t')
>
>     for i in range(360) :
>         maps.setRotation(i)
>         avg = 0
>         for j in range(5) : # 5 test and get the average
>             start = time.clock()
>             maps.draw()
>             end = time.clock()
>
>             avg += end-start
>
>         avg /= 5
>         print i, avg
>         csvFile.writerow([str(i), '%.2f' % avg])
>
>
> The script write a csv file that you can import in OOo Calc or MS Excel.
> And then make a radar graphic.
> I use a 5 GB datasource of SRP rasters, tileindexed, and having overview.
> The size is 600x600, and the zoom level is 1.
>
> @Frank : I m doing a lot of tests about rotation, zooming, resizing... to
> benchemark mapserver, and set a limit to my futur application. That is why
> it's important to me to know why it's take less/more time in specific
> angles.
>
>
> 2011/4/21 Frank Warmerdam <warmerdam at pobox.com>
>
>> On 11-04-21 10:32 AM, Mohamed Saâd HESSANE wrote:
>>
>>> Hy list,
>>> I have a question. I'm doing a benchmarking test of a rotated map, and i
>>> get
>>> the result in the attached file.
>>> My question is why it take more time to draw a map rotated at 45° than a
>>> map
>>> rotated at 90° or 183° ???
>>> Thank you !
>>>
>>
>> Mohamed,
>>
>> It is not obvious to me why you are seeing the odd
>> performance-base-on-angle
>> results you are encountering.  I implemented the rotation support, and the
>> raster resampler used for warping rasters.
>>
>> Best regards,
>> --
>>
>> ---------------------------------------+--------------------------------------
>> I set the clouds in motion - turn up   | Frank Warmerdam,
>> warmerdam at pobox.com
>> light and sound - activate the windows | http://pobox.com/~warmerdam
>> and watch the world go round - Rush    | Geospatial Programmer for Rent
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110426/12ab8e26/attachment-0001.html


More information about the mapserver-dev mailing list