RE: [mapserver-users] MapServer 5.2.1 performance
Hi Andy, Thanks for your response. I get the timings using mapfile debug (level 3). Besides, I use JMeter to ask for random tiles and get the elapsed time. With these times, I have done some changes: * I clean the coordinate system definitions that I don't use (this change is very important for the elapsed time) * I see that most of the layers spent around 0,015 seconds for each. Some layers spent around 0.25 seconds and I could see that these layers have few geometries very complex (I try to break these geometries in others simpler) In the example, the program and database are on the same box so there are not latency problems. In my project, I use OpenLayers client that consumes Tilecache as mod_python and metatile (metaSize=3,3 and size=512,512 pixels) that consumes mapserver as fast cgi. The requested time is asking tiles to mapserver as fast cgi. Do I forget something to improve the performance? Best regards, Gorka López -Mensaje original- De: Andy Colson [mailto:a...@squeakycode.net] Enviado el: jueves, 27 de agosto de 2009 16:07 Para: Gorka López Rivacoba CC: mapserver-users@lists.osgeo.org Asunto: Re: [mapserver-users] MapServer 5.2.1 performance Gorka Lopez wrote: > Hi, > > I have a .map file with 120 layers. All this layers contain different > information and this project is prepared to consume all these layers > together. The style of those layers is basic (some annotations and some > tematics) > > This layers consumes PostGIS tables (28 tables) which disk spaces are > between 1 MB and 1GB (database total space: 2,5GB). The indexes of these > tables (gist and btrees indexes) and the statistics are created. These > information are in the same coordinate system that in the requested tiles. > > I want to improve the performance and I have the following results for a > 512x512 tile: > > * 27 milliseconds per visible layer (layers that are visible in the map's > scale (40 layers)) > * 18 millisecods per non-visible layer (layers that are not visible in the > map' scale (80 layers)) > > Is there any solution to improve this results (I just use tilechache > metatile property)? I think that 18 milliseconds per non-visible layer is > too much (only for evaluating wether the requested tile is contained in the > layer's min/max scale) > > Thanks for your help. > > Best regards, > > Gorka López > Did you use the mapfile debug to get the timings? Did you profile any of the sql statements? (In PG do you log slow sql statements? Or log them all and use 'explain analyze' on them to make sure they are all running fast?) Are the program and database on the same box? (ie is there network latency problems?) Are you using mapserv as cgi? OpenLayers? something else? -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: annotations in mapserver 5.4
Thank you for attention, I checked my data source and since it was a polygon layer I generated centroids out of them and now it works. Weird I did'nt noticed that before :S Raivo On Tue, Sep 1, 2009 at 6:32 PM, Steve Lime wrote: > Can you get the scale value MapServer is using on a map where you think there > should be > annotation for this layer but there is not? Easiest way to do that is with a > simple browse > template like so: > > > > Map extent: [mapext] > Scale: [scale] > > Note that you'll have to set IMAGEPATH and IMAGEURL in the WEB section of > your mapfile. Then > you can call the CGI like so: > > http://.../cgi-bin/mapserv?map=yourmap&mapext=extent where things go > away&mode=browse > > If all goes well you should see the generated image and the computed extent > and scale. I'd be > curious to see those numbers on a problematic map for 5.2 and 5.4. > > Steve > On 9/1/2009 at 12:42 AM, in message > <49dc012b0908312242h79cac72an73bbd1944dc8...@mail.gmail.com>, Raivo Alla > wrote: >> Thanks! >> >> You're right, I shortened the layer definition here confusingly, whole >> layer definition was like that: >> >> LAYER >> NAME alevikAnno_1 >> GROUP HYBRID >> METADATA >> "wms_title" "alevikAnno" >> "wms_srs" "EPSG:3301" >> "wms_extent" "355000 636 754000 666" >> END >> STATUS default >> TYPE annotation >> DATA "kohanimed/alevikud_1" >> #sama andmestik, mis newages. >> #Uuendamine vastavalt vajadusele. >> #OPACITY 100 >> LABELITEM "TEXTSTRING" >> CLASS >> MAXSCALE 133 #100 >> MINSCALE 40 #30 >> STYLE >> SYMBOL "punsoon3" >> SIZE 15 >> END >> LABEL >> TYPE truetype >> ANTIALIAS true >> FONT "arial" >> COLOR 255 255 255 >> SIZE 9 >> priority 6 >> encoding utf-8 >> force false >> ANGLE auto >> OUTLINECOLOR 25 25 25 >> POSITION cr >> BUFFER 1 >> END >> END >> CLASS >> MAXSCALE 40 #30 >> MINSCALE 20 #15 >> STYLE >> SYMBOL "punsoon4" >> SIZE 15 >> END >> LABEL >> TYPE truetype >> ANTIALIAS true >> FONT "arialb" >> COLOR 255 255 255 >> SIZE 9 >> force false >> ANGLE auto >> priority 6 >> OUTLINECOLOR 25 25 25 >> POSITION cr >> BUFFER 1 >> END >> END >> CLASS >> MAXSCALE 20 #15 >> MINSCALE 6 #5 >> LABEL >> TYPE truetype >> ANTIALIAS true >> FONT "arialb" >> COLOR 255 255 255 >> SIZE 10 >> #force true >> priority 8 >> ANGLE auto >> OUTLINECOLOR 25 25 25 >> POSITION cc >> BUFFER 3 >> END >> END >> CLASS >> MAXSCALE 6 #5 >> MINSCALE 2 #15000 >> LABEL >> TYPE truetype >> ANTIALIAS true >> FONT "arialb" >> COLOR 255 255 255 >> SIZE 11 >> #force true >> priority 8 >> ANGLE auto >> OUTLINECOLOR 25 25 25 >> POSITION cc >> BUFFER 3 >> END >> END >> CLASS >> MAXSCALE 2 #15000 >> LABEL >> TYPE truetype >> ANTIALIAS true >> FONT "ar
Re: [mapserver-users] KML Export
Josh, you can use MapServer templates to do this sort of thing. With this approach you can control most aspects of the output file because you have to write the basics. MapServer then adds feature specific things like geometries and attributes based on your template. You can run this nightly using a command line approach like so: mapserv -nh "QUERY_STRING=map=your.map&mode=nsquery&qformat=mykml&layer=somelayer" > somelayer.kml The -nh surpresses the http headers so you can redirect your output to a file easily. This approach does not convert MapServer styling to KML, you'd need to make that part of your template. You can also build multi layer KML with this approach with one template used to represent multiple layers. Let me know if you need an example. Steve >>> Josh Hevenor 09/01/09 6:21 PM >>> I've been using the ogr2ogr kml exporter to build some nightly conversions of shape data. I'm wondering if there's a way to include symbolization here...something that accepts a mapfile and a layername (or just a mapfile, or whatever) and exports kml. Alternatively, I've used the ArcObjects 9.3 LayerToKML_converter and I have nicely symbolized features coming outbut no attributes. Has anyone used open source tools and gotten both? Any advice would be appreciated. If anyone has advice on an Arc approach they can contact me off-list. Thanks, Josh ___ 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] KML Export
I've been using the ogr2ogr kml exporter to build some nightly conversions of shape data. I'm wondering if there's a way to include symbolization here...something that accepts a mapfile and a layername (or just a mapfile, or whatever) and exports kml. Alternatively, I've used the ArcObjects 9.3 LayerToKML_converter and I have nicely symbolized features coming outbut no attributes. Has anyone used open source tools and gotten both? Any advice would be appreciated. If anyone has advice on an Arc approach they can contact me off-list. Thanks, Josh ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] query mode, multiple selections
Hi We use the back end CGI extensively and it is extremely fast. It is simply a case of being able to define what type of constraint you want against each layer (tolerance etc) - I'm normally surprised if mapserver takes more than a second or two to query up to 20-30 individual layers... Hope this reassures! Mike 2009/9/1 Chris Kantarjiev > Sure. The basic use case is: > > User navigates to a particular, known, lat/lon as starting point; this can > be by entering the known lat/lon values, or by navigation around cities. > > User then selects one or more links and can inspect attributes associated > with those links - in particular, link_id and direction. Initial selection > could be by sweeping out an area, but should also provide a way of > adding/removing specific links from the selection (control-select). > > Did that makes sense? > > chris > > > Steve Lime wrote: > >> You'd be surprised with what you can do with the CGI backend. It's >> certainly possible, with the right >> web client (e.g. something like GeoMoose or OpenLayers) to craft queries >> against the CGI to select >> one or many features from one or many layers using a point, box or >> arbitrary geometry. Perhaps if >> you could sketch out a use case or two... >> >> Steve >> >> On 9/1/2009 at 12:49 PM, in message <4a9d5e9d.9000...@speedgauge.net>, > Chris > Kantarjiev wrote: >> >>> I'm just starting to play with query mode and find it very useful. I have >>> an interaction style in mind that would let me select and highlight several >>> (possibly connected) links in a layer in a fairly interactive style (more >>> like one would do with ArcGIS, I guess). I'm pretty sure that I won't be >>> successful doing this with the basic CGI, and am overwhelmed by the number >>> of Ajax layers that I might choose from. >>> >>> Are there documents/pages out there that might give me some guidance >>> about what's possible with the various packages? >>> >>> Thanks, >>> chris >>> ___ >>> 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] query mode, multiple selections
Sure. The basic use case is: User navigates to a particular, known, lat/lon as starting point; this can be by entering the known lat/lon values, or by navigation around cities. User then selects one or more links and can inspect attributes associated with those links - in particular, link_id and direction. Initial selection could be by sweeping out an area, but should also provide a way of adding/removing specific links from the selection (control-select). Did that makes sense? chris Steve Lime wrote: You'd be surprised with what you can do with the CGI backend. It's certainly possible, with the right web client (e.g. something like GeoMoose or OpenLayers) to craft queries against the CGI to select one or many features from one or many layers using a point, box or arbitrary geometry. Perhaps if you could sketch out a use case or two... Steve On 9/1/2009 at 12:49 PM, in message <4a9d5e9d.9000...@speedgauge.net>, Chris Kantarjiev wrote: I'm just starting to play with query mode and find it very useful. I have an interaction style in mind that would let me select and highlight several (possibly connected) links in a layer in a fairly interactive style (more like one would do with ArcGIS, I guess). I'm pretty sure that I won't be successful doing this with the basic CGI, and am overwhelmed by the number of Ajax layers that I might choose from. Are there documents/pages out there that might give me some guidance about what's possible with the various packages? Thanks, chris ___ 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] query mode, multiple selections
You'd be surprised with what you can do with the CGI backend. It's certainly possible, with the right web client (e.g. something like GeoMoose or OpenLayers) to craft queries against the CGI to select one or many features from one or many layers using a point, box or arbitrary geometry. Perhaps if you could sketch out a use case or two... Steve >>> On 9/1/2009 at 12:49 PM, in message <4a9d5e9d.9000...@speedgauge.net>, Chris Kantarjiev wrote: > I'm just starting to play with query mode and find it very useful. I have an > interaction style in > mind that would let me select and highlight several (possibly connected) > links in a layer in a > fairly interactive style (more like one would do with ArcGIS, I guess). I'm > pretty sure that I won't > be successful doing this with the basic CGI, and am overwhelmed by the > number of Ajax layers that I > might choose from. > > Are there documents/pages out there that might give me some guidance about > what's possible with the > various packages? > > Thanks, > chris > ___ > 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] Re: MINSCALEDENOM, MAXSCALEDENOM help/tutorial?
I posted an idea to use mode=browse in another thread today (9/1)... Check that out. Steve >>> On 9/1/2009 at 11:57 AM, in message <4a9d528a.9040...@speedgauge.net>, Chris Kantarjiev wrote: > I've figured out my issues through trial and error (and mode=map). I'm > now wondering if there's an easy way to get the scale legend to display > the SCALEDENOM directly, rather than having to guess and/or convert > units? That would be really useful. > > Thanks, > chris > ___ > 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] query mode, multiple selections
I'm just starting to play with query mode and find it very useful. I have an interaction style in mind that would let me select and highlight several (possibly connected) links in a layer in a fairly interactive style (more like one would do with ArcGIS, I guess). I'm pretty sure that I won't be successful doing this with the basic CGI, and am overwhelmed by the number of Ajax layers that I might choose from. Are there documents/pages out there that might give me some guidance about what's possible with the various packages? Thanks, chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: MINSCALEDENOM, MAXSCALEDENOM help/tutorial?
I'm not sure that there is something built in for MapServer for this, but I do know that we built this capability into GeoMoose, which takes the pixel sizes into account and does the scaling on the fly at the client for any view size. Just click in the Scale window at the bottom right of this interface to see what I mean. You can type in a scale or use one of the predefined ones in the list. http://gis.ci.stpaul.mn.us/gis/gismo_public/html/ This got us out of a lot of those what scale is this questions. Doesn't really help with your question directly about making a scale, but it helps with figuring out what scale a view is at. We do work harder on the scale display in the printing tool though (which now that I look, is not included in the external viewer list for some reason) Anyway, might help with how you arrive at your scale computations. The conversion code is in one of the javascript includes. bobb >>> Chris Kantarjiev wrote: I've figured out my issues through trial and error (and mode=map). I'm now wondering if there's an easy way to get the scale legend to display the SCALEDENOM directly, rather than having to guess and/or convert units? That would be really useful. Thanks, chris ___ 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] Re: MINSCALEDENOM, MAXSCALEDENOM help/tutorial?
I've figured out my issues through trial and error (and mode=map). I'm now wondering if there's an easy way to get the scale legend to display the SCALEDENOM directly, rather than having to guess and/or convert units? That would be really useful. Thanks, chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Module links
Lynn, There are a couple of mode of operation for MapServer that are available. You can communicate directly with it via a CGI request, or it can be scripted via MapScript, which has many binding flavors. We use the CGI mechanism quite extensively in our own service work as well as GeoMoose, a Javascript client framework which accesses MapServer CGI amoung other things. Maybe we can help with some of you questions. bobb >>> "Lynn Songer" wrote: I am writing an article to discuss the use of geospatial technologies in education. I have used ArcIMS extensively and want to discuss MapServer as well. However, my expertise in programming and setting up server applications is pretty limited. Actually FORTRAN 97 in 1998!. So I find myself in over my head trying to compare the functionality and ease of use of ArcIMS and MapServer. Additionally I am trying to find some examples of MapServer to explore. I was hoping you could direct me to a few sites running MapServer and perhaps put me in touch with someone I could talk with about MapServer. Respectfully Lynn Songer >>> "Steve Lime" 09/01/09 8:42 AM >>> Can you get the scale value MapServer is using on a map where you think there should be annotation for this layer but there is not? Easiest way to do that is with a simple browse template like so: Map extent: [mapext] Scale: [scale] Note that you'll have to set IMAGEPATH and IMAGEURL in the WEB section of your mapfile. Then you can call the CGI like so: http://.../cgi-bin/mapserv?map=yourmap&mapext=extent where things go away&mode=browse If all goes well you should see the generated image and the computed extent and scale. I'd be curious to see those numbers on a problematic map for 5.2 and 5.4. Steve >>> On 9/1/2009 at 12:42 AM, in message <49dc012b0908312242h79cac72an73bbd1944dc8...@mail.gmail.com>, Raivo Alla wrote: > Thanks! > > You're right, I shortened the layer definition here confusingly, whole > layer definition was like that: > > LAYER > NAME alevikAnno_1 > GROUP HYBRID > METADATA > "wms_title" "alevikAnno" > "wms_srs" "EPSG:3301" > "wms_extent" "355000 636 754000 666" > END > STATUS default > TYPE annotation > DATA "kohanimed/alevikud_1" > #sama andmestik, mis newages. > #Uuendamine vastavalt vajadusele. > #OPACITY 100 > LABELITEM "TEXTSTRING" > CLASS > MAXSCALE 133 #100 > MINSCALE 40 #30 > STYLE > SYMBOL "punsoon3" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arial" > COLOR 255 255 255 > SIZE 9 > priority 6 > encoding utf-8 > force false > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 40 #30 > MINSCALE 20 #15 > STYLE > SYMBOL "punsoon4" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 9 > force false > ANGLE auto > priority 6 > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 20 #15 > MINSCALE 6 #5 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 10 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 6 #5 > MINSCALE 2 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 11 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 2 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 12 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc >
[mapserver-users] Module links
I am writing an article to discuss the use of geospatial technologies ineducation. I have used ArcIMS extensively and want to discuss MapServer aswell. However, my expertise in programming and setting up server applicationsis pretty limited. Actually FORTRAN 97 in 1998!. So I find myself in over myhead trying to compare the functionality and ease of use of ArcIMS andMapServer. Additionally I am trying to find some examples of MapServer toexplore. I was hoping you could direct me to a few sites running MapServer and perhapsput me in touch with someone I could talk with about MapServer. Respectfully Lynn Songer >>> "Steve Lime" 09/01/09 8:42 AM >>> Can you get the scale value MapServer is using on a map where you think there should be annotation for this layer but there is not? Easiest way to do that is with a simple browse template like so: Map extent: [mapext] Scale: [scale] Note that you'll have to set IMAGEPATH and IMAGEURL in the WEB section of your mapfile. Then you can call the CGI like so: http://.../cgi-bin/mapserv?map=yourmap&mapext=extent where things go away&mode=browse If all goes well you should see the generated image and the computed extent and scale. I'd be curious to see those numbers on a problematic map for 5.2 and 5.4. Steve >>> On 9/1/2009 at 12:42 AM, in message <49dc012b0908312242h79cac72an73bbd1944dc8...@mail.gmail.com>, Raivo Alla wrote: > Thanks! > > You're right, I shortened the layer definition here confusingly, whole > layer definition was like that: > > LAYER > NAME alevikAnno_1 > GROUP HYBRID > METADATA > "wms_title" "alevikAnno" > "wms_srs" "EPSG:3301" > "wms_extent" "355000 636 754000 666" > END > STATUS default > TYPE annotation > DATA "kohanimed/alevikud_1" > #sama andmestik, mis newages. > #Uuendamine vastavalt vajadusele. > #OPACITY 100 > LABELITEM "TEXTSTRING" > CLASS > MAXSCALE 133 #100 > MINSCALE 40 #30 > STYLE >SYMBOL "punsoon3" >SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arial" > COLOR 255 255 255 > SIZE 9 > priority 6 > encoding utf-8 > force false > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 40 #30 > MINSCALE 20 #15 > STYLE >SYMBOL "punsoon4" >SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 9 > force false > ANGLE auto > priority 6 > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 20 #15 > MINSCALE 6 #5 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 10 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 6 #5 > MINSCALE 2 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 11 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 2 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 12 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END >END > > But problem still remains, even if I changed layer definition to > one-class only and with the scales defined in LAYER, not CLASS > section. > > > Raivo > > On Mon, Aug 31, 2009 at 9:16 PM, Steve Lime wrote: >> If you get rid of the class min/max scales do the problems go away? What if > you put those constraints >> at the layer level (with only one class that should work). Also,
Re: [mapserver-users] Re: annotations in mapserver 5.4
Can you get the scale value MapServer is using on a map where you think there should be annotation for this layer but there is not? Easiest way to do that is with a simple browse template like so: Map extent: [mapext] Scale: [scale] Note that you'll have to set IMAGEPATH and IMAGEURL in the WEB section of your mapfile. Then you can call the CGI like so: http://.../cgi-bin/mapserv?map=yourmap&mapext=extent where things go away&mode=browse If all goes well you should see the generated image and the computed extent and scale. I'd be curious to see those numbers on a problematic map for 5.2 and 5.4. Steve >>> On 9/1/2009 at 12:42 AM, in message <49dc012b0908312242h79cac72an73bbd1944dc8...@mail.gmail.com>, Raivo Alla wrote: > Thanks! > > You're right, I shortened the layer definition here confusingly, whole > layer definition was like that: > > LAYER > NAME alevikAnno_1 > GROUP HYBRID > METADATA > "wms_title" "alevikAnno" > "wms_srs" "EPSG:3301" > "wms_extent" "355000 636 754000 666" > END > STATUS default > TYPE annotation > DATA "kohanimed/alevikud_1" > #sama andmestik, mis newages. > #Uuendamine vastavalt vajadusele. > #OPACITY 100 > LABELITEM "TEXTSTRING" > CLASS > MAXSCALE 133 #100 > MINSCALE 40 #30 > STYLE > SYMBOL "punsoon3" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arial" > COLOR 255 255 255 > SIZE 9 > priority 6 > encoding utf-8 > force false > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 40 #30 > MINSCALE 20 #15 > STYLE > SYMBOL "punsoon4" > SIZE 15 > END > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 9 > force false > ANGLE auto > priority 6 > OUTLINECOLOR 25 25 25 > POSITION cr > BUFFER 1 > END > END > CLASS > MAXSCALE 20 #15 > MINSCALE 6 #5 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 10 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 6 #5 > MINSCALE 2 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 11 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc > BUFFER 3 > END > END > CLASS > MAXSCALE 2 #15000 > LABEL > TYPE truetype > ANTIALIAS true > FONT "arialb" > COLOR 255 255 255 > SIZE 12 > #force true > priority 8 > ANGLE auto > OUTLINECOLOR 25 25 25 > POSITION cc >
Re: [mapserver-users] CGI Controls - queryfile and pattern validationproblem
It works ! Thanks a lot. Olivier Steve Lime wrote: Query files *must* have the extension .qy. There is no workaround other than to rename the file. Steve On 8/27/2009 at 5:46 AM, in message <4a9663f7.2070...@alkante.com>, Olivier Bedel wrote: Hello list, I am trying to call mapserv in CGI using NQUERYMAP mode. I would like to use the queryfile parameter but I have difficulties setting the validation pattern on it. My URL call looks like this : http://localhost/cgi-bin/mapserv? map=test_postgis.map& LAYERS=layer86& map_imagetype=png& map_transparent=TRUE& map_resolution=96& mapext=603029.1235762136+1779885.0319475005+1031002.8072237864+1903874.97316 24997& imgext=603029.1235762136+1779885.0319475005+1031002.8072237864+1903874.97316 24997& map_size=2464+714& imgx=1232&imgy=357& imgxy=2464+714& mode=nquerymap& queryfile=myquery.msv And mapserv always complains with the following error : msEvalRegex(): Regular expression error. String (myquery.msv) failed expression test. I've tried setting validation patterns in the MAP/WEB/METADATA section of the mapfile : "TEMPLATEPATTERN" ".*" "qstring_validation_pattern" ".*" "queryfile_validation_pattern" ".*" But none of these patterns resolve the problem... Can anyone tell me if CGI queryfile parameter is still supported or if i do something wrong with my patterns ? I am using mapserver 5.4.1 Best regards, Olivier. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Olivier BEDEL ALKANTE SAS Ingénieur R&D SIG 1, rue du Chêne Morand 35 510 Cesson-Sévigné Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users