Re: [mapserver-users] use of srsName in wfs 1.1
Jukka, you're right - EPSG should be upper case. I wanted to address two different things in my last post: use of srs in the bbox parameter in GET requests (now traced as #3183, thanks Assefa) and the ability to define a output srs (which is not implemented as far I can see). My map and layer projections are defined as EPSG:31468. Defining a srsName in get or post requests ... http://.../mapserv56b4?SERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=testsrsName=EPSG:4326 ?xml version=1.0 ? wfs:GetFeature service=WFS version=1.1.0 outputFormat=text/xml; subtype=gml/3.1.1 srsName='EPSG:4326' xmlns:wfs=http://www.opengis.net/wfs; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd wfs:Query typeName=test/wfs:Query /wfs:GetFeature ... leads to msWFSGetFeature(): WFS server error. Invalid GetFeature Request: SRSNAME value should be valid for all the TYPENAMES. Please check the capabilities and reformulate your request. Having the capabilities in mind it's correct as there are no OtherSRS listed. But it would be a very useful feature I think and I wonder if there are plans to implement it. Only for testing purposes, I did modify map-projection right before calling msGMLWriteWFSQuery() and I think there are only litte changes required. Martin Original-Nachricht Datum: Tue, 20 Oct 2009 15:32:21 +0300 Von: Rahkonen Jukka jukka.rahko...@mmmtike.fi An: Martin Kofahl m.kof...@gmx.net, mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] use of srsName in wfs 1.1 Hi, It would be much easier to repeat your situation if you could mail us the whole GetFeature requests you have been trying. First thing that comes into my mind is that it would be good to try to follow the standard text as strictly as possible. For example, while using epsg:31469 instead of EPSG:31469 may work, I think it probably shouldn't. At least is some place the standars says: Additional GET parameters, as described in this section, shall be expressed as name-value pairs. Parameter names shall not be case sensitive. Parameter values shall be case sensitive. Parameters in a request may be specified in any order. -Jukka Rahkonen- Martin Kofahl wrote: Hi, I'm interested in querying a MapServer 5.6-beta4 WFS 1.1 service with different projection parameters. According to chapter 14.3.3 of the wfs 1.1 spec one can define different reference systems for the bbox (GET-style) bbox=4393767,5877790,4673506,6071483,epsg:31468 and for the gml output srsName=epsg:4326 However, my attempts were in vain. I can choose between Wrong number of arguments for BBOX and SRSNAME value should be valid for all the TYPENAMES. Someone can help me? Martin ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] roadlines issue
Hello, the problem I have right now with mapserver is how to display roads that must be displayed from different layers in a mapfile, but should have nice joining with each other. Problem is shown here (red arrows): http://picasaweb.google.com/snaperski/Ort#5394941894576868946 Desired situation with using multiple mapserver layers is marked with red ring. If I would use just one massive shapefile and take it as a datasource in one layer only (instead using multiple shapefiles/layers drawing highways, streets), then performance will suffer. Is there any solution to this, ie declaring DATA kayword in a CLASS section? :) Or something so simple that I couldnt think of... Humbly yours, Raivo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] TileCache 2.10 - MapServer 5.2
Hi Jukka, I don't have generated tiles. I simply want to get, for example, a WMS layer that* *uses tilecache when I need to display it. Regards, Maria 2009/10/20 Rahkonen Jukka jukka.rahko...@mmmtike.fi Hi, Could you explain bit more clear what do you want to do? Do I undestand right that you have tilecache running and you have generated the tiles? And now you want to read those tiles with Mapserver, and push them out from Mapserver non-tiled, for example through WMS service, through WCS, of through Mapserver cgi? -Jukka Rahkonen- Maria Neywell wrote: Johan, Thanks for your attention, In my MapFile I tried to configure a layer with TileCache as follows : LAYER DATA myShape.shp CONNECTION http://localhost/tilecache/tilecache.cgi CONNECTIONTYPE WMS END But it doesn't work. Has someone already been successful with a similar configuration? Regards, Maria 2009/10/19 Johan Ruiter j.rui...@geon.nl Maria, In that case I can't help you out. Hopefully someone else does. Regards, Johan -- *Van:* Maria Neywell [mailto:maria.neyw...@gmail.com] *Verzonden:* maandag 19 oktober 2009 14:51 *Aan:* Johan Ruiter *CC:* mapserver-users@lists.osgeo.org *Onderwerp:* Re: [mapserver-users] TileCache 2.10 - MapServer 5.2 Thanks for your answer, I did it too with OpenLayers, but I my case, I don't want use OpenLayers. The question is : How to configure MapServer or the mapfile or both to use tilecache ? and display the layer without using an OpenLayers layer configured with tilecache ? Regards, Maria ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Any ways to increase performance of Mapserver?
Hello, sorry for this noobie question, but I have been running mapserver as a cgi process and sometimes I need to make lots of calls to it to get the data I want. I have used TileCache to get the layers I need and which don't change over time and it speeds things up considerably. I was wondering - is it possible (and is it more efficient?) to run mapserver as fast-cgi? Would it increase speed? The mapserver in the cgi-bin directory is already a binary file - so I'm not sure if fast-cgi would do any good. Also, would I have any extra speed benefits if I make WMS queries instead of regular cgi queries? Thank you, Adrian ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Any ways to increase performance of Mapserver?
Fast-cgi is one process that manages all your connections (acts more like apache module) cgi creates a new process for every connection so fast-cgi is faster and consumes less resources. The best performance you should get with tilecache serving TMS(If it's supported by your client, openlayers supports it), images are request directly so there is almost no overhead On Wed, Oct 21, 2009 at 10:42 AM, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Hello, sorry for this noobie question, but I have been running mapserver as a cgi process and sometimes I need to make lots of calls to it to get the data I want. I have used TileCache to get the layers I need and which don't change over time and it speeds things up considerably. I was wondering - is it possible (and is it more efficient?) to run mapserver as fast-cgi? Would it increase speed? The mapserver in the cgi-bin directory is already a binary file - so I'm not sure if fast-cgi would do any good. Also, would I have any extra speed benefits if I make WMS queries instead of regular cgi queries? Thank you, Adrian ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- http://iap.md, The future is open ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] roadlines issue
First if you have 2 layers for roads like highways.shp and secondary.shp (for example) if you make one shape roads.shp file with the a field type performance will actually improve. You can see a great example how to render street data (openstreetmap data in this case) here: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData On Wed, Oct 21, 2009 at 10:16 AM, Raivo Alla snaper...@gmail.com wrote: Hello, the problem I have right now with mapserver is how to display roads that must be displayed from different layers in a mapfile, but should have nice joining with each other. Problem is shown here (red arrows): http://picasaweb.google.com/snaperski/Ort#5394941894576868946 Desired situation with using multiple mapserver layers is marked with red ring. If I would use just one massive shapefile and take it as a datasource in one layer only (instead using multiple shapefiles/layers drawing highways, streets), then performance will suffer. Is there any solution to this, ie declaring DATA kayword in a CLASS section? :) Or something so simple that I couldnt think of... Humbly yours, Raivo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- http://iap.md, The future is open ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] problem maxscale - minscale
Dear mapserver community! I have a (probably silly) problem showing layers in different scale regions. First of all (don't know why) I have to multiply the desired scale by 10 , that means Orthofotos are shown up to 1:1 when I do MAXSCALEDENOM 10. The same is true with shape file GROUP Grundst-Nr. But the following layer NAME 'Bezirk-Hauptorte' is shown from 1:60 to 1:5000 (without multiplying by 10). GROUP OOE STATUS OFF MINSCALEDENOM 1 MAXSCALEDENOM 60 I think there is a basic misunderstanding; many thanks in advance for any help. Susanne Kalliany PATRS OF MY MAP-FILE: = MAP NAME global_map STATUS ON SIZE 2000 1448 EXTENT 49118 369139 57063 375118 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE png24 INTERLACE OFF FONTSET c:/ms4w/apps/gmap-ms46/etc/fonts.txt SYMBOLSET c:/ms4w/Apache/htdocs/ka-map-1.0/TEFsource/TEFstylesheet/symbols.sym DEBUG ON CONFIG MS_ERRORFILE /ms4w/Temp/mapserver.log PROJECTION init=epsg:31282 END LAYER NAME o5137x01 GROUP Orthofotos STATUS ON MAXSCALEDENOM 10 TYPE RASTER DATA 'd:/ewald/Ortho/o5137x01.ecw' CLASS STYLE OUTLINECOLOR 0 0 0 WIDTH 2 END END TEMPLATE 'dummy.html' END LAYER NAME Kataster_region GROUP Grundst-Nr STATUS ON MAXSCALEDENOM 10 TYPE POLYGON DATA 'd:/ewald/Kataster_OOE/47221GST' LABELITEM 'GNR' CLASS STYLE OUTLINECOLOR 255 0 255 WIDTH 1 END LABEL FORCE TRUE TYPE BITMAP SIZE tiny WRAP '\' POSITION cc COLOR 0 0 0 BACKGROUNDCOLOR 200 200 200 END END TEMPLATE 'dummy.html' END LAYER NAME Bezirk-Hauptorte GROUP OOE STATUS OFF MINSCALEDENOM 1 MAXSCALEDENOM 60 TYPE POINT DATA 'd:/ewald/KarteDB_OOE/bez_hauptorte' LABELITEM 'ort' CLASS SYMBOL 1 SIZE 6 COLOR 0 255 255 STYLE COLOR 0 255 255 OUTLINECOLOR 255 255 255 WIDTH 1 END LABEL FORCE TRUE TYPE TRUETYPE FONT 'sans' SIZE 6 WRAP '\' POSITION cc COLOR 255 255 255 END END TEMPLATE 'dummy.html' END -- View this message in context: http://n2.nabble.com/problem-maxscale-minscale-tp3864110p3864110.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] TileCache 2.10 - MapServer 5.2
Hi, I haven't used Tilecache yet, but I have understood that Mapserver does not need to know anything about Tilecache. Tilecache program is just a normal user for Mapserver and the same mapfile that works for normal WMS usage works also for Tilecache. Tilecache must be configured to find Mapserver and the layer that is to be cached. What happens is that WMS client that can utilise tiles is sending tiled WMS request to Tilecache (not directly to Mapserver). If Tilecache finds a cached image for the request it is sending it without calling Mapserver at all. Only if image is missing from cache Tilecache is passing on the request to Mapserver. When the same request comes again Tilecache finds it from disk and Mapserver can have a rest. But with non- tiling aware programs like GIS software tilecache does not help anything, because they are sending WMS requests which have every time different bbox and output image size. Tiling WMS clients are sending standardized calls which support caching, like the following /cgi-bin/tilecache.cgi?LAYERS=Landsat742SERVICE=WMSVERSION=1.1.1REQUE ST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=ima ge%2FjpegTRANSPARENT=trueTILED=trueTILESORIGIN=1229757.5465712,813973 4.3664411SRS=EPSG%3A900913BBOX=2909757.5465712,8679734.3664411,2929757 .5465712,8699734.3664411WIDTH=256HEIGHT=256 HTTP/1.0 200 22835 As I said, I have not user Tilecache myself and I may give misleading information. There is a MS4W download called Tilecache MapServer (WMS-C tilecache through MapServer), you can find it from http://www.maptools.org/ms4w/index.phtml?page=downloads.html I have been thinking that it must be worth having a look. -Jukka Rahkonen- Maria Neywell wrote: Hi Jukka, I don't have generated tiles. I simply want to get, for example, a WMS layer that uses tilecache when I need to display it. Regards, Maria 2009/10/20 Rahkonen Jukka jukka.rahko...@mmmtike.fi Hi, Could you explain bit more clear what do you want to do? Do I undestand right that you have tilecache running and you have generated the tiles? And now you want to read those tiles with Mapserver, and push them out from Mapserver non-tiled, for example through WMS service, through WCS, of through Mapserver cgi? -Jukka Rahkonen- Maria Neywell wrote: Johan, Thanks for your attention, In my MapFile I tried to configure a layer with TileCache as follows : LAYER DATA myShape.shp CONNECTION http://localhost/tilecache/tilecache.cgi CONNECTIONTYPE WMS END But it doesn't work. Has someone already been successful with a similar configuration? Regards, Maria 2009/10/19 Johan Ruiter j.rui...@geon.nl Maria, In that case I can't help you out. Hopefully someone else does. Regards, Johan -- *Van:* Maria Neywell [mailto:maria.neyw...@gmail.com] *Verzonden:* maandag 19 oktober 2009 14:51 *Aan:* Johan Ruiter *CC:* mapserver-users@lists.osgeo.org *Onderwerp:* Re: [mapserver-users] TileCache 2.10 - MapServer 5.2 Thanks for your answer, I did it too with OpenLayers, but I my case, I don't want use OpenLayers. The question is : How to configure MapServer or the mapfile or both to use tilecache ? and display the layer without using an OpenLayers layer configured with tilecache ? Regards, Maria
Re: [mapserver-users] roadlines issue
Hey, thank You. I was thinking that pre-splitting large datasets would be a good optimization step as suggested here: http://mapserver.org/optimization/vector.html Have to try and compare ;) Raivo On Wed, Oct 21, 2009 at 11:45 AM, Pavel Iacovlev iacovlev.pa...@gmail.com wrote: First if you have 2 layers for roads like highways.shp and secondary.shp (for example) if you make one shape roads.shp file with the a field type performance will actually improve. You can see a great example how to render street data (openstreetmap data in this case) here: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData On Wed, Oct 21, 2009 at 10:16 AM, Raivo Alla snaper...@gmail.com wrote: Hello, the problem I have right now with mapserver is how to display roads that must be displayed from different layers in a mapfile, but should have nice joining with each other. Problem is shown here (red arrows): http://picasaweb.google.com/snaperski/Ort#5394941894576868946 Desired situation with using multiple mapserver layers is marked with red ring. If I would use just one massive shapefile and take it as a datasource in one layer only (instead using multiple shapefiles/layers drawing highways, streets), then performance will suffer. Is there any solution to this, ie declaring DATA kayword in a CLASS section? :) Or something so simple that I couldnt think of... Humbly yours, Raivo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- http://iap.md, The future is open ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Any ways to increase performance of Mapserver?
Thanks, I'm compiling mapserver with fast-cgi support and see how that works out. Any idea if there is a difference in terms of speed if I make normal CGI queries vs WMS queries? Regards, Adrian Pavel Iacovlev wrote: Fast-cgi is one process that manages all your connections (acts more like apache module) cgi creates a new process for every connection so fast-cgi is faster and consumes less resources. The best performance you should get with tilecache serving TMS(If it's supported by your client, openlayers supports it), images are request directly so there is almost no overhead On Wed, Oct 21, 2009 at 10:42 AM, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Hello, sorry for this noobie question, but I have been running mapserver as a cgi process and sometimes I need to make lots of calls to it to get the data I want. I have used TileCache to get the layers I need and which don't change over time and it speeds things up considerably. I was wondering - is it possible (and is it more efficient?) to run mapserver as fast-cgi? Would it increase speed? The mapserver in the cgi-bin directory is already a binary file - so I'm not sure if fast-cgi would do any good. Also, would I have any extra speed benefits if I make WMS queries instead of regular cgi queries? Thank you, Adrian ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] label encoding problem
I use mapserver5.4.0 on FreeBSD Release7.1. In my mapfile I get data from postgis database whose encoding is EUC_CN, and my label part go as follows: labelitem name CLASS NAMExzqj_x STYLE color 255 255 255 END outlinecolor 0 0 0 label COLOR 0 0 0 #SHADOWCOLOR 0 218 218 #SHADOWSIZE 1 1 TYPE truetype encoding GB2312 font simsun MINSIZE 11 MAXSIZE 256 # size 8 POSITION auto #PARTIALS FALSE #MINDISTANCE 30 BUFFER 4 END # end of label however, when I run http://localhost/cgi-bin/mapserv?map=//maplayer=xzqj_xmode=map, it gives the error: getString(): Symbol definition error. Parsing error near (name):(line 46). when I changed labelitem name(Chinese character) to labelitem ename(English) , everything goes well. I know the problem comes from encoding, but I do not know how to resolve it , I am confused about the encodings. Any help are appreciated. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Any ways to increase performance of Mapserver?
Hello again, I've compiled mapserver with fast cgi support and I've installed fastcgi on my apache. All seems ok, but I'm not sure if mapserver runs as fastcgi! I followed the instructions from here: http://mapserver.org/optimization/fastcgi.html Here's what I've added in the configuration: in httpd.conf (Apache2): LoadModule fastcgi_module modules/mod_fastcgi.so ... IfModule mod_fastcgi.c AddHandler fastcgi-script .fcgi FastCgiIpcDir /tmp/fastcgi FastCgiConfig -initial-env PROJ_LIB=/usr/share/proj -initial-env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/pgsql/lib -appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 -maxClassProcesses 30 -startDelay 5 /IfModule When httpd restarts, I get in the logs that fastcgi starts ok: [Wed Oct 21 15:43:04 2009] [notice] FastCGI: process manager initialized (pid 12570) I think I should somehow link mapserv to fastcgi - because I see no obvious connection. The script handler is only for .fcgi, but mapserver's compilation didn't generate any fcgi files... It seems to me, mapserver still runs as a cgi process. If I list the running processes when there are no queries to the webserver, there is no mapserv process. When I list the processes while doing queries, there are several mapserv processes running. Thanks, Adrian Adrian Popa wrote: Thanks, I'm compiling mapserver with fast-cgi support and see how that works out. Any idea if there is a difference in terms of speed if I make normal CGI queries vs WMS queries? Regards, Adrian Pavel Iacovlev wrote: Fast-cgi is one process that manages all your connections (acts more like apache module) cgi creates a new process for every connection so fast-cgi is faster and consumes less resources. The best performance you should get with tilecache serving TMS(If it's supported by your client, openlayers supports it), images are request directly so there is almost no overhead On Wed, Oct 21, 2009 at 10:42 AM, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Hello, sorry for this noobie question, but I have been running mapserver as a cgi process and sometimes I need to make lots of calls to it to get the data I want. I have used TileCache to get the layers I need and which don't change over time and it speeds things up considerably. I was wondering - is it possible (and is it more efficient?) to run mapserver as fast-cgi? Would it increase speed? The mapserver in the cgi-bin directory is already a binary file - so I'm not sure if fast-cgi would do any good. Also, would I have any extra speed benefits if I make WMS queries instead of regular cgi queries? Thank you, Adrian ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] long expression statement doesn't work anymore
Hello, in an older MapServer version (4.10.0) it is possible to use a very long _expression_ or Filter statement. Like this one with over 1000 comma separated values: _expression_ ('[NR]' IN 'ID1,ID2,.,ID1100') This works fine: With newer MapServer versions (whether cgi (_expression_ in mapfile) or phpmapscript (_expression_ set with setExpression)) like 5.2.1 or 5.6.0 beta3 only o small part of the polygons appears: So is there a limit on _expression_ statement since version 5? There are no errors in the log-file with debug set to 5. This is my layer definition: LAYER DATA "shapes/fs.shp" NAME "FS" STATUS ON TYPE POLYGON CLASS NAME "FS" _expression_ ('[NR]' IN 'ID1,ID2,.,ID1100') # -- of course without the points ;) STYLE COLOR 255 255 200 OUTLINECOLOR 0 0 0 END END END Thanks for any hint. Rafael PS: It is not possible to classify on attributes. inline: mapserver_4.pnginline: mapserver_5.png___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Any ways to increase performance of Mapserver?
Hello, Adrian add to your apache config the folowing: ScriptAlias /fcgi-bin/ path to your mapserver binary file Location /fcgi-bin # The following line activates the fastCGI script to all files in location SetHandler fcgid-script ... /Location regards, michael 2009/10/21 Adrian Popa adrian_gh.p...@romtelecom.ro Hello again, I've compiled mapserver with fast cgi support and I've installed fastcgi on my apache. All seems ok, but I'm not sure if mapserver runs as fastcgi! I followed the instructions from here: http://mapserver.org/optimization/fastcgi.html Here's what I've added in the configuration: in httpd.conf (Apache2): LoadModule fastcgi_module modules/mod_fastcgi.so ... IfModule mod_fastcgi.c AddHandler fastcgi-script .fcgi FastCgiIpcDir /tmp/fastcgi FastCgiConfig -initial-env PROJ_LIB=/usr/share/proj -initial-env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/pgsql/lib -appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 -maxClassProcesses 30 -startDelay 5 /IfModule When httpd restarts, I get in the logs that fastcgi starts ok: [Wed Oct 21 15:43:04 2009] [notice] FastCGI: process manager initialized (pid 12570) I think I should somehow link mapserv to fastcgi - because I see no obvious connection. The script handler is only for .fcgi, but mapserver's compilation didn't generate any fcgi files... It seems to me, mapserver still runs as a cgi process. If I list the running processes when there are no queries to the webserver, there is no mapserv process. When I list the processes while doing queries, there are several mapserv processes running. Thanks, Adrian Adrian Popa wrote: Thanks, I'm compiling mapserver with fast-cgi support and see how that works out. Any idea if there is a difference in terms of speed if I make normal CGI queries vs WMS queries? Regards, Adrian Pavel Iacovlev wrote: Fast-cgi is one process that manages all your connections (acts more like apache module) cgi creates a new process for every connection so fast-cgi is faster and consumes less resources. The best performance you should get with tilecache serving TMS(If it's supported by your client, openlayers supports it), images are request directly so there is almost no overhead On Wed, Oct 21, 2009 at 10:42 AM, Adrian Popaadrian_gh.p...@romtelecom.ro adrian_gh.p...@romtelecom.ro wrote: Hello, sorry for this noobie question, but I have been running mapserver as a cgi process and sometimes I need to make lots of calls to it to get the data I want. I have used TileCache to get the layers I need and which don't change over time and it speeds things up considerably. I was wondering - is it possible (and is it more efficient?) to run mapserver as fast-cgi? Would it increase speed? The mapserver in the cgi-bin directory is already a binary file - so I'm not sure if fast-cgi would do any good. Also, would I have any extra speed benefits if I make WMS queries instead of regular cgi queries? Thank you, Adrian ___ mapserver-users mailing listmapserver-us...@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapinfo Tab Objects and Symbols
Hi, I get the colors, mapinfo automatically using a font type, i've added to windows.. i can see on mapinfo but can't on mapserver.. Any comment about using these fonts with ANGLES..? thanks to all.. ibrahimsaricicek wrote: Hi all, I have a tab file including points and lines joint to points. With ogr2ogr i've converted those to postgis as GEOMETRY type. How can i show them on mapserver as it's seen on Mapinfo. I've added a screenshot of 2 objects on Mapinfo with symbols. http://n2.nabble.com/file/n3814551/MapinfoSym.jpg -- View this message in context: http://n2.nabble.com/Pls-help-Mapinfo-Tab-Objects-and-Symbols-tp3814551p3865361.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] roadlines issue
Yes http://mapserver.org/optimization/vector.html this is described correctly but it's not your case because you are NOT filtering SOME of the data you just read ALL the data from 2 layers. I sort if you use ALL the data from that layer there is no point in splitting. On Wed, Oct 21, 2009 at 2:30 PM, Raivo Alla snaper...@gmail.com wrote: Hey, thank You. I was thinking that pre-splitting large datasets would be a good optimization step as suggested here: http://mapserver.org/optimization/vector.html Have to try and compare ;) Raivo On Wed, Oct 21, 2009 at 11:45 AM, Pavel Iacovlev iacovlev.pa...@gmail.com wrote: First if you have 2 layers for roads like highways.shp and secondary.shp (for example) if you make one shape roads.shp file with the a field type performance will actually improve. You can see a great example how to render street data (openstreetmap data in this case) here: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData On Wed, Oct 21, 2009 at 10:16 AM, Raivo Alla snaper...@gmail.com wrote: Hello, the problem I have right now with mapserver is how to display roads that must be displayed from different layers in a mapfile, but should have nice joining with each other. Problem is shown here (red arrows): http://picasaweb.google.com/snaperski/Ort#5394941894576868946 Desired situation with using multiple mapserver layers is marked with red ring. If I would use just one massive shapefile and take it as a datasource in one layer only (instead using multiple shapefiles/layers drawing highways, streets), then performance will suffer. Is there any solution to this, ie declaring DATA kayword in a CLASS section? :) Or something so simple that I couldnt think of... Humbly yours, Raivo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- http://iap.md, The future is open -- http://iap.md, The future is open ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)
Tamas, the actual error generated is: HTTP Error 502.2 - Bad Gateway The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are . Using Windos 7 (IIS 7) Testing on Windows 2003, I got just a Blank image (no error message)... You can use the same mssql2008 data I sended you last time... Paul On Tue, Oct 20, 2009 at 4:56 PM, Tamas Szekeres szeker...@gmail.com wrote: Paul, I couldn't reproduce your problem by using my data and the recent mapserv version. http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=mapmap=sql2008.map Could you provide your data for testing? Best regards, Tamas 2009/10/20 Paul james paulj...@gmail.com Hello Tamas Did you test that? Paul On Mon, Oct 19, 2009 at 3:40 PM, Paul james paulj...@gmail.com wrote: Testing : http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.mapmode=map Using Postgis connection works fine with same setup... Using that mapfile with MAPSCRIPT/C# works fine as well... The problem is CGI + MSSQL2008 Plugin Mapfile: MAP EXTENT -79.7892 -34.2426 -24.9958 6.11775 FONTSET ..\Fontes\Fontes.txt IMAGECOLOR 230 254 254 IMAGETYPE png SIZE 400 200 STATUS ON UNITS dd NAME Geral OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GD/PNG EXTENSION png IMAGEMODE PC256 TRANSPARENT TRUE END PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END WEB IMAGEPATH 'C:\map\temp' IMAGEURL '/tmp/' QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LEGEND STATUS ON KEYSIZE 18 12 KEYSPACING 10 5 IMAGECOLOR 255 255 255 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END TEMPLATE ..\template.html END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS ON STYLE hilite END REFERENCE EXTENT -79.7892 -34.2426 -24.9958 6.11775 IMAGE ..\reference.png STATUS on SIZE 221 150 MINBOXSIZE 5 MAXBOXSIZE 150 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MARKERSIZE 8 END LAYER NAME test GROUP tests TYPE POLYGON STATUS ON CONNECTIONTYPE PLUGIN PLUGIN msplugin_mssql2008.dll CONNECTION server=x;Integrated Security=false;database=x;uid=x;pwd=x DATA the_geom from viwgeo_paisbrasil USING UNIQUE oid USING SRID=0 CLASS COLOR 255 200 255 END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: SV: [mapserver-users] Shapefiles with islands
I'm not using the OpenStreetMap data but am rendering and querying lots of complex lake polygons with multiple outer rings (basins) and inner rings (islands). You need not do anything special. Sounds like a data production problem more so than a MapServer bug. Here's a sample: http://maps.dnr.state.mn.us/cgi-bin/mapserv56?mode=mapmap=/usr/local/mapserver/apps/mr/landview/landview.mapmapext=523963.26347152865+5289818.927668251+570217.999745758+5313957.83079347mapsize=1006+525layers=lakes+roads+bdry_munipy3layer=bdry_statepy2map.imagetype=aggpng24 All the lakes are multi-polygons... For example, if islands are represented as individual features and not inner rings of lake polygons then you might be running into draw order issues. MapServer renders the features in the order they show up in the shapefile. I suppose it's possible then that islands might be getting drawn before the lake (which has no holes). If that's the case (try drawing outlines only and no fill) then you'd need to sort the data based on some sort of land vs. water attribute so that lakes are drawn first then the islands on top. On 10/21/2009 at 12:33 AM, in message 2349cc72a0b01c4faa4ffae6c735e1dde29...@enerasrv01.enera.local, Lars Westerlind lars.westerl...@enera.se wrote: So, How is the lack of response to be interpreted? Nobody render islands in lakes? Everybody make their own data extracts? Or there are other (for me) hidden sources of information? /Lars -Ursprungligt meddelande- Från: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] För Lars Westerlind Skickat: 19 October 2009 11:43 Till: mapserver-users@lists.osgeo.org Ämne: [mapserver-users] Shapefiles with islands Hi, I wonder if anyone renders islands in lakes? I use OpenStreetMap Data, where lakes are tagged as multipolygons, with islands as inner polygons. The source I use, mainly the Mapserver recommended cloudmade make simple extracts where those inner polygons are simply skipped, AFAIU. Looks rather funny for islands that are large enough to keep some roads... So, what is recommended? Should I make my own OpenStreetMap extracts for this purpose? Or does anyone have any other good sources? BTW, Do I understand correctly that multipolygon files must be converted in order to be possible to handle by mapserver? I mean, inner polygons should have at least an extra column in the DBfile, telling it's level, or such? Regards, Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] long expression statement doesn't work anymore
Any chance you could create a simple test case showing the problem? The fact it shows some features is puzzling. If it was just a matter of the expression getting truncated then you should see an expression parse error. Steve Rafael Szajbel szaj...@widemann.de 10/21/2009 6:58 AM Hello, in an older MapServer version (4.10.0) it is possible to use a very long Expression or Filter statement. Like this one with over 1000 comma separated values: EXPRESSION ('[NR]' IN 'ID1,ID2,.,ID1100') This works fine: With newer MapServer versions (whether cgi (expression in mapfile) or phpmapscript (expression set with setExpression)) like 5.2.1 or 5.6.0 beta3 only o small part of the polygons appears: So is there a limit on expression statement since version 5? There are no errors in the log-file with debug set to 5. This is my layer definition: LAYER DATA shapes/fs.shp NAME FS STATUS ON TYPE POLYGON CLASS NAME FS EXPRESSION ('[NR]' IN 'ID1,ID2,.,ID1100')# -- of course without the points ;) STYLE COLOR 255 255 200 OUTLINECOLOR 0 0 0 END END END Thanks for any hint. Rafael PS: It is not possible to classify on attributes. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] label encoding problem
name is a reserved keyword in mapserver mapfiles, you should use LABELITEM NAME instead of LABELITEM NAME regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Wed, Oct 21, 2009 at 14:33, 王连波 happyfor...@gmail.com wrote: I use mapserver5.4.0 on FreeBSD Release7.1. In my mapfile I get data from postgis database whose encoding is EUC_CN, and my label part go as follows: labelitem name CLASS NAME xzqj_x STYLE color 255 255 255 END outlinecolor 0 0 0 label COLOR 0 0 0 # SHADOWCOLOR 0 218 218 # SHADOWSIZE 1 1 TYPE truetype encoding GB2312 font simsun MINSIZE 11 MAXSIZE 256 # size 8 POSITION auto # PARTIALS FALSE # MINDISTANCE 30 BUFFER 4 END # end of label however, when I run http://localhost/cgi-bin/mapserv?map=//maplayer=xzqj_xmode=map, it gives the error: getString(): Symbol definition error. Parsing error near (name):(line 46). when I changed labelitem name(Chinese character) to labelitem ename(English) , everything goes well. I know the problem comes from encoding, but I do not know how to resolve it , I am confused about the encodings. Any help are appreciated. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] layer extent
Hi, I try to get the layerextent with php mapscript (mapserver 5.02 on Windows): $layer = $map-getLayerByName($qlayer); $extentobj = $layer-getExtent(); echo $extentobj-minx. .$extentobj-miny. .$extentobj-maxx. .$extentobj-maxy; This works fine with shape-layers but not with postgis. How can I do this? Thanks Sven ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Fwd: Need some ideas for mosaic'ing raster data that spans the dateline
cross-posting to MapServer list. Roger -- Forwarded message -- From: Roger André ran...@gmail.com Date: Mon, Oct 19, 2009 at 3:16 PM Subject: Need some ideas for mosaic'ing raster data that spans the dateline To: gdal-dev gdal-...@lists.osgeo.org I need to create a colored raster that shows data intensity over Russia. My data is in 2 pieces, one on each side of the dateline, and in WGS84 projection. What I would like to do is create a shifted lat/lon projection, such that when both pieces are stuck together, all of russia can be represented. I'm pretty sure I can get everything to line up correctly in GIMP to create a mosaic, but I'm drawing a blank as to how I can define the shifted projection. I'd like to use the projection in Mapserver afterwards for display too. Can someone send me a thumbnail sketch of how to do this, preferrably with some proj parameters, please? Thanks, Roger ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] AGG renderer: Is there a way to disable the antialias feature with pattern brushes?
Håvard, I guess it wouldn't be so straighforward to have the renderers work on a common image format to provide this kind of co-operation. Currently the imageObj structure contains renderer specific information and those may use internal buffers to render the image. At the moment I would see 2 options to provide specifying exact fill patterns; 1. Change the AGG driver to have an option to render the pattern tile images by using GD. 2. Modify the behaviour of rendering the pixmap (image) symbols so that the pixel colors would take over the colors of the style. With regards to the HATCH symbols it's not so usable in my case, as I'd require to specify the symbols in that way which can be used with the MapInfo data and the STYLEITEM AUTO settings. Since the MapInfo patterns are mapped to single SYMBOL definitions (like mapinfo-brush-27 etc.) I cannot rely on further settings of the style (like angle and width) and the SYMBOL definition should be self-contained. Best regards, Tamas 2009/10/19 Havard Tveite havard.tve...@umb.no Dear Tamas, I also miss the possibility to mix AGG's superb rendering of lines and points with non-anti-aliased vector polygon fills (I don't think everything can be solved using HATCH yet). Since AGG does not seem to support anti-aliased rendering, I thought about the possibility to allow some layers to be rendered with GD and some with AGG, and I suggested this in: URL: http://lists.osgeo.org/pipermail/mapserver-dev/2008-December/007995.html There were objections to this: URL: http://lists.osgeo.org/pipermail/mapserver-dev/2008-December/007997.html Håvard Tamas Szekeres wrote: Folks, Is there a way to disable antialias support with the agg renderer when drawing vector symbol based pattern fills? I've just wanted to construct some of the pre-defined mapinfo fill patterns (see image attached) but it seems the results are quite different by using the agg and gd renderers (the latter is the desired result). Another issue with this kind of antialiased drawing is that we may encounter glitches at the tile borders (for example when drawing hatches this way.) The symbol definition of this one looks something like: SYMBOL NAME 'mapinfo-brush-62' TYPE VECTOR POINTS 0 1 4 5 7 2 -99 -99 4 1 4 1 -99 -99 0 5 0 5 -99 -99 0 7 0 7 -99 -99 2 7 2 7 -99 -99 4 7 4 7 -99 -99 6 7 6 7 END END Best regards, Tamas -- Håvard Tveite Department of Mathematical Sciences and Technology, UMB Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Print template and WMS
And the WMS layer's name in question appears in the [layers] output? On 10/7/2009 at 2:20 PM, in message 731ed3bb0910071220x4943b5beqc22f4516b86ee...@mail.gmail.com, Ruby minerdigg...@gmail.com wrote: Greetings, I employ a print function via javascript button in an HTML map template. The print template produces a higher resolution version of the existing map in a new window. The print form I am using works perfectly except for my single WMS client layer, all other layers display except this one. The WMS layer displays correctly in my main map window. The tmp file image does not include the WMS data. Can anyone please guide me in including the WMS data in my print template? I would rather not call the WMS server again for my print template as connections to this server are very slow. All other data is stored locally. Below are my javascript call button and the HTML print template. script language=javascript function printmap() { var url = http:/localhost:/cgi-bin/mapserv?map=[map]mapext=[mapext]layers=[layers] map_web=TEMPLATE+pgs/print.htmlmapsize=1500+1182; // alert(url); window.open(url); } html titlePrint Map/title input type=hidden name=imageurl value=localhost:/tmp/ input type=hidden name=layer value=checked tr table width=1612 height=1238 bgcolor=#9B9B9B input name=img type=image src=http://localhost:[img]; width=1500 height=1182 border=0 /td /html Thank You, bean ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver-5.6.0-beta4
FWIW, this package built and ran under Linux without issue with my applications. However, I did have to install the libcfitsio development package to get the compilation to complete. Most output format options were selected plus PROJ4, GEOS etc and PostGIS. Tests were with PostgreSQL 8.3.6 and PostGIS 1.3.5. We plan to upgrade to PostgreSQL 8.4.1 and PostGIS 1.4.0 very soon- hopefully in conjunction with Mapserver 5.6.0. Cheers, Stephen Davies -- = Stephen Davies Consulting P/L Voice: 08-8177 1595 Adelaide, South Australia.Fax : 08-8177 0133 Computing Network solutions.Mobile:040 304 0583 VoIP:sip:1132...@sip1.bbpglobal.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
SV: SV: [mapserver-users] Shapefiles with islands
Hello Steve, Thanks for your attention. I fully agree that there is nothing yet indicating a bug in mapserver. The shapefiles I've inspected just lack the inner polygons, which certainly are available when editing open street data at their site; Mapserver can't guess, can it? But if I got it right you answered a question I've got but not expressed. You say Mapserver would handle a multipolygon shapefile correctly, that is, there would be no need to make special entries in the mapfile for the islands; they would just be drawn as holes in the lakes automatically? I was thinking I had to draw lakes first, and then islands in lakes. If so I'm even more curious why nobody have put the pieces together. Maybe it's about competition? I guess I'll have to leave the issue until when/if I'll get time to do learn how to do my own data extracts, or other sources will be available. /Lars -Ursprungligt meddelande- Från: Steve Lime [mailto:steve.l...@dnr.state.mn.us] Skickat: 21 October 2009 17:11 Till: Lars Westerlind; mapserver-users@lists.osgeo.org Ämne: Re: SV: [mapserver-users] Shapefiles with islands I'm not using the OpenStreetMap data but am rendering and querying lots of complex lake polygons with multiple outer rings (basins) and inner rings (islands). You need not do anything special. Sounds like a data production problem more so than a MapServer bug. Here's a sample: http://maps.dnr.state.mn.us/cgi-bin/mapserv56?mode=mapmap=/usr/local/mapserver/apps/mr/landview/landview.mapmapext=523963.26347152865+5289818.927668251+570217.999745758+5313957.83079347mapsize=1006+525layers=lakes+roads+bdry_munipy3layer=bdry_statepy2map.imagetype=aggpng24 All the lakes are multi-polygons... For example, if islands are represented as individual features and not inner rings of lake polygons then you might be running into draw order issues. MapServer renders the features in the order they show up in the shapefile. I suppose it's possible then that islands might be getting drawn before the lake (which has no holes). If that's the case (try drawing outlines only and no fill) then you'd need to sort the data based on some sort of land vs. water attribute so that lakes are drawn first then the islands on top. On 10/21/2009 at 12:33 AM, in message 2349cc72a0b01c4faa4ffae6c735e1dde29...@enerasrv01.enera.local, Lars Westerlind lars.westerl...@enera.se wrote: So, How is the lack of response to be interpreted? Nobody render islands in lakes? Everybody make their own data extracts? Or there are other (for me) hidden sources of information? /Lars -Ursprungligt meddelande- Från: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] För Lars Westerlind Skickat: 19 October 2009 11:43 Till: mapserver-users@lists.osgeo.org Ämne: [mapserver-users] Shapefiles with islands Hi, I wonder if anyone renders islands in lakes? I use OpenStreetMap Data, where lakes are tagged as multipolygons, with islands as inner polygons. The source I use, mainly the Mapserver recommended cloudmade make simple extracts where those inner polygons are simply skipped, AFAIU. Looks rather funny for islands that are large enough to keep some roads... So, what is recommended? Should I make my own OpenStreetMap extracts for this purpose? Or does anyone have any other good sources? BTW, Do I understand correctly that multipolygon files must be converted in order to be possible to handle by mapserver? I mean, inner polygons should have at least an extra column in the DBfile, telling it's level, or such? Regards, Lars ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] roadlines issue
Thank you, a good point! However, this simplyfied example is for 3 layers, actually there is about 8 layers and some of them are showing up a little bit later (not in that scale range). So I guess the best would be to create separate shapes based on scale ranges, ie 1:5 to 1:24000 the map will show 4 different types of roads from one shapefile and from 1:24000 to 1:1 6 different types of roads from another shape? Raivo On Wed, Oct 21, 2009 at 4:52 PM, Pavel Iacovlev iacovlev.pa...@gmail.com wrote: Yes http://mapserver.org/optimization/vector.html this is described correctly but it's not your case because you are NOT filtering SOME of the data you just read ALL the data from 2 layers. I sort if you use ALL the data from that layer there is no point in splitting. On Wed, Oct 21, 2009 at 2:30 PM, Raivo Alla snaper...@gmail.com wrote: Hey, thank You. I was thinking that pre-splitting large datasets would be a good optimization step as suggested here: http://mapserver.org/optimization/vector.html Have to try and compare ;) Raivo On Wed, Oct 21, 2009 at 11:45 AM, Pavel Iacovlev iacovlev.pa...@gmail.com wrote: First if you have 2 layers for roads like highways.shp and secondary.shp (for example) if you make one shape roads.shp file with the a field type performance will actually improve. You can see a great example how to render street data (openstreetmap data in this case) here: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData On Wed, Oct 21, 2009 at 10:16 AM, Raivo Alla snaper...@gmail.com wrote: Hello, the problem I have right now with mapserver is how to display roads that must be displayed from different layers in a mapfile, but should have nice joining with each other. Problem is shown here (red arrows): http://picasaweb.google.com/snaperski/Ort#5394941894576868946 Desired situation with using multiple mapserver layers is marked with red ring. If I would use just one massive shapefile and take it as a datasource in one layer only (instead using multiple shapefiles/layers drawing highways, streets), then performance will suffer. Is there any solution to this, ie declaring DATA kayword in a CLASS section? :) Or something so simple that I couldnt think of... Humbly yours, Raivo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- http://iap.md, The future is open -- http://iap.md, The future is open ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users