[MapServer-users] Suppress queryable=1 for wms_layer_group [SEC=OFFICIAL]
Hi, In the previous version of Mapserver when using wms_layer_group, the groups were not queryable in the GetCapabilities. In following examples, the configuration is LAYER>METADATA> OWS_LAYER_GROUP "/Radar/Australia" Version 6.4.2 Radar Australia IDR9 Radar Offline | Australia Radar Offline | Australia EPSG:4283 In the latest version 8.0.0, all the groups are queryable Radar Radar Australia Australia IDR9 Radar Offline | Australia Radar Offline | Australia EPSG:4283 Is there a way to not have the group queryable, as it is causing issues with some web applications eg picking up the wrong layer within a group or listing the group as well as the layer Thanks Kathleen ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Labelling in union layer [SEC=UNCLASSIFIED]
Dear MapServer users, I'm having problems with labels in union layers using MapServer 6.4.1 If I union two layers, the symbols show, but not the labels. The source is a point shapefile. I'm labelling using an EXPRESSION and TEXT in CLASS. I've tried using LABELITEM instead of TEXT, but same result. Thanks Kathleen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Point and radius features [SEC=UNCLASSIFIED]
Dear List, I'm using MapServer to show a point and a radius (in kilometres) from the same point as part of the GetMap request I'm using the following: map.layer[location]=map.layer[location]=FEATURE+POINTS+144.97+-37.81+END+TEXT+'Melbourne'+END+END map.layer[radius]=FEATURE+POINTS+144.97+-37.81+END+END map.layer[radius].class[0].style[0]=SIZE+40+END+END map.layer[radius].class[0].style[1]=SIZE+40+END+END The layer, radius configuration is shown below, where the size of the symbol is half the size of the radius. The map projection is EPSG:4283. The circle drawn for the radius does not seem accurate eg for a 20 km radius, it is about 1.1 km out. Is there a better way to do this? Eg using type CIRCLE. Any help would be appreciated. LAYER STATUS ON NAME radius TEMPLATE /web/etc/ws/gis/mapserver/query_templates/generic_empty.html TYPE POINT SIZEUNITS KILOMETERS CLASS NAME Search radius STYLE SYMBOL circle_ol COLOR 198 134 0 END STYLE SYMBOL cross COLOR 198 134 0 WIDTH 0.1 END END .. END Thanks Kathleen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Polygon Fill with text in MapServer 6.0.3 [SEC=UNCLASSIFIED]
Dear List, In MapServer 5.4.2, I had defined a symbol as follows: SYMBOL NAME IDR68 TYPE TRUETYPE FONT arial CHARACTER No data GAP 2 END and used it as a polygon fill for a layer CLASS STYLE SYMBOL IDR68 COLOR 0 0 0 OUTLINECOLOR 0 0 0 SIZE 12 END END In migrating to MapServer 6.0.3, I have done the following: SYMBOL NAME IDR68 TYPE TRUETYPE FONT arial CHARACTER No data END and in the layer CLASS STYLE SYMBOL IDR68 COLOR 0 0 0 SIZE 12 GAP 2 END STYLE OUTLINECOLOR 0 0 0 END END Instead of filling the polygon with No data, I only get a fill with the first character ie N. Is there a way to fill a polygon with text in MapServer 6.0?? Thanks Kathleen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] GetLegendGraphic when using MINSIZE/MAXSIZE [SEC=UNCLASSIFIED]
Dear List, When using MINSIZE and MAXSIZE for symbols in the mapfile, the GetLegendGraphic request seems to default to the MINSIZE. Is there a way that GetLegendGraphic can draw the symbol at the MAXSIZE? Thanks Kathleen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]
Hi Armin, Thanks for that. I would prefer not to use MapScript, but if that is the only way, I would be interested in some more code samples. Regards, Kathleen -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Armin Burger Sent: Monday, 5 March 2012 11:24 PM To: Rahkonen Jukka; mapserver-users@lists.osgeo.org; teknocrea...@gmail.com Subject: Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] Hello everybody there is a quite flexible and easy to use solution to achieve all these requirements with additional (non-standard) request parameters: using MapScript bindings for OWS/WxS requests (see e.g. http://mapserver.org/ogc/mapscript.html). I use both PHP and Python bindings and everything works very well. If PHP or Python are used via an Apache module I also could not measure real differences regarding speed of the responses (max 5% slower than mapserv CGI/FCGI, if at all). A standard WxS handling script has roughly 10-15 lines of code. The great advantage is that between handling the request parameters and returning the response to the client you have any conceivable possibilities to modify the map or layers via MapScript. This can take into account any key-value pairs from the request, and you can handle more complicated logic than with pure variable substitution. If there is interest I can provide some more code samples, could also be via the MapServer wiki. Regards Armin Original-Nachricht Datum: Mon, 5 Mar 2012 08:07:11 + Von: Rahkonen Jukka jukka.rahko...@mmmtike.fi An: \'teknocreator\' teknocrea...@gmail.com, \'mapserver-users@lists.osgeo.org\' mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] Hi, It would be nice to be able to change some processing directives through variable substitution. Multichannel satellite images are one obvious use case. I have predefined a few most common settings for 7-channel Landsat images as separate mapfiles but it would more convenient and flexible to let users select the BANDS, SCALE and LUT they want. It would be useful also when some other settings would suit better for printing than those adjusted for on-screen use. Would others find it reasonable to add PROCESSING to the items which support variable substitution? -Jukka Rahkonen- teknocreator wrote: Kathleen, I've searched through the lists and on the web for an answer to your issue as I have it too only with GRIB data. The MapServer docs seem to indicate that variable substitution won't work for the PROCESSING directive. Therefore I tried several variations Changing map file parameters via a form or a URL. What should've worked here considering that part of the documentation is to add this to the GetMap request string: map[layer].processing[0]=BANDS=01 because it was the first PROCESSING directive for my layer and it needs a string for the directive. But, I received an msloadLayer error. I tried a few variations but all ended up with the same error. I've seen folks have a similar issue with this in the MS Users list with no solution at present. While what Puneet wrote may be a solution for you and possibly our GRIB data as well, it seems like a much more complicated way just to get at a particular band in the file. I do see why this has been done as NetCDF does come in many flavors and there's the possibility of 4 dimensions in the file. There are many links on using WCS with NetCDF, a good number coming from UCAR. Still, this looks like a possible code problem where the ability to change map file parameter via a URL does not work in this case or else the ability to change BANDS needs to be added to variable substitution. Hopefully, someone from MapServer can help here. Looks like I'm going to be investigating WCS, though. I'll definitely be checking back on this one. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp 4519496p4545262.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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED]
Hi Puneet, I tried the variable substitution and it didn't work as I don't think PROCESSING is one of the parameters supported. I also looked at the link about WCS, but I only want WMS. I'm not sure how a tile index would work as I'm only using one file with multiple time bands. Plus, I looked at Changing map file parameters via a form or a URL, but wasn't sure of the syntax to change the band number. Thanks Kathleen From: Puneet Kishor [mailto:punk.k...@gmail.com] Sent: Wednesday, 29 February 2012 2:14 AM To: Kathleen Hirst Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED] On Feb 27, 2012, at 10:29 PM, Kathleen Hirst k.hi...@bom.gov.aumailto:k.hi...@bom.gov.au wrote: Dear List, I have a NetCDF file with contains over 150 timesteps. I can create a WMS for each timestep using PROCESSING BANDS=1, which means I have to define over 150 layers. I was hoping to only define the layer once and pass a variable for the time or the band number. Does anyone have any ideas? Kathleen, I wrote the following reply, and then realized that you may not be asking for this. Have you seen http://mapserver.org/ogc/wcs_format.html? For completeness, I will leave my original response as well. Kathleen, Neither have I done this before nor do I know the answer, but I *am* interested in how you solve it since I have interest in munging a bunch of netCDF data. I am wondering, couldn't you use the standard variable substitution as Mapserver supports that for stuff like layer names and class names? Something like (do check the exact syntax) PROCESSING BANDS=%band% and then past in the band via the query string ?band=1 http://mapserver.org/mapfile/variable_sub.html -- Puneet Kishor ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED]
Dear List, I have a NetCDF file with contains over 150 timesteps. I can create a WMS for each timestep using PROCESSING BANDS=1, which means I have to define over 150 layers. I was hoping to only define the layer once and pass a variable for the time or the band number. Does anyone have any ideas? Thanks Kathleen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS request outputting csv and limited by maxfeatures [SEC=UNCLASSIFIED]
Dear List, For a WFS 1.0.0 request, I am wanting to output text/csv and also restrict the number of records returned by using maxfeatures. A request is successful if the data source is OGR (csv file), but I get the following error if the data source is PostGIS. Content-type: text/xml ?xml version='1.0' encoding=ISO-8859-1 ? ServiceExceptionReport version=1.2.0 xmlns=http://www.opengis.net/ogc; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/ogc http://www.bom.gov.au/wfs/1.0.0/OGC-exception.xsd; ServiceException code=NoApplicableCode locator=mapserv msOGRWriteFromQuery(): General error message. Failed to open result file #39;/tmp/4e48981a_2ffd_0/result.csv#39;. /ServiceException /ServiceExceptionReport The WFS request works fine (output GML or text/csv) without using maxfeatures. I get the same error if I use WFS_MAXFEATURES in the WEB metadata. I'm using Mapserver 6.0.1. Thanks, Kathleen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Pseudo Mercator/Google Projection wrapping around the world [SEC=UNCLASSIFIED]
Dear List, We are providing a WMS feed of polyline data that extends to 185 degrees. The data's projection is EPSG:4283. One of the supported projections is EPSG:3857. When clients use this projection (or EPSG:900915), the lines wrap around the world (across the correct lines), making the WMS unusable. One workaround is to clip the data at 180, but we would prefer not to do this. Is there any way to configure MapServer to prevent this problem? Thanks Kathleen ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
FW: [mapserver-users] display labels as an integer instead of scientific notations [SEC=UNCLASSIFIED]
Hi Mark, You can use an OGR connection for formatting of number fields when labelling in MapServer version 5.x. I think you need GDAL 1.6 or later. For example with a shapefile called test.shp with a field, testfld1, you can do the following to show only two decimal places. LAYER .. CONNECTIONTYPE OGR CONNECTION test.shp DATA select CAST(testfld1 AS numeric (4,2)) from test .. CLASS ... TEXT ([testfld1)] LABEL .. END END END Regards, Kathleen From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, 28 July 2011 5:26 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] display labels as an integer instead of scientific notations. Hello, I have a label that displays a number in scientific notation; for example 2.08+e002. I would like the label to display as an integer such as 2.08. In the past I asked a similar question about HTML templates and someone mentioned that I should use [item name=area precision=2] Unfortunately, the statement seems invalid as a label in the .map file. Does anyone know how I can display a number as an integer? Or will I have to convert all my values to Text? I am using mapserver 5.4 Thanks Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] numeric label without decimal ? [SEC=UNCLASSIFIED]
Hi Tonton and Carlos, You can use an OGR connection to remove decimal points for labelling. I think you need GDAL 1.6 or later. For example with a shapefile called test.shp with a field, testfld1, you can do the following LAYER .. CONNECTIONTYPE OGR CONNECTION test.shp DATA select CAST(testfld1 AS INTEGER (4)) from test .. CLASS ... TEXT ([testfld1)] LABEL .. END END END Regards, Kathleen From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Saturday, 5 June 2010 1:05 AM To: Tonton; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] numeric label without decimal ? Tonton, This is because de data domain, there's no way to apply a format with the LABEL tag, you have to change the data domain from the data source directly IC Carlos Ruiz From: Tonton to.ton...@gmail.com To: mapserver-users@lists.osgeo.org Sent: Fri, June 4, 2010 8:05:30 AM Subject: [mapserver-users] numeric label without decimal ? hello i use shapefile to render a map in wms layer. it is working good but ... the column i use TXT have number ( 12 30 255 etc...) so i see with 10 digits after the point ( 12. 30.0 255.0 etc...) if anybody know how to set that my label was text or integer and not decimal ? i haven't found it in mapserver documentation Tonton next the layer LAYER NAME LabelParcelle.shp DATA LabelParcelle.shp TYPE POINT DEBUG 5 DUMP TRUE LABELCACHE ON METADATA WMS_TITLE LabelParcelle.shp WMS_SRS EPSG:27572 WFS_TITLE LabelParcelle.shp WFS_SRS EPSG:27572 END LABELITEM TXT CLASS NAME LabelParcelle.shp STYLE SYMBOL 7 SIZE 2 OUTLINECOLOR 0 0 0 COLOR 0 0 0 END LABEL TYPE BITMAP POSITION AUTO SIZE MEDIUM COLOR 0 0 0 End #LABEL END END #Layer ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users