Re: [mapserver-users] Help with expression
Hi, Thats right. :) Below is the full section from the map-file. layer name 'lokalplaner-udarbejdelse' status off type polygon connectiontype WFS connection 'http://geoservice.plansystem.dk/wfs?' metadata wfs_version 1.0.0 wfs_request_method GET wfs_typename lokalplan end class expression ('[status]' = 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND [datovedt] = 0 AND [datoaflyst] = 0) style width 3 outlinecolor 0 0 0 end name 'Lokalplaner under udarbejdelse' label type TRUETYPE font arial color 0 0 0 outlinecolor 255 255 255 size 8 position cc offset 5 0 antialias true end end labelitem 'plannavn' group 'theme-lokalplaner_udarbejdelse' projection init=EPSG:25832 end end As you can see, and maybe I should have mentioned that is that the layer is a WFS. Could that be the issue? Christian -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327p5100398.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Help with expression
Hi, I´m struggeling with an expression, hoping you guys can help. I need to select a subset of data using an expression like the one below. Status is char. Komnr, datoforsl, datovedt, datoaflyst are all integers I´m trying with the following expression but somehow it´s not working.. expression('[status]' = 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND [datovedt] = 0 AND [datoaflyst] = 0)/expression Any ideas? Christian -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Hi, I just checked to be sure, but the status is also set to off in the layers that are working. Perhaps I should point out that the layers that are working is using data from our postgresql db but the layer not working is using a ECW file directly. /Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver-as-WMS-service-jpeg-tp6941932p6947905.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Problems with Mapserver as WMS service (jpeg)
Hi, below is a snipped part of the map file. I´ve removed the layers that is working but kept the one which is not (the orto2011 layer). If you need the complete map file I´ll send it. The layer is a ECW raster file (complete mosaiced ECW of the municipality i´m working in). When I try to use the WMS service in ArcGIS og Mapinfo the layer is just showing white / nothing. The map-file is auto-generated in our webgis solution. map name '' status ON size 830 475 projection init=epsg:25832 end shapepath 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\data\shp' units meters maxsize 1 extent 713000 6173000 72 618 fontset 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\resources/fonts/fontset.txt' symbolset 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\resources/symbols/symbols3_5.txt' imagecolor 255 255 255 datapattern '.*' templatepattern '.*' imagetype png24 outputformat name 'jpeg24' mimetype image/jpeg driver agg/JPEG imagemode RGB extension jpeg formatoption QUALITY=80 INTERLACE=ON end outputformat name 'jpeg24_gd' mimetype image/jpg driver GD/JPEG imagemode RGB extension jpg formatoption QUALITY=90 end outputformat name 'png24' mimetype image/png driver AGG/PNG imagemode RGB extension png end outputformat name 'gif' mimetype image/gif driver GD/GIF imagemode PC256 extension gif transparent ON end outputformat name 'imagemap' mimetype text/html driver imagemap end web template 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\tmp/mapserver.html' minscale 100 imagepath 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\tmp\' log 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\log\mapserver.log' empty '[cbinfo.emptypage]' metadata wms_title Rødovre Kommunes WMS service - Test wms_onlineresource http://test-webgis:9180/wms?servicename=rk-wms; wms_srs epsg:32632 epsg:23032 epsg:25832 wms_feature_info_mime_type text/xml wms_server_version 1.1.1 wms_extent 713000 6173000 72 618 end end querymap status ON style SELECTED end legend status OFF keysize 15 10 position ul imagecolor 255 255 255 label type TRUETYPE antialias true font arial size 8 color 0 0 0 end end reference status OFF size 140 96 #extent708960.416667 6167500.00 720189.58 6175200.00/extent extent 713000 6173000 72 618 color -1 -1 -1 outlinecolor 210 136 0 image 'E:\spatialsuite\sites\test-webgis\appbase\wwwroot/images/custom/test/oversigt1.gif' end scalebar status OFF imagecolor 255 255 255 label type BITMAP outlinecolor 255 255 255 size medium color 0 0 0 end size 200 5 color 255 255 255 backgroundcolor 0 0 0 outlinecolor 0 0 0 intervals 5 position ll transparent false units meters end #Imported from E:\spatialsuite\sites\test-webgis\appbase\wwwroot\WEB-INF\config\themes\custom\theme-orto-2011-gwc.xml layer name 'orto2011' status off type RASTER class name 'Luftfoto 2011' end data 'E:\spatialsuite\data\ortofoto\orto2011\Kommune\Rodovre_2011.ecw' transparency 100 metadata wms_extent 713000 6173000 72 618 wms_title orto2011 wms_group_title orto2011 wms_srs EPSG:25832 end group 'theme-orto-2011-gwc' projection init=EPSG:25832 end end end -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver-as-WMS-service-jpeg-tp6941932p6945688.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Problems with Mapserver as WMS service (jpeg)
Hi all, I´m having a Mapserver (5.2.1) installation trying to output our ortophotos as WMS. Trying to load the WMS into a GIS (Mapinfo ArcGISr) just produces white / nothing. I´ve tried with our technical map showing our buildings, roads as vector (as PNG) and they show up nicely in our desktop GIS. Any idea on where to start? I´ve looked everywhere with absolutly no luck. :( I have an idea that the format is not parsed correctly because when I tried to see the layer in the Geowebcache viewer, it returned msWMSLoadGetMapParams(): Image handling error. Unsupported output format (text/html) /Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-Mapserver-as-WMS-service-jpeg-tp6941932p6941932.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: Problems with showing attributes
Hi Steve, thanks for pointing that out! I found out (using firebug) that someone had altered the css file styling our infobox, so problem solved. :) Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-showing-attributes-tp6064968p6067930.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Problems with showing attributes
Hi all, I´m having problems showing some attributes. The idea is that the user uses the info tool, click on the polygon and retrieve the information from the dataset. The data itself is shown, but the different names on the columns are not! I would really like that information to show as well. Below is an example on what I mean. http://osgeo-org.1803224.n2.nabble.com/file/n6064968/info.jpg I´ve used an old template that I´ve modified: trtd class='darknegativesmall' width='17%'Distrikt/tdtd class='lightsmall'[Distrikt]/td/tr trtd class='darknegativesmall' width='17%'Områdenavn/tdtd class='lightsmall'[Områdenavn]/td/tr trtd class='darknegativesmall' width='17%'Stednr/tdtd class='lightsmall'[Stednr]/td/tr tr valign='top'td class='darknegativesmall' width='17%'Beskrivelse/tdtd class='lightsmall'[Beskrivelse]/td/tr trtd class='darknegativesmall' width='17%'Græstype/tdtd class='lightsmall'[Græs_1]/td/tr trtd class='darknegativesmall' width='17%'Blomster/tdtd class='lightsmall'[Blomster_2]/td/tr trtd class='darknegativesmall' width='17%'Buske/tdtd class='lightsmall'[Buske_3]/td/tr trtd class='darknegativesmall' width='17%'Træer/tdtd class='lightsmall'[Træer_4]/td/tr trtd class='darknegativesmall' width='17%'Hække/tdtd class='lightsmall'[Hække_5]/td/tr trtd class='darknegativesmall' width='17%'Belægning/tdtd class='lightsmall'[Belægning_6]/td/tr trtd class='darknegativesmall' width='17%'Inventar/tdtd class='lightsmall'[Inventar_7]/td/tr trtd class='darknegativesmall' width='17%'Renholdelse/tdtd class='lightsmall'[Renholdelse_8]/td/tr trtd class='darknegativesmall' width='17%'Niveau_1/tdtd class='lightsmall'[Niveau_1]/td/tr trtd class='darknegativesmall' width='17%'Niveau_2/tdtd class='lightsmall'[Niveau_2]/td/tr trtd class='darknegativesmall' width='17%'Niveau_3/tdtd class='lightsmall'[Niveau_3]/td/tr trtd class='darknegativesmall' width='17%'Serviceydelser/tdtd class='lightsmall'[Serviceydelser_9]/td/tr trtd class='darknegativesmall' width='17%'Evt. bemærkning til serviceydelser/tdtd class='lightsmall'[serviceydelse_bemærkning]/td/tr trtd class='darknegativesmall' width='17%'Vandområder/tdtd class='lightsmall'[Vandområder_10]/td/tr trtd class='darknegativesmall' width='17%'Evt. bemærkninger/tdtd class='lightsmall'[Bemærkninger]/td/tr trtd class='darknegativesmall' width='17%'Opdateringsdato/tdtd class='lightsmall'[Opdateringsdato]/td/tr tr height=2tdtd/td/tr the data in the different colums (shown in the html as []) is okay, the problem is the name of the columns. What am I doing wrong? Sincerly, Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-showing-attributes-tp6064968p6064968.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Attribute as an active link?
Hi all, Is it possible to use an attribute as an active link? I have an attribute with a html link to different photos, but the attribute is not active. I know it´s possible to make an active link with a static html adress, but is it possible to make links based on an attribute? Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Attribute-as-an-active-link-tp5431886p5431886.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users