From lin at hvenegaard.dk Thu May 1 03:24:30 2014 From: lin at hvenegaard.dk (=?iso-8859-1?Q?Lars=A0I=2E_Nielsen?=) Date: Thu, 1 May 2014 12:24:30 +0200 Subject: [mapserver-users] TileIndex and relative paths In-Reply-To: References: <808B91E58C3D454F8FE97DD4C5142C0C01AD69022DEF@hvmex01> Message-ID: <808B91E58C3D454F8FE97DD4C5142C0C01AD69023141@hvmex01> Hi Steve, You mean a symbolic link in the file system ? Well, that's not really applicable in my case. I'm trying to keep the files for multiple datasets and tilesets in a logical structure, i.e.: ROOT_DIR/ .. Dataset1/ .. .. (dataset mapping file) .. .. Tileset1/ .. .. .. (tiles and tile index) .. .. Tileset2/ .. .. .. (tiles and tile index) .. .. Tileset3/ .. .. .. (tiles and tile index) .. Dataset2/ .. .. (dataset mapping file) .. .. Tileset1/ .. .. .. (tiles and tile index) .. .. Tileset2/ .. .. .. (tiles and tile index) .. .. Tileset3/ .. .. .. (tiles and their tile index) The mapping files are specific to a single "Dataset", and each tileset is set up as a layer in this. I would like to set my SHAPEPATH to the Dataset folder, and reference each tile index using a relative path. This works. The problem arises because I want the tileindex to reference the tiles without a path, so their movable in the file system. But if the tiles in each tileindex uses the mapping file SHAPEPATH only, I cannot maintain a simple structure. As it is now, I have to add the tileset folder name into a relative path for each tiles (e.g. Tileset2/Tile45), thereby hardcoding them to a specific tileset folder (name). I think it would be beneficial if one could specifiy, that the tiles paths were to be considered relative to the tileindex file. Ps! I'm on a Windows box. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk -----Oprindelig meddelelse----- Fra: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sendt: 30. april 2014 03:55 Til: Lars?I. Nielsen Emne: RE: TileIndex and relative paths I'm afraid your stuck. Can you do a symlink? ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Lars I. Nielsen [lin at hvenegaard.dk] Sent: Thursday, April 24, 2014 8:32 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] TileIndex and relative paths Hi, I'm using Mapserver to display a raster, that I've split into multiple tiles for performance reasons. The shape file I'm using for tile index have no path in the Location field, just the file name of the raster tile. And each tile (png) is accompanied by a wld file. I've previously used absolute paths in my tile indexes, but this is not feasable in this project. It looks like entries in a tile index is attempted read from the folder defined by the environment variable SHAPEPATH. I would have thought that entries without path were to be considered relative to the tile index table itself. Is there a way to force Mapserver to fetch the tiles relative to the tile index instead of relative to SHAPEPATH ? Cheers. Kind regards / Med venlig hilsen Lars I. Nielsen ---------------------------------------------------------------- Landinspekt?r, Senior GIS Programm?r og Konsulent Hvenegaard Landinspekt?rer A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk From pgustafson at gmail.com Thu May 1 08:43:55 2014 From: pgustafson at gmail.com (Peter Gustafson) Date: Thu, 1 May 2014 11:43:55 -0400 Subject: [mapserver-users] Can't get a raster to display... projection issue? In-Reply-To: References: Message-ID: Hi all, this didn't help and it is still not working. (1 month later). Any further suggestions? Does anyone know of a simple, fully functional raster only example? Thanks, On Tue, Apr 1, 2014 at 6:08 PM, thomas bonfort wrote: > typo: epsg:3857 instead of 3587? > > -- > thomas > > On 1 April 2014 23:53, Peter Gustafson wrote: > > Hi all, I'm brand new to mapserver. > > (The itasca workshop map works) > > > > I can't get a raster to display. I've tried various extents and > projections > > but suspect these are the cause. The mapfile is as below (IMAGEPATH and > > IMAGEURL are changed -- working with itasca) as well as info from gdal. > > Your help would be greatly appreciated! > > > > Thanks, > > Pete > > > > MAP > > NAME MyMap > > STATUS ON > > CONFIG "MS_ERRORFILE" "ms_error.txt" > > DEBUG 5 > > STATUS ON > > SIZE 1000 600 > > EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 > > UNITS METERS > > SHAPEPATH "data" > > IMAGECOLOR 255 255 255 > > > > PROJECTION > > "init=epsg:3587" > > END > > > > WEB > > IMAGEPATH "/var/www/localhost/htdocs/tmp/" > > IMAGEURL "tmp/" > > END > > > > LAYER > > NAME "wac-48_1_4.tif" > > DATA "wac-48_1_4.tif" > > TYPE RASTER > > TRANSFORM TRUE > > STATUS ON > > UNITS DD > > PROJECTION > > "init=epsg:4326" > > END > > END > > END > > > > Driver: GTiff/GeoTIFF > > Files: data/wac-48_1_4.tif > > Size is 512, 512 > > Coordinate System is: > > GEOGCS["WGS 84", > > DATUM["WGS_1984", > > SPHEROID["WGS 84",6378137,298.257223563, > > AUTHORITY["EPSG","7030"]], > > AUTHORITY["EPSG","6326"]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433], > > AUTHORITY["EPSG","4326"]] > > Origin = (-95.777952659785427,49.001030999999998) > > Pixel Size = (0.019025026914202,-0.019025026914202) > > Metadata: > > AREA_OR_POINT=Area > > Image Structure Metadata: > > COMPRESSION=LZW > > INTERLEAVE=PIXEL > > Corner Coordinates: > > Upper Left ( -95.7779527, 49.0010310) ( 95d46'40.63"W, 49d 0' 3.71"N) > > Lower Left ( -95.7779527, 39.2602172) ( 95d46'40.63"W, 39d15'36.78"N) > > Upper Right ( -86.0371389, 49.0010310) ( 86d 2'13.70"W, 49d 0' 3.71"N) > > Lower Right ( -86.0371389, 39.2602172) ( 86d 2'13.70"W, 39d15'36.78"N) > > Center ( -90.9075458, 44.1306241) ( 90d54'27.16"W, 44d 7'50.25"N) > > Band 1 Block=512x5 Type=Byte, ColorInterp=Red > > Band 2 Block=512x5 Type=Byte, ColorInterp=Green > > Band 3 Block=512x5 Type=Byte, ColorInterp=Blue > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 1 09:00:48 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 01 May 2014 13:00:48 -0300 Subject: [mapserver-users] Can't get a raster to display... projection issue? In-Reply-To: References: Message-ID: <53626FB0.6070505@gatewaygeomatics.com> Peter, Some things I would do when hitting that wall: - remove all projections blocks - use the coordinate values from gdalinfo in your EXTENT block (lower left & upper right) - change to UNITS DD - remove all other LAYERS except the problem layer - then test with the shp2img commandline utility (http://www.mapserver.org/utilities/shp2img.html) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-05-01, 12:43 PM, Peter Gustafson wrote: > Hi all, this didn't help and it is still not working. (1 month later). > Any further suggestions? Does anyone know of a simple, fully functional > raster only example? Thanks, > > > On Tue, Apr 1, 2014 at 6:08 PM, thomas bonfort > wrote: > > typo: epsg:3857 instead of 3587? > > -- > thomas > > On 1 April 2014 23:53, Peter Gustafson > wrote: > > Hi all, I'm brand new to mapserver. > > (The itasca workshop map works) > > > > I can't get a raster to display. I've tried various extents and > projections > > but suspect these are the cause. The mapfile is as below > (IMAGEPATH and > > IMAGEURL are changed -- working with itasca) as well as info from > gdal. > > Your help would be greatly appreciated! > > > > Thanks, > > Pete > > > > MAP > > NAME MyMap > > STATUS ON > > CONFIG "MS_ERRORFILE" "ms_error.txt" > > DEBUG 5 > > STATUS ON > > SIZE 1000 600 > > EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 > > UNITS METERS > > SHAPEPATH "data" > > IMAGECOLOR 255 255 255 > > > > PROJECTION > > "init=epsg:3587" > > END > > > > WEB > > IMAGEPATH "/var/www/localhost/htdocs/tmp/" > > IMAGEURL "tmp/" > > END > > > > LAYER > > NAME "wac-48_1_4.tif" > > DATA "wac-48_1_4.tif" > > TYPE RASTER > > TRANSFORM TRUE > > STATUS ON > > UNITS DD > > PROJECTION > > "init=epsg:4326" > > END > > END > > END > > > > Driver: GTiff/GeoTIFF > > Files: data/wac-48_1_4.tif > > Size is 512, 512 > > Coordinate System is: > > GEOGCS["WGS 84", > > DATUM["WGS_1984", > > SPHEROID["WGS 84",6378137,298.257223563, > > AUTHORITY["EPSG","7030"]], > > AUTHORITY["EPSG","6326"]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433], > > AUTHORITY["EPSG","4326"]] > > Origin = (-95.777952659785427,49.001030999999998) > > Pixel Size = (0.019025026914202,-0.019025026914202) > > Metadata: > > AREA_OR_POINT=Area > > Image Structure Metadata: > > COMPRESSION=LZW > > INTERLEAVE=PIXEL > > Corner Coordinates: > > Upper Left ( -95.7779527, 49.0010310) ( 95d46'40.63"W, 49d 0' > 3.71"N) > > Lower Left ( -95.7779527, 39.2602172) ( 95d46'40.63"W, > 39d15'36.78"N) > > Upper Right ( -86.0371389, 49.0010310) ( 86d 2'13.70"W, 49d 0' > 3.71"N) > > Lower Right ( -86.0371389, 39.2602172) ( 86d 2'13.70"W, > 39d15'36.78"N) > > Center ( -90.9075458, 44.1306241) ( 90d54'27.16"W, 44d > 7'50.25"N) > > Band 1 Block=512x5 Type=Byte, ColorInterp=Red > > Band 2 Block=512x5 Type=Byte, ColorInterp=Green > > Band 3 Block=512x5 Type=Byte, ColorInterp=Blue > > > > From ChiefDan at gmail.com Thu May 1 09:18:59 2014 From: ChiefDan at gmail.com (ChiefDan) Date: Thu, 1 May 2014 09:18:59 -0700 (PDT) Subject: [mapserver-users] WMST and GetCapabilties Message-ID: <1398961139952-5138152.post@n6.nabble.com> Is it possible to set up a WMS layer with time and have the GetCapabilties populate the metadata wms_timeextent dynamically from the database? We're collecting various remote sensing imagery on a regular basis, so I'd like to have the GetCap response reflect the current range of data we have. I've been searching the list and think the answer is no, however I'd like to make sure I am not missing anything. Thanks, Dan -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMST-and-GetCapabilties-tp5138152.html Sent from the Mapserver - User mailing list archive at Nabble.com. From krishna.patury at gmail.com Thu May 1 10:47:10 2014 From: krishna.patury at gmail.com (Krishna Priya Patury) Date: Thu, 1 May 2014 13:47:10 -0400 Subject: [mapserver-users] Tutorial examples - Section4 failing Message-ID: Hi There, I have Mapserver 6.0.3 installed on a Mac and installation the tutorial code(http://mapserver.org/id/tutorial/index.html) on it. I am however unable to get the Sections 3and 4 running. There seems to be a problem with the map files? or so it seems because I pass in example2's map file the page comes up fine. Nothing useful in the apache logs except the below message. [Thu May 01 13:39:22 2014] [error] [client ::1] Premature end of script headers: mapserv, referer: http://localhost/~xxx/apps/tutorial/htdocs/section3.html Works: http://localhost/cgi-bin/mapserv?layer=+&mode=browse&submit=Refresh&zoom=0&imgxy=200.0+150.0&imgext=174061.632107+-380354.677260+1514809.722411+624366.322743&map=%2FUsers%2Fkrishnapatury%2FSites%2Fapps%2Ftutorial%2Fhtdocs%2Fexample2.map&root=%2F%7Ekrishnapatury%2Fapps%2Ftutorial&program=%2Fcgi-bin%2Fmapserv&map_web=template+example3-1.html Does not work: http://localhost/cgi-bin/mapserv?layer=+&mode=browse&submit=Refresh&zoom=0&imgxy=200.0+150.0&imgext=174061.632107+-380354.677260+1514809.722411+624366.322743&map=%2FUsers%2Fkrishnapatury%2FSites%2Fapps%2Ftutorial%2Fhtdocs%2Fexample3.map&root=%2F%7Ekrishnapatury%2Fapps%2Ftutorial&program=%2Fcgi-bin%2Fmapserv&map_web=template+example3-1.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Thu May 1 23:43:14 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 2 May 2014 06:43:14 +0000 Subject: [mapserver-users] Is PropertyIsNull supported by MapServer? In-Reply-To: <53610FA5.4010703@gmail.com> References: <53610FA5.4010703@gmail.com> Message-ID: <6F331135492B944D90731CE93743D568067244@FS-EX-DB102.fs.sachsen.de> Whitespace might be significant, can you try YEAR > -----Urspr?ngliche Nachricht----- > OpenLayers has a OpenLayers.Filter.Comparison.IS_NULL filter that produces > XML such as: > > > > YEAR > > From stefan.overkamp at gisworks.info Fri May 2 00:28:11 2014 From: stefan.overkamp at gisworks.info (gisworks) Date: Fri, 2 May 2014 00:28:11 -0700 (PDT) Subject: [mapserver-users] Fwd: Wrong/different legend generation In-Reply-To: <8A53E88F-F688-43BF-A33B-34E83CE748E6@coin.hr> References: <80EF9353-1D0B-471A-8E0D-6D5964575DC5@coin.hr> <6840EBAD-9514-4CFE-AAAF-2AB875AA05F9@coin.hr> <8A53E88F-F688-43BF-A33B-34E83CE748E6@coin.hr> Message-ID: <1399015691909-5138234.post@n6.nabble.com> Same problem here. With FONT Type bitmap the legend Image is correctly sized. Maybe some bug with calculating the font metrics of true type fonts. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Wrong-different-legend-generation-tp5104852p5138234.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fabian.schindler at eox.at Fri May 2 00:53:08 2014 From: fabian.schindler at eox.at (Fabian Schindler) Date: Fri, 02 May 2014 09:53:08 +0200 Subject: [mapserver-users] WMST and GetCapabilties In-Reply-To: <1398961139952-5138152.post@n6.nabble.com> References: <1398961139952-5138152.post@n6.nabble.com> Message-ID: <53634EE4.30400@eox.at> Dan, With static mapfiles this is not possible, you'd have to use MapScript to dynamically set up a mapfile to dispatch against. Maybe I can draw your attention to the EOxServer [1] project, that actually does this (and much more aswell). Regards, Fabian [1] https://github.com/EOxServer/EOxServer On 2014-05-01 18:18, ChiefDan wrote: > Is it possible to set up a WMS layer with time and have the > GetCapabilties populate the metadata wms_timeextent dynamically > from the database? We're collecting various remote sensing imagery > on a regular basis, so I'd like to have the GetCap response reflect > the current range of data we have. > > I've been searching the list and think the answer is no, however > I'd like to make sure I am not missing anything. > > Thanks, > > > Dan > > > > -- View this message in context: > http://osgeo-org.1560.x6.nabble.com/WMST-and-GetCapabilties-tp5138152.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From geographika at gmail.com Fri May 2 02:16:48 2014 From: geographika at gmail.com (geographika) Date: Fri, 02 May 2014 11:16:48 +0200 Subject: [mapserver-users] Is PropertyIsNull supported by MapServer? In-Reply-To: <6F331135492B944D90731CE93743D568067244@FS-EX-DB102.fs.sachsen.de> References: <53610FA5.4010703@gmail.com> <6F331135492B944D90731CE93743D568067244@FS-EX-DB102.fs.sachsen.de> Message-ID: <53636280.8080901@gmail.com> Thanks for your replies. Unfortunately white space does not make a difference. I also tried following the same tests as outlined at: http://mapserver.org/ogc/filter_encoding.html#tests I used the following URL: http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=NAME With the filter encoded this is as follows (this can be tested directly): http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=%3CFilter%3E%3CPropertyIsNull%3E%3CPropertyName%3ENAME%3C%2FPropertyName%3E%3C%2FPropertyIsNull%3E%3C%2FFilter%3E However I still get the following error: msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : NAME I get the same when using VERSION=1.1.0. On 02/05/2014 08:43, Eichner, Andreas - SID wrote: > Whitespace might be significant, can you try > > YEAR > > >> -----Urspr?ngliche Nachricht----- >> OpenLayers has a OpenLayers.Filter.Comparison.IS_NULL filter that produces >> XML such as: >> >> >> >> YEAR >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Fri May 2 02:39:21 2014 From: even.rouault at mines-paris.org (Even Rouault) Date: Fri, 2 May 2014 11:39:21 +0200 Subject: [mapserver-users] Is PropertyIsNull supported by MapServer? In-Reply-To: <53636280.8080901@gmail.com> References: <53610FA5.4010703@gmail.com> <6F331135492B944D90731CE93743D568067244@FS-EX-DB102.fs.sachsen.de> <53636280.8080901@gmail.com> Message-ID: <201405021139.21449.even.rouault@mines-paris.org> Le vendredi 02 mai 2014 11:16:48, geographika a ?crit : > Thanks for your replies. Unfortunately white space does not make a > difference. > > I also tried following the same tests as outlined at: > http://mapserver.org/ogc/filter_encoding.html#tests > > I used the following URL: > > http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=Ge > tFeature&TYPENAME=cities&Filter=NAME< > /PropertyName> > > With the filter encoded this is as follows (this can be tested directly): > > http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=Ge > tFeature&TYPENAME=cities&Filter=%3CFilter%3E%3CPropertyIsNull%3E%3CProperty > Name%3ENAME%3C%2FPropertyName%3E%3C%2FPropertyIsNull%3E%3C%2FFilter%3E > > However I still get the following error: > > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in > GetFeature : > NAME This is expected. demo.mapserver.org is MapServer 5.6.5. PropertyIsNull will only be available in Mapserver 7.0 > > > I get the same when using VERSION=1.1.0. > > On 02/05/2014 08:43, Eichner, Andreas - SID wrote: > > Whitespace might be significant, can you try > > > > > > YEAR > > > > > > > >> -----Urspr?ngliche Nachricht----- > >> OpenLayers has a OpenLayers.Filter.Comparison.IS_NULL filter that > >> produces > >> > >> XML such as: > >> > >> > >> > >> > >> YEAR > >> > >> > >> > >> -- Geospatial professional services http://even.rouault.free.fr/services.html From geographika at gmail.com Fri May 2 02:49:56 2014 From: geographika at gmail.com (geographika) Date: Fri, 02 May 2014 11:49:56 +0200 Subject: [mapserver-users] Is PropertyIsNull supported by MapServer? In-Reply-To: <201405021139.21449.even.rouault@mines-paris.org> References: <53610FA5.4010703@gmail.com> <6F331135492B944D90731CE93743D568067244@FS-EX-DB102.fs.sachsen.de> <53636280.8080901@gmail.com> <201405021139.21449.even.rouault@mines-paris.org> Message-ID: <53636A44.2050602@gmail.com> On 02/05/2014 11:39, Even Rouault wrote: > This is expected. demo.mapserver.org is MapServer 5.6.5. > PropertyIsNull will only be available in Mapserver 7.0 Ok great - I'm using v 6.4 so just wanted to check if these filters were going to be available at any point in the future. For future reference where is the best place to find out future developments such as this are planned - GitHub Issues or by searching the mapserver-dev list? From yves.jacolin at camptocamp.com Sat May 3 02:49:26 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Sat, 3 May 2014 11:49:26 +0200 Subject: [mapserver-users] How to help translating MS documentation In-Reply-To: <534EAEE7.8090604@gatewaygeomatics.com> References: <534EAEE7.8090604@gatewaygeomatics.com> Message-ID: Thanks both of you, I planed to do it (ie add a link from another page) later. thanks again. I will update the file to transifex soon this month. Y. 2014-04-16 18:25 GMT+02:00 Jeff McKenna : > Hi Yves, > > I've added your document to the Documentation section of the Development > page, and also added a reference to it in the Documentation Development > Guide. Wonderful contribution, thank you Yves! > > -jeff > > > > On 2014-04-16, 5:08 AM, Yves Jacolin wrote: > > Hello, > > > > I wrote a few weeks ago a short how to in the MS doc to give some info > > to help translating via transifex. > > > > This howto has currently no reference in any toc of the doc, so it still > > an hidden and secret page ;) > > > > Here it is: http://mapserver.org/development/translation.html > > > > Any feedback is welcome (english proof reading very welcome). > > > > Thanks, > > > > Y. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Sat May 3 02:51:46 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Sat, 3 May 2014 11:51:46 +0200 Subject: [mapserver-users] Is PropertyIsNull supported by MapServer? In-Reply-To: <53636A44.2050602@gmail.com> References: <53610FA5.4010703@gmail.com> <6F331135492B944D90731CE93743D568067244@FS-EX-DB102.fs.sachsen.de> <53636280.8080901@gmail.com> <201405021139.21449.even.rouault@mines-paris.org> <53636A44.2050602@gmail.com> Message-ID: Hello, check RFC page in the documentation and follow the mapserver-dev ML ;) Y. 2014-05-02 11:49 GMT+02:00 geographika : > On 02/05/2014 11:39, Even Rouault wrote: > >> This is expected. demo.mapserver.org is MapServer 5.6.5. PropertyIsNull >> will only be available in Mapserver 7.0 >> > Ok great - I'm using v 6.4 so just wanted to check if these filters were > going to be available at any point in the future. > > For future reference where is the best place to find out future > developments such as this are planned - GitHub Issues or by searching the > mapserver-dev list? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.jacolin at camptocamp.com Sat May 3 02:53:05 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Sat, 3 May 2014 11:53:05 +0200 Subject: [mapserver-users] [MS-master] SLD request and style + label behaviour Message-ID: Hello, I am testing MapServer master this week and I found some curious behaviour. # I am using : * basemaps for the mapfile with data from OSM in France. * MapServer master, built today $ /usr/lib/cgi-bin/mapserv -v MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE # Testing: * export sld with GetStyles request on buildings15 layer. Layer definition: LAYER STATUS ON PROJECTION "init=epsg:3857" END GROUP "default" NAME "buildings15" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=france user=yves password=yves port=5432" DATA "geometry from (select geometry,osm_id, name as name from osm_buildings) as foo using unique osm_id using srid=3857" LABELITEM "name" PROCESSING "LABEL_NO_CLIP=ON" PROCESSING "CLOSE_CONNECTION=DEFER" MAXSCALEDENOM 20313 MINSCALEDENOM 10156 CLASS STYLE COLOR "#bbbbbb" OPACITY 50 END STYLE OUTLINECOLOR "#333333" WIDTH 0 END LABEL TYPE TRUETYPE FONT sc PARTIALS FALSE MINFEATURESIZE AUTO SIZE 8 COLOR 0 0 0 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 2 WRAP ' ' MAXLENGTH 6 ALIGN CENTER END END END # Issues: * GetStyle request: - Gives me a label definition (which seems corrects to me, except that there is no outlinecolor/width parameters) - Gives me a stroke-width value of 1 instead of 0 * GetMap request doesn't show any labels Sorry if this mails comes with differents issues, we can split it on several different thread if needed. Regards, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Sat May 3 04:28:22 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Sat, 3 May 2014 11:28:22 +0000 Subject: [mapserver-users] [MS-master] SLD request and style + label behaviour In-Reply-To: References: Message-ID: Hi, First thing to check is if OSM buildings really have names in the data or maybe test by using osm_id as labelitem because it for sure exists for all the buildings. Other things to do is to add also DEBUG 5 into your layer, check that ms_errorfile is set and see what messages it collects. Hmm, and check if font "sc" can be found. Jeff will soon tell you to use shp2img for testing but perhaps a good WMS client is here better because of all the scale dependent layers used in OSM mapfiles. -Jukka Rahkonen- ________________________________ Yves Jacolin wrote: > Hello, > I am testing MapServer master this week and I found some curious behaviour. # I am using : * basemaps for the mapfile with data from OSM in France. * MapServer master, built today $ /usr/lib/cgi-bin/mapserv -v MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE # Testing: * export sld with GetStyles request on buildings15 layer. Layer definition: LAYER STATUS ON PROJECTION "init=epsg:3857" END GROUP "default" NAME "buildings15" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=france user=yves password=yves port=5432" DATA "geometry from (select geometry,osm_id, name as name from osm_buildings) as foo using unique osm_id using srid=3857" LABELITEM "name" PROCESSING "LABEL_NO_CLIP=ON" PROCESSING "CLOSE_CONNECTION=DEFER" MAXSCALEDENOM 20313 MINSCALEDENOM 10156 CLASS STYLE COLOR "#bbbbbb" OPACITY 50 END STYLE OUTLINECOLOR "#333333" WIDTH 0 END LABEL TYPE TRUETYPE FONT sc PARTIALS FALSE MINFEATURESIZE AUTO SIZE 8 COLOR 0 0 0 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 2 WRAP ' ' MAXLENGTH 6 ALIGN CENTER END END END # Issues: * GetStyle request: - Gives me a label definition (which seems corrects to me, except that there is no outlinecolor/width parameters) - Gives me a stroke-width value of 1 instead of 0 * GetMap request doesn't show any labels Sorry if this mails comes with differents issues, we can split it on several different thread if needed. Regards, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat May 3 04:38:33 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 03 May 2014 08:38:33 -0300 Subject: [mapserver-users] How to help translating MS documentation In-Reply-To: References: <534EAEE7.8090604@gatewaygeomatics.com> Message-ID: <5364D539.3080503@gatewaygeomatics.com> No problem Yves, I also gave it an English review. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-05-03, 6:49 AM, Yves Jacolin wrote: > Thanks both of you, I planed to do it (ie add a link from another page) > later. > > thanks again. > > I will update the file to transifex soon this month. > > Y. > > > 2014-04-16 18:25 GMT+02:00 Jeff McKenna >: > > Hi Yves, > > I've added your document to the Documentation section of the Development > page, and also added a reference to it in the Documentation Development > Guide. Wonderful contribution, thank you Yves! > > -jeff > > > > On 2014-04-16, 5:08 AM, Yves Jacolin wrote: > > Hello, > > > > I wrote a few weeks ago a short how to in the MS doc to give some info > > to help translating via transifex. > > > > This howto has currently no reference in any toc of the doc, so it > still > > an hidden and secret page ;) > > > > Here it is: http://mapserver.org/development/translation.html > > > > Any feedback is welcome (english proof reading very welcome). > > > > Thanks, > > > > Y. From jmckenna at gatewaygeomatics.com Sat May 3 04:40:00 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 03 May 2014 08:40:00 -0300 Subject: [mapserver-users] [MS-master] SLD request and style + label behaviour In-Reply-To: References: Message-ID: <5364D590.7000808@gatewaygeomatics.com> On 2014-05-03, 8:28 AM, Rahkonen Jukka (Tike) wrote: > Jeff will soon tell > you to use shp2img for testing but.. Jukka you made me smile :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From yves.jacolin at camptocamp.com Sat May 3 04:58:27 2014 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Sat, 3 May 2014 13:58:27 +0200 Subject: [mapserver-users] [MS-master] SLD request and style + label behaviour In-Reply-To: References: Message-ID: Hello, thanks for your answer ! > check is if OSM buildings really have names Checked and I get correct name values :) > check if font "sc" can be found It is in the basemaps repository and in local. All config seems right in this part Ok I found where the 'problem' came from: MINFEATURESIZE is auto so in the scale where the layer is displayed I think no label will be lower than its geometry size, so no label will be displayed ever. Y. 2014-05-03 13:28 GMT+02:00 Rahkonen Jukka (Tike) : > Hi, > > First thing to check is if OSM buildings really have names in the data or > maybe test by using osm_id as labelitem because it for sure exists for all > the buildings. Other things to do is to add also DEBUG 5 into your layer, > check that ms_errorfile is set and see what messages it collects. Hmm, and > check if font "sc" can be found. Jeff will soon tell you to use shp2img for > testing but perhaps a good WMS client is here better because of all the > scale dependent layers used in OSM mapfiles. > > -Jukka Rahkonen- > > > ------------------------------ > Yves Jacolin wrote: > > > Hello, > > > I am testing MapServer master this week and I found some curious > behaviour. > > # I am using : > * basemaps for the mapfile with data from OSM in France. > * MapServer master, built today > $ /usr/lib/cgi-bin/mapserv -v > MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP > SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > # Testing: > * export sld with GetStyles request on buildings15 layer. > > Layer definition: > > LAYER > STATUS ON > PROJECTION > "init=epsg:3857" > END > GROUP "default" > NAME "buildings15" > TYPE POLYGON > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=france user=yves password=yves > port=5432" > DATA "geometry from (select geometry,osm_id, name as name from > osm_buildings) as foo using unique osm_id using srid=3857" > LABELITEM "name" > PROCESSING "LABEL_NO_CLIP=ON" > PROCESSING "CLOSE_CONNECTION=DEFER" > MAXSCALEDENOM 20313 > MINSCALEDENOM 10156 > CLASS > STYLE > COLOR "#bbbbbb" > OPACITY 50 > END > STYLE > OUTLINECOLOR "#333333" > WIDTH 0 > END > LABEL > TYPE TRUETYPE > FONT sc > PARTIALS FALSE > MINFEATURESIZE AUTO > SIZE 8 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > OUTLINEWIDTH 2 > WRAP ' ' > MAXLENGTH 6 > ALIGN CENTER > END > END > END > > # Issues: > > * GetStyle request: > - Gives me a label definition (which seems corrects to me, except that > there is > no outlinecolor/width parameters) > - Gives me a stroke-width value of 1 instead of 0 > > * GetMap request doesn't show any labels > > Sorry if this mails comes with differents issues, we can split it on > several > different thread if needed. > > Regards, > > Y. > > -- > Responsable Formation et Support > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel (France) : +33 4 79 26 57 98 > Tel (Suisse) : 021 619 10 43 > Mob. : +33 6 18 75 42 21 > Fax : 04 79 70 15 81 > > Mail : yves.jacolin at camptocamp.com > http://www.camptocamp.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 619 10 43 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.robins at gisarts.nl Sun May 4 23:32:21 2014 From: d.robins at gisarts.nl (drobins) Date: Sun, 4 May 2014 23:32:21 -0700 (PDT) Subject: [mapserver-users] Mapserver shows all nodes on a GeometryCollection In-Reply-To: <534E3784.3090903@mapmedia.de> References: <1397544986926-5135064.post@n6.nabble.com> <534CE027.8030406@mapmedia.de> <1397561289303-5135113.post@n6.nabble.com> <534D19B8.3010500@mapmedia.de> <1397562605235-5135121.post@n6.nabble.com> <534D4023.6030103@mapmedia.de> <1397630448414-5135307.post@n6.nabble.com> <534E3784.3090903@mapmedia.de> Message-ID: <1399271541032-5138520.post@n6.nabble.com> Hi J?rg, I did some research: the query select st_astext (ST_CollectionExtract ('POINT (0 0)', 3)); returns "Polygon empty" select st_astext (ST_CollectionExtract ('POINT (0 0)', 2)) returns "Empty String Line" select st_astext (ST_CollectionExtract ('POINT (0 0)', 1)) returns "POINT (0,0) So far so good However, the query's select ST_AsText (geom), ST_CollectionExtract (geom, 1) select ST_AsText (geom), ST_CollectionExtract (geom, 2) select ST_AsText (geom), ST_CollectionExtract (geom, 3) returns all the same results "POINT (137237.8268 431571.3851)" "LINE STRING (136944.606800001 431208.568799999,136987.418099999 431205.513900001)" "POLYGON ((138960.872299999 438028.947000001,138954.046100002 438015.9692,138951.5854 438017.2392,138953.609499998 438022.398600001,138962.5392 438042.0042,138973.612100001 438066.173999999,138977.8189 438064.507100001,138970.0799 438048.711399999,138960.872 (...)" Any of this rings a bell perhaps? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5138520.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at mmmtike.fi Mon May 5 00:23:06 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Mon, 5 May 2014 07:23:06 +0000 Subject: [mapserver-users] Mapserver shows all nodes on a GeometryCollection Message-ID: Hi, Could you possibly show us the whole LAYER from your mapfile and one GeometryCollection as WKT? Perhaps someone gets interested in making some trials. Do you feel that there is something odd with your sample SQL? For me it looks like your GeometryCollection has one point, one linestring and one polygon and your query correctly finds them all one by one. -Jukka Rahkonen- drobins wrote: > > Hi J?rg, > I did some research: > the query > select st_astext (ST_CollectionExtract ('POINT (0 0)', 3)); returns "Polygon > empty" > select st_astext (ST_CollectionExtract ('POINT (0 0)', 2)) returns "Empty String > Line" > select st_astext (ST_CollectionExtract ('POINT (0 0)', 1)) returns "POINT (0,0) > > So far so good > > However, the query's > select ST_AsText (geom), ST_CollectionExtract (geom, 1) select ST_AsText > (geom), ST_CollectionExtract (geom, 2) select ST_AsText (geom), > ST_CollectionExtract (geom, 3) returns all the same results "POINT (137237.8268 > 431571.3851)" > "LINE STRING (136944.606800001 431208.568799999,136987.418099999 > 431205.513900001)" > "POLYGON ((138960.872299999 438028.947000001,138954.046100002 > 438015.9692,138951.5854 438017.2392,138953.609499998 > 438022.398600001,138962.5392 438042.0042,138973.612100001 > 438066.173999999,138977.8189 438064.507100001,138970.0799 > 438048.711399999,138960.872 (...)" > > Any of this rings a bell perhaps? > > > > -- > View this message in context: http://osgeo- > org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection- > tp5135064p5138520.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Tue May 6 13:04:27 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 6 May 2014 16:04:27 -0400 Subject: [mapserver-users] MapCache and GetLegendGraphic Message-ID: Is it possible to make a getLegendGraphic Request via MapCache? I Tried but can't make it work Thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed May 7 01:19:17 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 May 2014 10:19:17 +0200 Subject: [mapserver-users] MapCache and GetLegendGraphic In-Reply-To: References: Message-ID: LegendGraphic is not supported. You can however setup a forwarding rule so that those requests get sent to an upstream WMS server. -- thomas On 6 May 2014 22:04, wrote: > > Is it possible to make a getLegendGraphic Request via MapCache? > I Tried but can't make it work > > Thanks > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From aperi2007 at gmail.com Wed May 7 05:48:03 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 7 May 2014 14:48:03 +0200 Subject: [mapserver-users] How support new epsg db 8.4 with its new codes Message-ID: Hi, few time ago in Italy was officialy released the new Reference System form our central service (IGM). Also in the 1 May 2014 (few day ago) the EPSG organization has released the new db (v. 8.4) that support the new Italian Reference Systems with its new codes. the new codes go from epsg::6704 to epsg::6711 So now start the question to update all the infrastructures to support these new codes. I'm evaluating the step to have a mapserver that will support this new epsg codes. My mapserver is working with GDAL/OGR and Spatialite, so my study is mainly on these three components. I'm just now study-ing how to update the GDAL/OGR to support this new codes. But I don't understand if this is mandatory and sufficient to have a mapserver that support the new codes. Or instead will need some change also in mapserver code. thx -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From anetajflorczyk at googlemail.com Wed May 7 12:15:49 2014 From: anetajflorczyk at googlemail.com (Aneta Jadwiga Florczyk) Date: Wed, 7 May 2014 21:15:49 +0200 Subject: [mapserver-users] ovr and mapserver Message-ID: Dear list, Is it possible to publish a layer that uses overviews? Thanks, Aneta -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed May 7 12:25:57 2014 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 07 May 2014 15:25:57 -0400 Subject: [mapserver-users] ovr and mapserver In-Reply-To: References: Message-ID: <536A88C5.5050802@swoodbridge.com> On 5/7/2014 3:15 PM, Aneta Jadwiga Florczyk wrote: > Dear list, > Is it possible to publish a layer that uses overviews? What do you mean by "overviews"? Do you want a reference map like a small zoomed out version of your map? This can be done with OpenLayers or in Mapserver using: http://mapserver.org/mapfile/reference.html If you are referring to raster image overviews, Then yes maperver will read these of you already have them defined. look at gdaladdo for a command that will create overviews in your rasters. You do not have to do anything special in mapserver to use them. -Steve W From jmckenna at gatewaygeomatics.com Wed May 7 12:42:51 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 07 May 2014 16:42:51 -0300 Subject: [mapserver-users] ovr and mapserver In-Reply-To: References: Message-ID: <536A8CBB.3030701@gatewaygeomatics.com> On 2014-05-07, 4:15 PM, Aneta Jadwiga Florczyk wrote: > Dear list, > Is it possible to publish a layer that uses overviews? > If you have a raster layer that uses external overviews (.ovr) and wonder if MapServer/GDAL supports them, give a read to the "Overviews" section of the GeoTIFF driver page for GDAL: http://www.gdal.org/frmt_gtiff.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Wed May 7 13:31:20 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 07 May 2014 17:31:20 -0300 Subject: [mapserver-users] How support new epsg db 8.4 with its new codes In-Reply-To: References: Message-ID: <536A9818.3050002@gatewaygeomatics.com> Hi Andrea, I believe I saw you on another mailing list regarding this, and I think it should be you to nudge/push/remind the developers to update to EPSG v8.4 - have you filed a ticket on the GDAL Trac for this upgrade? (note that often emails to mailing lists are forgotten by development teams, but issue trackers are always used for releases) That way your request gets ported likely to other projects that use EPSG (such as PROJ.4). https://trac.osgeo.org/gdal/ Thanks! :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-05-07, 9:48 AM, Andrea Peri wrote: > Hi, > > few time ago in Italy was officialy released the new Reference System > form our central service (IGM). > Also in the 1 May 2014 (few day ago) the EPSG organization has released > the new db (v. 8.4) that support the new Italian Reference Systems with > its new codes. > > the new codes go from > epsg::6704 to epsg::6711 > > So now start the question to update all the infrastructures to support > these new codes. > I'm evaluating the step to have a mapserver that will support this new > epsg codes. > > My mapserver is working with GDAL/OGR and Spatialite, so my study is > mainly on these three components. > > I'm just now study-ing how to update the GDAL/OGR to support this new codes. > But I don't understand if this is mandatory and sufficient to have a > mapserver that support the new codes. > > Or instead will need some change also in mapserver code. > > thx > From aperi2007 at gmail.com Wed May 7 13:54:50 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 7 May 2014 22:54:50 +0200 Subject: [mapserver-users] How support new epsg db 8.4 with its new codes In-Reply-To: <536A9818.3050002@gatewaygeomatics.com> References: <536A9818.3050002@gatewaygeomatics.com> Message-ID: Hi Jeff thx for your suggest. I fill a ticket for proj and gdal. But I'm not sure to have to fill a ticket also for mapserver. I guess no. Thx, Andrea. 2014-05-07 22:31 GMT+02:00 Jeff McKenna : > Hi Andrea, > > I believe I saw you on another mailing list regarding this, and I think > it should be you to nudge/push/remind the developers to update to EPSG > v8.4 - have you filed a ticket on the GDAL Trac for this upgrade? (note > that often emails to mailing lists are forgotten by development teams, > but issue trackers are always used for releases) That way your request > gets ported likely to other projects that use EPSG (such as PROJ.4). > https://trac.osgeo.org/gdal/ > > Thanks! :) > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2014-05-07, 9:48 AM, Andrea Peri wrote: > > Hi, > > > > few time ago in Italy was officialy released the new Reference System > > form our central service (IGM). > > Also in the 1 May 2014 (few day ago) the EPSG organization has released > > the new db (v. 8.4) that support the new Italian Reference Systems with > > its new codes. > > > > the new codes go from > > epsg::6704 to epsg::6711 > > > > So now start the question to update all the infrastructures to support > > these new codes. > > I'm evaluating the step to have a mapserver that will support this new > > epsg codes. > > > > My mapserver is working with GDAL/OGR and Spatialite, so my study is > > mainly on these three components. > > > > I'm just now study-ing how to update the GDAL/OGR to support this new > codes. > > But I don't understand if this is mandatory and sufficient to have a > > mapserver that support the new codes. > > > > Or instead will need some change also in mapserver code. > > > > thx > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed May 7 13:57:46 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 07 May 2014 17:57:46 -0300 Subject: [mapserver-users] How support new epsg db 8.4 with its new codes In-Reply-To: References: <536A9818.3050002@gatewaygeomatics.com> Message-ID: <536A9E4A.5000208@gatewaygeomatics.com> Hi Andrea, Great, will you post the ticket urls here? I would like to follow along as well. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-05-07, 5:54 PM, Andrea Peri wrote: > Hi Jeff > thx for your suggest. > > I fill a ticket for proj and gdal. > > But I'm not sure to have to fill a ticket also for mapserver. > > I guess no. > > Thx, > > Andrea. > > > > 2014-05-07 22:31 GMT+02:00 Jeff McKenna >: > > Hi Andrea, > > I believe I saw you on another mailing list regarding this, and I think > it should be you to nudge/push/remind the developers to update to EPSG > v8.4 - have you filed a ticket on the GDAL Trac for this upgrade? (note > that often emails to mailing lists are forgotten by development teams, > but issue trackers are always used for releases) That way your request > gets ported likely to other projects that use EPSG (such as PROJ.4). > https://trac.osgeo.org/gdal/ > > Thanks! :) > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2014-05-07, 9:48 AM, Andrea Peri wrote: > > Hi, > > > > few time ago in Italy was officialy released the new Reference System > > form our central service (IGM). > > Also in the 1 May 2014 (few day ago) the EPSG organization has > released > > the new db (v. 8.4) that support the new Italian Reference Systems > with > > its new codes. > > > > the new codes go from > > epsg::6704 to epsg::6711 > > > > So now start the question to update all the infrastructures to support > > these new codes. > > I'm evaluating the step to have a mapserver that will support this new > > epsg codes. > > > > My mapserver is working with GDAL/OGR and Spatialite, so my study is > > mainly on these three components. > > > > I'm just now study-ing how to update the GDAL/OGR to support this > new codes. > > But I don't understand if this is mandatory and sufficient to have a > > mapserver that support the new codes. > > > > Or instead will need some change also in mapserver code. > > > > thx > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- From aperi2007 at gmail.com Wed May 7 14:01:11 2014 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 7 May 2014 23:01:11 +0200 Subject: [mapserver-users] How support new epsg db 8.4 with its new codes In-Reply-To: <536A9E4A.5000208@gatewaygeomatics.com> References: <536A9818.3050002@gatewaygeomatics.com> <536A9E4A.5000208@gatewaygeomatics.com> Message-ID: The tickets: http://trac.osgeo.org/proj/ticket/236 http://trac.osgeo.org/gdal/ticket/5462 Regards, A. 2014-05-07 22:57 GMT+02:00 Jeff McKenna : > Hi Andrea, > > Great, will you post the ticket urls here? I would like to follow along > as well. > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2014-05-07, 5:54 PM, Andrea Peri wrote: > > Hi Jeff > > thx for your suggest. > > > > I fill a ticket for proj and gdal. > > > > But I'm not sure to have to fill a ticket also for mapserver. > > > > I guess no. > > > > Thx, > > > > Andrea. > > > > > > > > 2014-05-07 22:31 GMT+02:00 Jeff McKenna > >: > > > > Hi Andrea, > > > > I believe I saw you on another mailing list regarding this, and I > think > > it should be you to nudge/push/remind the developers to update to > EPSG > > v8.4 - have you filed a ticket on the GDAL Trac for this upgrade? > (note > > that often emails to mailing lists are forgotten by development > teams, > > but issue trackers are always used for releases) That way your > request > > gets ported likely to other projects that use EPSG (such as PROJ.4). > > https://trac.osgeo.org/gdal/ > > > > Thanks! :) > > > > -jeff > > > > -- > > Jeff McKenna > > MapServer Consulting and Training Services > > http://www.gatewaygeomatics.com/ > > > > > > > > On 2014-05-07, 9:48 AM, Andrea Peri wrote: > > > Hi, > > > > > > few time ago in Italy was officialy released the new Reference > System > > > form our central service (IGM). > > > Also in the 1 May 2014 (few day ago) the EPSG organization has > > released > > > the new db (v. 8.4) that support the new Italian Reference Systems > > with > > > its new codes. > > > > > > the new codes go from > > > epsg::6704 to epsg::6711 > > > > > > So now start the question to update all the infrastructures to > support > > > these new codes. > > > I'm evaluating the step to have a mapserver that will support this > new > > > epsg codes. > > > > > > My mapserver is working with GDAL/OGR and Spatialite, so my study > is > > > mainly on these three components. > > > > > > I'm just now study-ing how to update the GDAL/OGR to support this > > new codes. > > > But I don't understand if this is mandatory and sufficient to have > a > > > mapserver that support the new codes. > > > > > > Or instead will need some change also in mapserver code. > > > > > > thx > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org mapserver-users at lists.osgeo.org> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed May 7 14:06:13 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 07 May 2014 18:06:13 -0300 Subject: [mapserver-users] How support new epsg db 8.4 with its new codes In-Reply-To: References: <536A9818.3050002@gatewaygeomatics.com> <536A9E4A.5000208@gatewaygeomatics.com> Message-ID: <536AA045.5060808@gatewaygeomatics.com> grazie. -jeff On 2014-05-07, 6:01 PM, Andrea Peri wrote: > The tickets: > > http://trac.osgeo.org/proj/ticket/236 > > http://trac.osgeo.org/gdal/ticket/5462 > > Regards, > > A. -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Toutant at inspq.qc.ca Thu May 8 07:14:14 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 8 May 2014 10:14:14 -0400 Subject: [mapserver-users] MapCache and GetLegendGraphic Message-ID: I successfully added a forwarding rule so mapcache can send a getLegendGraphics request GetLegendGraphic WMS http://..../cgi-wms/mapserv.fcgi?map=wms.map It is working for zoom level 9 - 19....If I zoom out at level 8 to 0, the getLegendGraphics request returns this msWMSGetLegendGraphic(): WMS server error. Mandatory LAYER parameter missing in GetLegendGraphic request. I clearly see that LAYER parameter is there. Actually, except for SCALE parameter, the URL is the same as the one for zoom level 9 and + Working url zoom level 9 ...&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=temperature_surface&SCALE=866685.8312779219&FORMAT=image%2Fpng Non Working url zoom level 8 ...&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=temperature_surface&SCALE=1733371.6625558438&FORMAT=image%2Fpng In mapcache config I don't have a restricted_extent for this layer neither min/max zoom parameter I don't know what to look for anymore, any ideas? thank you Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu May 8 07:34:44 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 08 May 2014 11:34:44 -0300 Subject: [mapserver-users] MapCache and GetLegendGraphic In-Reply-To: References: Message-ID: <536B9604.2040305@gatewaygeomatics.com> On 2014-05-08, 11:14 AM, Steve.Toutant at inspq.qc.ca wrote: > > It is working for zoom level 9 - 19....If I zoom out at level 8 to 0, > the getLegendGraphics request returns this > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msWMSGetLegendGraphic(): WMS server error. Mandatory LAYER parameter > missing in GetLegendGraphic request. > > > Ah I recently hit this same error with GetLegendGraphic requests to a MapServer WMS layer. I used the Nabble search in the MapServer forum, to read how this generic error is thrown for MapServer layers that are in a GROUP. There are tickets and discussions about that. Anyway, not sure if it is related to your issue, but you could also search the archives to see what I mean. http://osgeo-org.1560.x6.nabble.com/MapServer-f4226623.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Toutant at inspq.qc.ca Thu May 8 07:56:09 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 8 May 2014 10:56:09 -0400 Subject: [mapserver-users] MapCache and GetLegendGraphic In-Reply-To: <536B9604.2040305@gatewaygeomatics.com> Message-ID: Thanks Jeff but it happens with 3 layers and they are not in a GROUP. If I request the legend on the WMS directly it works. It seems that mapcache is not sending the LAYER parameter in some circumstances... Jeff McKenna @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2014-05-08 10:34 A mapserver-users at lists.osgeo.org cc Objet Re: [mapserver-users] MapCache and GetLegendGraphic On 2014-05-08, 11:14 AM, Steve.Toutant at inspq.qc.ca wrote: > > It is working for zoom level 9 - 19....If I zoom out at level 8 to 0, > the getLegendGraphics request returns this > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msWMSGetLegendGraphic(): WMS server error. Mandatory LAYER parameter > missing in GetLegendGraphic request. > > > Ah I recently hit this same error with GetLegendGraphic requests to a MapServer WMS layer. I used the Nabble search in the MapServer forum, to read how this generic error is thrown for MapServer layers that are in a GROUP. There are tickets and discussions about that. Anyway, not sure if it is related to your issue, but you could also search the archives to see what I mean. http://osgeo-org.1560.x6.nabble.com/MapServer-f4226623.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From anetajflorczyk at googlemail.com Thu May 8 07:33:08 2014 From: anetajflorczyk at googlemail.com (Aneta Jadwiga Florczyk) Date: Thu, 8 May 2014 16:33:08 +0200 Subject: [mapserver-users] ovr and mapserver Message-ID: Dear all, Thank you for the responses, it was very helpful. I have solved the problem I had. Thanks, Aneta -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at tiefengrad.de Fri May 9 02:54:47 2014 From: mail at tiefengrad.de (=?iso-8859-1?Q?tiefengrad=B0_GIS_Consulting?=) Date: Fri, 9 May 2014 11:54:47 +0200 Subject: [mapserver-users] Rendering Maperative Tiles via UMN Mapserver with mod-mapcache Message-ID: <002301cf6b6c$b6834550$2389cff0$@de> hi group, i try to serve maperitive osm tiles via umn. I use ms4w 3.0.4 with apache-mapserver 2.2.21 und mod-mapcache/0.5-dev. The attached osm_mapcache.xml works fine (apache start/stop), but no tiles are rendered. Apache error log: tileset tiles: unknown error (another thread/process failed to create the tile I was waiting for) wms request for tileset tiles returned an unsupported format:\n\nMapServer Message\n\n\nmsCGILoadMap(): Web application error. CGI variable "map" is not set.\n Browser: http://mapserver/osmmap?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities OGC:WMSno title set, add some in metadataapplication/vnd.ogc.wms_xml< OnlineResource xlink:href="http://mapserver/osmmap?"/>image/pngimage/jpegtext/plainapplication/vnd.ogc.gmltext/plainEPSG:43260.70312500000000000000 0.35156250000000000000 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 0.00000536441802978516 256256image/pngtilesrootlayerno title set, add some in metadataEPSG:900913EPSG:4326EPSG:3857tilesEPSG:4326 do i need to have to define a grid or the tile-template in the attached osm_mapcache.xml is wrong? I do not know howto build a suitable mapfile for the maparative tiles. thanx a lot for any ideas... best regards andreas -- Andreas Borgardt mail at tiefengrad.de www.tiefengrad.de -- -------------- next part -------------- A non-text attachment was scrubbed... Name: osm_mapcache.xml Type: text/xml Size: 2347 bytes Desc: not available URL: From thomas.bonfort at gmail.com Sat May 10 03:11:45 2014 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 10 May 2014 12:11:45 +0200 Subject: [mapserver-users] Rendering Maperative Tiles via UMN Mapserver with mod-mapcache In-Reply-To: <002301cf6b6c$b6834550$2389cff0$@de> References: <002301cf6b6c$b6834550$2389cff0$@de> Message-ID: You've got something wrong with your entry. Does the http://mapserver/osmmap url have a rewrite defined to append a map= parameter or a MS_MAPFILE envirronment variable? if not, you should at least add a /path/to/mapfile.map to the source params (at the same level as ) -- thomas On 9 May 2014 11:54, tiefengrad? GIS Consulting wrote: > hi group, > > i try to serve maperitive osm tiles via umn. I use ms4w 3.0.4 with > apache-mapserver 2.2.21 und mod-mapcache/0.5-dev. The attached > osm_mapcache.xml works fine (apache start/stop), but no tiles are rendered. > > Apache error log: tileset tiles: > unknown error (another thread/process failed to create the tile I was > waiting for) > wms request for tileset tiles returned an unsupported > format:\n\nMapServer Message\n\n BGCOLOR="#FFFFFF">\nmsCGILoadMap(): Web application error. CGI variable > "map" is not set.\n > > Browser: > http://mapserver/osmmap?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > OGC:WMSno > title set, add some in metadata xlink:href="http://mapserver/osmmap?"/> pabilities>application/vnd.ogc.wms_xml< > OnlineResource > xlink:href="http://mapserver/osmmap?"/> ies>image/pngimage/jpeg TTP> xlink:href="http://mapserver/osmmap?"/> eatureInfo>text/plainapplication/vnd.ogc.gml t> xlink:href="http://mapserver/osmmap?"/> fo>text/plain ificCapabilities>EPSG:4326 minx="-180.000000" miny="-90.000000" maxx="180.000000" > maxy="90.000000"/>0.70312500000000000000 0.35156250000000000000 > 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 > 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 > 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 > 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 > 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 > 0.00000536441802978516 > 256256image/png t>tiles er>rootlayerno title set, add some in > metadataEPSG:900913EPSG:4326EPSG:3857 S>tiles minx="-180.000000" miny="-90.000000" maxx="180.000000" > maxy="90.000000"/> miny="-90.000000" maxx="180.000000" > maxy="90.000000"/>EPSG:4326 Capabilities> > > do i need to have to define a grid or the tile-template > in the attached > osm_mapcache.xml is wrong? I do not know howto build a suitable mapfile for > the maparative tiles. > > thanx a lot for any ideas... > > best regards > > andreas > > > -- > Andreas Borgardt > mail at tiefengrad.de > www.tiefengrad.de > -- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From d.robins at gisarts.nl Tue May 13 06:52:09 2014 From: d.robins at gisarts.nl (drobins) Date: Tue, 13 May 2014 06:52:09 -0700 (PDT) Subject: [mapserver-users] Mapserver shows all nodes on a GeometryCollection In-Reply-To: References: Message-ID: <1399989129707-5140004.post@n6.nabble.com> Hi Jukka, the queries don't show what they're supposed to show, they show more information than requested. I'm adding a few screenshots with the 3 different queries, each showing lines and points -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5138525p5140004.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Robert.Vogt at RCIS.com Tue May 13 08:08:36 2014 From: Robert.Vogt at RCIS.com (T_Junky) Date: Tue, 13 May 2014 08:08:36 -0700 (PDT) Subject: [mapserver-users] Label once per shape Message-ID: <1399993716978-5140026.post@n6.nabble.com> I am using MapServer and Openlayers to draw my maps. The problem I am having is that a lot of my layers are tiled and I need to label just the shape displayed and not the tile(which is what's happening now)... Here's an example of what's happening. My Map file looks like this... MAP IMAGETYPE PNG24 CONFIG "PROJ_LIB" "C:/Program Files/MapServer/projlib/" EXTENT -180 -90 180 90 SIZE 256 256 FONTSET "C:/Program Files/MapServer/content/fontset.txt" IMAGECOLOR 255 255 255 TRANSPARENT ON PROJECTION AUTO END LAYER NAME "States" TYPE POLYGON STATUS ON LABELCACHE ON CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "server=stbisqlr3.dvcorp.rcis.com,5208;uid=Mapping01D;pwd=9GreenSnap#4D;Initial Catalog=NATIONALDB;Integrated Security=False" DATA "shape(geography),ST_NAME_MC from NATIONALDB.sde.STATES USING INDEX S11_idx USING UNIQUE STATES_ID USING SRID=4269" LABELITEM "ST_NAME_MC" CLASS STYLE OUTLINECOLOR 000 153 000 WIDTH 3 END LABEL COLOR 000 153 000 TYPE TRUETYPE FONT Arial SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 2000 MINSCALEDENOM 20.00 END END PROJECTION AUTO END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Label-once-per-shape-tp5140026.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Tue May 13 08:19:11 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 13 May 2014 15:19:11 +0000 Subject: [mapserver-users] Label once per shape In-Reply-To: <1399993716978-5140026.post@n6.nabble.com> References: <1399993716978-5140026.post@n6.nabble.com> Message-ID: Try adding this to the States layer: PROCESSING 'LABEL_NO_CLIP=1' This tells MapServer to compute a label point before clipping the geometry. Basically it fixes the label point. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of T_Junky Sent: Tuesday, May 13, 2014 10:09 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Label once per shape I am using MapServer and Openlayers to draw my maps. The problem I am having is that a lot of my layers are tiled and I need to label just the shape displayed and not the tile(which is what's happening now)... Here's an example of what's happening. My Map file looks like this... MAP IMAGETYPE PNG24 CONFIG "PROJ_LIB" "C:/Program Files/MapServer/projlib/" EXTENT -180 -90 180 90 SIZE 256 256 FONTSET "C:/Program Files/MapServer/content/fontset.txt" IMAGECOLOR 255 255 255 TRANSPARENT ON PROJECTION AUTO END LAYER NAME "States" TYPE POLYGON STATUS ON LABELCACHE ON CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "server=stbisqlr3.dvcorp.rcis.com,5208;uid=Mapping01D;pwd=9GreenSnap#4D;Initial Catalog=NATIONALDB;Integrated Security=False" DATA "shape(geography),ST_NAME_MC from NATIONALDB.sde.STATES USING INDEX S11_idx USING UNIQUE STATES_ID USING SRID=4269" LABELITEM "ST_NAME_MC" CLASS STYLE OUTLINECOLOR 000 153 000 WIDTH 3 END LABEL COLOR 000 153 000 TYPE TRUETYPE FONT Arial SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 2000 MINSCALEDENOM 20.00 END END PROJECTION AUTO END END END -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Label-once-per-shape-tp5140026.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Robert.Vogt at RCIS.com Tue May 13 08:37:39 2014 From: Robert.Vogt at RCIS.com (T_Junky) Date: Tue, 13 May 2014 08:37:39 -0700 (PDT) Subject: [mapserver-users] Label once per shape In-Reply-To: References: <1399993716978-5140026.post@n6.nabble.com> Message-ID: <1399995459254-5140038.post@n6.nabble.com> THANK YOU!!! Works Perfectly!!! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Label-once-per-shape-tp5140026p5140038.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at mmmtike.fi Wed May 14 01:10:31 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 14 May 2014 08:10:31 +0000 Subject: [mapserver-users] Update MapServer in demo.mapserver.org? Message-ID: Hi, I hope that right persons are reading this list. As a user I appreciate that there is a demo server online so I can try if some troubles we have are specific for us. However, the demo site demo.mapserver.org is running MapServer version 5.6.5 while we run 6.4 and those versions do not behave in a similar way. Could it be possible to update the site to use Mapserver 6.4? Version 5.6.5 is three years old so might be worth considering if updates could happen even more frequently in the future. -Jukka Rahkonen- From christian.braun at tudor.lu Wed May 14 01:30:47 2014 From: christian.braun at tudor.lu (Christian Braun) Date: Wed, 14 May 2014 10:30:47 +0200 Subject: [mapserver-users] MapServer calculates wrong WGS84BoundingBox for WCS request using EPSG:28992 Message-ID: Dear list members, I just discovered that my MapServer installation is calculating a wrong WGS84BoundingBox tag. I know that were issues in the past with the definition of EPSG:28992 in which my data is stored. I was checking all epsg files on the system and als set the config flag for PROJ_LIB in the map file. But it seems that MapServer is still ignoring the correct settings for EPSG:28992 and takes the "old" definition without proper proj towgs flags. The services are public and you can find below the links [1] to a DescribeCoverage for the WCS I am refering to. ro_dsm_mini is a small layer which I am using for testing. BBOX in 28992 is the correct one of the data source, the corresponding WGS84BoundingBox which is giving back is wrong. I am using http://cs2cs.mygeodata.eu for checking. I also paste the relevant part of the map file [2]. Any further help is appreciated. Many thanks in advance, Christian [1] http://maps.iguess.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/MapFiles/RO_localOWS_test.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=DescribeCoverage&COVERAGEID=ro_dsm_mini [2] MAP NAME "TUDOR_RO_test-environment" EXTENT 65956 431299 93267 451459 SIZE 800 600 MAXSIZE 50000 UNITS METERS SHAPEPATH "/srv/sampleData/" IMAGECOLOR 255 255 255 PROJECTION #"+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" "init=epsg:28992" END CONFIG PROJ_LIB "/usr/share/proj/" LAYER # ----------------------------------------------------------------- NAME "ro_dsm_mini" TYPE RASTER STATUS ON DATA "ro_dsm_mini.tiff" #PROCESSING "SCALE=AUTO" PROJECTION "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" # the projection of the source data set #"init=epsg:28992" END METADATA "ows_title" "DSM subset" "ows_abstract" "This a test data set of Rotterdams DSM subset" "wms_include_items" "value_0" "wms_value_0_alias" "Height" "wcs_label" "ro_dsm_mini" ### required "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request "wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request "wcs_formats" "img" END ------------------------------------------------------------ Christian Braun R+D Engineer Environmental Modelling, Geocomputation Tel: +352- 425991-6608 Mobil: +49-179-6845896 Mail: christian.braun at tudor.lu Resource Centre for Environmental Technologies, Public Research Centre Henri Tudor, 6A, avenue des Hauts-Fourneaux, L-4362 Esch-sur-Alzette, Luxembourg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed May 14 01:31:23 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 14 May 2014 08:31:23 +0000 Subject: [mapserver-users] Time to make a new demo? Message-ID: Hi, Mapserver documentation for the new users http://mapserver.org/introduction.html is having a title Get demo running. It contains a link to a zipped workshop material http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.4.zip I am not sure if that workshop is a good starting point for the new users any more now when we are at Mapserver version 6.4 and soon 7.0. The workshop just does not work with recent Mapserver versions which makes potential new users sad. -Jukka Rahkonen- From jukka.rahkonen at mmmtike.fi Wed May 14 01:49:17 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 14 May 2014 08:49:17 +0000 Subject: [mapserver-users] MapServer calculates wrong WGS84BoundingBox for WCS request using EPSG:28992 Message-ID: Hi, Both my MS4W with Mapserver 6.3-dev and 6.4 on Linux use these definitions # Amersfoort / RD New <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs <> You say that they wrong and +towgs84 parameters in your mapfile are correct? If so, then you can update the values into your epsg file that is in your PROJ_LIB directory. We seem to have PROJ-4.8.0 on Linux. I have seen with WMS that supports many projections that extent calculations for different projections are not always reliable. It is more reliable if layer extents are given in the layer metadata. Add "wcs_extent" metadata as shown in http://www.mapserver.org/ogc/wcs_server.html and try if that changes anything. -Jukka Rahkonen- Christian Braun wrote: Dear list members, I just discovered that my MapServer installation is calculating a wrong WGS84BoundingBox tag. I know that were issues in the past with the definition of EPSG:28992 in which my data is stored. I was checking all epsg files on the system and als set the config flag for PROJ_LIB in the map file. But it seems that MapServer is still ignoring the correct settings for EPSG:28992 and takes the "old" definition without proper proj towgs flags. The services are public and you can find below the links [1] to a DescribeCoverage for the WCS I am refering to. ro_dsm_mini is a small layer which I am using for testing. BBOX in 28992 is the correct one of the data source, the corresponding WGS84BoundingBox which is giving back is wrong. I am using http://cs2cs.mygeodata.eu for checking. I also paste the relevant part of the map file [2]. Any further help is appreciated. Many thanks in advance, Christian [1] http://maps.iguess.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/MapFiles/RO_localOWS_test.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=DescribeCoverage&COVERAGEID=ro_dsm_mini [2] MAP NAME "TUDOR_RO_test-environment" EXTENT 65956 431299 93267 451459 SIZE 800 600 MAXSIZE 50000 UNITS METERS SHAPEPATH "/srv/sampleData/" IMAGECOLOR 255 255 255 PROJECTION #"+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" "init=epsg:28992" END CONFIG PROJ_LIB "/usr/share/proj/" LAYER # ----------------------------------------------------------------- NAME "ro_dsm_mini" TYPE RASTER STATUS ON DATA "ro_dsm_mini.tiff" #PROCESSING "SCALE=AUTO" PROJECTION "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" # the projection of the source data set #"init=epsg:28992" END METADATA "ows_title" "DSM subset" "ows_abstract" "This a test data set of Rotterdams DSM subset" "wms_include_items" "value_0" "wms_value_0_alias" "Height" "wcs_label" "ro_dsm_mini" ### required "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request "wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request "wcs_formats" "img" END ------------------------------------------------------------ Christian Braun R+D Engineer Environmental Modelling, Geocomputation Tel: +352- 425991-6608 Mobil: +49-179-6845896 Mail: christian.braun at tudor.lu Resource Centre for Environmental Technologies, Public Research Centre Henri Tudor, 6A, avenue des Hauts-Fourneaux, L-4362 Esch-sur-Alzette, Luxembourg -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Wed May 14 01:50:49 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 14 May 2014 08:50:49 +0000 Subject: [mapserver-users] Mapserver shows all nodes on a GeometryCollection In-Reply-To: <1399989129707-5140004.post@n6.nabble.com> References: <1399989129707-5140004.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D568069AD6@FS-EX-DB102.fs.sachsen.de> You should take a look at the second column or rewrite the query as SELECT St_AsText( St_CollectionExtract( geom, 1 )) AS geom, element_type FROM v_elements; But the whole query doesn't make much sense in your case as don't have any real geometry collections. It doesn't filter your data but return an empty geometry and MapServer will effectively drop those lines. This isn't very efficient, so you should probably use something like SELECT St_AsText( geom ) AS geom, FROM v_elements WHERE GeometryType( geom ) = 'POINT' AND element_type = 'Voorziening'; However, the real problem is that the rendering engine implicitly converts the geometry to something useful for the current layer type. See http://mapserver.org/mapfile/layer.html regarding the layer's TYPE. So setting TYPE=point doesn't filter out lines and polygons - it converts them. But since points cannot be converted to lines or polygons, MapServer will skip them when TYPE=line, effectively filtering your data. Because of this implicit conversion you usually need to define a layer for each type. A very shortened version might look something like (assuming your primary key of the v_elements table is 'ID' and SRID -1): LAYER NAME "elements_voorziening_point" TYPE POINT STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "host=yourhostname dbname=yourdatabasename user=yourdbusername password=yourdbpassword port=yourpgport" DATA "geom FROM v_elements USING UNIQUE id USING SRID -1" FILTER "GeometryType( geom ) = 'POINT' AND element_type = 'Voorziening'" CLASS ... END END HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von drobins > Gesendet: Dienstag, 13. Mai 2014 15:52 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Mapserver shows all nodes on a > GeometryCollection > > Hi Jukka, > > the queries don't show what they're supposed to show, they show more > information than requested. > I'm adding a few screenshots with the 3 different queries, each showing > lines and points > > > > > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Re- > Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5138525p5140004.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From christian.braun at tudor.lu Wed May 14 02:18:56 2014 From: christian.braun at tudor.lu (Christian Braun) Date: Wed, 14 May 2014 11:18:56 +0200 Subject: [mapserver-users] MapServer calculates wrong WGS84BoundingBox for WCS request using EPSG:28992 In-Reply-To: References: Message-ID: <06E53FB2-5C99-4654-B7C5-8CE534E405AC@tudor.lu> Hello, ok, maybe I was not clear enough in my description. There were several changes in the past to EPSG:28992. The first change was to add some towgs parameters, which you could find in my map file, later there was a revision to the ones you are showing in your definition. Between this two towgs flags there isn't much difference or almost no difference in a final map. But if you leave out the flags at all, you will get errors in your spatial position of a few hundred meters. No matter what I set in the epsg file or in the map file as projection parameter of the source data set, MapServer is calculating in the DescribeCoverage an extent that matches very close the values that would have been given back by the old erroneous epsg (the one without towgs flags) definition. You can check that with the online calculator tool quite easily if you try to convert the bounding boxes. For me it seems that the projection parameters are read from somewhere else in the system where an old definition is present... cheers, Christian BTW: setting wcs_extent didn't help... ------------------------------------------------------------ Christian Braun R+D Engineer Environmental Modelling, Geocomputation Tel: +352- 425991-6608 Mobil: +49-179-6845896 Mail: christian.braun at tudor.lu Resource Centre for Environmental Technologies, Public Research Centre Henri Tudor, 6A, avenue des Hauts-Fourneaux, L-4362 Esch-sur-Alzette, Luxembourg On 14 May 2014, at 10:49, Rahkonen Jukka (Tike) wrote: > Hi, > > Both my MS4W with Mapserver 6.3-dev and 6.4 on Linux use these definitions > # Amersfoort / RD New > <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs <> > > You say that they wrong and +towgs84 parameters in your mapfile are correct? If so, then you can update the values into your epsg file that is in your PROJ_LIB directory. We seem to have PROJ-4.8.0 on Linux. > > I have seen with WMS that supports many projections that extent calculations for different projections are not always reliable. It is more reliable if layer extents are given in the layer metadata. Add ?wcs_extent? metadata as shown in http://www.mapserver.org/ogc/wcs_server.html and try if that changes anything. > > -Jukka Rahkonen- > > > Christian Braun wrote: > > Dear list members, > > I just discovered that my MapServer installation is calculating a wrong WGS84BoundingBox tag. > > I know that were issues in the past with the definition of EPSG:28992 in which my data is stored. I was checking all epsg files on the system and als set the config flag for PROJ_LIB in the map file. But it seems that MapServer is still ignoring the correct settings for EPSG:28992 and takes the "old" definition without proper proj towgs flags. > > The services are public and you can find below the links [1] to a DescribeCoverage for the WCS I am refering to. ro_dsm_mini is a small layer which I am using for testing. BBOX in 28992 is the correct one of the data source, the corresponding WGS84BoundingBox which is giving back is wrong. > I am using http://cs2cs.mygeodata.eu for checking. > > I also paste the relevant part of the map file [2]. > > > Any further help is appreciated. > Many thanks in advance, > Christian > > > [1] > http://maps.iguess.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/MapFiles/RO_localOWS_test.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=DescribeCoverage&COVERAGEID=ro_dsm_mini > > > [2] > MAP > NAME "TUDOR_RO_test-environment" > EXTENT 65956 431299 93267 451459 > SIZE 800 600 > MAXSIZE 50000 > UNITS METERS > SHAPEPATH "/srv/sampleData/" > IMAGECOLOR 255 255 255 > > PROJECTION > #"+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" > "init=epsg:28992" > END > > CONFIG PROJ_LIB "/usr/share/proj/" > > LAYER # ----------------------------------------------------------------- > NAME "ro_dsm_mini" > TYPE RASTER > STATUS ON > DATA "ro_dsm_mini.tiff" > > #PROCESSING "SCALE=AUTO" > > PROJECTION > "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" # the projection of the source data set > #"init=epsg:28992" > END > > METADATA > "ows_title" "DSM subset" > "ows_abstract" "This a test data set of Rotterdams DSM subset" > > "wms_include_items" "value_0" > "wms_value_0_alias" "Height" > > "wcs_label" "ro_dsm_mini" ### required > "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request > "wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request > "wcs_formats" "img" > END > > > ------------------------------------------------------------ > Christian Braun > R+D Engineer > Environmental Modelling, Geocomputation > > Tel: +352- 425991-6608 > Mobil: +49-179-6845896 > Mail: christian.braun at tudor.lu > > Resource Centre for Environmental Technologies, > Public Research Centre Henri Tudor, > 6A, avenue des Hauts-Fourneaux, > L-4362 Esch-sur-Alzette, Luxembourg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed May 14 02:32:52 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 14 May 2014 09:32:52 +0000 Subject: [mapserver-users] MapServer calculates wrong WGS84BoundingBox for WCS request using EPSG:28992 Message-ID: Hi, Two quick things to try: - turn on PROJ_DEBUG http://www.mapserver.org/optimization/debugging.html#step-4-turn-on-proj-debug-optional - edit your epsg file and make some changes to the two first parameters of the +towgs84. That should make your map data to slide in S-N and W-E direction once data are reprojected. If this happens you know for sure that the PROJ library that is used is the one you believe. If correct PROJ is in use I would then check if there is also errors in the data. Take a sample of data into another projection from WCS and check it. It can be that the error is only in the WGS84 bounding box calculation. -Jukka Rahkonen- Christian Braun Hello, ok, maybe I was not clear enough in my description. There were several changes in the past to EPSG:28992. The first change was to add some towgs parameters, which you could find in my map file, later there was a revision to the ones you are showing in your definition. Between this two towgs flags there isn't much difference or almost no difference in a final map. But if you leave out the flags at all, you will get errors in your spatial position of a few hundred meters. No matter what I set in the epsg file or in the map file as projection parameter of the source data set, MapServer is calculating in the DescribeCoverage an extent that matches very close the values that would have been given back by the old erroneous epsg (the one without towgs flags) definition. You can check that with the online calculator tool quite easily if you try to convert the bounding boxes. For me it seems that the projection parameters are read from somewhere else in the system where an old definition is present... cheers, Christian BTW: setting wcs_extent didn't help... ------------------------------------------------------------ Christian Braun R+D Engineer Environmental Modelling, Geocomputation Tel: +352- 425991-6608 Mobil: +49-179-6845896 Mail: christian.braun at tudor.lu Resource Centre for Environmental Technologies, Public Research Centre Henri Tudor, 6A, avenue des Hauts-Fourneaux, L-4362 Esch-sur-Alzette, Luxembourg On 14 May 2014, at 10:49, Rahkonen Jukka (Tike) > wrote: Hi, Both my MS4W with Mapserver 6.3-dev and 6.4 on Linux use these definitions # Amersfoort / RD New <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs <> You say that they wrong and +towgs84 parameters in your mapfile are correct? If so, then you can update the values into your epsg file that is in your PROJ_LIB directory. We seem to have PROJ-4.8.0 on Linux. I have seen with WMS that supports many projections that extent calculations for different projections are not always reliable. It is more reliable if layer extents are given in the layer metadata. Add "wcs_extent" metadata as shown in http://www.mapserver.org/ogc/wcs_server.html and try if that changes anything. -Jukka Rahkonen- Christian Braun wrote: Dear list members, I just discovered that my MapServer installation is calculating a wrong WGS84BoundingBox tag. I know that were issues in the past with the definition of EPSG:28992 in which my data is stored. I was checking all epsg files on the system and als set the config flag for PROJ_LIB in the map file. But it seems that MapServer is still ignoring the correct settings for EPSG:28992 and takes the "old" definition without proper proj towgs flags. The services are public and you can find below the links [1] to a DescribeCoverage for the WCS I am refering to. ro_dsm_mini is a small layer which I am using for testing. BBOX in 28992 is the correct one of the data source, the corresponding WGS84BoundingBox which is giving back is wrong. I am using http://cs2cs.mygeodata.eu for checking. I also paste the relevant part of the map file [2]. Any further help is appreciated. Many thanks in advance, Christian [1] http://maps.iguess.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/MapFiles/RO_localOWS_test.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=DescribeCoverage&COVERAGEID=ro_dsm_mini [2] MAP NAME "TUDOR_RO_test-environment" EXTENT 65956 431299 93267 451459 SIZE 800 600 MAXSIZE 50000 UNITS METERS SHAPEPATH "/srv/sampleData/" IMAGECOLOR 255 255 255 PROJECTION #"+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" "init=epsg:28992" END CONFIG PROJ_LIB "/usr/share/proj/" LAYER # ----------------------------------------------------------------- NAME "ro_dsm_mini" TYPE RASTER STATUS ON DATA "ro_dsm_mini.tiff" #PROCESSING "SCALE=AUTO" PROJECTION "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" # the projection of the source data set #"init=epsg:28992" END METADATA "ows_title" "DSM subset" "ows_abstract" "This a test data set of Rotterdams DSM subset" "wms_include_items" "value_0" "wms_value_0_alias" "Height" "wcs_label" "ro_dsm_mini" ### required "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request "wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request "wcs_formats" "img" END ------------------------------------------------------------ Christian Braun R+D Engineer Environmental Modelling, Geocomputation Tel: +352- 425991-6608 Mobil: +49-179-6845896 Mail: christian.braun at tudor.lu Resource Centre for Environmental Technologies, Public Research Centre Henri Tudor, 6A, avenue des Hauts-Fourneaux, L-4362 Esch-sur-Alzette, Luxembourg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed May 14 05:03:15 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 14 May 2014 12:03:15 +0000 Subject: [mapserver-users] About FILTER and FILTERITEM Message-ID: Hi, >From document page: http://mapserver.org/mapfile/expressions.html "To use a string comparison for filtering a LAYER, both FILTERITEM and FILTER must be set. FILTERITEM is set to the attribute name. FILTER is set to the value for comparison. The same rule applies to CLASSITEM in the LAYER object and EXPRESSION in the CLASS object." That would mean that only one attribute from the data can be used for building a filter. Is this true or just old information living in the document? -Jukka Rahkonen- From tds at tds-net.de Wed May 14 05:07:02 2014 From: tds at tds-net.de (TDS) Date: Wed, 14 May 2014 14:07:02 +0200 Subject: [mapserver-users] About FILTER and FILTERITEM In-Reply-To: References: Message-ID: <53735C66.4080508@tds-net.de> Hello, as far as I know - yes. But you can use expressions with more than one attribute. MfG M. Martin ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. Am 14.05.2014 14:03, schrieb Rahkonen Jukka (Tike): > Hi, > > From document page: http://mapserver.org/mapfile/expressions.html > "To use a string comparison for filtering a LAYER, both FILTERITEM and FILTER must be set. FILTERITEM is set to the attribute name. FILTER is set to the value for comparison. The same rule applies to CLASSITEM in the LAYER object and EXPRESSION in the CLASS object." > > That would mean that only one attribute from the data can be used for building a filter. Is this true or just old information living in the document? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Wed May 14 05:15:01 2014 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 14 May 2014 08:15:01 -0400 Subject: [mapserver-users] About FILTER and FILTERITEM In-Reply-To: References: Message-ID: <53735E45.2070401@dmsolutions.ca> You do not need to set both FILTERITEM and FILTER. You can just set FILTER to an expression using as many attributes as you need. e.g. FILTER (( [POPULATION] < 500000 ) AND ("[DISPLAY]" == "1")). Just like you can have multiple attributes in a class EXPRESSION. I think it's the section of the document that is key - the "MapServer Expressions" section talks about using FILTER and EXPRESSION in more complex logical expressions, where as the section you quoted is talking about basic string comparison. Christy On 14/05/14 08:03 AM, Rahkonen Jukka (Tike) wrote: > Hi, > > From document page: http://mapserver.org/mapfile/expressions.html > "To use a string comparison for filtering a LAYER, both FILTERITEM and FILTER must be set. FILTERITEM is set to the attribute name. FILTER is set to the value for comparison. The same rule applies to CLASSITEM in the LAYER object and EXPRESSION in the CLASS object." > > That would mean that only one attribute from the data can be used for building a filter. Is this true or just old information living in the document? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From tds at tds-net.de Wed May 14 04:59:45 2014 From: tds at tds-net.de (TDS) Date: Wed, 14 May 2014 13:59:45 +0200 Subject: [mapserver-users] MapCache DB Backend Message-ID: <53735AB1.5090200@tds-net.de> Hello, is it possible that someone can implement LevelDB or similar into MapCache? http://highscalability.com/blog/2012/11/29/performance-data-for-leveldb-berkley-db-and-bangdb-for-rando.html -- MfG M. Martin ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed May 14 06:05:07 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 14 May 2014 13:05:07 +0000 Subject: [mapserver-users] About FILTER and FILTERITEM Message-ID: Hi, Thank you very much, Christy. By your example I made some tests and now filters like this work for me FILTER (([WORKERS]>20000000) OR ("[STATE_FIPS]"="17")) The secret element was the right syntax for string attributes ("[STATE_FIPS]"="17"). Now when I know how it must be used I can find corresponding examples from the expression page of Mapserver documentation. Could someone explain shortly what is the difference between filter and expression? To me they seem to do pretty similar work. -Jukka Rahkonen- Christy Nieman wrote: > You do not need to set both FILTERITEM and FILTER. You can just set FILTER to > an expression using as many attributes as you need. e.g. > FILTER (( [POPULATION] < 500000 ) AND ("[DISPLAY]" == "1")). Just like you can > have multiple attributes in a class EXPRESSION. > > I think it's the section of the document that is key - the "MapServer Expressions" > section talks about using FILTER and EXPRESSION in more complex logical > expressions, where as the section you quoted is talking about basic string > comparison. > > Christy > > On 14/05/14 08:03 AM, Rahkonen Jukka (Tike) wrote: > > Hi, > > > > From document page: http://mapserver.org/mapfile/expressions.html > > "To use a string comparison for filtering a LAYER, both FILTERITEM and FILTER > must be set. FILTERITEM is set to the attribute name. FILTER is set to the value > for comparison. The same rule applies to CLASSITEM in the LAYER object and > EXPRESSION in the CLASS object." > > > > That would mean that only one attribute from the data can be used for > building a filter. Is this true or just old information living in the document? > > > > -Jukka Rahkonen- > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From enricofiore80 at gmail.com Wed May 14 05:58:24 2014 From: enricofiore80 at gmail.com (Enrico Fiore) Date: Wed, 14 May 2014 14:58:24 +0200 Subject: [mapserver-users] msCGILoadMap(): Web application error CGI variable "map" is not set Message-ID: Hi, I tried to create a simple map application whit zoom and pan capabilities, following the instructions contained in the book "Beginning MapServer". I created a map file (secondo.map), an initialization file (secondo_i.html) and a template file (secondo.html). When I lunch the command http://localhost/secondo_i.html the browser shows this error message: msCGILoadMap(): Web application error. CGI variable "map" is not set. I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04 Text contained in initialization file: MapServer Seconda mappa
-------------- next part -------------- An HTML attachment was scrubbed... URL: From enricofiore80 at gmail.com Wed May 14 06:08:25 2014 From: enricofiore80 at gmail.com (Enrico Fiore) Date: Wed, 14 May 2014 15:08:25 +0200 Subject: [mapserver-users] msCGILoadMap(): Web application error CGI variable "map" is not set In-Reply-To: References: Message-ID: Sorry I have sent the first message for error, I conclude it in this post the template file text is: Seconda Mappa
Zoom
Zoom In Size
Pan

Regioni
Fiumi
Province
My question is what I miss in my exercise. Can anyone help me? And sorry for to have split the message in two post. With thanks, Enrico 2014-05-14 14:58 GMT+02:00 Enrico Fiore : > Hi, > I tried to create a simple map application whit zoom and pan capabilities, > following the instructions contained in the book "Beginning MapServer". > I created a map file (secondo.map), an initialization file > (secondo_i.html) and a template file (secondo.html). > > When I lunch the command > > http://localhost/secondo_i.html > > the browser shows this error message: > > msCGILoadMap(): Web application error. CGI variable "map" is not set. > > I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04 > > > Text contained in initialization file: > > > MapServer Seconda mappa > >
> > "/home/enrico/mapserverdata/secondo.map"> > > >
> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed May 14 06:25:30 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 14 May 2014 13:25:30 +0000 Subject: [mapserver-users] About FILTER and FILTERITEM In-Reply-To: References: Message-ID: FIlters are used primarily under the hood for certain types of query operations. The main differences are: - FILTERs are defined in the native query language of the underlying driver. So for PostGIS you'd actually write a little SQL snippet. - FILTERs are applied when data are pulled from the underlying data source (like a WHERE clause) and have no impact on rendering choices. For drivers that don't have an native query capability (e.g. shapefiles) the syntax is identical to expressions. For drivers that do have a native query capability there really isn't much use for filters since you can just add a where clause to the data statement. Where I have found them useful sometimes is for simplifying class expressions. Let's say you have a shapefile and you only want to show features of a certain type, and then for those features you want to draw things differently based on another attribute. You could use logical expressions: CLASS EXPRESSION ([type] = 1 AND '[attr]' = 'a') ... END CLASS EXPRESSION ([type] = 1 AND '[attr]' = 'b') ... END or you could use a combination of FILTER and EXPRESSIONS FILTERITEM 'type' FILTER '1' CLASSITEM 'attr' CLASS EXPRESSION 'a' ... END CLASS EXPRESSION 'b' ... END Personal preference I guess and the second option is a bit more performant, especially in older versions. I guess my recommendation would be avoid FILTERs unless you have a good reason to use them. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) [jukka.rahkonen at mmmtike.fi] Sent: Wednesday, May 14, 2014 8:05 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] About FILTER and FILTERITEM Hi, Thank you very much, Christy. By your example I made some tests and now filters like this work for me FILTER (([WORKERS]>20000000) OR ("[STATE_FIPS]"="17")) The secret element was the right syntax for string attributes ("[STATE_FIPS]"="17"). Now when I know how it must be used I can find corresponding examples from the expression page of Mapserver documentation. Could someone explain shortly what is the difference between filter and expression? To me they seem to do pretty similar work. -Jukka Rahkonen- Christy Nieman wrote: > You do not need to set both FILTERITEM and FILTER. You can just set FILTER to > an expression using as many attributes as you need. e.g. > FILTER (( [POPULATION] < 500000 ) AND ("[DISPLAY]" == "1")). Just like you can > have multiple attributes in a class EXPRESSION. > > I think it's the section of the document that is key - the "MapServer Expressions" > section talks about using FILTER and EXPRESSION in more complex logical > expressions, where as the section you quoted is talking about basic string > comparison. > > Christy > > On 14/05/14 08:03 AM, Rahkonen Jukka (Tike) wrote: > > Hi, > > > > From document page: http://mapserver.org/mapfile/expressions.html > > "To use a string comparison for filtering a LAYER, both FILTERITEM and FILTER > must be set. FILTERITEM is set to the attribute name. FILTER is set to the value > for comparison. The same rule applies to CLASSITEM in the LAYER object and > EXPRESSION in the CLASS object." > > > > That would mean that only one attribute from the data can be used for > building a filter. Is this true or just old information living in the document? > > > > -Jukka Rahkonen- > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Wed May 14 06:25:36 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 14 May 2014 09:25:36 -0400 Subject: [mapserver-users] About FILTER and FILTERITEM In-Reply-To: Message-ID: Filter is defined at the LAYER level while expression is defined at CLASS level. So you could use expression for rendering filtered values.... using expression without filter means that you query all the data. "Rahkonen Jukka (Tike)" @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2014-05-14 09:05 A "mapserver-users at lists.osgeo.org" cc Objet Re: [mapserver-users] About FILTER and FILTERITEM Hi, Thank you very much, Christy. By your example I made some tests and now filters like this work for me FILTER (([WORKERS]>20000000) OR ("[STATE_FIPS]"="17")) The secret element was the right syntax for string attributes ("[STATE_FIPS]"="17"). Now when I know how it must be used I can find corresponding examples from the expression page of Mapserver documentation. Could someone explain shortly what is the difference between filter and expression? To me they seem to do pretty similar work. -Jukka Rahkonen- Christy Nieman wrote: > You do not need to set both FILTERITEM and FILTER. You can just set FILTER to > an expression using as many attributes as you need. e.g. > FILTER (( [POPULATION] < 500000 ) AND ("[DISPLAY]" == "1")). Just like you can > have multiple attributes in a class EXPRESSION. > > I think it's the section of the document that is key - the "MapServer Expressions" > section talks about using FILTER and EXPRESSION in more complex logical > expressions, where as the section you quoted is talking about basic string > comparison. > > Christy > > On 14/05/14 08:03 AM, Rahkonen Jukka (Tike) wrote: > > Hi, > > > > From document page: http://mapserver.org/mapfile/expressions.html > > "To use a string comparison for filtering a LAYER, both FILTERITEM and FILTER > must be set. FILTERITEM is set to the attribute name. FILTER is set to the value > for comparison. The same rule applies to CLASSITEM in the LAYER object and > EXPRESSION in the CLASS object." > > > > That would mean that only one attribute from the data can be used for > building a filter. Is this true or just old information living in the document? > > > > -Jukka Rahkonen- > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed May 14 06:29:24 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 14 May 2014 13:29:24 +0000 Subject: [mapserver-users] msCGILoadMap(): Web application error CGI variable "map" is not set Message-ID: I don?t know what really fails because I have never used Mapserver this way. However, the error message seems to be true. When using Mapserver trough WMS the same message comes with a request http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities If map parameter is used with an invalid value the error message is different http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities&map=foo Have a look at the code and think if the name of your mapfile really goes into [map]. -Jukka Rahkonen- Enrico Fiore wrote: Sorry I have sent the first message for error, I conclude it in this post the template file text is: Seconda Mappa
Zoom
Zoom In Size
Pan

Regioni
Fiumi
Province
My question is what I miss in my exercise. Can anyone help me? And sorry for to have split the message in two post. With thanks, Enrico 2014-05-14 14:58 GMT+02:00 Enrico Fiore >: Hi, I tried to create a simple map application whit zoom and pan capabilities, following the instructions contained in the book "Beginning MapServer". I created a map file (secondo.map), an initialization file (secondo_i.html) and a template file (secondo.html). When I lunch the command http://localhost/secondo_i.html the browser shows this error message: msCGILoadMap(): Web application error. CGI variable "map" is not set. I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04 Text contained in initialization file: MapServer Seconda mappa
-------------- next part -------------- An HTML attachment was scrubbed... URL: From Gregor.Karzelek at heller-ig.com Wed May 14 06:13:36 2014 From: Gregor.Karzelek at heller-ig.com (Gregor Karzelek) Date: Wed, 14 May 2014 13:13:36 +0000 Subject: [mapserver-users] About FILTER and FILTERITEM In-Reply-To: References: Message-ID: Hi, As far as I know the Filter is used while data retrieving. At least I have with Postgis and a OSM map FILTER like that: FILTER "type IN ('rail', 'monorail', 'lightrail?)" This is passed 1:1 to the Postgis data source (I checked that) and thus has a huge performance impact as the complete rest of the map config works on less data. Expression is to distinct between the loaded data for the individual CLASSes. ________________________________ Gregor Karzelek Systemarchitekt HELLER Ingenieurgesellschaft mbH Otto-Hesse-Stra?e 19 / T3 64293 Darmstadt Tel.: +49 6151 66846-16 Fax: +49 6151 66846-22 E-Mail: gregor.karzelek at heller-ig.com Internet: www.heller-ig.com Gesch?ftsf?hrer: Dipl.-Ing. Henning Balck, Dipl.-Ing. Christian Komma Handelsregister: Amtsgericht Darmstadt HRB 8310 Ust.-Ident.-Nr.: DE 217 293 137 Am 14.05.2014 um 15:05 schrieb Rahkonen Jukka (Tike) >: Hi, Thank you very much, Christy. By your example I made some tests and now filters like this work for me FILTER (([WORKERS]>20000000) OR ("[STATE_FIPS]"="17")) The secret element was the right syntax for string attributes ("[STATE_FIPS]"="17"). Now when I know how it must be used I can find corresponding examples from the expression page of Mapserver documentation. Could someone explain shortly what is the difference between filter and expression? To me they seem to do pretty similar work. -Jukka Rahkonen- Christy Nieman wrote: You do not need to set both FILTERITEM and FILTER. You can just set FILTER to an expression using as many attributes as you need. e.g. FILTER (( [POPULATION] < 500000 ) AND ("[DISPLAY]" == "1")). Just like you can have multiple attributes in a class EXPRESSION. I think it's the section of the document that is key - the "MapServer Expressions" section talks about using FILTER and EXPRESSION in more complex logical expressions, where as the section you quoted is talking about basic string comparison. Christy On 14/05/14 08:03 AM, Rahkonen Jukka (Tike) wrote: Hi, >From document page: http://mapserver.org/mapfile/expressions.html "To use a string comparison for filtering a LAYER, both FILTERITEM and FILTER must be set. FILTERITEM is set to the attribute name. FILTER is set to the value for comparison. The same rule applies to CLASSITEM in the LAYER object and EXPRESSION in the CLASS object." That would mean that only one attribute from the data can be used for building a filter. Is this true or just old information living in the document? -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed May 14 06:32:56 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 14 May 2014 09:32:56 -0400 Subject: [mapserver-users] About FILTER and FILTERITEM In-Reply-To: Message-ID: Steve, I'm using postgis and runtime variable substitution in the filter. Should I avoid FILTER and do the runtime variable substitution in DATA? thanks steve "Lime, Steve D (MNIT)" @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2014-05-14 09:25 A "Rahkonen Jukka (Tike)" , "mapserver-users at lists.osgeo.org" cc Objet Re: [mapserver-users] About FILTER and FILTERITEM FIlters are used primarily under the hood for certain types of query operations. The main differences are: - FILTERs are defined in the native query language of the underlying driver. So for PostGIS you'd actually write a little SQL snippet. - FILTERs are applied when data are pulled from the underlying data source (like a WHERE clause) and have no impact on rendering choices. For drivers that don't have an native query capability (e.g. shapefiles) the syntax is identical to expressions. For drivers that do have a native query capability there really isn't much use for filters since you can just add a where clause to the data statement. Where I have found them useful sometimes is for simplifying class expressions. Let's say you have a shapefile and you only want to show features of a certain type, and then for those features you want to draw things differently based on another attribute. You could use logical expressions: CLASS EXPRESSION ([type] = 1 AND '[attr]' = 'a') ... END CLASS EXPRESSION ([type] = 1 AND '[attr]' = 'b') ... END or you could use a combination of FILTER and EXPRESSIONS FILTERITEM 'type' FILTER '1' CLASSITEM 'attr' CLASS EXPRESSION 'a' ... END CLASS EXPRESSION 'b' ... END Personal preference I guess and the second option is a bit more performant, especially in older versions. I guess my recommendation would be avoid FILTERs unless you have a good reason to use them. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) [jukka.rahkonen at mmmtike.fi] Sent: Wednesday, May 14, 2014 8:05 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] About FILTER and FILTERITEM Hi, Thank you very much, Christy. By your example I made some tests and now filters like this work for me FILTER (([WORKERS]>20000000) OR ("[STATE_FIPS]"="17")) The secret element was the right syntax for string attributes ("[STATE_FIPS]"="17"). Now when I know how it must be used I can find corresponding examples from the expression page of Mapserver documentation. Could someone explain shortly what is the difference between filter and expression? To me they seem to do pretty similar work. -Jukka Rahkonen- Christy Nieman wrote: > You do not need to set both FILTERITEM and FILTER. You can just set FILTER to > an expression using as many attributes as you need. e.g. > FILTER (( [POPULATION] < 500000 ) AND ("[DISPLAY]" == "1")). Just like you can > have multiple attributes in a class EXPRESSION. > > I think it's the section of the document that is key - the "MapServer Expressions" > section talks about using FILTER and EXPRESSION in more complex logical > expressions, where as the section you quoted is talking about basic string > comparison. > > Christy > > On 14/05/14 08:03 AM, Rahkonen Jukka (Tike) wrote: > > Hi, > > > > From document page: http://mapserver.org/mapfile/expressions.html > > "To use a string comparison for filtering a LAYER, both FILTERITEM and FILTER > must be set. FILTERITEM is set to the attribute name. FILTER is set to the value > for comparison. The same rule applies to CLASSITEM in the LAYER object and > EXPRESSION in the CLASS object." > > > > That would mean that only one attribute from the data can be used for > building a filter. Is this true or just old information living in the document? > > > > -Jukka Rahkonen- > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.braun at tudor.lu Wed May 14 06:43:45 2014 From: christian.braun at tudor.lu (Christian Braun) Date: Wed, 14 May 2014 15:43:45 +0200 Subject: [mapserver-users] MapServer calculates wrong WGS84BoundingBox for WCS request using EPSG:28992 In-Reply-To: References: Message-ID: <225D6750-72ED-41C2-9682-28A52455C43B@tudor.lu> Hello, I found some time for further investigations... ;-) MapServer is definitely using the correct epsg file. If I comment out the 28992 line it fails and if I change the the first basic parameters different BBOX values are appearing for WGSBoundingBox. However, if I do changes to the towgs parameters or even delete them completly this seemed to be ignored to calculate the WGSBoundingBox in the DescribeCoverage response. Is there any forward or reverse projection ongoing in the background which is leaving out this parameters? cheers, Christian ------------------------------------------------------------ Christian Braun R+D Engineer Environmental Modelling, Geocomputation Tel: +352- 425991-6608 Mobil: +49-179-6845896 Mail: christian.braun at tudor.lu Resource Centre for Environmental Technologies, Public Research Centre Henri Tudor, 6A, avenue des Hauts-Fourneaux, L-4362 Esch-sur-Alzette, Luxembourg On 14 May 2014, at 11:32, Rahkonen Jukka (Tike) wrote: > Hi, > > Two quick things to try: > - turn on PROJ_DEBUG http://www.mapserver.org/optimization/debugging.html#step-4-turn-on-proj-debug-optional > - edit your epsg file and make some changes to the two first parameters of the +towgs84. That should make your map data to slide in S-N and W-E direction once data are reprojected. If this happens you know for sure that the PROJ library that is used is the one you believe. > > If correct PROJ is in use I would then check if there is also errors in the data. Take a sample of data into another projection from WCS and check it. It can be that the error is only in the WGS84 bounding box calculation. > > -Jukka Rahkonen- > > Christian Braun > > Hello, > ok, maybe I was not clear enough in my description. > There were several changes in the past to EPSG:28992. The first change was to add some towgs parameters, which you could find in my map file, later there was a revision to the ones you are showing in your definition. Between this two towgs flags there isn't much difference or almost no difference in a final map. But if you leave out the flags at all, you will get errors in your spatial position of a few hundred meters. > > No matter what I set in the epsg file or in the map file as projection parameter of the source data set, MapServer is calculating in the DescribeCoverage an extent that matches very close the values that would have been given back by the old erroneous epsg (the one without towgs flags) definition. You can check that with the online calculator tool quite easily if you try to convert the bounding boxes. > > For me it seems that the projection parameters are read from somewhere else in the system where an old definition is present... > > cheers, > Christian > > BTW: setting wcs_extent didn't help... > > > > ------------------------------------------------------------ > Christian Braun > R+D Engineer > Environmental Modelling, Geocomputation > > Tel: +352- 425991-6608 > Mobil: +49-179-6845896 > Mail: christian.braun at tudor.lu > > Resource Centre for Environmental Technologies, > Public Research Centre Henri Tudor, > 6A, avenue des Hauts-Fourneaux, > L-4362 Esch-sur-Alzette, Luxembourg > > On 14 May 2014, at 10:49, Rahkonen Jukka (Tike) wrote: > > > Hi, > > Both my MS4W with Mapserver 6.3-dev and 6.4 on Linux use these definitions > # Amersfoort / RD New > <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs <> > > You say that they wrong and +towgs84 parameters in your mapfile are correct? If so, then you can update the values into your epsg file that is in your PROJ_LIB directory. We seem to have PROJ-4.8.0 on Linux. > > I have seen with WMS that supports many projections that extent calculations for different projections are not always reliable. It is more reliable if layer extents are given in the layer metadata. Add ?wcs_extent? metadata as shown in http://www.mapserver.org/ogc/wcs_server.html and try if that changes anything. > > -Jukka Rahkonen- > > > Christian Braun wrote: > > Dear list members, > > I just discovered that my MapServer installation is calculating a wrong WGS84BoundingBox tag. > > I know that were issues in the past with the definition of EPSG:28992 in which my data is stored. I was checking all epsg files on the system and als set the config flag for PROJ_LIB in the map file. But it seems that MapServer is still ignoring the correct settings for EPSG:28992 and takes the "old" definition without proper proj towgs flags. > > The services are public and you can find below the links [1] to a DescribeCoverage for the WCS I am refering to. ro_dsm_mini is a small layer which I am using for testing. BBOX in 28992 is the correct one of the data source, the corresponding WGS84BoundingBox which is giving back is wrong. > I am using http://cs2cs.mygeodata.eu for checking. > > I also paste the relevant part of the map file [2]. > > > Any further help is appreciated. > Many thanks in advance, > Christian > > > [1] > http://maps.iguess.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/MapFiles/RO_localOWS_test.map&SERVICE=WCS&VERSION=1.1.0&REQUEST=DescribeCoverage&COVERAGEID=ro_dsm_mini > > > [2] > MAP > NAME "TUDOR_RO_test-environment" > EXTENT 65956 431299 93267 451459 > SIZE 800 600 > MAXSIZE 50000 > UNITS METERS > SHAPEPATH "/srv/sampleData/" > IMAGECOLOR 255 255 255 > > PROJECTION > #"+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" > "init=epsg:28992" > END > > CONFIG PROJ_LIB "/usr/share/proj/" > > LAYER # ----------------------------------------------------------------- > NAME "ro_dsm_mini" > TYPE RASTER > STATUS ON > DATA "ro_dsm_mini.tiff" > > #PROCESSING "SCALE=AUTO" > > PROJECTION > "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs" # the projection of the source data set > #"init=epsg:28992" > END > > METADATA > "ows_title" "DSM subset" > "ows_abstract" "This a test data set of Rotterdams DSM subset" > > "wms_include_items" "value_0" > "wms_value_0_alias" "Height" > > "wcs_label" "ro_dsm_mini" ### required > "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request > "wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request > "wcs_formats" "img" > END > > > ------------------------------------------------------------ > Christian Braun > R+D Engineer > Environmental Modelling, Geocomputation > > Tel: +352- 425991-6608 > Mobil: +49-179-6845896 > Mail: christian.braun at tudor.lu > > Resource Centre for Environmental Technologies, > Public Research Centre Henri Tudor, > 6A, avenue des Hauts-Fourneaux, > L-4362 Esch-sur-Alzette, Luxembourg -------------- next part -------------- An HTML attachment was scrubbed... URL: From krishna.patury at gmail.com Wed May 14 06:42:15 2014 From: krishna.patury at gmail.com (Krishna Priya Patury) Date: Wed, 14 May 2014 09:42:15 -0400 Subject: [mapserver-users] msCGILoadMap(): Web application error CGI variable "map" is not set In-Reply-To: References: Message-ID: You could try changing the form method from POST to GET in the initialization file(secondo_i.html) to see what the map value is being sent as. On Wed, May 14, 2014 at 9:29 AM, Rahkonen Jukka (Tike) < jukka.rahkonen at mmmtike.fi> wrote: > I don?t know what really fails because I have never used Mapserver this > way. However, the error message seems to be true. > > When using Mapserver trough WMS the same message comes with a request > > > http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities > > If map parameter is used with an invalid value the error message is > different > > > http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities&map=foo > > > > Have a look at the code and think if the name of your mapfile really goes > into [map]. > > > > -Jukka Rahkonen- > > > > > > > > Enrico Fiore wrote: > > > > Sorry I have sent the first message for error, I conclude it in this post > > the template file text is: > > > > Seconda Mappa > >
> > > > > >
> width=640 height=480 order=2> > > > > > > > > > > > > > > > >
> >
Zoom
> Zoom In > [zoom_dir_1_check] > > Size > value=[zoomsize]> >
> Pan > [zoomdir_0_check]> >
>
> > > > > > > > > > >
> value="Regioni" [Regioni_check]> > Regioni >
> value="Fiumi" [Fiumi_check]> > Fiumi >
> value="Province" [Province_check]> > Province >
>
> > > > >
> > > > > > My question is what I miss in my exercise. > > Can anyone help me? > > And sorry for to have split the message in two post. > > With thanks, > > Enrico > > > > > > 2014-05-14 14:58 GMT+02:00 Enrico Fiore : > > Hi, > > I tried to create a simple map application whit zoom and pan capabilities, > following the instructions contained in the book "Beginning MapServer". > I created a map file (secondo.map), an initialization file > (secondo_i.html) and a template file (secondo.html). > > > When I lunch the command > > http://localhost/secondo_i.html > > the browser shows this error message: > > msCGILoadMap(): Web application error. CGI variable "map" is not set. > > I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04 > > > > > > Text contained in initialization file: > > > MapServer Seconda mappa > >
> > "/home/enrico/mapserverdata/secondo.map"> > > >
> > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Wed May 14 07:10:36 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 14 May 2014 14:10:36 +0000 Subject: [mapserver-users] About FILTER and FILTERITEM Message-ID: Hi, I started to play with filter and filteritem because I happened to see this question http://gis.stackexchange.com/questions/65724/mapserver-6-2-concatenate-attributes-in-filter. I thought that the idea was odd and unpractical but interesting and I thought it would be fast to test. It was not but at least it was educational. I can do such concatenation simply with Spatialite data by using the layer DATA as CONNECTION "\ms4w\apps\states_spl_3.sqlite" DATA "select * from states_view where STATE_NAME||STATE_FIPS='Illinois17'" I am ready to believe that such concatenation with FILTER is not possible with the 6.x series. Other opinions? -Jukka Rahkonen- Lime, Steve D (MNIT) wrote: > > FIlters are used primarily under the hood for certain types of query operations. > The main differences are: > > - FILTERs are defined in the native query language of the underlying driver. So > for PostGIS you'd actually write a little SQL snippet. > - FILTERs are applied when data are pulled from the underlying data source (like > a WHERE clause) and have no impact on rendering choices. > > For drivers that don't have an native query capability (e.g. shapefiles) the syntax > is identical to expressions. For drivers that do have a native query capability > there really isn't much use for filters since you can just add a where clause to the > data statement. > > Where I have found them useful sometimes is for simplifying class expressions. > Let's say you have a shapefile and you only want to show features of a certain > type, and then for those features you want to draw things differently based on > another attribute. > > You could use logical expressions: > > CLASS > EXPRESSION ([type] = 1 AND '[attr]' = 'a') > ... > END > CLASS > EXPRESSION ([type] = 1 AND '[attr]' = 'b') > ... > END > > or you could use a combination of FILTER and EXPRESSIONS > > FILTERITEM 'type' > FILTER '1' > > CLASSITEM 'attr' > CLASS > EXPRESSION 'a' > ... > END > CLASS > EXPRESSION 'b' > ... > END > > Personal preference I guess and the second option is a bit more performant, > especially in older versions. I guess my recommendation would be avoid FILTERs > unless you have a good reason to use them. > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users- > bounces at lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) > [jukka.rahkonen at mmmtike.fi] > Sent: Wednesday, May 14, 2014 8:05 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] About FILTER and FILTERITEM > > Hi, > > Thank you very much, Christy. By your example I made some tests and now > filters like this work for me FILTER (([WORKERS]>20000000) OR > ("[STATE_FIPS]"="17")) > > The secret element was the right syntax for string attributes > ("[STATE_FIPS]"="17"). > Now when I know how it must be used I can find corresponding examples from > the expression page of Mapserver documentation. Could someone explain > shortly what is the difference between filter and expression? To me they seem > to do pretty similar work. > > -Jukka Rahkonen- > > Christy Nieman wrote: > > > You do not need to set both FILTERITEM and FILTER. You can just set > > FILTER to an expression using as many attributes as you need. e.g. > > FILTER (( [POPULATION] < 500000 ) AND ("[DISPLAY]" == "1")). Just like > > you can have multiple attributes in a class EXPRESSION. > > > > I think it's the section of the document that is key - the "MapServer > Expressions" > > section talks about using FILTER and EXPRESSION in more complex > > logical expressions, where as the section you quoted is talking about > > basic string comparison. > > > > Christy > > > > On 14/05/14 08:03 AM, Rahkonen Jukka (Tike) wrote: > > > Hi, > > > > > > From document page: http://mapserver.org/mapfile/expressions.html > > > "To use a string comparison for filtering a LAYER, both FILTERITEM > > > and FILTER > > must be set. FILTERITEM is set to the attribute name. FILTER is set to > > the value for comparison. The same rule applies to CLASSITEM in the > > LAYER object and EXPRESSION in the CLASS object." > > > > > > That would mean that only one attribute from the data can be used > > > for > > building a filter. Is this true or just old information living in the document? > > > > > > -Jukka Rahkonen- > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bob.basques at ci.stpaul.mn.us Wed May 14 07:50:38 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Wed, 14 May 2014 14:50:38 +0000 Subject: [mapserver-users] Update MapServer in demo.mapserver.org? In-Reply-To: References: Message-ID: Hmm, This is an interesting problem. We had a similar problem to this a few years back where we needed to run some legacy programs against an older version of mapserver while still being able to upgrade the majority of systems to a newer version. What we ended up implementing is some Apache rules to handle using different MapServer versions via CGI calling parameters. I wonder if it makes any sense to suggest here, that all viable (still living) development versions of MapServer be set up in demo mode, and run side by side. While there may not be an immediate return, I think over time, something like this might become a nice tool for development tasks. I myself tend to work primarily on Mapfile design and only occasionally look at the underlying code, and only then to suggest some possible enhancements. Remote data access would be the next big steeping stone of course . . . Bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike) Sent: Wednesday, May 14, 2014 3:11 AM To: Mapserver-Users (mapserver-users at lists.osgeo.org) Subject: [mapserver-users] Update MapServer in demo.mapserver.org? Hi, I hope that right persons are reading this list. As a user I appreciate that there is a demo server online so I can try if some troubles we have are specific for us. However, the demo site demo.mapserver.org is running MapServer version 5.6.5 while we run 6.4 and those versions do not behave in a similar way. Could it be possible to update the site to use Mapserver 6.4? Version 5.6.5 is three years old so might be worth considering if updates could happen even more frequently in the future. -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bill.Voigt at cityofsanrafael.org Wed May 14 07:35:07 2014 From: Bill.Voigt at cityofsanrafael.org (Bill Voigt) Date: Wed, 14 May 2014 07:35:07 -0700 Subject: [mapserver-users] unsubscribe Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From trailway at gmail.com Wed May 14 08:41:49 2014 From: trailway at gmail.com (trailway) Date: Wed, 14 May 2014 08:41:49 -0700 (PDT) Subject: [mapserver-users] Windows Installation Message-ID: <1400082109558-5140281.post@n6.nabble.com> Disclaimer - I am total newbie here. I want to get Map Server running on my Windows 7 x64 system. I am aware that MS4W exists but my impression is that this project is not actively updated, i.e. it is running an old version of map server so I did not want to use it. Here is good post which describes the status: http://osgeo-org.1560.x6.nabble.com/Upgrading-Apache-and-PHP-that-came-with-MS4W-td5105669.html I started by downloading the documentation from here: http://mapserver.org/documentation.html Next I downloaded the 64 bit installer from here: http://trac.osgeo.org/osgeo4w/ I then ran the installer and chose the "Express Web-GIS Install" option. On the "Select Packages" screen, I noticed that MapServer and GDAL were enabled. Other options such as Apache were disabled, i.e. I could not choose them. The installation completed without errors. I am able to run map server as follows: C:\OSGeo4W64\bin>mapserv -v The instructions tell me to "Run the apache-install.bat script to install the Apache Server". The thing is that I cannot find this script on my system. I ran the above installer again and chose the "Advanced Install" option. Unlike the screen shots in the documentation, I do not see Apache listed under Web (or anywhere else). FWIW, I do have IIS installed on my machine. I wanted to use whatever web server is easiest and works best for map server. My guess is that that is Apache. The instructions for "IIS Setup for MapServer" are very dated (from 2005). What am I doing wrong? Based on the things that I learn, how can I contribute to improving the documentation? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Windows-Installation-tp5140281.html Sent from the Mapserver - User mailing list archive at Nabble.com. From james.evans.4 at us.af.mil Wed May 14 08:43:44 2014 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Wed, 14 May 2014 15:43:44 +0000 Subject: [mapserver-users] Update MapServer in demo.mapserver.org? In-Reply-To: References: Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C79815@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> Hi, Somehow I missed the fact that there was a demo mapserver running. That would have been very helpful. I just looked over the Mapserver.Org site, and I don't see it there. Maybe it should be a little easier to find. James -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Wednesday, May 14, 2014 8:51 AM To: Rahkonen Jukka (Tike); Mapserver-Users (mapserver-users at lists.osgeo.org) Subject: Re: [mapserver-users] Update MapServer in demo.mapserver.org? Hmm, This is an interesting problem. We had a similar problem to this a few years back where we needed to run some legacy programs against an older version of mapserver while still being able to upgrade the majority of systems to a newer version. What we ended up implementing is some Apache rules to handle using different MapServer versions via CGI calling parameters. I wonder if it makes any sense to suggest here, that all viable (still living) development versions of MapServer be set up in demo mode, and run side by side. While there may not be an immediate return, I think over time, something like this might become a nice tool for development tasks. I myself tend to work primarily on Mapfile design and only occasionally look at the underlying code, and only then to suggest some possible enhancements. Remote data access would be the next big steeping stone of course . . . Bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike) Sent: Wednesday, May 14, 2014 3:11 AM To: Mapserver-Users (mapserver-users at lists.osgeo.org) Subject: [mapserver-users] Update MapServer in demo.mapserver.org? Hi, I hope that right persons are reading this list. As a user I appreciate that there is a demo server online so I can try if some troubles we have are specific for us. However, the demo site demo.mapserver.org is running MapServer version 5.6.5 while we run 6.4 and those versions do not behave in a similar way. Could it be possible to update the site to use Mapserver 6.4? Version 5.6.5 is three years old so might be worth considering if updates could happen even more frequently in the future. -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5563 bytes Desc: not available URL: From james.evans.4 at us.af.mil Wed May 14 08:47:36 2014 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Wed, 14 May 2014 15:47:36 +0000 Subject: [mapserver-users] Windows Installation In-Reply-To: <1400082109558-5140281.post@n6.nabble.com> References: <1400082109558-5140281.post@n6.nabble.com> Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C79833@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> I would suggest you read to the bottom of this thread: http://osgeo-org.1560.x6.nabble.com/Migrating-from-MS4W-to-GISInternals-td51 29224.html -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of trailway Sent: Wednesday, May 14, 2014 9:42 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Windows Installation Disclaimer - I am total newbie here. I want to get Map Server running on my Windows 7 x64 system. I am aware that MS4W exists but my impression is that this project is not actively updated, i.e. it is running an old version of map server so I did not want to use it. Here is good post which describes the status: http://osgeo-org.1560.x6.nabble.com/Upgrading-Apache-and-PHP-that-came-with- MS4W-td5105669.html I started by downloading the documentation from here: http://mapserver.org/documentation.html Next I downloaded the 64 bit installer from here: http://trac.osgeo.org/osgeo4w/ I then ran the installer and chose the "Express Web-GIS Install" option. On the "Select Packages" screen, I noticed that MapServer and GDAL were enabled. Other options such as Apache were disabled, i.e. I could not choose them. The installation completed without errors. I am able to run map server as follows: C:\OSGeo4W64\bin>mapserv -v The instructions tell me to "Run the apache-install.bat script to install the Apache Server". The thing is that I cannot find this script on my system. I ran the above installer again and chose the "Advanced Install" option. Unlike the screen shots in the documentation, I do not see Apache listed under Web (or anywhere else). FWIW, I do have IIS installed on my machine. I wanted to use whatever web server is easiest and works best for map server. My guess is that that is Apache. The instructions for "IIS Setup for MapServer" are very dated (from 2005). What am I doing wrong? Based on the things that I learn, how can I contribute to improving the documentation? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Windows-Installation-tp5140281.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5563 bytes Desc: not available URL: From jlarouche at mapgears.com Wed May 14 08:49:10 2014 From: jlarouche at mapgears.com (Jerome Villeneuve Larouche) Date: Wed, 14 May 2014 11:49:10 -0400 Subject: [mapserver-users] Windows Installation In-Reply-To: <1400082109558-5140281.post@n6.nabble.com> References: <1400082109558-5140281.post@n6.nabble.com> Message-ID: <53739076.2070409@mapgears.com> Hi, If you want to use OSGeo4W you should use the 32 bit installer as the packages are more up to date on this version. On 14-05-14 11:41 AM, trailway wrote: > Disclaimer - I am total newbie here. > > I want to get Map Server running on my Windows 7 x64 system. > > I am aware that MS4W exists but my impression is that this project is not > actively updated, > i.e. it is running an old version of map server so I did not want to use it. > Here is good > post which describes the status: > > http://osgeo-org.1560.x6.nabble.com/Upgrading-Apache-and-PHP-that-came-with-MS4W-td5105669.html > > I started by downloading the documentation from here: > > http://mapserver.org/documentation.html > > Next I downloaded the 64 bit installer from here: > > http://trac.osgeo.org/osgeo4w/ > > I then ran the installer and chose the "Express Web-GIS Install" option. > On the "Select Packages" screen, I noticed that MapServer and GDAL were > enabled. > Other options such as Apache were disabled, i.e. I could not choose them. > The installation completed without errors. > > I am able to run map server as follows: > > C:\OSGeo4W64\bin>mapserv -v > > The instructions tell me to "Run the apache-install.bat script to install > the Apache Server". > The thing is that I cannot find this script on my system. I ran the above > installer again > and chose the "Advanced Install" option. Unlike the screen shots in the > documentation, I do not see > Apache listed under Web (or anywhere else). > > FWIW, I do have IIS installed on my machine. I wanted to use whatever web > server is easiest > and works best for map server. My guess is that that is Apache. The > instructions for "IIS Setup for MapServer" are very dated (from 2005). > > What am I doing wrong? > > Based on the things that I learn, how can I contribute to improving the > documentation? > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/Windows-Installation-tp5140281.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- J?r?me Villeneuve Larouche www.mapgears.com From james.evans.4 at us.af.mil Wed May 14 09:28:40 2014 From: james.evans.4 at us.af.mil (EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE) Date: Wed, 14 May 2014 16:28:40 +0000 Subject: [mapserver-users] Windows Installation References: <1400082109558-5140281.post@n6.nabble.com> Message-ID: <20EA793B1BC710448656BDC9BD25C4A104C79869@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> I am referring to using the binaries at: http://www.gisinternals.com/sdk/ -----Original Message----- From: EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE Sent: Wednesday, May 14, 2014 9:48 AM To: 'trailway'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Windows Installation I would suggest you read to the bottom of this thread: http://osgeo-org.1560.x6.nabble.com/Migrating-from-MS4W-to-GISInternals-td51 29224.html -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of trailway Sent: Wednesday, May 14, 2014 9:42 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Windows Installation Disclaimer - I am total newbie here. I want to get Map Server running on my Windows 7 x64 system. I am aware that MS4W exists but my impression is that this project is not actively updated, i.e. it is running an old version of map server so I did not want to use it. Here is good post which describes the status: http://osgeo-org.1560.x6.nabble.com/Upgrading-Apache-and-PHP-that-came-with- MS4W-td5105669.html I started by downloading the documentation from here: http://mapserver.org/documentation.html Next I downloaded the 64 bit installer from here: http://trac.osgeo.org/osgeo4w/ I then ran the installer and chose the "Express Web-GIS Install" option. On the "Select Packages" screen, I noticed that MapServer and GDAL were enabled. Other options such as Apache were disabled, i.e. I could not choose them. The installation completed without errors. I am able to run map server as follows: C:\OSGeo4W64\bin>mapserv -v The instructions tell me to "Run the apache-install.bat script to install the Apache Server". The thing is that I cannot find this script on my system. I ran the above installer again and chose the "Advanced Install" option. Unlike the screen shots in the documentation, I do not see Apache listed under Web (or anywhere else). FWIW, I do have IIS installed on my machine. I wanted to use whatever web server is easiest and works best for map server. My guess is that that is Apache. The instructions for "IIS Setup for MapServer" are very dated (from 2005). What am I doing wrong? Based on the things that I learn, how can I contribute to improving the documentation? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Windows-Installation-tp5140281.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5563 bytes Desc: not available URL: From Steve.Lime at state.mn.us Wed May 14 09:49:54 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 14 May 2014 16:49:54 +0000 Subject: [mapserver-users] Time to make a new demo? In-Reply-To: References: Message-ID: I agree with you... Almost all of our demos are pretty dated. Personally I always liked the way OpenLayers approached things with concise demos that showed off a particular bit of functionality. I wonder if our regression tests (msautotest) might serve this purpose and if web wrapper could be put in place to present those tests so users could see that a particular configuration leads to a particular output result. Could always create a few more tutorial-like products (e.g. using MapServer w/Leaflet or w/OpenLayers) but again, they should be concise. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike) Sent: Wednesday, May 14, 2014 3:31 AM To: 'Mapserver-Users (mapserver-users at lists.osgeo.org)' Subject: [mapserver-users] Time to make a new demo? Hi, Mapserver documentation for the new users http://mapserver.org/introduction.html is having a title Get demo running. It contains a link to a zipped workshop material http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.4.zip I am not sure if that workshop is a good starting point for the new users any more now when we are at Mapserver version 6.4 and soon 7.0. The workshop just does not work with recent Mapserver versions which makes potential new users sad. -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From trailway at gmail.com Wed May 14 12:49:59 2014 From: trailway at gmail.com (trailway) Date: Wed, 14 May 2014 12:49:59 -0700 (PDT) Subject: [mapserver-users] Windows Installation In-Reply-To: <53739076.2070409@mapgears.com> References: <1400082109558-5140281.post@n6.nabble.com> <53739076.2070409@mapgears.com> Message-ID: <1400096999471-5140334.post@n6.nabble.com> Jerome, thanks for the comment "you should use the 32 bit installer as the packages are more up to date on this version". There are different set of packages available when you run the 32 bit installer versus the 64 bit installer. You can see the differences here: http://download.osgeo.org/osgeo4w/x86_64/release/ http://download.osgeo.org/osgeo4w/x86/release/ In particular, Apache related packages only show up in the 32 bit installer. That seems very confusing to me. My goal is to run this on a 64 bit server machine, e.g. Windows Server 2012, running in Amazon. Which installer should I use? If using OSGeo4W is not best practices then I'd appreciate that feedback. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Windows-Installation-tp5140281p5140334.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tech_dev at wildintellect.com Wed May 14 13:16:26 2014 From: tech_dev at wildintellect.com (Alex Mandel) Date: Wed, 14 May 2014 13:16:26 -0700 Subject: [mapserver-users] Windows Installation In-Reply-To: <1400096999471-5140334.post@n6.nabble.com> References: <1400082109558-5140281.post@n6.nabble.com> <53739076.2070409@mapgears.com> <1400096999471-5140334.post@n6.nabble.com> Message-ID: <5373CF1A.80105@wildintellect.com> On 05/14/2014 12:49 PM, trailway wrote: > Jerome, thanks for the comment "you should use the 32 bit installer as the > packages are more up to date on this version". > > There are different set of packages available when you run the 32 bit > installer versus the 64 bit installer. You can see the differences here: > > http://download.osgeo.org/osgeo4w/x86_64/release/ > http://download.osgeo.org/osgeo4w/x86/release/ > > In particular, Apache related packages only show up in the 32 bit installer. > > That seems very confusing to me. My goal is to run this on a 64 bit server > machine, e.g. Windows Server 2012, running in Amazon. > > Which installer should I use? > > If using OSGeo4W is not best practices then I'd appreciate that feedback. > It's just because no one has gotten around to supplying the 64bit windows Apache binaries. Apache.org does not appear to make them. You can probably combine this with osgeo4w https://www.apachelounge.com/download/win64/ Enjoy, Alex From richard.greenwood at gmail.com Wed May 14 18:37:05 2014 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 14 May 2014 19:37:05 -0600 Subject: [mapserver-users] Windows Installation In-Reply-To: <1400096999471-5140334.post@n6.nabble.com> References: <1400082109558-5140281.post@n6.nabble.com> <53739076.2070409@mapgears.com> <1400096999471-5140334.post@n6.nabble.com> Message-ID: On Wed, May 14, 2014 at 1:49 PM, trailway wrote: > Jerome, thanks for the comment "you should use the 32 bit installer as the > packages are more up to date on this version". > > There are different set of packages available when you run the 32 bit > installer versus the 64 bit installer. You can see the differences here: > > http://download.osgeo.org/osgeo4w/x86_64/release/ > http://download.osgeo.org/osgeo4w/x86/release/ > > In particular, Apache related packages only show up in the 32 bit > installer. > > That seems very confusing to me. My goal is to run this on a 64 bit server > machine, e.g. Windows Server 2012, running in Amazon. > > Which installer should I use? > > If using OSGeo4W is not best practices then I'd appreciate that feedback. > I'd recommend running Linux on Amazon. It will cost less and mapserver is better supported on Linux. But maybe you have other things that depend on Windows. Do you require PHP MapScript? If not, then I would recommend the gisinternals distribution for Windows. It is always current (even nightly builds) but it is built against an old version of PHP so it is not such a good choise for PHP MapScript users. -- Richard W. Greenwood, PLS www.greenwoodmap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From raizrobert at gmail.com Wed May 14 22:45:38 2014 From: raizrobert at gmail.com (Robert R. Raiz) Date: Thu, 15 May 2014 08:45:38 +0300 Subject: [mapserver-users] About FILTER and FILTERITEM Message-ID: Hello Jukka The post from stackexchange was mine. It was at the time when I migrated everything from 5.0 to 6.2 and the docs for 6.2 were not too clear. I too use FILTEITEM when I want to single out something (like the roads from Tiger edges); I am using Mapserver for 4 years now and I still do not have a clear patter to when and why I use Expressions and/or FILTERITEM. The more it resembles SQL, the better But your topic here helps a lot. :) p.s.: sorry if I messed up the mailing-list posting rules. I am very bad in replying to mailing lists. They always seemed hard to follow for me :-) >Hi, > >I started to play with filter and filteritem because I happened to see this question >http://gis.stackexchange.com/questions/65724/mapserver-6-2-concatenate-attributes-in-filter. I >thought that the idea was odd and unpractical but interesting and I thought it would be fast to test. >It was not but at least it was educational. > >I can do such concatenation simply with Spatialite data by using the layer DATA as >CONNECTION "\ms4w\apps\states_spl_3. >sqlite" >DATA "select * from states_view where STATE_NAME||STATE_FIPS='Illinois17'" > >I am ready to believe that such concatenation with FILTER is not possible with the 6.x series. >Other opinions? > >-Jukka Rahkonen- -- Raiz Roland Robert From jmckenna at gatewaygeomatics.com Thu May 15 05:00:36 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 15 May 2014 09:00:36 -0300 Subject: [mapserver-users] Update MapServer in demo.mapserver.org? In-Reply-To: References: Message-ID: <5374AC64.1040301@gatewaygeomatics.com> On 2014-05-14, 5:10 AM, Rahkonen Jukka (Tike) wrote: > Hi, > > I hope that right persons are reading this list. As a user I appreciate that there is a demo server online so I can try if some troubles we have are specific for us. However, the demo site demo.mapserver.org is running MapServer version 5.6.5 while we run 6.4 and those versions do not behave in a similar way. Could it be possible to update the site to use Mapserver 6.4? Version 5.6.5 is three years old so might be worth considering if updates could happen even more frequently in the future. > > -Jukka Rahkonen- > Hello, I set up those demo services on demo.mapserver.org several years ago, as I feel it is very very important for users to see examples (indeed this demo server is used heavily throughout the OGC docs on the MapServer site). I have been maintaining it closely ever since (Apache restarts etc.). That site lives on OSGeo's "Adhoc VM", and you can read more details of it here: http://wiki.osgeo.org/wiki/MapServer_at_AdhocVM and http://wiki.osgeo.org/wiki/AdhocVM With the OSGeo infrastructure is in sort of changeover mode (see http://wiki.osgeo.org/wiki/Infrastructure_Transition_Plan_2014), I am hesitant to upgrade any services until the Systems Committee solves that / the dust settles. Maybe you could add to that transition wiki with your thoughts/needs as well (I already did that earlier, so I encourage others to do so as well). But it is great to hear that this demo service is important, I have felt that way for a long time, I just rarely hear feedback on it. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jukka.rahkonen at mmmtike.fi Thu May 15 07:49:27 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Thu, 15 May 2014 14:49:27 +0000 Subject: [mapserver-users] Slow output to PNG format with Mapserver 6.4 Message-ID: Hi, We were running speed tests with Mapserver 6.4 on Linux 64-bit and we found that WMS output to GIF and JPEG was much faster (+30% or more) and much more stable (less variation in response times) than png8 outputformat. I was surprised because I have not observed the same on Windows. However, I have not tested GIF output on Windows seriously. I tried it on Linux because I had a feeling that our Mapserver wan unnecessary slow with png. Is this natural? Changing the png compression rate did not make much difference in speed, it mostly affected the size of generated files. My outputformat is taken from Mapserver documentation. OUTPUTFORMAT NAME 'AGG_Q' MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END -Jukka Rahkonen- From trailway at gmail.com Thu May 15 09:44:46 2014 From: trailway at gmail.com (trailway) Date: Thu, 15 May 2014 09:44:46 -0700 (PDT) Subject: [mapserver-users] Migrating from MS4W to GISInternals In-Reply-To: <1397271906035-5134687.post@n6.nabble.com> References: <20EA793B1BC710448656BDC9BD25C4A104C5A2E2@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <20EA793B1BC710448656BDC9BD25C4A104C5A336@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <20EA793B1BC710448656BDC9BD25C4A104C5A3A0@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <20EA793B1BC710448656BDC9BD25C4A104C5A437@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <20EA793B1BC710448656BDC9BD25C4A104C5A6B7@52ZHTX-D07-04D.area52.afnoapps.usaf.mil> <1397271906035-5134687.post@n6.nabble.com> Message-ID: <1400172286727-5140546.post@n6.nabble.com> Here is another recipe for IIS configuration: https://github.com/mapserver/mapserver/wiki/Installing-Mapserver-under-IIS-7.n-with-FastCGI Is there no where in the official documentation where the required configuration is documented? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Migrating-from-MS4W-to-GISInternals-tp5129224p5140546.html Sent from the Mapserver - User mailing list archive at Nabble.com. From trailway at gmail.com Thu May 15 12:44:23 2014 From: trailway at gmail.com (trailway) Date: Thu, 15 May 2014 12:44:23 -0700 (PDT) Subject: [mapserver-users] Windows Installation In-Reply-To: References: <1400082109558-5140281.post@n6.nabble.com> <53739076.2070409@mapgears.com> <1400096999471-5140334.post@n6.nabble.com> Message-ID: <1400183063003-5140587.post@n6.nabble.com> Thanks to everyone who responded. I appreciate all the advice. James - It is still confusing to me how exactly to configure IIS. I have found multiple sets of instructions. For me, Apache is an option and I was thinking that it might be easier to configure and use in conjunction with Map Server. Richard - Thanks for note on using LINUX. Unfortunately, I have other software which is Windows only so that isn't an option for me at this time. I noticed on your website that you have deployed Map Server on Amazon. If you any lessons learned from that then I'd sure appreciate it. After writing this I found that I had overlooked the statement "32bit/64bit don't contain the same set of packages/versions (compare) (purple is 32 bit only)" on the page: http://trac.osgeo.org/osgeo4w/ That gives you this link: http://download.osgeo.org/osgeo4w/versions_diff-x86-x86_64.html There are a lot of differences. trailway at gmail dot com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Windows-Installation-tp5140281p5140587.html Sent from the Mapserver - User mailing list archive at Nabble.com. From donald.kerr at dkerr.co.uk Thu May 15 12:49:38 2014 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 15 May 2014 20:49:38 +0100 Subject: [mapserver-users] Windows Installation In-Reply-To: <1400183063003-5140587.post@n6.nabble.com> References: <1400082109558-5140281.post@n6.nabble.com> <53739076.2070409@mapgears.com> <1400096999471-5140334.post@n6.nabble.com> <1400183063003-5140587.post@n6.nabble.com> Message-ID: <000601cf7076$ce7f3a10$6b7dae30$@dkerr.co.uk> I have experience of setting up mapserver/openlayers with IIS/FastCGI: older IIS versions through to the latest. Feel free to fire of specific questions and I will see if I can help. There are more issues with the later versions of IIS since a lot of stuff is turned off by default e.g. certain mime types like kml etc. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of trailway Sent: 15 May 2014 20:44 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Windows Installation Thanks to everyone who responded. I appreciate all the advice. James - It is still confusing to me how exactly to configure IIS. I have found multiple sets of instructions. For me, Apache is an option and I was thinking that it might be easier to configure and use in conjunction with Map Server. Richard - Thanks for note on using LINUX. Unfortunately, I have other software which is Windows only so that isn't an option for me at this time. I noticed on your website that you have deployed Map Server on Amazon. If you any lessons learned from that then I'd sure appreciate it. After writing this I found that I had overlooked the statement "32bit/64bit don't contain the same set of packages/versions (compare) (purple is 32 bit only)" on the page: http://trac.osgeo.org/osgeo4w/ That gives you this link: http://download.osgeo.org/osgeo4w/versions_diff-x86-x86_64.html There are a lot of differences. trailway at gmail dot com -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Windows-Installation-tp5140281p5140587.h tml Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4577 / Virus Database: 3950/7500 - Release Date: 05/15/14 From Robert.Vogt at rcis.com Thu May 15 12:14:54 2014 From: Robert.Vogt at rcis.com (Vogt, Robert (RCIS)) Date: Thu, 15 May 2014 19:14:54 +0000 Subject: [mapserver-users] Combine Layers Message-ID: <1491EB4E1D75164E940399B1F62D23CE457DD839@PDEXCH10DB1.corp.rcis.com> I need to combine several .Map files that look like this... MAP IMAGETYPE PNG24 CONFIG "PROJ_LIB" "C:/Program Files/MapServer/projlib/" EXTENT -180 -90 180 90 SIZE 256 256 FONTSET "C:/Program Files/MapServer/content/fontset.txt" IMAGECOLOR 255 255 255 TRANSPARENT ON PROJECTION AUTO END LAYER NAME "WaterLn" TYPE LINE STATUS ON LABELCACHE ON PROCESSING 'LABEL_NO_CLIP=1' CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" MAXGEOWIDTH .02 CONNECTION "server=stbisqlr3.dvcorp.rcis.com,5208;uid=Mapping01D;pwd=9GreenSnap#4D;Initial Catalog=NATIONALDB;Integrated Security=False" DATA "shape(geography),FULLNAME from NATIONALDB.sde.Water_ln_vw USING UNIQUE WATER_LN_ID USING SRID=4269" LABELITEM "FULLNAME" CLASS STYLE COLOR 000 102 204 OUTLINECOLOR 102 178 255 WIDTH 2 END LABEL COLOR 000 153 000 TYPE TRUETYPE FONT Arial SIZE 12 ANTIALIAS FALSE POSITION AUTO PARTIALS FALSE MINDISTANCE 2000 MINSCALEDENOM 20.00 END END PROJECTION AUTO END END END Into a single .Map file with several layers under 1 base layer...is there a way to do this? Robert Vogt | Web Developer 4 | 3501 Thurston Ave, Anoka MN 55303-1060 | Mobile:763-229-8388 | Robert.Vogt at RCIS.Com -------------- next part -------------- An HTML attachment was scrubbed... URL: From petrxsuk at gmail.com Fri May 16 08:11:53 2014 From: petrxsuk at gmail.com (Petr Suk) Date: Fri, 16 May 2014 17:11:53 +0200 Subject: [mapserver-users] EPSG: 3844 problem Message-ID: hi there, I am trying to set up WMS with EPSG:3844. The source data are GTiffs (EPSG:3844). The problem is, that GetMap request sends only blank images when 3844 is used. If the request is with EPSG:4326 everything is fine and the transformation is OK too. The mapfile looks like: MAP NAME Romania_Orthophoto SIZE 400 300 EXTENT 419332.586421 240848.815804 459780.109320 259741.205149 UNITS METERS SHAPEPATH "//data/romania/Olt/" IMAGECOLOR 255 255 255 IMAGETYPE PNG WEB METADATA "wms_title" "Romania OrthoPhoto" "wms_onlineresource" "http://localhost/cgi-bin/wms/romania" "wms_srs" "EPSG:4326 EPSG:3844" "wms_enable_request" "*" "wms_extent" "419332.586421 240848.815804 459780.109320 259741.205149" END END PROJECTION "init=epsg:3844" END LAYER NAME "orthophoto" STATUS ON TILEINDEX olt.shp OFFSITE 255 255 255 OPACITY 85 TYPE RASTER METADATA "wms_title" "orthophoto" END END END # GetMap looks like: SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=419102.35417775972746313,240475.32843947352375835,459895.23908429278526455,260119.92758433445123956&CRS=EPSG:3844&WIDTH=1521&HEIGHT=731&LAYERS=orthophoto&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE I am running mapserver 6.2.1 on Ubuntu 12.04 with proj 4.8.0 and gdal 1.10 Thanks a lot for any hints. Petr -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Fri May 16 08:47:46 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Fri, 16 May 2014 15:47:46 +0000 Subject: [mapserver-users] EPSG: 3844 problem Message-ID: Hi, EPSG:3844 seems to be a system with Northing-Easting coordinate axis order: http://epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::3844&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:3844 Two solutions: - Use WMS 1.1.1 - Flip the coordinates in the BBOX of WMS 1.3.0 -Jukka Rahkonen- Petr Suk wrote: hi there, I am trying to set up WMS with EPSG:3844. The source data are GTiffs (EPSG:3844). The problem is, that GetMap request sends only blank images when 3844 is used. If the request is with EPSG:4326 everything is fine and the transformation is OK too. The mapfile looks like: MAP NAME Romania_Orthophoto SIZE 400 300 EXTENT 419332.586421 240848.815804 459780.109320 259741.205149 UNITS METERS SHAPEPATH "//data/romania/Olt/" IMAGECOLOR 255 255 255 IMAGETYPE PNG WEB METADATA "wms_title" "Romania OrthoPhoto" "wms_onlineresource" "http://localhost/cgi-bin/wms/romania" "wms_srs" "EPSG:4326 EPSG:3844" "wms_enable_request" "*" "wms_extent" "419332.586421 240848.815804 459780.109320 259741.205149" END END PROJECTION "init=epsg:3844" END LAYER NAME "orthophoto" STATUS ON TILEINDEX olt.shp OFFSITE 255 255 255 OPACITY 85 TYPE RASTER METADATA "wms_title" "orthophoto" END END END # GetMap looks like: SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=419102.35417775972746313,240475.32843947352375835,459895.23908429278526455,260119.92758433445123956&CRS=EPSG:3844&WIDTH=1521&HEIGHT=731&LAYERS=orthophoto&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE I am running mapserver 6.2.1 on Ubuntu 12.04 with proj 4.8.0 and gdal 1.10 Thanks a lot for any hints. Petr -------------- next part -------------- An HTML attachment was scrubbed... URL: From petrxsuk at gmail.com Fri May 16 10:53:04 2014 From: petrxsuk at gmail.com (Petr Suk) Date: Fri, 16 May 2014 19:53:04 +0200 Subject: [mapserver-users] EPSG: 3844 problem In-Reply-To: References: Message-ID: Hi Jukka, perfect, both solutions work. Thanks a lot. Petr 2014-05-16 17:47 GMT+02:00 Rahkonen Jukka (Tike) : > Hi, > > > > EPSG:3844 seems to be a system with Northing-Easting coordinate axis order: > > > > > http://epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::3844&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:3844 > > > > Two solutions: > - Use WMS 1.1.1 > > - Flip the coordinates in the BBOX of WMS 1.3.0 > > > > -Jukka Rahkonen- > > > > Petr Suk wrote: > > > > hi there, > I am trying to set up WMS with EPSG:3844. The source data are GTiffs > (EPSG:3844). The problem is, that GetMap request sends only blank images > when 3844 is used. If the request is with EPSG:4326 everything is fine and > the transformation is OK too. > The mapfile looks like: > > MAP > NAME Romania_Orthophoto > SIZE 400 300 > EXTENT 419332.586421 240848.815804 459780.109320 259741.205149 > UNITS METERS > SHAPEPATH "//data/romania/Olt/" > IMAGECOLOR 255 255 255 > IMAGETYPE PNG > WEB > METADATA > "wms_title" "Romania OrthoPhoto" > "wms_onlineresource" "http://localhost/cgi-bin/wms/romania" > "wms_srs" "EPSG:4326 EPSG:3844" > "wms_enable_request" "*" > "wms_extent" "419332.586421 240848.815804 459780.109320 259741.205149" > END > END > PROJECTION > "init=epsg:3844" > END > LAYER > NAME "orthophoto" > STATUS ON > TILEINDEX olt.shp > OFFSITE 255 255 255 > OPACITY 85 > TYPE RASTER > METADATA > "wms_title" "orthophoto" > END > END > END > # > > GetMap looks like: > > SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=419102.35417775972746313,240475.32843947352375835,459895.23908429278526455,260119.92758433445123956&CRS=EPSG:3844&WIDTH=1521&HEIGHT=731&LAYERS=orthophoto&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE > > I am running mapserver 6.2.1 on Ubuntu 12.04 with proj 4.8.0 and gdal > 1.10 > > Thanks a lot for any hints. > > Petr > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Mon May 19 01:50:46 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 19 May 2014 08:50:46 +0000 Subject: [mapserver-users] MapCache DB Backend In-Reply-To: <53735AB1.5090200@tds-net.de> References: <53735AB1.5090200@tds-net.de> Message-ID: <6F331135492B944D90731CE93743D56806AC70@FS-EX-DB102.fs.sachsen.de> There's already support for BerkleyDB and TokyoCabinet as fast no-SQL backends. I've never seen some benchmarks and TokyoCabinet is currently not enabled in CMake build system. LevelDB hasn't support for concurrent processes. So it can only be used with worker and probably event MPM. I've already started implementing it but currently it has some problems. I'll will try to fix this in the next days and post back when there's a usable version. Von: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org]" im Auftrag von "TDS [tds at tds-net.de] Gesendet: Mittwoch, 14. Mai 2014 13:59 An: List (MapServer Users) Betreff: [mapserver-users] MapCache DB Backend Hello, is it possible that someone can implement LevelDB or similar into MapCache? http://highscalability.com/blog/2012/11/29/performance-data-for-leveldb-berkley-db-and-bangdb-for-rando.html -- MfG M. Martin mailto:tds at tds-net.de 1+1=10 You have a question? - 42 or RTFM. From d.robins at gisarts.nl Mon May 19 04:41:47 2014 From: d.robins at gisarts.nl (drobins) Date: Mon, 19 May 2014 04:41:47 -0700 (PDT) Subject: [mapserver-users] Mapserver shows all nodes on a GeometryCollection In-Reply-To: <6F331135492B944D90731CE93743D568069AD6@FS-EX-DB102.fs.sachsen.de> References: <1399989129707-5140004.post@n6.nabble.com> <6F331135492B944D90731CE93743D568069AD6@FS-EX-DB102.fs.sachsen.de> Message-ID: <1400499707165-5141149.post@n6.nabble.com> Hi Andreas, I took your layer filter and tried that. Yours gave me an error, so I adjusted it to this: FILTER (GeometryType( geom ) = 'POINT' AND "element_type" = 'Voorziening') This fixed the problem! The layer is only showing the points now that are supposed to be shown and no longer shows the nodes from the lines and polygons! Thanks! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5138525p5141149.html Sent from the Mapserver - User mailing list archive at Nabble.com. From d.robins at gisarts.nl Mon May 19 04:44:08 2014 From: d.robins at gisarts.nl (drobins) Date: Mon, 19 May 2014 04:44:08 -0700 (PDT) Subject: [mapserver-users] Mapserver shows all nodes on a GeometryCollection In-Reply-To: <1399271541032-5138520.post@n6.nabble.com> References: <1397544986926-5135064.post@n6.nabble.com> <534CE027.8030406@mapmedia.de> <1397561289303-5135113.post@n6.nabble.com> <534D19B8.3010500@mapmedia.de> <1397562605235-5135121.post@n6.nabble.com> <534D4023.6030103@mapmedia.de> <1397630448414-5135307.post@n6.nabble.com> <534E3784.3090903@mapmedia.de> <1399271541032-5138520.post@n6.nabble.com> Message-ID: <1400499848865-5141150.post@n6.nabble.com> Hi all, I figured I'd post it here as well as a new thread was opened earlier: See: http://osgeo-org.1560.x6.nabble.com/Re-Mapserver-shows-all-nodes-on-a-GeometryCollection-td5138525.html Hi Andreas, I took your layer filter and tried that. Yours gave me an error, so I adjusted it to this: FILTER (GeometryType( geom ) = 'POINT' AND "element_type" = 'Voorziening') This fixed the problem! The layer is only showing the points now that are supposed to be shown and no longer shows the nodes from the lines and polygons! Thanks! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5141150.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nsmith13 at nd.edu Mon May 19 09:05:12 2014 From: nsmith13 at nd.edu (Nathan Smith) Date: Mon, 19 May 2014 12:05:12 -0400 Subject: [mapserver-users] WFS with featureID, maxFeatures, & BBOX Message-ID: Hi all, I've been getting some unexpected results combining BBOX and MaxFeatures and was hoping someone might be able to explain why. I have a web app that uses OpenLayers with a MapServer WFS layer. A typical WFS request is POST with a bunch of featureID items, maxfeatures: 1000, & a bbox set by OL. It seems that when the featureID list gets over 1000, instead of first filtering by BBOX and then truncating maxFeatures it applies the limit first. Actually I?m not sure bbox is being applied at all. Any ideas? Is the the correct behavior? Thanks, - Nathan Smith -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Mon May 19 15:12:21 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 19 May 2014 22:12:21 +0000 Subject: [mapserver-users] WFS with featureID, maxFeatures, & BBOX In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D56806ACB1@FS-EX-DB102.fs.sachsen.de> AFAIK FeatureID and BBOX are mutually exclusive. ________________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org]" im Auftrag von "Nathan Smith [nsmith13 at nd.edu] Gesendet: Montag, 19. Mai 2014 18:05 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] WFS with featureID, maxFeatures, & BBOX Hi all, I've been getting some unexpected results combining BBOX and MaxFeatures and was hoping someone might be able to explain why. I have a web app that uses OpenLayers with a MapServer WFS layer. A typical WFS request is POST with a bunch of featureID items, maxfeatures: 1000, & a bbox set by OL. It seems that when the featureID list gets over 1000, instead of first filtering by BBOX and then truncating maxFeatures it applies the limit first. Actually I?m not sure bbox is being applied at all. Any ideas? Is the the correct behavior? Thanks, - Nathan Smith From jukka.rahkonen at mmmtike.fi Tue May 20 03:31:54 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Tue, 20 May 2014 10:31:54 +0000 Subject: [mapserver-users] WFS with featureID, maxFeatures, & BBOX Message-ID: Hi, Right, so it is written into WFS 1.1.0 standard (table 9a): FEATUREID (Mutually exclusive with FILTER and BBOX) You knew it, didn't you? Nobody says "mutually exclusive" in real life ;) -Jukka Rahkonen- Eichner, Andreas - SID wrote: > AFAIK FeatureID and BBOX are mutually exclusive. > ________________________________________ > Von: mapserver-users-bounces at lists.osgeo.org [mapserver-users- > bounces at lists.osgeo.org]" im Auftrag von "Nathan Smith > [nsmith13 at nd.edu] > Gesendet: Montag, 19. Mai 2014 18:05 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] WFS with featureID, maxFeatures, & BBOX > > Hi all, > > I've been getting some unexpected results combining BBOX and MaxFeatures > and was hoping someone might be able to explain why. I have a web app that > uses OpenLayers with a MapServer WFS layer. A typical WFS request is POST > with a bunch of featureID items, maxfeatures: 1000, & a bbox set by OL. It > seems that when the featureID list gets over 1000, instead of first filtering by > BBOX and then truncating maxFeatures it applies the limit first. Actually I'm not > sure bbox is being applied at all. > > Any ideas? Is the the correct behavior? > > Thanks, > - Nathan Smith > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Tue May 20 05:09:46 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Tue, 20 May 2014 12:09:46 +0000 Subject: [mapserver-users] About FILTER and FILTERITEM Message-ID: Hi, Obviously I was wrong and concatenation works with MS 6.x series as suggested by H?vart Tveite: FILTER ("[STATE_NAME]"+"[STATE_FIPS]"="Illinois17") This is a good question to Mapserver Guru Quiz final (no internet connections allowed). -Jukka- Rahkonen Jukka wrote: > > Hi, > > I started to play with filter and filteritem because I happened to see this > question http://gis.stackexchange.com/questions/65724/mapserver-6-2- > concatenate-attributes-in-filter. I thought that the idea was odd and unpractical > but interesting and I thought it would be fast to test. It was not but at least it > was educational. > > I can do such concatenation simply with Spatialite data by using the layer DATA > as CONNECTION "\ms4w\apps\states_spl_3.sqlite" > DATA "select * from states_view where STATE_NAME||STATE_FIPS='Illinois17'" > > I am ready to believe that such concatenation with FILTER is not possible with > the 6.x series. Other opinions? > > -Jukka Rahkonen- > > Lime, Steve D (MNIT) wrote: > > > > FIlters are used primarily under the hood for certain types of query operations. > > The main differences are: > > > > - FILTERs are defined in the native query language of the underlying > > driver. So for PostGIS you'd actually write a little SQL snippet. > > - FILTERs are applied when data are pulled from the underlying data > > source (like a WHERE clause) and have no impact on rendering choices. > > > > For drivers that don't have an native query capability (e.g. > > shapefiles) the syntax is identical to expressions. For drivers that > > do have a native query capability there really isn't much use for > > filters since you can just add a where clause to the data statement. > > > > Where I have found them useful sometimes is for simplifying class expressions. > > Let's say you have a shapefile and you only want to show features of a > > certain type, and then for those features you want to draw things > > differently based on another attribute. > > > > You could use logical expressions: > > > > CLASS > > EXPRESSION ([type] = 1 AND '[attr]' = 'a') > > ... > > END > > CLASS > > EXPRESSION ([type] = 1 AND '[attr]' = 'b') > > ... > > END > > > > or you could use a combination of FILTER and EXPRESSIONS > > > > FILTERITEM 'type' > > FILTER '1' > > > > CLASSITEM 'attr' > > CLASS > > EXPRESSION 'a' > > ... > > END > > CLASS > > EXPRESSION 'b' > > ... > > END > > > > Personal preference I guess and the second option is a bit more > > performant, especially in older versions. I guess my recommendation > > would be avoid FILTERs unless you have a good reason to use them. > > > > Steve > > > > ________________________________________ > > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users- > > bounces at lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) > > [jukka.rahkonen at mmmtike.fi] > > Sent: Wednesday, May 14, 2014 8:05 AM > > To: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] About FILTER and FILTERITEM > > > > Hi, > > > > Thank you very much, Christy. By your example I made some tests and > > now filters like this work for me FILTER (([WORKERS]>20000000) OR > > ("[STATE_FIPS]"="17")) > > > > The secret element was the right syntax for string attributes > > ("[STATE_FIPS]"="17"). > > Now when I know how it must be used I can find corresponding examples > > from the expression page of Mapserver documentation. Could someone > > explain shortly what is the difference between filter and expression? > > To me they seem to do pretty similar work. > > > > -Jukka Rahkonen- > > > > Christy Nieman wrote: > > > > > You do not need to set both FILTERITEM and FILTER. You can just set > > > FILTER to an expression using as many attributes as you need. e.g. > > > FILTER (( [POPULATION] < 500000 ) AND ("[DISPLAY]" == "1")). Just > > > like you can have multiple attributes in a class EXPRESSION. > > > > > > I think it's the section of the document that is key - the > > > "MapServer > > Expressions" > > > section talks about using FILTER and EXPRESSION in more complex > > > logical expressions, where as the section you quoted is talking > > > about basic string comparison. > > > > > > Christy > > > > > > On 14/05/14 08:03 AM, Rahkonen Jukka (Tike) wrote: > > > > Hi, > > > > > > > > From document page: http://mapserver.org/mapfile/expressions.html > > > > "To use a string comparison for filtering a LAYER, both FILTERITEM > > > > and FILTER > > > must be set. FILTERITEM is set to the attribute name. FILTER is set > > > to the value for comparison. The same rule applies to CLASSITEM in > > > the LAYER object and EXPRESSION in the CLASS object." > > > > > > > > That would mean that only one attribute from the data can be used > > > > for > > > building a filter. Is this true or just old information living in the document? > > > > > > > > -Jukka Rahkonen- > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From enricofiore80 at gmail.com Tue May 20 06:58:45 2014 From: enricofiore80 at gmail.com (Enrico Fiore) Date: Tue, 20 May 2014 15:58:45 +0200 Subject: [mapserver-users] msCGILoadMap(): Web application error CGI variable "map" is not set In-Reply-To: References: Message-ID: Hi, thanks for the answers. I have solved the error closing the tag on the inizalization file. To change method from POST to GET don't resolve nothing if I have understood, the difference bettween POST and GET, would be that in the first case the attributes that you pass are visible, instread with POST they aren't visible in the map url. Enrico 2014-05-14 15:42 GMT+02:00 Krishna Priya Patury : > You could try changing the form method from POST to GET in the > initialization file(secondo_i.html) to see what the map value is being sent > as. > > > On Wed, May 14, 2014 at 9:29 AM, Rahkonen Jukka (Tike) < > jukka.rahkonen at mmmtike.fi> wrote: > >> I don?t know what really fails because I have never used Mapserver this >> way. However, the error message seems to be true. >> >> When using Mapserver trough WMS the same message comes with a request >> >> >> http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities >> >> If map parameter is used with an invalid value the error message is >> different >> >> >> http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities&map=foo >> >> >> >> Have a look at the code and think if the name of your mapfile really goes >> into [map]. >> >> >> >> -Jukka Rahkonen- >> >> >> >> >> >> >> >> Enrico Fiore wrote: >> >> >> >> Sorry I have sent the first message for error, I conclude it in this post >> >> the template file text is: >> >> >> >> Seconda Mappa >> >>
>> >> >> >> >> >>
>> > width=640 height=480 order=2> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
>> >>
Zoom
>> Zoom In >> > value=1 [zoom_dir_1_check] >> >> Size >> > value=[zoomsize]> >>
>> Pan >> > value=0 [zoomdir_0_check]> >>
>>
>> >> >> >> >> >> >> >> >> >> >>
>> > value="Regioni" [Regioni_check]> >> Regioni >>
>> > value="Fiumi" [Fiumi_check]> >> Fiumi >>
>> > value="Province" [Province_check]> >> Province >>
>>
>> >> >> >> >>
>> >> >> >> >> >> My question is what I miss in my exercise. >> >> Can anyone help me? >> >> And sorry for to have split the message in two post. >> >> With thanks, >> >> Enrico >> >> >> >> >> >> 2014-05-14 14:58 GMT+02:00 Enrico Fiore : >> >> Hi, >> >> I tried to create a simple map application whit zoom and pan >> capabilities, following the instructions contained in the book "Beginning >> MapServer". >> I created a map file (secondo.map), an initialization file >> (secondo_i.html) and a template file (secondo.html). >> >> >> When I lunch the command >> >> http://localhost/secondo_i.html >> >> the browser shows this error message: >> >> msCGILoadMap(): Web application error. CGI variable "map" is not set. >> >> I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04 >> >> >> >> >> >> Text contained in initialization file: >> >> >> MapServer Seconda mappa >> >>
>> >> > > "/home/enrico/mapserverdata/secondo.map"> >> >> >>
>> >> >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue May 20 07:47:52 2014 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 20 May 2014 10:47:52 -0400 Subject: [mapserver-users] Question on RASTER layer with PROCESSING SCALE=min, max Message-ID: <537B6B18.6060502@swoodbridge.com> Hi All, I am trying to understand how a mapfile that I inherited is working. It has a raster layer like: LAYER NAME "modis_east_30_60" STATUS on TYPE raster PROJECTION "init=epsg:4326" END VALIDATION 'date' '.' END DATA "MODIS_SST_EAST/MODIS_SST_EAST-%date%.vrt" PROCESSING "SCALE=-222,3120" END The .vrt references a .tif in Int16 format and assigns a color pallette to it. The .vrt also defines itself as format Byte. It looks like the PROCESSING directive is getting applied to the .tif file when it is read mapping the -222 to 3120 range of values to 0-255 and then applying the color table to render the image. The documentation is a little vague on this point and only states: "This directive instructs the GDAL reader to pre-scale the incoming raster data. It is primarily used to scale 16bit or floating point data to the range 0-255, but can also be used to constrast stretch 8bit data. If an explicit min/max are provided then the input data is stretch (or squished) such that the minimum value maps to zero, and the maximum to 255. ..." So it is not clear (to me anyway) if this is scaling is getting applied when reading the .tif referenced in the .vrt or applied to the data returned by the .vrt. From experiments it appears to be getting applied to the .tif. Can anyone confirm or deny this or shed any light on it? Thanks, -Steve W From m.r.lassche at vu.nl Wed May 21 05:25:03 2014 From: m.r.lassche at vu.nl (Lassche, M.R.) Date: Wed, 21 May 2014 12:25:03 +0000 Subject: [mapserver-users] getfeatureinfo on clustered layer Message-ID: <9ABA1C68F57D824A92DE4EA3D23AABB677F93717@PEXMB002A.vu.local> Hi all, I try to get featureinfo on a layer which is clustered, What I want is to see all features in the cluster. Here is the layer definition LAYER METADATA WMS_TITLE "herkomst_lokaties" WMS_ABSTRACT "herkomst_lokaties" WMS_SRS "EPSG:28992" WMS_EXTENT "0 300000 300000 650000" WMS_ENABLE_REQUEST "*" gml_include_items "all" wms_include_items "all" END PROJECTION "init=epsg:28992" END NAME "rza_herkomst_lokaties" CONNECTION "xxx" CONNECTIONTYPE "xxx" DATA "geom from rza.vw_show_herkomst_lokaties USING UNIQUE id" STATUS ON DUMP TRUE TEMPLATE "templates/rza/rza_herkomst_lokaties.html" TOLERANCE 20 TOLERANCEUNITS PIXELS TYPE POINT UNITS PIXELS SIZEUNITS PIXELS SYMBOLSCALEDENOM 100000 CLUSTER MAXDISTANCE 20 REGION "ellipse" END PROCESSING "CLUSTER_GET_ALL_SHAPES=ON" CLASSITEM "Cluster:FeatureCount" CLASS NAME "< 5" EXPRESSION ([Cluster:FeatureCount]< 5) STYLE SYMBOL 'circle' COLOR 255 0 0 MINSIZE 7 MAXSIZE 15 SIZE 10 END END CLASS NAME "5 - 9" EXPRESSION ([Cluster:FeatureCount] >= 5 AND [Cluster:FeatureCount] < 10) STYLE SYMBOL 'circle' COLOR 255 0 0 MINSIZE 12 MAXSIZE 20 SIZE 15 END END CLASS NAME ">= 10" EXPRESSION ([Cluster:FeatureCount] >= 9 ) STYLE SYMBOL 'circle' COLOR 255 0 0 MINSIZE 17 MAXSIZE 25 SIZE 20 END END END The layer is displayed fine with correct clusters. Here is my tenplate file MapServer Template Sample Aantal: [Cluster:FeatureCount]
When doing the request with featurecount=1 I get the number of elements. With a higher feature count Cluster:FeatureCount returns nothing. All other fields are always empty. How can I get all features in a cluster? Thanks in advance Ronnie -------------- next part -------------- An HTML attachment was scrubbed... URL: From m18blackcat at hotmail.fr Thu May 22 03:11:19 2014 From: m18blackcat at hotmail.fr (blackcat18) Date: Thu, 22 May 2014 03:11:19 -0700 (PDT) Subject: [mapserver-users] Error using mapscript_csharp.dll in ASP.NET Message-ID: <1400753479644-5141842.post@n6.nabble.com> Hi every one, I am working for the first with mapserver and its mapscript. I wrote a test code in C# as follow: * protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) //First access to the map { System.Diagnostics.Debug.WriteLine("acc?s ? la map"); //send image stream from MapServer to ibMap //ibMap.ImageUrl = "MapStream.aspx?ACTION=INITMAP"; //initialize controls OSGeo.MapServer.mapObj map = new OSGeo.MapServer.mapObj("C://programme_map//data//csharptutorial.map"); for (int i = 0; i < map.numlayers; i++) { OSGeo.MapServer.layerObj layer = map.getLayer(i); System.Diagnostics.Debug.WriteLine(layer.name); } } }* And when I run the project i get this error : An exception of type 'System.TypeInitializationException' occurred in mapscript_csharp.dll but was not handled in user code Additional information: The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an exception. I do not know how to fix it. I am working with an OS x64 and I have no warning. Regards, mijo -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-using-mapscript-csharp-dll-in-ASP-NET-tp5141842.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at mmmtike.fi Thu May 22 06:15:40 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Thu, 22 May 2014 13:15:40 +0000 Subject: [mapserver-users] Mapserver does not accept SLD that it creates herself Message-ID: Hi, I found this one from stackexchange http://gis.stackexchange.com/questions/74846/error-using-sld-with-mapserver-based-wms-geobc/95945#95945 In short, Mapserver was asked to send a SLD file out with WMS GetStyles request but the very same Mapserver did not accept that SLD when it was used in WMS GetMap as &SLD= parameter. The reason was that a filter ogc:PropertyIsEqualTo was send out but Mapserver only accepts ogc:PropertyIsLike. Can this still happen with Mapserver 6.4 and 7.0? The failing SLD can still be captured from http://openmaps.gov.bc.ca/mapserver/base3?service=wms&version=1.1.1&request=GetStyles&layers=BC_MAJOR_CITIES_POINTS_500M -Jukka Rahkonen- From samuelmesa at gmail.com Thu May 22 12:44:40 2014 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Thu, 22 May 2014 14:44:40 -0500 Subject: [mapserver-users] Points cluster and WFS Client Message-ID: Hi, Is it possible to make a representation of clusters of points with a WFS Client connection?. I tried two alternative connection, but reports errors: 1. Connection WFS client. The representation is correct [1], but when I declare the cluster representation, the following error is reported: "msDrawMap (). handling Image Error Failed to draw layer named 'capital' msWFSLayerWhichShapes ():.. WFS Got HTTP connection error status 0 downloading WFS layer capital" 2. OGR connection, the GML output by GetFeature WFS. The deployment is done[2], but sometimes it the number of points and cluster is truncated, ie the number of points in cluster is lower. What would be the right way to do this?. Could you perform the connection and cluster representation with the WFS client? Thanks for the help. regards, Samuel Mesa. Attached the mapfile [3]. [1] https://docs.google.com/file/d/0B9J3L0xnIeLZMUhXRmlic3k0ckE ? capital_wfs.png ? [2] https://docs.google.com/file/d/0B9J3L0xnIeLZZ2RoX0tmM3YtcjA ? capital_gml.png ? [3] https://gist.github.com/samtux/600471bb221927824a77 -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From m18blackcat at hotmail.fr Fri May 23 02:56:32 2014 From: m18blackcat at hotmail.fr (blackcat18) Date: Fri, 23 May 2014 02:56:32 -0700 (PDT) Subject: [mapserver-users] MSSQL connection OGR with mapscript Message-ID: <1400838992268-5142084.post@n6.nabble.com> Hi every one, I am trying to get data from database using mapscript. whithout layer1.status, my output bitmap is blank with a size of 2000*2000. When I add layer1.status = 1, I get that error : /An exception of type 'System.ApplicationException' occurred in mapscript_csharp.dll but was not handled in user code Additional information: msDrawMap(): Image handling error. Failed to draw layer named 'GRADIN3'.;msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `GRADIN3'. Unable to initialize connection to the server for MSSQL:server=192.168.***.***//SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom), [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied./ I am connected to to my database with SQL Server Management so the connection is ok. May be the connection string is not written correctly. How can I correct it ? this is my code: / OSGeo.MapServer.mapObj map = new OSGeo.MapServer.mapObj("C://Users//Sweet live//SkyDrive//Projet OPENFIELD//MapServer//Programme//WebForm_Map//mapTest.map"); map.setExtent(18118500, 3877472, 18138000, 3892012); map.setSize(2000, 2000); // Ge the first layer and set a classification attribute OSGeo.MapServer.layerObj layer1 = new OSGeo.MapServer.layerObj(map); layer1.name = "GRADIN3"; layer1.type = OSGeo.MapServer.MS_LAYER_TYPE.MS_LAYER_POLYGON; //layer1.status = 1; //layer1.debug = 1; layer1.connectiontype = OSGeo.MapServer.MS_CONNECTION_TYPE.MS_OGR; layer1.connection = "MSSQL:server=192.168.***.***//SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom)"; //layer1.data = "select geom from SFP_Siege_CAD"; OSGeo.MapServer.classObj classSiege = new OSGeo.MapServer.classObj(layer1); classSiege.name ="geom"; OSGeo.MapServer.styleObj styleSiege = new OSGeo.MapServer.styleObj(classSiege); styleSiege.color.setRGB(125,125,125); classSiege.insertStyle(styleSiege,0); // map.save("output.map"); OSGeo.MapServer.imageObj mapimage = map.draw(); mapimage.save("map.png", map);/ and the output .map: /MAP EXTENT 18118500 3874992 18138000 3894492 FONTSET "fonts\fonts.list" IMAGETYPE "png" NAME "MS" SIZE 2000 2000 STATUS ON UNITS METERS OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB END # WEB LAYER CONNECTION "MSSQL:server=192.168.***.***\SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom)" CONNECTIONTYPE OGR DEBUG ON NAME "GRADIN3" STATUS ON TILEITEM "location" TYPE POLYGON UNITS METERS CLASS NAME "geom" STYLE ANGLE 0 COLOR 125 125 125 OFFSET 0 0 END # STYLE STYLE ANGLE 0 COLOR 125 125 125 OFFSET 0 0 END # STYLE END # CLASS END # LAYER END # MAP/ -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MSSQL-connection-OGR-with-mapscript-tp5142084.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri May 23 03:36:22 2014 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 23 May 2014 12:36:22 +0200 Subject: [mapserver-users] MSSQL connection OGR with mapscript In-Reply-To: <1400838992268-5142084.post@n6.nabble.com> References: <1400838992268-5142084.post@n6.nabble.com> Message-ID: Hi, If you are connecting to a named instance you should use backslash in the server name of the connection string. Best regards, Tamas 2014-05-23 11:56 GMT+02:00 blackcat18 : > Hi every one, > > I am trying to get data from database using mapscript. whithout > layer1.status, my output bitmap is blank with a size of 2000*2000. > > When I add layer1.status = 1, I get that error : > > /An exception of type 'System.ApplicationException' occurred in > mapscript_csharp.dll but was not handled in user code > Additional information: msDrawMap(): Image handling error. Failed to draw > layer named 'GRADIN3'.;msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer `GRADIN3'. > Unable to initialize connection to the server for > > MSSQL:server=192.168.***.***//SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom), > [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or > access denied./ > > I am connected to to my database with SQL Server Management so the > connection is ok. May be the connection string is not written correctly. > How > can I correct it ? > > > this is my code: > > / OSGeo.MapServer.mapObj map = new > OSGeo.MapServer.mapObj("C://Users//Sweet live//SkyDrive//Projet > OPENFIELD//MapServer//Programme//WebForm_Map//mapTest.map"); > map.setExtent(18118500, 3877472, 18138000, 3892012); > map.setSize(2000, 2000); > // Ge the first layer and set a classification attribute > OSGeo.MapServer.layerObj layer1 = new > OSGeo.MapServer.layerObj(map); > layer1.name = "GRADIN3"; > layer1.type = OSGeo.MapServer.MS_LAYER_TYPE.MS_LAYER_POLYGON; > //layer1.status = 1; > //layer1.debug = 1; > layer1.connectiontype = > OSGeo.MapServer.MS_CONNECTION_TYPE.MS_OGR; > layer1.connection = > > "MSSQL:server=192.168.***.***//SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom)"; > //layer1.data = "select geom from SFP_Siege_CAD"; > OSGeo.MapServer.classObj classSiege = new > OSGeo.MapServer.classObj(layer1); > classSiege.name ="geom"; > OSGeo.MapServer.styleObj styleSiege = new > OSGeo.MapServer.styleObj(classSiege); > styleSiege.color.setRGB(125,125,125); > classSiege.insertStyle(styleSiege,0); > // map.save("output.map"); > OSGeo.MapServer.imageObj mapimage = map.draw(); > mapimage.save("map.png", map);/ > > and the output .map: > > /MAP > EXTENT 18118500 3874992 18138000 3894492 > FONTSET "fonts\fonts.list" > IMAGETYPE "png" > NAME "MS" > SIZE 2000 2000 > STATUS ON > UNITS METERS > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE RGB > TRANSPARENT FALSE > END # OUTPUTFORMAT > > LEGEND > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > OFFSET 0 0 > SHADOWSIZE 1 1 > TYPE BITMAP > END # LABEL > STATUS OFF > END # LEGEND > > QUERYMAP > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END # QUERYMAP > > SCALEBAR > IMAGECOLOR 255 255 255 > INTERVALS 4 > LABEL > SIZE MEDIUM > OFFSET 0 0 > SHADOWSIZE 1 1 > TYPE BITMAP > END # LABEL > SIZE 200 3 > STATUS OFF > UNITS MILES > END # SCALEBAR > > WEB > END # WEB > > LAYER > CONNECTION > > "MSSQL:server=192.168.***.***\SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom)" > CONNECTIONTYPE OGR > DEBUG ON > NAME "GRADIN3" > STATUS ON > TILEITEM "location" > TYPE POLYGON > UNITS METERS > CLASS > NAME "geom" > STYLE > ANGLE 0 > COLOR 125 125 125 > OFFSET 0 0 > END # STYLE > STYLE > ANGLE 0 > COLOR 125 125 125 > OFFSET 0 0 > END # STYLE > END # CLASS > END # LAYER > > END # MAP/ > > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/MSSQL-connection-OGR-with-mapscript-tp5142084.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlapointe at mapgears.com Fri May 23 12:17:20 2014 From: jlapointe at mapgears.com (Jessica Lapointe) Date: Fri, 23 May 2014 15:17:20 -0400 Subject: [mapserver-users] GSoC 2014 - ScribeUI: MapServer Mapfile Development Made Easy Message-ID: Hi all, I am very pleased to announce that ScribeUI was accepted as a MapServer Google Summer of Code 2014 project. Development started officially this week, and I am very happy to be working on that project this summer for a second year. ** What is ScribeUI ?* ScribeUI is a web-based tool for mapfile creation and management that allows editing and immediately previewing mapfiles in a single application. Features like points of interests, map extent calculation, and an alternative mapfile syntax, named Scribe[1], makes the creation of mapfiles much faster. It's a tool to make life easier for mapfile developers, created by mapfile developers. ** Try ScribeUI Now on the New Demo* The first goal of the summer is already accomplished, you can now easily try out ScribeUI on the demo: *http://demo.scribeui.org/ * This is the pyramid version that I am working on making available for installation as soon as possible. All data, workspaces and maps are erased every day so you can play around with the app and the Scribe syntax. Keep in mind the quirks and bugs are going to be worked on this summer! ** ScribeUI's advancement since last year* Development slowed down at the end of the GSoC 2013, but the project didn't stop! A new MapCache plugin was added and bugs were fixed. One of my colleagues at Mapgears, Charles-?ric Bourget, took on the challenge of replacing the back-end from Flask[3] to Pyramid[4]. His work is however not yet available for installation, merging this with the current version of ScribeUI is part of this summer's goals. ** This Summer's Goals* Three principal things were needed for ScribeUI to really shine, and these are the main goals for this summer: 1. It needs an online *demo*, so that the community can feel it before installing it. 2. It needs to be *easier to install*. At the end of last summer, ScribeUI had a very tedious installation procedure. It?s gotten better since then, but there is still some work to be done. 3. ScribeUI needs to be more *stable*. It still has a lot of bugs, which are very unappealing. ** Conclusion* Feel free to ask any questions about the project. This summer is about getting ScribeUI to be a stable, pleasant, productivity enhancing experience for Mapserver users. That is why suggestions and opinions are highly valuable! Important links: ScribeUI website: http://scribeui.org ScribeUI Demo: http://demo.scribeui.org/ ScribeUI repository: https://github.com/mapgears/scribeui [1] http://scribeui.org/scribe-syntax.html [2] http://flask.pocoo.org/ [3] http://www.pylonsproject.org/ Thanks a lot, Jessica Lapointe -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Fri May 23 14:04:13 2014 From: wal3 at mindspring.com (Worth Lutz) Date: Fri, 23 May 2014 17:04:13 -0400 Subject: [mapserver-users] Combine Layers In-Reply-To: <1491EB4E1D75164E940399B1F62D23CE457DD839@PDEXCH10DB1.corp.rcis.com> References: <1491EB4E1D75164E940399B1F62D23CE457DD839@PDEXCH10DB1.corp.rcis.com> Message-ID: Yes a mapfile can have multiple layers. They are drawn in the order given in the mapfile. The first would then be the base layer. I hope this points you in the right direction. Worth Lutz _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS) Sent: Thursday, May 15, 2014 3:15 PM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Combine Layers I need to combine several .Map files that look like this. MAP IMAGETYPE PNG24 CONFIG "PROJ_LIB" "C:/Program Files/MapServer/projlib/" EXTENT -180 -90 180 90 SIZE 256 256 FONTSET "C:/Program Files/MapServer/content/fontset.txt" IMAGECOLOR 255 255 255 TRANSPARENT ON PROJECTION AUTO END LAYER NAME "WaterLn" TYPE LINE STATUS ON LABELCACHE ON PROCESSING 'LABEL_NO_CLIP=1' CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" MAXGEOWIDTH .02 CONNECTION "server=stbisqlr3.dvcorp.rcis.com,5208;uid=Mapping01D;pwd=9GreenSnap#4D;Init ial Catalog=NATIONALDB;Integrated Security=False" DATA "shape(geography),FULLNAME from NATIONALDB.sde.Water_ln_vw USING UNIQUE WATER_LN_ID USING SRID=4269" LABELITEM "FULLNAME" CLASS STYLE COLOR 000 102 204 OUTLINECOLOR 102 178 255 WIDTH 2 END LABEL COLOR 000 153 000 TYPE TRUETYPE FONT Arial SIZE 12 ANTIALIAS FALSE POSITION AUTO PARTIALS FALSE MINDISTANCE 2000 MINSCALEDENOM 20.00 END END PROJECTION AUTO END END END Into a single .Map file with several layers under 1 base layer.is there a way to do this? Robert Vogt | Web Developer 4 | 3501 Thurston Ave, Anoka MN 55303-1060 | Mobile:763-229-8388 | Robert.Vogt at RCIS.Com -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuelmesa at gmail.com Fri May 23 14:47:09 2014 From: samuelmesa at gmail.com (samuelmesa at gmail.com) Date: Fri, 23 May 2014 16:47:09 -0500 Subject: [mapserver-users] GSoC 2014 - ScribeUI: MapServer Mapfile Development Made Easy In-Reply-To: References: Message-ID: Thank you Jessica. Good job!!! 2014-05-23 14:17 GMT-05:00 Jessica Lapointe : > Hi all, > > I am very pleased to announce that ScribeUI was accepted as a MapServer > Google Summer of Code 2014 project. Development started officially this > week, and I am very happy to be working on that project this summer for a > second year. > > > ** What is ScribeUI ?* > > ScribeUI is a web-based tool for mapfile creation and management that > allows editing and immediately previewing mapfiles in a single application. > > Features like points of interests, map extent calculation, and an > alternative mapfile syntax, named Scribe[1], makes the creation of mapfiles > much faster. > > It's a tool to make life easier for mapfile developers, created by > mapfile developers. > > ** Try ScribeUI Now on the New Demo* > > The first goal of the summer is already accomplished, you can now easily > try out ScribeUI on the demo: > > > *http://demo.scribeui.org/ * > > This is the pyramid version that I am working on making available for > installation as soon as possible. > > All data, workspaces and maps are erased every day so you can play around > with the app and the Scribe syntax. Keep in mind the quirks and bugs are > going to be worked on this summer! > > > ** ScribeUI's advancement since last year* > > Development slowed down at the end of the GSoC 2013, but the project > didn't stop! A new MapCache plugin was added and bugs were fixed. > > One of my colleagues at Mapgears, Charles-?ric Bourget, took on the > challenge of replacing the back-end from Flask[3] to Pyramid[4]. His work > is however not yet available for installation, merging this with the > current version of ScribeUI is part of this summer's goals. > > > ** This Summer's Goals* > > Three principal things were needed for ScribeUI to really shine, and these > are the main goals for this summer: > > 1. It needs an online *demo*, so that the community can feel it before > installing it. > > 2. It needs to be *easier to install*. At the end of last summer, > ScribeUI had a very tedious installation procedure. It?s gotten better > since then, but there is still some work to be done. > > 3. ScribeUI needs to be more *stable*. It still has a lot of bugs, which > are very unappealing. > > > ** Conclusion* > > Feel free to ask any questions about the project. This summer is about > getting ScribeUI to be a stable, pleasant, productivity enhancing > experience for Mapserver users. That is why suggestions and opinions are > highly valuable! > > > Important links: > > ScribeUI website: > http://scribeui.org > > ScribeUI Demo: > http://demo.scribeui.org/ > > ScribeUI repository: > https://github.com/mapgears/scribeui > > [1] http://scribeui.org/scribe-syntax.html > [2] http://flask.pocoo.org/ > [3] http://www.pylonsproject.org/ > > > Thanks a lot, > Jessica Lapointe > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --- .~. / v \ // \\ /( )\ ^`~'^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathias.cunault at inrap.fr Sat May 24 08:38:18 2014 From: mathias.cunault at inrap.fr (mathias cunault) Date: Sat, 24 May 2014 17:38:18 +0200 Subject: [mapserver-users] post to be accepted Message-ID: hello, (beginner with mapserver 6.4.2) Despite researchs on the forum, i did not find answers to my question. I cant perform an itemquery. I read that a validation block has to be created in LAYER (mapfile), it looks like : VALIDATION "numope" "[a-z]+" END I set qlayer, qitem and querystring in template and, but i get : mapserv(): Web application error. Parameter 'qstring' value fails to validate. msValidateParameter(): Regular expression error. Parameter pattern validation failed. it means that my regular exp is wrong or that at least 1 value in the field numope doesn't fit this exp ? thx And the attribute in validation has to appear in a classe of the layer or not ? Thx -- *Mathias Cunaultcharg? d?op?ration et de recherche* *Inrap Tours - 148 av. Maginot37000 TOURS06 32 05 98 96mathias.cunault at inrap.fr * www.inrap.fr abonnez-vous ? la lettre d'information de l'Inrap : http://www.inrap.fr/newsletter.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathias.cunault at inrap.fr Sat May 24 13:39:34 2014 From: mathias.cunault at inrap.fr (mathias cunault) Date: Sat, 24 May 2014 22:39:34 +0200 Subject: [mapserver-users] itemquery and validation Message-ID: > hello, > > (beginner with mapserver 6.4.2) > Despite researchs on the forum, i did not find answers to my question. > > I cant perform an itemquery. > I read that a validation block has to be created in LAYER (mapfile), it looks like : > > VALIDATION > "numope" "[a-z]+" > END > > I set qlayer, qitem and querystring in template and, but i get : > mapserv(): Web application error. Parameter 'qstring' value fails to validate. msValidateParameter(): Regular expression error. Parameter pattern validation failed. > > it means that my regular exp is wrong or that at least 1 value in the field numope doesn't fit this exp ? > > > And the attribute in validation has to appear in a classe of the layer or not ? > > Thx > mathias.cunault at inrap.fr > www.inrap.fr > abonnez-vous ? la lettre d'information de l'Inrap : http://www.inrap.fr/newsletter.php > > -- *Mathias Cunaultcharg? d?op?ration et de recherche* *Inrap Tours - 148 av. Maginot37000 TOURS06 32 05 98 96mathias.cunault at inrap.fr * www.inrap.fr abonnez-vous ? la lettre d'information de l'Inrap : http://www.inrap.fr/newsletter.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Sun May 25 00:44:49 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Sun, 25 May 2014 07:44:49 +0000 Subject: [mapserver-users] post to be accepted In-Reply-To: References: Message-ID: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> Have you set MODE=ITEMNQUERY? To me it seems you haven't and MapServer tries to use QSTRING for runtime substitution which it isn't configured for. HTH Von: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org]" im Auftrag von "mathias cunault [mathias.cunault at inrap.fr] Gesendet: Samstag, 24. Mai 2014 17:38 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] post to be accepted hello, (beginner with mapserver 6.4.2) Despite researchs on the forum, i did not find answers to my question. I cant perform an itemquery. I read that a validation block has to be created in LAYER (mapfile), it looks like : VALIDATION "numope" "[a-z]+" END I set qlayer, qitem and querystring in template and, but i get : mapserv(): Web application error. Parameter 'qstring' value fails to validate. msValidateParameter(): Regular expression error. Parameter pattern validation failed. it means that my regular exp is wrong or that at least 1 value in the field numope doesn't fit this exp ? thx And the attribute in validation has to appear in a classe of the layer or not ? Thx -- Mathias Cunault charg? d?op?ration et de recherche Inrap Tours - 148 av. Maginot 37000 TOURS 06 32 05 98 96 mathias.cunault at inrap.fr www.inrap.fr abonnez-vous ? la lettre d'information de l'Inrap : http://www.inrap.fr/newsletter.php From mathias.cunault at inrap.fr Sun May 25 01:07:06 2014 From: mathias.cunault at inrap.fr (Leehan) Date: Sun, 25 May 2014 01:07:06 -0700 (PDT) Subject: [mapserver-users] post to be accepted In-Reply-To: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> References: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> Message-ID: <1401005226299-5142387.post@n6.nabble.com> First, sorry did a mistake:2posts same subject . I did set mode = itemquery like i did for query and nquery. These 2 work fine. Weird ... Thx -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-post-to-be-accepted-tp5142386p5142387.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Mon May 26 01:34:20 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 26 May 2014 08:34:20 +0000 Subject: [mapserver-users] post to be accepted In-Reply-To: <1401005226299-5142387.post@n6.nabble.com> References: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> <1401005226299-5142387.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D56806B275@FS-EX-DB102.fs.sachsen.de> Can you post the URL of your request and at least the relevant MAP file part? Enabling the debug options is probably a good idea. > I did set mode = itemquery like i did for query and nquery. > These 2 work fine. From mathias.cunault at inrap.fr Mon May 26 01:54:13 2014 From: mathias.cunault at inrap.fr (Leehan) Date: Mon, 26 May 2014 01:54:13 -0700 (PDT) Subject: [mapserver-users] itemquery and validation In-Reply-To: <6F331135492B944D90731CE93743D56806B275@FS-EX-DB102.fs.sachsen.de> References: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> <1401005226299-5142387.post@n6.nabble.com> <6F331135492B944D90731CE93743D56806B275@FS-EX-DB102.fs.sachsen.de> Message-ID: <1401094453597-5142486.post@n6.nabble.com> of course and thx. here s the url : http://localhost/cgi-bin/mapserv.exe?map=C%3A%5COSGeo4W%5Capache%5Chtdocs%5Cpostgis.map&imgext=459919.257821+6611950.676783+660865.099955+6762581.441074&imgxy=320+240&layer=communes&layer=emprise&layer=+&mode=browse&submit=Refresh&zoom=1&map_emprise_tolerance=%5Bemprise_tolerance%5D&qlayer=%5Bqlayer%5D&qitem=%5Bqitem%5D&qstring=%5Bqstring%5D here s the part of the mapfile : LAYER NAME emprise STATUS on TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=10.3.1.51 dbname=xxx user=xxx password=xxx port=5432" DATA "geom from activite.emprise using unique gid using srid = 2154" TOLERANCE 1 #tampon autour du clic souris TOLERANCEUNITS kilometers VALIDATION "numope" "^[A-Z]{1}[0-9]{6}$" END #end validation CLASSITEM "tpeope" and here s part of template :
Map Mode:
... tr> couche requet?e (qlayer) : (qitem) : (qstring) : Finally, i have no hidden mapserver variables defined (like for example : ) concerning queryitem. Does it help ? Eichner, Andreas - SID-NLKM wrote > Can you post the URL of your request and at least the relevant MAP file > part? Enabling the debug options is probably a good idea. > >> I did set mode = itemquery like i did for query and nquery. >> These 2 work fine. > _______________________________________________ > mapserver-users mailing list > mapserver-users at .osgeo > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-post-to-be-accepted-tp5142386p5142486.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Mon May 26 05:14:58 2014 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Mon, 26 May 2014 12:14:58 +0000 Subject: [mapserver-users] itemquery and validation In-Reply-To: <1401094453597-5142486.post@n6.nabble.com> References: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> <1401005226299-5142387.post@n6.nabble.com> <6F331135492B944D90731CE93743D56806B275@FS-EX-DB102.fs.sachsen.de> <1401094453597-5142486.post@n6.nabble.com> Message-ID: <6F331135492B944D90731CE93743D56806B2AF@FS-EX-DB102.fs.sachsen.de> > here s the part of the mapfile : > LAYER > NAME emprise > STATUS on > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "host=10.3.1.51 dbname=xxx user=xxx > password=xxx port=5432" > DATA "geom from activite.emprise using unique gid using srid = 2154" > TOLERANCE 1 #tampon autour du clic souris > TOLERANCEUNITS kilometers > VALIDATION > "numope" "^[A-Z]{1}[0-9]{6}$" > END #end validation > CLASSITEM "tpeope" > According to the source you need to define a validation pattern for qstring on LAYER or in WEB section, too. This looks a bit weird to me as you specify the QITEM. Therefore a single validation pattern for QSTRING must cover all possible QITEM values... I've never used such modes but may be some else can shed some light on this. From Jorrit.Goddijn at meteogroup.com Tue May 27 02:50:32 2014 From: Jorrit.Goddijn at meteogroup.com (Jorrit Goddijn) Date: Tue, 27 May 2014 09:50:32 +0000 Subject: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript? Message-ID: <8D5E08D02835794F97C9CB3EE47CB7688B81B672@nl-wag-ex1> Hi all, I'm drawing layers based on GRIB data files. Each file contains several bands (datasets). I can access these datasets by setting the PROCESSING attribute on the LAYER object. As in this example: ######################### LAYER NAME "current_grid" TYPE POINT CONNECTIONTYPE uvraster DATA "/var/www/mapserver/data/grib/routeguard/4nwwin99_2013110412.grb2" #v and u-component of current PROCESSING "BANDS=1,2" PROCESSING "UV_SPACING=20" CLASS STYLE SYMBOL "arrow" ANGLE [uv_angle] SIZE [uv_length] COLOR 255 0 0 END # style END # class PROJECTION #"init=epsg:4326" "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" END END # layer #################### This works fine. But I need to set the PROCESSING values dynamically through mapscript. If I add this code to my script (which works fine without these lines): #################### $map = ms_newMapObj($_GET['MAP']); $current_layer = $map->getlayerbyname('current_grid'); // both of these do not work //$current_layer->set('processing', 'BANDS=1,2')); //$current_layer->setprocessing('BANDS=1,2')); $request = createRequest(""); $result = $map->owsdispatch($request); #################### I get an internal server error (500). It seems that setting any attribute via the layer->set() method causes this behavior. I'm migrating from MS 5.4, does the set method still work as expected? Thank you Jorrit Goddijn jorrit.goddijn at meteogroup.com MeteoGroup -------------- next part -------------- An HTML attachment was scrubbed... URL: From mandschulz at googlemail.com Tue May 27 04:33:40 2014 From: mandschulz at googlemail.com (Michael Schulz) Date: Tue, 27 May 2014 13:33:40 +0200 Subject: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript? In-Reply-To: <8D5E08D02835794F97C9CB3EE47CB7688B81B672@nl-wag-ex1> References: <8D5E08D02835794F97C9CB3EE47CB7688B81B672@nl-wag-ex1> Message-ID: Hi Jorrit, maybe it's just a type in the second setprocessing line of your example: $current_layer->setprocessing('BANDS=1,2'); #removed second bracket Cheers, Michael 2014-05-27 11:50 GMT+02:00 Jorrit Goddijn : > Hi all, > > > > I'm drawing layers based on GRIB data files. Each file contains several > bands (datasets). I can access these datasets by setting the PROCESSING > attribute on the LAYER object. As in this example: > > > > ######################### > > LAYER > > NAME "current_grid" > > TYPE POINT > > CONNECTIONTYPE uvraster > > DATA "/var/www/mapserver/data/grib/routeguard/4nwwin99_2013110412.grb2" > #v and u-component of current > > PROCESSING "BANDS=1,2" > > PROCESSING "UV_SPACING=20" > > CLASS > > STYLE > > SYMBOL "arrow" > > ANGLE [uv_angle] > > SIZE [uv_length] > > COLOR 255 0 0 > > END # style > > END # class > > > > PROJECTION > > #"init=epsg:4326" > > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" > > END > > END # layer > > #################### > > > > This works fine. But I need to set the PROCESSING values dynamically > through mapscript. If I add this code to my script (which works fine > without these lines): > > > > #################### > > $map = ms_newMapObj($_GET['MAP']); > > $current_layer = $map->getlayerbyname('current_grid'); > > // both of these do not work > > //$current_layer->set('processing', 'BANDS=1,2')); > > //$current_layer->setprocessing('BANDS=1,2')); > > $request = createRequest(""); > > $result = $map->owsdispatch($request); > > #################### > > > > I get an internal server error (500). It seems that setting any attribute > via the layer->set() method causes this behavior. I'm migrating from MS > 5.4, does the set method still work as expected? > > > > Thank you > > > > Jorrit Goddijn > > jorrit.goddijn at meteogroup.com > > MeteoGroup > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------------------------------------------------- Michael Schulz Bahnhofstr. 62 D-63477 Maintal -------------- next part -------------- An HTML attachment was scrubbed... URL: From theduckylittle at gmail.com Tue May 27 07:09:34 2014 From: theduckylittle at gmail.com (Dan Little) Date: Tue, 27 May 2014 09:09:34 -0500 Subject: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript? In-Reply-To: References: <8D5E08D02835794F97C9CB3EE47CB7688B81B672@nl-wag-ex1> Message-ID: You might want to reconsider how your script is built. Instead of loading up the Mapfile and tweaking small parameters with MapScript, consider converting your mapfile to a template language. This way you can forumulate the mapfile, load it as a string, do the appropriate substitutions, then use PHP to serve it as WxS. This usually ends up being faster, easier to maintain, and more flexible over the long term. On Tue, May 27, 2014 at 6:33 AM, Michael Schulz wrote: > Hi Jorrit, > > maybe it's just a type in the second setprocessing line of your example: > > $current_layer->setprocessing('BANDS=1,2'); #removed second bracket > > Cheers, Michael > > > 2014-05-27 11:50 GMT+02:00 Jorrit Goddijn : >> >> Hi all, >> >> >> >> I?m drawing layers based on GRIB data files. Each file contains several >> bands (datasets). I can access these datasets by setting the PROCESSING >> attribute on the LAYER object. As in this example: >> >> >> >> ######################### >> >> LAYER >> >> NAME "current_grid" >> >> TYPE POINT >> >> CONNECTIONTYPE uvraster >> >> DATA >> "/var/www/mapserver/data/grib/routeguard/4nwwin99_2013110412.grb2" #v and >> u-component of current >> >> PROCESSING "BANDS=1,2" >> >> PROCESSING "UV_SPACING=20" >> >> CLASS >> >> STYLE >> >> SYMBOL "arrow" >> >> ANGLE [uv_angle] >> >> SIZE [uv_length] >> >> COLOR 255 0 0 >> >> END # style >> >> END # class >> >> >> >> PROJECTION >> >> #"init=epsg:4326" >> >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" >> >> END >> >> END # layer >> >> #################### >> >> >> >> This works fine. But I need to set the PROCESSING values dynamically >> through mapscript. If I add this code to my script (which works fine without >> these lines): >> >> >> >> #################### >> >> $map = ms_newMapObj($_GET['MAP']); >> >> $current_layer = $map->getlayerbyname('current_grid'); >> >> // both of these do not work >> >> //$current_layer->set('processing', 'BANDS=1,2')); >> >> //$current_layer->setprocessing('BANDS=1,2')); >> >> $request = createRequest(""); >> >> $result = $map->owsdispatch($request); >> >> #################### >> >> >> >> I get an internal server error (500). It seems that setting any attribute >> via the layer->set() method causes this behavior. I?m migrating from MS 5.4, >> does the set method still work as expected? >> >> >> >> Thank you >> >> >> >> Jorrit Goddijn >> >> jorrit.goddijn at meteogroup.com >> >> MeteoGroup >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ----------------------------------------------------------- > Michael Schulz > > Bahnhofstr. 62 > D-63477 Maintal > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue May 27 08:23:20 2014 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 27 May 2014 15:23:20 +0000 Subject: [mapserver-users] itemquery and validation In-Reply-To: <6F331135492B944D90731CE93743D56806B2AF@FS-EX-DB102.fs.sachsen.de> References: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> <1401005226299-5142387.post@n6.nabble.com> <6F331135492B944D90731CE93743D56806B275@FS-EX-DB102.fs.sachsen.de> <1401094453597-5142486.post@n6.nabble.com> <6F331135492B944D90731CE93743D56806B2AF@FS-EX-DB102.fs.sachsen.de> Message-ID: Correct. We do it this way since many drivers don't require a QITEM. For example, you could author a qstring that leverages multiple columns. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eichner, Andreas - SID Sent: Monday, May 26, 2014 7:15 AM To: 'Leehan'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] itemquery and validation > here s the part of the mapfile : > LAYER > NAME emprise > STATUS on > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "host=10.3.1.51 dbname=xxx user=xxx > password=xxx port=5432" > DATA "geom from activite.emprise using unique gid using srid = 2154" > TOLERANCE 1 #tampon autour du clic souris > TOLERANCEUNITS kilometers > VALIDATION > "numope" "^[A-Z]{1}[0-9]{6}$" > END #end validation > CLASSITEM "tpeope" > According to the source you need to define a validation pattern for qstring on LAYER or in WEB section, too. This looks a bit weird to me as you specify the QITEM. Therefore a single validation pattern for QSTRING must cover all possible QITEM values... I've never used such modes but may be some else can shed some light on this. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mathias.cunault at inrap.fr Tue May 27 23:05:10 2014 From: mathias.cunault at inrap.fr (Leehan) Date: Tue, 27 May 2014 23:05:10 -0700 (PDT) Subject: [mapserver-users] itemquery and validation In-Reply-To: References: <6F331135492B944D90731CE93743D56806B245@FS-EX-DB102.fs.sachsen.de> <1401005226299-5142387.post@n6.nabble.com> <6F331135492B944D90731CE93743D56806B275@FS-EX-DB102.fs.sachsen.de> <1401094453597-5142486.post@n6.nabble.com> <6F331135492B944D90731CE93743D56806B2AF@FS-EX-DB102.fs.sachsen.de> Message-ID: <1401257110756-5142850.post@n6.nabble.com> very well thx. it ll be very helpful if had an example to study. do you have one or wher can i find one ? I didn t find that on mapserver site unfortunately.. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-post-to-be-accepted-tp5142386p5142850.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sampahe.fb3 at gmail.com Tue May 27 22:57:16 2014 From: sampahe.fb3 at gmail.com (Dedy Fuadi) Date: Wed, 28 May 2014 13:57:16 +0800 Subject: [mapserver-users] WEB GIS data selection Message-ID: Hello friends! I'm is a beginner for mapserver user, I was try to display static map using mapserv-cgi on localhost. But, I want to display some custom point and line which selected on the webpage, how to modify URL that can be display a custom data appears? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathias.cunault at inrap.fr Tue May 27 23:45:21 2014 From: mathias.cunault at inrap.fr (Leehan) Date: Tue, 27 May 2014 23:45:21 -0700 (PDT) Subject: [mapserver-users] WEB GIS data selection In-Reply-To: References: Message-ID: <1401259521435-5142854.post@n6.nabble.com> hi, did you check http://mapserver.org/tutorial/section1.html and http://mapserver.org/tutorial/section2.html. ? These two sections are a very good start, it seems they ansxer to what you ask for. Sincerely, Leehan -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WEB-GIS-data-selection-tp5142851p5142854.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jorrit.Goddijn at meteogroup.com Wed May 28 00:11:32 2014 From: Jorrit.Goddijn at meteogroup.com (Jorrit Goddijn) Date: Wed, 28 May 2014 07:11:32 +0000 Subject: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript? In-Reply-To: References: <8D5E08D02835794F97C9CB3EE47CB7688B81B672@nl-wag-ex1> Message-ID: <8D5E08D02835794F97C9CB3EE47CB7688B81B727@nl-wag-ex1> Hi Dan, Yes I only just saw that you can load layer definitions from strings. This would be indeed much less cumbersome than using mapscript. We'll have a look at this for our next project/. Thanks for your input! Jorrit -----Original Message----- From: Dan Little [mailto:theduckylittle at gmail.com] Sent: dinsdag 27 mei 2014 16:10 To: Michael Schulz Cc: Jorrit Goddijn; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript? You might want to reconsider how your script is built. Instead of loading up the Mapfile and tweaking small parameters with MapScript, consider converting your mapfile to a template language. This way you can forumulate the mapfile, load it as a string, do the appropriate substitutions, then use PHP to serve it as WxS. This usually ends up being faster, easier to maintain, and more flexible over the long term. On Tue, May 27, 2014 at 6:33 AM, Michael Schulz wrote: > Hi Jorrit, > > maybe it's just a type in the second setprocessing line of your example: > > $current_layer->setprocessing('BANDS=1,2'); #removed second bracket > > Cheers, Michael > > > 2014-05-27 11:50 GMT+02:00 Jorrit Goddijn : >> >> Hi all, >> >> >> >> I?m drawing layers based on GRIB data files. Each file contains >> several bands (datasets). I can access these datasets by setting the >> PROCESSING attribute on the LAYER object. As in this example: >> >> >> >> ######################### >> >> LAYER >> >> NAME "current_grid" >> >> TYPE POINT >> >> CONNECTIONTYPE uvraster >> >> DATA >> "/var/www/mapserver/data/grib/routeguard/4nwwin99_2013110412.grb2" #v and >> u-component of current >> >> PROCESSING "BANDS=1,2" >> >> PROCESSING "UV_SPACING=20" >> >> CLASS >> >> STYLE >> >> SYMBOL "arrow" >> >> ANGLE [uv_angle] >> >> SIZE [uv_length] >> >> COLOR 255 0 0 >> >> END # style >> >> END # class >> >> >> >> PROJECTION >> >> #"init=epsg:4326" >> >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" >> >> END >> >> END # layer >> >> #################### >> >> >> >> This works fine. But I need to set the PROCESSING values dynamically >> through mapscript. If I add this code to my script (which works fine >> without these lines): >> >> >> >> #################### >> >> $map = ms_newMapObj($_GET['MAP']); >> >> $current_layer = $map->getlayerbyname('current_grid'); >> >> // both of these do not work >> >> //$current_layer->set('processing', 'BANDS=1,2')); >> >> //$current_layer->setprocessing('BANDS=1,2')); >> >> $request = createRequest(""); >> >> $result = $map->owsdispatch($request); >> >> #################### >> >> >> >> I get an internal server error (500). It seems that setting any >> attribute via the layer->set() method causes this behavior. I?m >> migrating from MS 5.4, does the set method still work as expected? >> >> >> >> Thank you >> >> >> >> Jorrit Goddijn >> >> jorrit.goddijn at meteogroup.com >> >> MeteoGroup >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ----------------------------------------------------------- > Michael Schulz > > Bahnhofstr. 62 > D-63477 Maintal > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jukka.rahkonen at mmmtike.fi Wed May 28 00:52:15 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 28 May 2014 07:52:15 +0000 Subject: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript? Message-ID: Hi, It would be easier to play with PROCESSING attributes if they could be changed with runtime substitution. Thomas Bonfort has written that any favorite MapServer provider can do the addition. http://lists.osgeo.org/pipermail/mapserver-users/2013-September/075342.html -Jukka Rahkonen- Jorrit Goddijn wrote: > Hi Dan, > > Yes I only just saw that you can load layer definitions from strings. This would be > indeed much less cumbersome than using mapscript. We'll have a look at this > for our next project/. > > Thanks for your input! > Jorrit > > -----Original Message----- > From: Dan Little [mailto:theduckylittle at gmail.com] > Sent: dinsdag 27 mei 2014 16:10 > To: Michael Schulz > Cc: Jorrit Goddijn; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Can the PROCESSING layer attribute be set > dynamically through (PHP) MapScript? > > You might want to reconsider how your script is built. Instead of loading up the > Mapfile and tweaking small parameters with MapScript, consider converting > your mapfile to a template language. This way you can forumulate the mapfile, > load it as a string, do the appropriate substitutions, then use PHP to serve it as > WxS. > > This usually ends up being faster, easier to maintain, and more flexible over the > long term. > > On Tue, May 27, 2014 at 6:33 AM, Michael Schulz > wrote: > > Hi Jorrit, > > > > maybe it's just a type in the second setprocessing line of your example: > > > > $current_layer->setprocessing('BANDS=1,2'); #removed second bracket > > > > Cheers, Michael > > > > > > 2014-05-27 11:50 GMT+02:00 Jorrit Goddijn > : > >> > >> Hi all, > >> > >> > >> > >> I?m drawing layers based on GRIB data files. Each file contains > >> several bands (datasets). I can access these datasets by setting the > >> PROCESSING attribute on the LAYER object. As in this example: > >> > >> > >> > >> ######################### > >> > >> LAYER > >> > >> NAME "current_grid" > >> > >> TYPE POINT > >> > >> CONNECTIONTYPE uvraster > >> > >> DATA > >> "/var/www/mapserver/data/grib/routeguard/4nwwin99_2013110412.grb2" > #v and > >> u-component of current > >> > >> PROCESSING "BANDS=1,2" > >> > >> PROCESSING "UV_SPACING=20" > >> > >> CLASS > >> > >> STYLE > >> > >> SYMBOL "arrow" > >> > >> ANGLE [uv_angle] > >> > >> SIZE [uv_length] > >> > >> COLOR 255 0 0 > >> > >> END # style > >> > >> END # class > >> > >> > >> > >> PROJECTION > >> > >> #"init=epsg:4326" > >> > >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" > >> > >> END > >> > >> END # layer > >> > >> #################### > >> > >> > >> > >> This works fine. But I need to set the PROCESSING values dynamically > >> through mapscript. If I add this code to my script (which works fine > >> without these lines): > >> > >> > >> > >> #################### > >> > >> $map = ms_newMapObj($_GET['MAP']); > >> > >> $current_layer = $map->getlayerbyname('current_grid'); > >> > >> // both of these do not work > >> > >> //$current_layer->set('processing', 'BANDS=1,2')); > >> > >> //$current_layer->setprocessing('BANDS=1,2')); > >> > >> $request = createRequest(""); > >> > >> $result = $map->owsdispatch($request); > >> > >> #################### > >> > >> > >> > >> I get an internal server error (500). It seems that setting any > >> attribute via the layer->set() method causes this behavior. I?m > >> migrating from MS 5.4, does the set method still work as expected? > >> > >> > >> > >> Thank you > >> > >> > >> > >> Jorrit Goddijn > >> > >> jorrit.goddijn at meteogroup.com > >> > >> MeteoGroup > >> > >> > >> > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > ----------------------------------------------------------- > > Michael Schulz > > > > Bahnhofstr. 62 > > D-63477 Maintal > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From m18blackcat at hotmail.fr Wed May 28 07:11:54 2014 From: m18blackcat at hotmail.fr (blackcat18) Date: Wed, 28 May 2014 07:11:54 -0700 (PDT) Subject: [mapserver-users] SVG via memory stream Message-ID: <1401286314325-5142936.post@n6.nabble.com> Hi everyone, I am trying to get an svg image via a memorystream: I used that code (c#): * using (System.IO.MemoryStream ms = new System.IO.MemoryStream(map.draw().getBytes())) { ........ }* and I get this error : *An exception of type 'System.ApplicationException' occurred in mapscript_csharp.dll but was not handled in user code Additional information: getBytes: General error message. Failed to get image buffer;msSaveImageBuffer(): General error message. Unsupported image type* I found many times this same error on other posts like : http://trac.osgeo.org/mapserver/ticket/4145 but I did not find a solution. I would like to take that picture via a memorystream to display it into a browser. I am programming in a Web Form (c#). regards, mijo -- View this message in context: http://osgeo-org.1560.x6.nabble.com/SVG-via-memory-stream-tp5142936.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jukka.rahkonen at mmmtike.fi Wed May 28 07:58:08 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 28 May 2014 14:58:08 +0000 Subject: [mapserver-users] PostgreSQL on demo.mapserver.org down Message-ID: Hi, Mapserver demos at demo.mapserver.org do not work because the PostgreSQL on the same machine has been down for some days. Could someone try to restart the database service? -Jukka Rahkonen- From Jorrit.Goddijn at meteogroup.com Wed May 28 08:32:33 2014 From: Jorrit.Goddijn at meteogroup.com (Jorrit Goddijn) Date: Wed, 28 May 2014 15:32:33 +0000 Subject: [mapserver-users] Can a layer (with type UV raster) with a mask have a custom projection? Message-ID: <8D5E08D02835794F97C9CB3EE47CB7688B81B759@nl-wag-ex1> Hi all, I have a layer which draws fine with data over the whole world. It has this projection object: #################### PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" END METADATA "wms_title" "the current arrow grid" "wms_srs" "epsg:4326 epsg:54004" END #################### If I try to put a MASK on this layer, I get a "NO DATA RECEIVED" error. The MASK layer draws fine on it's own. I have tried masking this layer with a layer with the same custom projection, but the same result. This is my layer object: LAYER NAME "current_grid" TYPE POINT CONNECTIONTYPE uvraster STATUS OFF MASK "water_outline" #breaks! DATA "/var/www/mapserver/data/grib/routeguard/4nwcur99_2013110412.grb2" #v and u-component of current #PROCESSING "BANDS=1,2" PROCESSING "UV_SPACING=20" CLASS STYLE SYMBOL "arrow" ANGLE [uv_angle] SIZE 10 #we can also use [uv_length] here but this doesnt scale nicely for current. for the file 4nwwin99... it does work as expected. COLOR 0 255 0 END # style END # class PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360" END METADATA "wms_title" "the current arrow grid" "wms_srs" "epsg:4326 epsg:54004" END END # layer Thank you all, Jorrit -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_dev at wildintellect.com Wed May 28 09:41:02 2014 From: tech_dev at wildintellect.com (Alex Mandel) Date: Wed, 28 May 2014 09:41:02 -0700 Subject: [mapserver-users] PostgreSQL on demo.mapserver.org down In-Reply-To: References: Message-ID: <5386119E.2020006@wildintellect.com> On 05/28/2014 07:58 AM, Rahkonen Jukka (Tike) wrote: > Hi, > > Mapserver demos at demo.mapserver.org do not work because the PostgreSQL on the same machine has been down for some days. Could someone try to restart the database service? > > -Jukka Rahkonen- Which demo/url are you specifically getting an error on? I'm not seeing anything particularly wrong on the server. Thanks, Alex From jukka.rahkonen at mmmtike.fi Wed May 28 10:45:29 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 28 May 2014 17:45:29 +0000 Subject: [mapserver-users] PostgreSQL on demo.mapserver.org down In-Reply-To: <5386119E.2020006@wildintellect.com> References: , <5386119E.2020006@wildintellect.com> Message-ID: Hi Alex, PostgreSQL service on localhost, port 5432 does not accept connection from user "www-data" for database "osm". You can catch the error with this http://demo.mapserver.org/cgi-bin/foss4g?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=OSM_Denver&STYLES=&CRS=EPSG:4326&BBOX=-105.208290,39.542378,-104.769779,39.980889&WIDTH=800&HEIGHT=800&FORMAT=image/png -Jukka- ________________________________________ Alex Mandel wrote: On 05/28/2014 07:58 AM, Rahkonen Jukka (Tike) wrote: > Hi, > > Mapserver demos at demo.mapserver.org do not work because the PostgreSQL on the same machine has been down for some days. Could someone try to restart the database service? > > -Jukka Rahkonen- Which demo/url are you specifically getting an error on? I'm not seeing anything particularly wrong on the server. Thanks, Alex From tds at tds-net.de Wed May 28 10:53:31 2014 From: tds at tds-net.de (TDS) Date: Wed, 28 May 2014 19:53:31 +0200 Subject: [mapserver-users] Mapcache with wrong request Message-ID: <5386229B.8090203@tds-net.de> Hello, MapCache run fine for weeks. Today I added EPSG 31466-69. I get some strange errors like this: curl failed to request url http://www.DOMAIN.info/live/osm?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-20040565.823921,-316143.548988,-19721364.793881131&WIDTH=1044&HEIGHT=1044&FORMAT=image/png&SRS=EPSG:31469&LAYERS=land,landusage,water,borders,highways,railways,aeroways,transport,buildings,shields,places : Opered out after 600000 milliseconds with 0 bytes received This is the response of Mapserver: msWMSLoadGetMapParams(): WMS server error. Wrong number of arguments for BBOX. Any ideas? -- MfG M. Martin ------------------------------------------------------------------------ mailto:tds at tds-net.de ------------------------------------------------------------------------ 1+1=10 You have a question? - 42 or RTFM. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_dev at wildintellect.com Wed May 28 11:11:53 2014 From: tech_dev at wildintellect.com (Alex Mandel) Date: Wed, 28 May 2014 11:11:53 -0700 Subject: [mapserver-users] PostgreSQL on demo.mapserver.org down In-Reply-To: References: , <5386119E.2020006@wildintellect.com> Message-ID: <538626E9.5080605@wildintellect.com> Jukka, I think someone needs to reconfigure the demo. psql: FATAL: database "osm" does not exist Postgres is up and running. Thanks, Alex On 05/28/2014 10:45 AM, Rahkonen Jukka (Tike) wrote: > Hi Alex, > > PostgreSQL service on localhost, port 5432 does not accept connection from user "www-data" for database "osm". You can catch the error with this > > http://demo.mapserver.org/cgi-bin/foss4g?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=OSM_Denver&STYLES=&CRS=EPSG:4326&BBOX=-105.208290,39.542378,-104.769779,39.980889&WIDTH=800&HEIGHT=800&FORMAT=image/png > > -Jukka- > ________________________________________ > Alex Mandel wrote: > > On 05/28/2014 07:58 AM, Rahkonen Jukka (Tike) wrote: >> Hi, >> >> Mapserver demos at demo.mapserver.org do not work because the PostgreSQL on the same machine has been down for some days. Could someone try to restart the database service? >> >> -Jukka Rahkonen- > > Which demo/url are you specifically getting an error on? I'm not seeing > anything particularly wrong on the server. > > Thanks, > Alex > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From zhaops at hotmail.com Wed May 28 11:37:47 2014 From: zhaops at hotmail.com (Peisheng Zhao) Date: Wed, 28 May 2014 18:37:47 +0000 Subject: [mapserver-users] invalid SLD document Message-ID: Hi all, We are using SLD to render raster data. Most of the time we can get the correct map with SLD, but sometime we cannot get the correct map with SLD. The MapServer log shows "invalid SLD document". We guess this problem is inability to validate SLD. My question is MapServer does validate SLD and how? Thanks. Peisheng -------------- next part -------------- An HTML attachment was scrubbed... URL: From deborah.traver at gmail.com Wed May 28 12:05:33 2014 From: deborah.traver at gmail.com (Deborah Traver) Date: Wed, 28 May 2014 13:05:33 -0600 Subject: [mapserver-users] Unsubscribe Message-ID: On Wed, May 28, 2014 at 12:37 PM, Peisheng Zhao wrote: > Hi all, > > We are using SLD to render raster data. Most of the time we can get the > correct map with SLD, but sometime we cannot get the correct map with SLD. > The MapServer log shows "invalid SLD document". We guess this problem is > inability to validate SLD. My question is MapServer does validate SLD and > how? > > Thanks. > > Peisheng > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed May 28 13:19:57 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 28 May 2014 17:19:57 -0300 Subject: [mapserver-users] PostgreSQL on demo.mapserver.org down In-Reply-To: References: , <5386119E.2020006@wildintellect.com> Message-ID: <538644ED.9050505@gatewaygeomatics.com> I think at one point that service was used to seed the cache for the OpenLayers/Mapcache demo on the main site (Denver OSM). But that WMS service is actually not advertized/published anywhere (the full list of active services is available at http://demo.mapserver.org/). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-05-28, 2:45 PM, Rahkonen Jukka (Tike) wrote: > Hi Alex, > > PostgreSQL service on localhost, port 5432 does not accept connection from user "www-data" for database "osm". You can catch the error with this > > http://demo.mapserver.org/cgi-bin/foss4g?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=OSM_Denver&STYLES=&CRS=EPSG:4326&BBOX=-105.208290,39.542378,-104.769779,39.980889&WIDTH=800&HEIGHT=800&FORMAT=image/png > > -Jukka- > ________________________________________ > Alex Mandel wrote: > > On 05/28/2014 07:58 AM, Rahkonen Jukka (Tike) wrote: >> Hi, >> >> Mapserver demos at demo.mapserver.org do not work because the PostgreSQL on the same machine has been down for some days. Could someone try to restart the database service? >> >> -Jukka Rahkonen- > > Which demo/url are you specifically getting an error on? I'm not seeing > anything particularly wrong on the server. > > Thanks, > Alex > From jukka.rahkonen at mmmtike.fi Wed May 28 13:26:20 2014 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka (Tike)) Date: Wed, 28 May 2014 20:26:20 +0000 Subject: [mapserver-users] PostgreSQL on demo.mapserver.org down Message-ID: Hi Jeff, Sure it is advertised on the main page http://demo.mapserver.org. Try the GetMap link on the row "WMS OpenStreetMap service (GetCapabilities) (GetMap) -used in OpenLayers map on main site." -Jukka- Jeff McKenna wrote: > I think at one point that service was used to seed the cache for the > OpenLayers/Mapcache demo on the main site (Denver OSM). But that WMS > service is actually not advertized/published anywhere (the full list of active > services is available at http://demo.mapserver.org/). > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 2014-05-28, 2:45 PM, Rahkonen Jukka (Tike) wrote: > > Hi Alex, > > > > PostgreSQL service on localhost, port 5432 does not accept connection from > user "www-data" for database "osm". You can catch the error with this > > > > http://demo.mapserver.org/cgi- > bin/foss4g?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=OS > M_Denver&STYLES=&CRS=EPSG:4326&BBOX=-105.208290,39.542378,- > 104.769779,39.980889&WIDTH=800&HEIGHT=800&FORMAT=image/png > > > > -Jukka- > > ________________________________________ > > Alex Mandel wrote: > > > > On 05/28/2014 07:58 AM, Rahkonen Jukka (Tike) wrote: > >> Hi, > >> > >> Mapserver demos at demo.mapserver.org do not work because the > PostgreSQL on the same machine has been down for some days. Could someone > try to restart the database service? > >> > >> -Jukka Rahkonen- > > > > Which demo/url are you specifically getting an error on? I'm not seeing > > anything particularly wrong on the server. > > > > Thanks, > > Alex > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed May 28 13:31:05 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 28 May 2014 17:31:05 -0300 Subject: [mapserver-users] PostgreSQL on demo.mapserver.org down In-Reply-To: References: Message-ID: <53864789.3000708@gatewaygeomatics.com> This is all my writing on that page :) Will take a look. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-05-28, 5:26 PM, Rahkonen Jukka (Tike) wrote: > Hi Jeff, > > Sure it is advertised on the main page http://demo.mapserver.org. Try the GetMap link on the row > > "WMS OpenStreetMap service (GetCapabilities) (GetMap) -used in OpenLayers map on main site." > > -Jukka- > > Jeff McKenna wrote: > >> I think at one point that service was used to seed the cache for the >> OpenLayers/Mapcache demo on the main site (Denver OSM). But that WMS >> service is actually not advertized/published anywhere (the full list of active >> services is available at http://demo.mapserver.org/). >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> On 2014-05-28, 2:45 PM, Rahkonen Jukka (Tike) wrote: >>> Hi Alex, >>> >>> PostgreSQL service on localhost, port 5432 does not accept connection from >> user "www-data" for database "osm". You can catch the error with this >>> >>> http://demo.mapserver.org/cgi- >> bin/foss4g?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=OS >> M_Denver&STYLES=&CRS=EPSG:4326&BBOX=-105.208290,39.542378,- >> 104.769779,39.980889&WIDTH=800&HEIGHT=800&FORMAT=image/png >>> >>> -Jukka- >>> ________________________________________ >>> Alex Mandel wrote: >>> >>> On 05/28/2014 07:58 AM, Rahkonen Jukka (Tike) wrote: >>>> Hi, >>>> >>>> Mapserver demos at demo.mapserver.org do not work because the >> PostgreSQL on the same machine has been down for some days. Could someone >> try to restart the database service? >>>> >>>> -Jukka Rahkonen- >>> >>> Which demo/url are you specifically getting an error on? I'm not seeing >>> anything particularly wrong on the server. >>> >>> Thanks, >>> Alex >>> >> From jmckenna at gatewaygeomatics.com Wed May 28 14:37:48 2014 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 28 May 2014 18:37:48 -0300 Subject: [mapserver-users] PostgreSQL on demo.mapserver.org down In-Reply-To: References: Message-ID: <5386572C.9080202@gatewaygeomatics.com> That was sure tricky. Eventually the magical error I needed was deep in the postgres logs: *** LOG: could not bind IPv4 socket: Address already in use HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. WARNING: could not create listen socket for "localhost" FATAL: could not create any TCP/IP sockets *** Once I saw that I knew that it was not a role or missing db issue, it was the port (something else started to use port 5432 on this VM). I changed the postgres config for this instance to use 5433, then updated the mapfile, and all is fine again. I've recorded this change at http://wiki.osgeo.org/wiki/MapServer_at_AdhocVM To test this, click this link and go for a coffee (you can see why we seeded the cache! ha) http://demo.mapserver.org/cgi-bin/foss4g?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=OSM_Denver&STYLES=&SRS=EPSG:4326&BBOX=-105.208290,39.542378,-104.769779,39.980889&WIDTH=800&HEIGHT=800&FORMAT=image/png Night all, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2014-05-28, 5:26 PM, Rahkonen Jukka (Tike) wrote: > Hi Jeff, > > Sure it is advertised on the main page http://demo.mapserver.org. Try the GetMap link on the row > > "WMS OpenStreetMap service (GetCapabilities) (GetMap) -used in OpenLayers map on main site." > > -Jukka- > > Jeff McKenna wrote: > >> I think at one point that service was used to seed the cache for the >> OpenLayers/Mapcache demo on the main site (Denver OSM). But that WMS >> service is actually not advertized/published anywhere (the full list of active >> services is available at http://demo.mapserver.org/). >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> On 2014-05-28, 2:45 PM, Rahkonen Jukka (Tike) wrote: >>> Hi Alex, >>> >>> PostgreSQL service on localhost, port 5432 does not accept connection from >> user "www-data" for database "osm". You can catch the error with this >>> >>> http://demo.mapserver.org/cgi- >> bin/foss4g?&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=OS >> M_Denver&STYLES=&CRS=EPSG:4326&BBOX=-105.208290,39.542378,- >> 104.769779,39.980889&WIDTH=800&HEIGHT=800&FORMAT=image/png >>> >>> -Jukka- >>> ________________________________________ >>> Alex Mandel wrote: >>> >>> On 05/28/2014 07:58 AM, Rahkonen Jukka (Tike) wrote: >>>> Hi, >>>> >>>> Mapserver demos at demo.mapserver.org do not work because the >> PostgreSQL on the same machine has been down for some days. Could someone >> try to restart the database service? >>>> >>>> -Jukka Rahkonen- >>> >>> Which demo/url are you specifically getting an error on? I'm not seeing >>> anything particularly wrong on the server. >>> >>> Thanks, >>> Alex >>> >> > From sampahe.fb3 at gmail.com Fri May 30 03:52:08 2014 From: sampahe.fb3 at gmail.com (Dedy Fuadi) Date: Fri, 30 May 2014 18:52:08 +0800 Subject: [mapserver-users] Dynamically extent and layer filter Message-ID: Hello friends, I just success applying filter data for postgis database on my mapfile, but I met problem when I was to try use dynamic variable for filter data and extent map like variable at php file. What should I do for solving this problem? Whether mapfile can be a dynamically file like php? Thank you, regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at ci.stpaul.mn.us Fri May 30 07:58:55 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 30 May 2014 14:58:55 +0000 Subject: [mapserver-users] FOSS4G2014 Express (train ride) Message-ID: All, Just a heads up on the hatching of a plan by myself (and a couple of others). See this posting: https://2014.foss4g.org/all-aboard-the-foss4g2014-express/ Please forward to whomever you think might be interested. I felt comfortable enough posting to these three lists, but maybe you can think of others. Thanks Bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri May 30 08:42:08 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 30 May 2014 11:42:08 -0400 Subject: [mapserver-users] RE Dynamically extent and layer filter In-Reply-To: Message-ID: In your mapfile you could set FILTER "id in (%ID%)" . And in the url pass a string as parameter such as &id=1,4,8 That would be a simple way Please post further question on mapserver list, so others can answer you, and the answers can help other people later thanks steve Dedy Fuadi 2014-05-30 11:28 A Steve.Toutant at inspq.qc.ca cc Objet Re: RE [mapserver-users] Dynamically extent and layer filter Hi Steve, Your advice is nicely work for me! :D But how to select more than one data from postgis by VALIDATION block? For example, I have a postgis table that have 20 data, then I wanto to select data 1,4,8, or else to display by customizing URL parameter. I set '%id%' as my variable at mapfile, I just can display one data like &id=1. Please for your help. Thank you. On Fri, May 30, 2014 at 8:30 PM, wrote: Hi What did you try and what happened? Something in the mapserver log. If I understand well you want to use run time substitution, if so here a link http://mapserver.org/cgi/runsub.html Make sure you have a VALIDATION block Steve Dedy Fuadi @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2014-05-30 06:52 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] Dynamically extent and layer filter Hello friends, I just success applying filter data for postgis database on my mapfile, but I met problem when I was to try use dynamic variable for filter data and extent map like variable at php file. What should I do for solving this problem? Whether mapfile can be a dynamically file like php? Thank you, regards._______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sampahe.fb3 at gmail.com Fri May 30 09:17:06 2014 From: sampahe.fb3 at gmail.com (Dedy Fuadi) Date: Sat, 31 May 2014 00:17:06 +0800 Subject: [mapserver-users] RE Dynamically extent and layer filter In-Reply-To: References: Message-ID: This is my mapfile part : VALIDATION 'id' '^[0-9]{1}$' END FILTER (id in ('%id%')) and as your advice I set URL parameter like &id=1,4,8 but the map is not appears there. When I opened debug, I found : [Sat May 31 00:10:34 2014].758000 msEvalRegex(): Regular expression error. String failed expression test. [Sat May 31 00:10:34 2014].758000 loadForm(): Web application error. Parameter 'id' value fails to validate. On Fri, May 30, 2014 at 11:42 PM, wrote: > > In your mapfile you could set FILTER "id in (%ID%)" . > And in the url pass a string as parameter such as &id=1,4,8 > That would be a simple way > > Please post further question on mapserver list, so others can answer you, > and the answers can help other people later > thanks > steve > > > > > *Dedy Fuadi >* > > 2014-05-30 11:28 > A > Steve.Toutant at inspq.qc.ca > cc > Objet > Re: RE [mapserver-users] Dynamically extent and layer filter > > > > > > > Hi Steve, > > Your advice is nicely work for me! :D > > But how to select more than one data from postgis by VALIDATION block? For > example, I have a postgis table that have 20 data, then I wanto to select > data 1,4,8, or else to display by customizing URL parameter. I set '%id%' > as my variable at mapfile, I just can display one data like &id=1. > > Please for your help. > Thank you. > > > On Fri, May 30, 2014 at 8:30 PM, <*Steve.Toutant at inspq.qc.ca* > > wrote: > > Hi > What did you try and what happened? Something in the mapserver log. > If I understand well you want to use run time substitution, if so here a > link > *http://mapserver.org/cgi/runsub.html* > > > Make sure you have a VALIDATION block > Steve > > > *Dedy Fuadi <**sampahe.fb3 at gmail.com* *>@* > *lists.osgeo.org* > Envoy? par : *mapserver-users-bounces at lists.osgeo.org* > > > 2014-05-30 06:52 > > A > *mapserver-users at lists.osgeo.org* > cc > Objet > [mapserver-users] Dynamically extent and layer filter > > > > > > > > > Hello friends, > > I just success applying filter data for postgis database on my mapfile, > but I met problem when I was to try use dynamic variable for filter data > and extent map like variable at php file. > > What should I do for solving this problem? Whether mapfile can be a > dynamically file like php? > > Thank you, > regards._______________________________________________ > mapserver-users mailing list > *mapserver-users at lists.osgeo.org* > *http://lists.osgeo.org/mailman/listinfo/mapserver-users* > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri May 30 09:30:21 2014 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 30 May 2014 12:30:21 -0400 Subject: [mapserver-users] RE Dynamically extent and layer filter In-Reply-To: Message-ID: Begin with a simple validation until it works. Is it working if you set VALIDATION id '.*' END If yes then the problem is in your regex. Make sure that ',' are accepted. If not the problem is the FILTER or the parameter you pass. Also Is your ID an integer or text in postgis? I think it matters. ('%id%') this would send a string to pg. In this case try FILTER "id" in ('%id%'), otherwise try FILTER id in (%id%) It is not an easy task (in my opinion) in mapserv to use expresion and filter But have a look at this. there are several examples http://mapserver.org/fr/mapfile/expressions.html#string-expressions-that-return-a-logical-value Also in you MAPFILE set debug 5 in the MAP block, and also in your layer block. You will have more info in your mapserver log. steve Dedy Fuadi 2014-05-30 12:17 A Steve.Toutant at inspq.qc.ca cc mapserver-users at lists.osgeo.org Objet Re: RE [mapserver-users] Dynamically extent and layer filter This is my mapfile part : VALIDATION 'id' '^[0-9]{1}$' END FILTER (id in ('%id%')) and as your advice I set URL parameter like &id=1,4,8 but the map is not appears there. When I opened debug, I found : [Sat May 31 00:10:34 2014].758000 msEvalRegex(): Regular expression error. String failed expression test. [Sat May 31 00:10:34 2014].758000 loadForm(): Web application error. Parameter 'id' value fails to validate. On Fri, May 30, 2014 at 11:42 PM, wrote: In your mapfile you could set FILTER "id in (%ID%)" . And in the url pass a string as parameter such as &id=1,4,8 That would be a simple way Please post further question on mapserver list, so others can answer you, and the answers can help other people later thanks steve Dedy Fuadi 2014-05-30 11:28 A Steve.Toutant at inspq.qc.ca cc Objet Re: RE [mapserver-users] Dynamically extent and layer filter Hi Steve, Your advice is nicely work for me! :D But how to select more than one data from postgis by VALIDATION block? For example, I have a postgis table that have 20 data, then I wanto to select data 1,4,8, or else to display by customizing URL parameter. I set '%id%' as my variable at mapfile, I just can display one data like &id=1. Please for your help. Thank you. On Fri, May 30, 2014 at 8:30 PM, wrote: Hi What did you try and what happened? Something in the mapserver log. If I understand well you want to use run time substitution, if so here a link http://mapserver.org/cgi/runsub.html Make sure you have a VALIDATION block Steve Dedy Fuadi @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2014-05-30 06:52 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] Dynamically extent and layer filter Hello friends, I just success applying filter data for postgis database on my mapfile, but I met problem when I was to try use dynamic variable for filter data and extent map like variable at php file. What should I do for solving this problem? Whether mapfile can be a dynamically file like php? Thank you, regards._______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sampahe.fb3 at gmail.com Fri May 30 09:59:50 2014 From: sampahe.fb3 at gmail.com (Dedy Fuadi) Date: Sat, 31 May 2014 00:59:50 +0800 Subject: [mapserver-users] RE Dynamically extent and layer filter In-Reply-To: References: Message-ID: Wow! Thank you very much Steven! Finally I can display custom data from postgis with your links before. I set like this for the mapfile : VALIDATION 'tid' '^[0-9]{1}\,' END FILTER (id in (%tid%)) And this is nicely work for me. :D Thank you, regards. On Sat, May 31, 2014 at 12:30 AM, wrote: > > Begin with a simple validation until it works. Is it working if you set > VALIDATION > id '.*' > END > > If yes then the problem is in your regex. Make sure that ',' are accepted. > If not the problem is the FILTER or the parameter you pass. > > Also Is your ID an integer or text in postgis? I think it matters. > ('%id%') this would send a string to pg. In this case try FILTER "id" in > ('%id%'), otherwise try > FILTER id in (%id%) > > It is not an easy task (in my opinion) in mapserv to use expresion and > filter > But have a look at this. there are several examples > > http://mapserver.org/fr/mapfile/expressions.html#string-expressions-that-return-a-logical-value > > Also in you MAPFILE set debug 5 in the MAP block, and also in your layer > block. You will have more info in your mapserver log. > steve > > > > > *Dedy Fuadi >* > > 2014-05-30 12:17 > A > Steve.Toutant at inspq.qc.ca > cc > mapserver-users at lists.osgeo.org > Objet > Re: RE [mapserver-users] Dynamically extent and layer filter > > > > > > > This is my mapfile part : > VALIDATION > 'id' '^[0-9]{1}$' > END > FILTER (id in ('%id%')) > > and as your advice I set URL parameter like &id=1,4,8 but the map is not > appears there. > > When I opened debug, I found : > [Sat May 31 00:10:34 2014].758000 msEvalRegex(): Regular expression > error. String failed expression test. > [Sat May 31 00:10:34 2014].758000 loadForm(): Web application error. > Parameter 'id' value fails to validate. > > > On Fri, May 30, 2014 at 11:42 PM, <*Steve.Toutant at inspq.qc.ca* > > wrote: > > In your mapfile you could set FILTER "id in (%ID%)" . > And in the url pass a string as parameter such as &id=1,4,8 > That would be a simple way > > Please post further question on mapserver list, so others can answer you, > and the answers can help other people later > thanks > steve > > > > *Dedy Fuadi <**sampahe.fb3 at gmail.com* *>* > > 2014-05-30 11:28 > > A > *Steve.Toutant at inspq.qc.ca* > cc > Objet > Re: RE [mapserver-users] Dynamically extent and layer filter > > > > > > > > > Hi Steve, > > Your advice is nicely work for me! :D > > But how to select more than one data from postgis by VALIDATION block? For > example, I have a postgis table that have 20 data, then I wanto to select > data 1,4,8, or else to display by customizing URL parameter. I set '%id%' > as my variable at mapfile, I just can display one data like &id=1. > > Please for your help. > Thank you. > > > On Fri, May 30, 2014 at 8:30 PM, <*Steve.Toutant at inspq.qc.ca* > > wrote: > > Hi > What did you try and what happened? Something in the mapserver log. > If I understand well you want to use run time substitution, if so here a > link > *http://mapserver.org/cgi/runsub.html* > > > Make sure you have a VALIDATION block > Steve > > *Dedy Fuadi <**sampahe.fb3 at gmail.com* *>@* > *lists.osgeo.org* > Envoy? par : *mapserver-users-bounces at lists.osgeo.org* > > > 2014-05-30 06:52 > > A > *mapserver-users at lists.osgeo.org* > cc > Objet > [mapserver-users] Dynamically extent and layer filter > > > > > > > > > > > Hello friends, > > I just success applying filter data for postgis database on my mapfile, > but I met problem when I was to try use dynamic variable for filter data > and extent map like variable at php file. > > What should I do for solving this problem? Whether mapfile can be a > dynamically file like php? > > Thank you, > regards._______________________________________________ > mapserver-users mailing list > *mapserver-users at lists.osgeo.org* > *http://lists.osgeo.org/mailman/listinfo/mapserver-users* > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri May 30 13:20:26 2014 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 30 May 2014 16:20:26 -0400 Subject: [mapserver-users] FOSS4G2014 Express (train ride) In-Reply-To: References: Message-ID: <5388E80A.5000908@mapgears.com> Nice ride! Too bad the train station is a bit far for us. :-) On 14-05-30 10:58 AM, Basques, Bob (CI-StPaul) wrote: > All, > > Just a heads up on the hatching of a plan by myself (and a couple of > others). > > See this posting: > > https://2014.foss4g.org/all-aboard-the-foss4g2014-express/ > > Please forward to whomever you think might be interested. I felt > comfortable enough posting to these three lists, but maybe you can think > of others. > > Thanks > > Bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From bob.basques at ci.stpaul.mn.us Fri May 30 13:58:46 2014 From: bob.basques at ci.stpaul.mn.us (Basques, Bob (CI-StPaul)) Date: Fri, 30 May 2014 20:58:46 +0000 Subject: [mapserver-users] FOSS4G2014 Express (train ride) In-Reply-To: <5388E80A.5000908@mapgears.com> References: <5388E80A.5000908@mapgears.com> Message-ID: Daniel, Well, yeah, it is a bit far, but it is on the way . . . . hint, hint. Bobb -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Friday, May 30, 2014 3:20 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] FOSS4G2014 Express (train ride) Nice ride! Too bad the train station is a bit far for us. :-) On 14-05-30 10:58 AM, Basques, Bob (CI-StPaul) wrote: > All, > > Just a heads up on the hatching of a plan by myself (and a couple of > others). > > See this posting: > > https://2014.foss4g.org/all-aboard-the-foss4g2014-express/ > > Please forward to whomever you think might be interested. I felt > comfortable enough posting to these three lists, but maybe you can > think of others. > > Thanks > > Bobb > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Morissette T: +1 418-696-5056 #201 http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users