You are here

SUAS MapServer 3.11.0407 beta2 released!

8 posts / 0 new
Last post
leelight
SUAS MapServer 3.11.0407 beta2 released!

Hi folks,
New SUAS MapServer is released.
Thanks a lot for your testing and bug reporting, that helps us a lot to improve the mapserver and find the issues.

Add Features:
1. Cache system, that will speed up the map server more than 30%.
But you need set your cache directory in SUAS root with writable permission.
In Unix or Linux, you could set it command, thanks karabas .
chown -R apache cache
or
chmod -R 777 cache

And set the option enablecache when install SUAS or in the setting steps.
Or you can open config.php and set $enablecache  to 1.

2. Add application/vnd.ogc.se_inimage format for GetMap's exception parameter, the error could be outputted as image, both in format of vector and raster image.
It is a better way to handle the exceptions than using XML format, if you use a client to browse the map.

3. Add transparent parameter for GetMap request, now the map(only for PNG or GIF format) could easily cover the background map, for example GoogleMap.

4.You can choose whether Copyright will be showed with the outputted map. Open global.php and find the $showCopyright variant. Of course we hope you could set it to 1 to show our copyright. Thank you! But if you are really don't like it, set it to 0.

5. Using Openlayers Map client as the map viewer and integrate it in demo page.

Fixed Bugs:
1. in setting steps, if new layers was added, the style defination for new layers use the other layer's style.
2. in setting steps, could not read the old setting of priority, visible and queryable
3. in setting steps, could not check the permission to create new database
4.PDF and SWF file extension check for getmap, if there is no extension, throw exception.
5.Improve the exception handling system
6. When the SLD style XML file does not exist, the create metadata could not be continued
7. Fix the error output in SHP2DB function
8.Fix the style error in SVG file when no SLD style XML could be found.
9. replaced AscII values in URL query string with standard charactors.
10. Fix the bugs when inputting MIF data, if there are spaces before the coordiante in MIF file.
11. Fix mif file upload file size bug.
12. back slash in some files and wrong path in javascript files.

The test data is from Nur Zatul Iffah,thanks!

TODO:
1, MIF file input
2, E00 file input
3, Cache system
4, Layer's scale Denominator in SLD
5, PostGIS database support
6, WFSi: GetGmlObject, and Transaction request
7, Map browser client, user could interact with MapServer
8, Gzip output compression
9, Log error record system
10, WCS service
11, Datai and style defination file backup function

The source code be downloaded here: suas3_11_0407_beta2.zip

Thank you!!
leelight

AddThis: 
karabas

1 When installing I try to import lines.mif and got crash:

[client 127.0.0.1] PHP Fatal error:  Allowed memory size of 35651584 bytes exhausted (tried to allocate 478 bytes) in /var/www/html/suas/Models/MySQL.class.php on line 647, referer: http://localhost/suas/setting/s5.php

I think you try to keep  the whole file in memory or does not free it.
My current memory limit in php.ini - 34M

2 Style setting - when try to choose Style file from existing files - it links to import database files page from previus step !

3 When I try to show lines map via openviewer I got  mysqld CPU usage 50-80% !!! for several minutes. And still see nothing. Mayne sql optimizing required or indexing or creating range of scale down maps...

4 No errors in apache log but too many notices. I can send you log if you want.

5 map default format is PNG but viewer wants gif or jpg,  I recommend change png.

karabas

Not PNG but SVG!

leelight

Hi, thanks!
I think you try to keep  the whole file in memory or does not free it.
My current memory limit in php.ini - 34M

34M is too small for any MapServer. And in /var/www/html/suas/Models/MySQLi.class.php on line 647, this code is used to import the data into MySQL line by line, the data changed also line by line, you could not keep them but should release them. Please increase the memory.

3 When I try to show lines map via openviewer I got  mysqld CPU usage 50-80% !!! for several minutes. And still see nothing. Mayne sql optimizing required or indexing or creating range of scale down maps.
Yes! I am preparing for using cache for SQL data in cache system. But even with my PIII 1.13 and 1G memory Notebook, I can render your data to map, I havn't seen such thing "still see nothing". Could you extend your memory limit in php.ini to at least 256MB? What is your CPU frequency? I hope at least PIII or AMD duron 1000+.

2 Style setting - when try to choose Style file from existing files - it links to import database files page from previus step !
It seemed that you have inported the data, try to run 8.php in setting folder.

4 No errors in apache log but too many notices. I can send you log if you want.

Thank you! please send me!

5 map default format is PNG but viewer wants gif or jpg,  I recommend change png.
That is because the tools was designed to produce SVG map longlong ago, and I have not changed it :)
you could change the code in wms_getmap_r.php in Demo folder.

Here is one tutor http://www.easywms.com/?q=en/node/130  ,if you are not clear about the installation.
Thank you for your test!

karabas

I increased memory limit. Now all works. I can browse map via openviewer.

1 But the picture is strange looking. It added many new lines. It seems that the pen does not take off  between drawing different elements of layer and continue draw. While in Mapinfo 8.0 all works correctly.

2 when importing text layers from MIF no text is inserted in BLOB fields at all.

3 when importing the same file several times need I to erase this layer in database firstly?

leelight

1 But the picture is strange looking. It added many new lines. It seems that the pen does not take off  between drawing different elements of layer and continue draw. While in Mapinfo 8.0 all works correctly.
I tested your files and also found the strange problem. But I can not find the bug. The following image is one part of map, there is one line in the bottom.

But I extended the bbox, the line disappeared in the new one.


Strange thing.....

2 when importing text layers from MIF no text is inserted in BLOB fields at all.

I have fixed the bug, because your MIF file use a different format to store the text string.

3 when importing the same file several times need I to erase this layer in database firstly?

Yes, you should erase the old one you have imported. I will add one new function in the setting--empty data in table.

karabas

Sorry, this file really looks good. But lines.mif or tab.mif are more complex than I see in Mapinfo.
Compare please.

Question.
Where is font file that used for text rendering? I need to use russian font (I use linux) or something.
Last time I experimented with PHP and GD for text rendering I used old russian TTF fonts and Freetype php feature.

leelight

Sorry, this file really looks good. But lines.mif or tab.mif are more complex than I see in Mapinfo.
Compare please.

I will test the 2 files again today.

Question.
Where is font file that used for text rendering? I need to use russian font (I use linux) or something.
Last time I experimented with PHP and GD for text rendering I used old russian TTF fonts and Freetype php feature
.
I used the default font type to render the text, I have no russian TTF fonts file, please send me one to test. Thanks!
And the text string in MIF file uses also russian code? Suas need transfer the text into Database(UTF-8) at first, and then read the text to render. I am afraid that the transfering will cause the code problem. It is possible to store the MIF in utf-8 format? I will improve the utf-8 code parsing function in SUAS.

Log in to post comments