[mapserver-users] Validation example wanted

2011-04-29 Thread Rahkonen Jukka
Hi, Could somebody tell how can I make my WMS requests to validate? I am sending WMS GetMaps with two extra parameters tag and value by adding them to the end of the request like tag=amenityvalue=supermarket. Tag and value can be anything and they should be used inside the following

Re: [mapserver-users] Validation example wanted

2011-04-29 Thread thomas bonfort
have you tried without the surrounding slashes? i.e. VALIDATION tag . value . END On Fri, Apr 29, 2011 at 10:37, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, Could somebody tell how can I make my WMS requests to validate? I am sending WMS GetMaps with two extra parameters tag

Re: [mapserver-users] Validation example wanted

2011-04-29 Thread Rahkonen Jukka
Hi, Great, it works with plain . I was just reading a mail from yesterday by Stephen Woodbridge telling I do not think there is a global OFF switch for validation, but where validation is required you can include the regex validation string of /./ which means match anything except a null

Re: [mapserver-users] RE: Validation beyond [A-z]

2011-04-29 Thread Jan Hartmann
Thanks Steve. I don't understand the syntax: in the regex versions I use, . means one and just one character, not any string. Any string excluding the null-string would be .+ or ..* More generally, I still have problems with validation as a concept: it's too difficult, and perhaps that's why

Re: [mapserver-users] RE: Validation beyond [A-z]

2011-04-29 Thread Rahkonen Jukka
Hi, I am not so sure that we all are competent database administrators. Lots of us has started with tutorials like http://www.duif.net/postgis/ and they do not tell much about fighting against SQL injection. I consider it is good to have security settings in Mapserver. I admit they should be

Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-29 Thread Alan Boudreault
Hi Armin, Although I'm not sure if the free call was useful... since it was only removing the php object from a global list but the object was not really freed until the end of the script... I would suggest to simply add a such condition if ms_version 6 ... obj-free() rather than removing

[mapserver-users] Force Mapserver into rendering 8bpp png images (instead of 4bpp)?

2011-04-29 Thread christian yrrman
Dear All, former subject of this thread was Re: NoDATA value, transparency for paletted IMG file - I'm having difficulties displaying 4bit-per-pixel PNG images served via WMS to a GoogleEarth-API-Application (the NoData-Values aren't transparent but shaded black, whereas this worls well for 8bpp

[mapserver-users] Mapserver usage with commercial vendors data

2011-04-29 Thread Paolo Crosato
Hi, I work for an LBS based company, we have our own proprietary rendering engine for producing maps, and we work mainly with data from Navteq and Teleatlas. Presently our rendering engine is behind the competition in terms of visual quality (we have a bad support for antialiasing, label

Re: [mapserver-users] Mapserver usage with commercial vendors data

2011-04-29 Thread thomas bonfort
Paolo, On Fri, Apr 29, 2011 at 15:19, Paolo Crosato paolo.cros...@ubiest.com wrote: Hi, I work for an LBS based company, we have our own proprietary rendering engine for producing maps, and we work mainly with data from Navteq and Teleatlas. Presently our rendering engine is behind the

Re: [mapserver-users] Mapserver usage with commercial vendors data

2011-04-29 Thread Smith, Michael D ERDC-CRREL-NH
Paolo, You can also do labeling via the TEXT directive with something like TEXT [LABEL_INT]#[LABEL_EN] #MapServer 6 syntax WRAP # Performance on Oracle Spatial (which we use for national and international scale datasets, including NavTeq and TomTom) is quite good. Mike -- Michael Smith

[mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Nicolas BOUTET
Dear All, I have 2 MapServer servers. One for Production use, and the other for Validation use. The MAP files placed on those servers are similar except that each server has a different Oracle database as datasource. For now, I have some different CONNECTION values depending if the map file

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Fawcett, David (MPCA)
One potential way to do it would be with the use of 'include's. http://mapserver.org/mapfile/Include.html The primary mapfile wouldn't have a connection object, but it would contain: INCLUDE connect_info.map Then on each machine, you would have a different version of connect_info.map that

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Fawcett, David (MPCA)
Nicolas, I didn't have a mapfile that utilizes connection handy, but I did test using INCLUDE to substitute the value for DATA in an individual layer. Here is part of the layer definition: LAYER NAME watersheds STATUS DEFAULT #DATA 'majclip' INCLUDE inc_data_majclip.map TYPE POLYGON

RE: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Nicolas BOUTET
Thank you David, Yes, using INCLUDE should be a good solution. But as I know in MapServer 5.6, CONNECTION is a parameter of my LAYER objects, and not an object itself. So I cannot have a CONNECTION object declared in a separate map fileĀ… And I prefer to not have to duplicate the layers in

Re: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread thomas bonfort
As David stated, the INCLUDE keyword does not have to be a full mapserver object, it can be any valid mapserver keywords. -- thomas On Fri, Apr 29, 2011 at 16:49, Nicolas BOUTET nicolas.bou...@geosys.com wrote: Thank you David, Yes, using INCLUDE should be a good solution. But as I know in

Re: [mapserver-users] Parameterized MapFile using CGI variable

2011-04-29 Thread Rahkonen Jukka
Hi, No problem at all. I have it this way For each layer LAYER STATUS ON GROUP default PROJECTION init=epsg:3067 END INCLUDE /usr/map/connection_osm_i.map maxscaledenom 500010 minscaledenom 250010 TYPE LINE NAME roadsclose DATA way from (select

[mapserver-users] error and temp file handling with 6.0.0

2011-04-29 Thread Arnd Wippermann
Hi, I'm a bit confused about how MapServer log errors and where it saves temporary files. In my mapfile I have declared CONFIG MS_ERRORFILE file.err #and DEBUG is not set LOG file.log #in the WEB block TEMPPATH ... #in the WEB block Playing with SLD and polygon fill with exernal graphic

Re: [mapserver-users] error and temp file handling with 6.0.0

2011-04-29 Thread Jeff McKenna
On 11-04-29 1:59 PM, Arnd Wippermann wrote: Hi, I'm a bit confused about how MapServer log errors and where it saves temporary files. In my mapfile I have declared CONFIG MS_ERRORFILE file.err #and DEBUG is not set LOG file.log #in the WEB block TEMPPATH ... #in the WEB block The

Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-29 Thread Armin Burger
Alan I used a script creating 3 different type of objects without applying the free method, put it in a loop with 1M cycles and opened it in a browser. Checking the memory usage of the Apache process while running the script showed no increase of memory at all. So I would guess the free() is

Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

2011-04-29 Thread Yewondwossen Assefa
On 28/04/2011 3:12 PM, Yewondwossen Assefa wrote: Sorry I hit send with finishing the e-mail. I will through each items tomorrow and report. On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote: On 28/04/2011 9:34 AM, Arnd Wippermann wrote: Hi, I'm interested in map styling with SLD and have

Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6

2011-04-29 Thread Alan Boudreault
That's what I thought. Thanks for testing. Alan On April 29, 2011 01:40:42 pm Armin Burger wrote: Alan I used a script creating 3 different type of objects without applying the free method, put it in a loop with 1M cycles and opened it in a browser. Checking the memory usage of the Apache

RE: [mapserver-users] RE: Validation beyond [A-z]

2011-04-29 Thread Lime, Steve D (DNR)
. is a pattern that says the string contains at least one character, it's a wild card so that's why anything matches. Granted, regex's aren't easy to use but you can accomplish a lot with very simple patterns, plus I've not seen or been presented with a better idea. Validation is (and will be)

Re: [mapserver-users] Efficiency - Postgres/gis view or Mapserver data definition join

2011-04-29 Thread pcreso
Hi Dana, Usually it does not matter much, as mapserver passes the query to Postgis anyway, as you noted. However, mapserever does do some parsing rewriting of the query before issuing it, and this can cause issues. Also note that when working in the db, it is easier to use explain, check

AW: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

2011-04-29 Thread Arnd Wippermann
Hi Here you can online see external graphic mostly not showing http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp?SLDsrcIdx=51mapservVersion=6.0.0 Perhaps it has something to do with the complexity of the polygons. Locally test with simplier polygons

Re: [mapserver-users] RE: Validation beyond [A-z]

2011-04-29 Thread Stephen Woodbridge
On 4/29/2011 6:37 AM, Jan Hartmann wrote: Thanks Steve. I don't understand the syntax: in the regex versions I use,. meansone and just one character, not any string. Any string excluding the null-string would be.+ or..* Not . means match any single character in the string. It does not mean