Re: [mapserver-users] MODE=legendicon GROUP Layers

2012-09-08 Thread Andrew Cowie

Certainly our mapfiles stay fairly static once we've set them up. Thanks for 
the suggestion, will have a look at trying it out.

Cheers

Andrew

From: Basques, Bob (CI-StPaul) 
bob.basq...@ci.stpaul.mn.usmailto:bob.basq...@ci.stpaul.mn.us
Date: Friday, 7 September 2012 17:06
To: Andrew Cowie 
cow...@landcareresearch.co.nzmailto:cow...@landcareresearch.co.nz, 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: RE: MODE=legendicon  GROUP Layers

All,

I’ve gotten around this in the past by using dummy layers specifically for 
Legend Creation.  You have complete control over the legend this way and can 
mix and match data sources however is required without needing to actually map 
the data out.  It is more work overall, but if your MapFiles don’t change 
often, it’s usually a one time setup thing.

I have a few map layers that have 7 or 8 different thresholds for display set 
MIN/MAXSCALEDENOMs and they all get a dummy layer that displays the same thing 
for all thresholds.

Bobb



From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andrew Cowie
Sent: Friday, September 07, 2012 10:46 AM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MODE=legendicon  GROUP Layers

Hello list

Wondering if anyone can help…

We have been utilising the legendicon mode to create a custom legend in our 
application, however some recent work to try and speed up our WMS has reworked 
our mapfiles slightly, making use of GROUP LAYERs to group almost identical 
LAYERs together, the only difference in the LAYERs being MAX  MINSCALEDENOM 
and the DATA request string to our PostGIS database – hitting a generalised 
version of the geometry at smaller scales.

LAYER
NAME 'lri_luc_main_gen_500k'
GROUP 'lri_luc_main'
DATA 'the_geom_gen_500k FROM data.lri USING UNIQUE gid 
USING srid=2193'
INCLUDE 'includes/lri_luc_main_layer.inc'
MINSCALEDENOM 251001
END
LAYER
NAME 'lri_luc_main_full'
GROUP 'lri_luc_main'
DATA 'the_geom FROM data.lri USING UNIQUE gid USING 
srid=2193'
INCLUDE 'includes/lri_luc_main_layer.inc'
MAXSCALEDENOM 251000
MINSCALEDENOM 15000
END

The request for the legend icon is of the form:

http://servername/cgi-bin/mapserv.fcgi?FORMAT=image/gifMAP=lri.mapMODE=legendiconICON=lri_luc_main,1http://%3cservername%3e/cgi-bin/mapserv.fcgi?FORMAT=image/gifMAP=lri.mapMODE=legendiconICON=lri_luc_main,1

This worked fine before we started using GROUPs, however now we now encounter 
the error:

mapserv(): Web application error. Icon layer=lri_luc_main not found in map file.

Does the legendicon mode work with GROUP layers?
If not, is there a way round this?

Or alternatively, perhaps there is a better way to request a generalised 
version of the geometry that doesn't involve GROUP LAYERs?

Any help or suggestions much appreciated.

Many thanks

Andrew


Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. 
If you receive it in error: (i) you must not read, use, disclose, copy or 
retain it; (ii) please contact the sender immediately by reply email and then 
delete the emails.
The views expressed in this email may not be those of Landcare Research New 
Zealand Limited. http://www.landcareresearch.co.nz


Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. 
If you receive it in error: (i) you must not read, use, disclose, copy or 
retain it; (ii) please contact the sender immediately by reply email and then 
delete the emails.
The views expressed in this email may not be those of Landcare Research New 
Zealand Limited. http://www.landcareresearch.co.nz
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MODE=legendicon GROUP Layers

2012-09-08 Thread Andrew Cowie
Thanks for the info Steve, that makes sense - when Groups are used to link
related layers things get too ambiguous. We'll look at our options with
this one.

Cheers

Andrew



On 07/09/2012 17:22, Lime, Steve D (DNR) steve.l...@state.mn.us wrote:

Legend icon only works with layers. Groups are just too ambiguous to
uniquely identify the class to be rendered. Groups don't have to be
organized by scale ranges. Often they link related layers, for example  a
bunch of road feature types. I think It would be possible to add support
to see if a group name can resolve to a single layer based on scale but
that doesn't exist in the code at this point.

Steve

From: mapserver-users-boun...@lists.osgeo.org
[mapserver-users-boun...@lists.osgeo.org] on behalf of Andrew Cowie
[cow...@landcareresearch.co.nz]
Sent: Friday, September 07, 2012 10:46 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MODE=legendicon  GROUP Layers

Hello list

Wondering if anyone can helpŠ

We have been utilising the legendicon mode to create a custom legend in
our application, however some recent work to try and speed up our WMS has
reworked our mapfiles slightly, making use of GROUP LAYERs to group
almost identical LAYERs together, the only difference in the LAYERs being
MAX  MINSCALEDENOM and the DATA request string to our PostGIS database ­
hitting a generalised version of the geometry at smaller scales.

LAYER
NAME 'lri_luc_main_gen_500k'
GROUP 'lri_luc_main'
DATA 'the_geom_gen_500k FROM data.lri USING UNIQUE
gid USING srid=2193'
INCLUDE 'includes/lri_luc_main_layer.inc'
MINSCALEDENOM 251001
END
LAYER
NAME 'lri_luc_main_full'
GROUP 'lri_luc_main'
DATA 'the_geom FROM data.lri USING UNIQUE gid USING
srid=2193'
INCLUDE 'includes/lri_luc_main_layer.inc'
MAXSCALEDENOM 251000
MINSCALEDENOM 15000
END

The request for the legend icon is of the form:

http://servername/cgi-bin/mapserv.fcgi?FORMAT=image/gifMAP=lri.mapMODE
=legendiconICON=lri_luc_main,1

This worked fine before we started using GROUPs, however now we now
encounter the error:

mapserv(): Web application error. Icon layer=lri_luc_main not found in
map file.

Does the legendicon mode work with GROUP layers?
If not, is there a way round this?

Or alternatively, perhaps there is a better way to request a generalised
version of the geometry that doesn't involve GROUP LAYERs?

Any help or suggestions much appreciated.

Many thanks

Andrew


Please consider the environment before printing this email
Warning: This electronic message together with any attachments is
confidential. If you receive it in error: (i) you must not read, use,
disclose, copy or retain it; (ii) please contact the sender immediately
by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research
New Zealand Limited. http://www.landcareresearch.co.nz



Please consider the environment before printing this email
Warning:  This electronic message together with any attachments is 
confidential. If you receive it in error: (i) you must not read, use, disclose, 
copy or retain it; (ii) please contact the sender immediately by reply email 
and then delete the emails.
The views expressed in this email may not be those of Landcare Research New 
Zealand Limited. http://www.landcareresearch.co.nz
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer 6.2.0 beta3 release

2012-09-08 Thread thomas bonfort
Mac Homebrew users can test this beta by running:

brew install 
https://raw.github.com/mapserver/packaging/master/homebrew/mapserver.rb

This installer is in it's early days, any feedback more than welcome.

regards,
thomas

On Thu, Sep 6, 2012 at 8:07 PM, thomas bonfort thomas.bonf...@gmail.com wrote:
 The MapServer Team is pleased to announce the release of MapServer
 6.2.0 beta3. This is the third beta on our way to a final 6.2 release,
 and contains many fixes that we encourage you to test. Depending on issues
 found in this beta release, we should probably be able to publish a release
 candidate for the next iteration.

 The changelog since beta3 is included in this email, or can be consulted here:


 http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta3.html

 The source for this release can be downloaded at:

http://mapserver.org/download.html
 or
http://download.osgeo.org/mapserver/mapserver-6.2.0-beta3.tar.gz

 The binary distributions listed in the download page should be updated
 with binaries for the new 6.2.0-beta3 release in the next couple of days.

 Once again we need your help to ensure a high quality product, so
 please help out by testing your applications with this new code base.

 Thanks! - The MapServer Team


 $ git --no-pager  log --no-merges  --pretty=format:%h %ai
 (%an)%n%s%n rel-6-2-0-beta2..HEAD | gsed  's!#\([0-9]\+\)!
 https://github.com/mapserver/mapserver/issues/\1 !g'

 00791ca 2012-09-06 19:28:18 +0200 (Thomas Bonfort)
 update header version for beta3

 af90e5a 2012-09-06 19:10:49 +0200 (Stephan Meissl)
 Fixing Style inheritance in WMS (
 https://github.com/mapserver/mapserver/issues/4442 )

 c55668e 2012-09-06 15:48:04 +0200 (Thomas Bonfort)
 avoir writing default values to STYLE (
 https://github.com/mapserver/mapserver/issues/4446 )

 191d0c9 2012-09-06 15:32:36 +0200 (Thomas Bonfort)
 php-mapscript allow setting NULL template (
 https://github.com/mapserver/mapserver/issues/4443 )

 f8d8837 2012-09-06 14:23:01 +0200 (Thomas Bonfort)
 create python-mapscript install destination directory (
 https://github.com/mapserver/mapserver/issues/4445 )

 8b61e09 2012-09-06 12:39:30 +0200 (Thomas Bonfort)
 adjust clip buffer for polygons in image space (
 https://github.com/mapserver/mapserver/issues/179 )

 f5e1bec 2012-09-05 17:48:45 +0200 (Thomas Bonfort)
 adjust clipping buffer to avoid edge artifacts (
 https://github.com/mapserver/mapserver/issues/179 )

 9c9d999 2012-09-05 01:35:27 -0700 (Umberto Nicoletti)
 fix for  https://github.com/mapserver/mapserver/issues/4417 : Oracle
 and queryByAttributes doesn't run

 d6be4e6 2012-09-05 14:27:22 +0200 (Stephan Meissl)
 Fixing wrong size in LegendURL of root layer (
 https://github.com/mapserver/mapserver/issues/4441 ).

 40ad795 2012-09-05 14:22:12 +0200 (Thomas Bonfort)
 build and clean mapscriptvars utility file (
 https://github.com/mapserver/mapserver/issues/4440 )

 fadc37a 2012-09-05 14:14:50 +0200 (Thomas Bonfort)
 fix ogc equals operator after rfc 64 (
 https://github.com/mapserver/mapserver/issues/3613 )

 ee0e42c 2012-09-05 14:11:57 +0200 (Thomas Bonfort)
 allow empty wms styles ( https://github.com/mapserver/mapserver/issues/4355 )

 5e9c8a1 2012-09-05 13:32:02 +0200 (Thomas Bonfort)
 deactivate postgis getextent function (
 https://github.com/mapserver/mapserver/issues/4039 )

 9184876 2012-09-05 13:26:43 +0200 (Thomas Bonfort)
 avoid token collisions in parser when reading char by char (
 https://github.com/mapserver/mapserver/issues/4012 )

 9cb9e5e 2012-09-05 13:19:44 +0200 (Thomas Bonfort)
 adjust letterspacing on follow labels (
 https://github.com/mapserver/mapserver/issues/4404 )

 2d474ae 2012-09-04 20:47:34 +0200 (szekerest)
 SDE: Fix for the crash with NCLOB type (
 https://github.com/mapserver/mapserver/issues/3001 )

 73c9d9d 2012-09-03 18:55:09 +0200 (Stephan Meissl)
 Fixing wms_style_name in GetMap requests (
 https://github.com/mapserver/mapserver/issues/4439 ).

 ca2cbad 2012-08-31 17:30:53 +0200 (Thomas Bonfort)
 add branch-6-2 to stable merge script (
 https://github.com/mapserver/mapserver/issues/4437 )

 155c827 2012-08-30 14:49:57 + (Alan Boudreault)
 Fix queryByFilter segfault in SWIG...

 6f293c3 2012-08-30 14:18:18 + (Alan Boudreault)
 Fix in msQueryBy* functions to support the startindex from MapScript

 75be13f 2012-08-30 13:30:24 + (Alan Boudreault)
 Modified WFSGetFeature to support maxfeatures across layers rather
 than within ( https://github.com/mapserver/mapserver/issues/4011 )

 5af6da6 2012-08-30 10:39:12 +0200 (Stephan Meissl)
 Updating HISTORY.TXT

 5ca7cf0 2012-08-29 16:40:20 + (Alan Boudreault)
 Fix segfault in queryByFilter function in PHP/MapScript

 6990f04 2012-08-29 15:27:01 + (Alan Boudreault)
 Fix another issue in symbolObj.getImage related to internal renderer object

 e1d9b33 2012-08-29 15:59:49 +0200 (Stephan Meissl)
 Adjusting to GMLCOV 1.0 corrigendum 1.0.1 (
 https://github.com/mapserver/mapserver/issues/4003 ).