Theobald, Charles | 24 Jul 20:52 2015

Using a variable as a CLASSITEM

Is it still possible to use a variable for the value of CLASSITEM?  We're passing the field name to be used in
the CLASSes  in the URL as a variable (%dmmethod%):

    CLASSITEM  '%dmmethod%'
    FILTER ('[type]'='County')
    STATUS on
    CLASS
      NAME 'No Drought'
      EXPRESSION ('[%dmmethod%]'='-1')
      STYLE 
        COLOR           255 255 255       
        OUTLINECOLOR    20 20 20
      END
    END  
This used to work in previous versions.  There are 6 different fields that could be searched, for 6 possible
values.  I'd really like to avoid creating 36 classes for each layer that uses this attribute table.  I am
including dmmethod in a validation block in each layer trying to use this variable.  Mapserver version is 6.0.3

Any suggestions would be greatly appreciated.

Thank you.

Charles Theobald
NC Division of Water Resources
charles.theobald <at> ncdenr.gov
919-707-9136
*E-mail correspondence to and from this address may be subject to the North Carolina Public Records Law and
may be disclosed to third parties.

_______________________________________________
(Continue reading)

Theobald, Charles | 24 Jul 20:29 2015

Using a variable as a CLASSITEM

Is it still possible to use a variable for the value of CLASSITEM?  We're passing the field name to be used in
the CLASSes  in the URL as a variable (%dmmethod%):

    CLASSITEM  '%dmmethod%'
    FILTER ('[type]'='County')
    STATUS on
    CLASS
      NAME 'No Drought'
      EXPRESSION ('[%dmmethod%]'='-1')
      STYLE 
        COLOR           255 255 255       
        OUTLINECOLOR    20 20 20
      END
    END  
This used to work in previous versions.  There are 6 different fields that could be searched, for 6 possible
values.  I'd really like to avoid creating 36 classes for each layer that uses this attribute table.  I am
including dmmethod in a validation block in each layer trying to use this variable.  Mapserver version is 6.0.3

Any suggestions would be greatly appreciated.

Thank you.

Charles Theobald
NC Division of Water Resources
charles.theobald <at> ncdenr.gov
919-707-9136
*E-mail correspondence to and from this address may be subject to the North Carolina Public Records Law and
may be disclosed to third parties.

_______________________________________________
(Continue reading)

thomas bonfort | 24 Jul 10:49 2015
Picon

MapServer 7.0 release

Hi All,

The MapServer team is pleased to finally announce the release of
MapServer's 7th major version.

You'll find a list of major changes since version 6.4 in
http://www.mapserver.org/development/announce/7-0.html , the detailed
list of changes since the last beta2 in
http://www.mapserver.org/development/changelog/changelog-7-0.html ,
and the download links in http://www.mapserver.org/download.html . As
usual, please read the migration guide in
http://mapserver.org/MIGRATION_GUIDE.html if you are updating an
existing installation.

Best regards,
The MapServer PSC and developers.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

ankur chitranshi | 24 Jul 10:29 2015
Picon

mapserver mapfile -symbol image in centre

Hello all,

help me on finding a single image on center , in symbol of mapfile at mapserver

--
thanks & regards
Ankur Chitranshi
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Samuel Lapointe | 23 Jul 16:32 2015
Picon

ScribeUI version 1.6 released

Hi all,

I'm working on ScribeUI for Google Summer of Code 2015. For those who have never heard of it, ScribeUI is a web utility you can use to create and preview mapfiles, using the regular Mapserver syntax or a slightly different syntax called Scribe.

In this update I added map export and import, to let users share their maps more easily, along with multiple bugfixes. You can find a complete changelog on the release page.

As always, the demo has been updated, which means you can try ScribeUI without installing it by following this link. The demo is reset every day to keep it clean, so if you want to keep a copy of your maps, export them! If you're not sure where to start with the program, there is a getting started guide here.

If any issues arise or if you need help, don't hesitate to contact me either by email or through the issues system on Github.

Have a nice day!
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Matt McClelland | 23 Jul 08:54 2015

Mapfile classifying using two separate raster files?

Hi

I have two raster files one for vegetation and one for population density.
The two rasters (tif's) are at different scales

I am using value based classification to paint the map green where vegetation values are high.
Is there a way I can classify based on values from the two separate files in the same layer
I can't see how this will  work as you can only have one data item per layer?? (but worth asking)

I am wanting to be able to do something like
EXPRESSION ([veg] <= 50 and [population] > 500)

The only option I can think of is to make the two files into a single multiband tiff?  This seems wasteful as one is much lower resolution then the other. 

thoughts??

thanks

Matt  :)

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Steve.Toutant | 21 Jul 16:07 2015
Picon

ogc:PropertyIsEqualTo behaves like PropertyIsLike with oracle

Hi,
Using MS7+oracle, I apply a wfs filter PropertyIsEqualTo on a layer attribute (string) with a truncated string, so it should returns 0 features, but it returns 1 feature.
The complete value is "Antonin". I apply the filter using "Anto"


MS7+Postgis
<wfs:Query typeName="feature:SMDVDP_STAT_METE" srsName="EPSG:3857"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyIsEqualTo matchCase="false"><ogc:PropertyName>NOM_STAT</ogc:PropertyName><ogc:Literal>Anto</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></wfs:Query>
numberOfFeatures="0" , that is ok.
Ms log: FLTLayerApplyPlainFilterToLayer():  ("[NOM_STAT]" =*"Anto")

Ms7+Oracle
<wfs:Query typeName="feature:SMDVDP_STAT_METE" srsName="EPSG:32198"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyIsEqualTo matchCase="false"><ogc:PropertyName>NOM_STAT</ogc:PropertyName><ogc:Literal>Anto</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></wfs:Query>
numberOfFeatures="1" , BAD
Mslog: msOracleSpatialLayerTranslateFilter. String: ("[NOM_STAT]" =*"Anto")

Is the problem MS o oracle? Should I open a Ms bug?
Regards!

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Travis Kirstine | 20 Jul 18:13 2015

mapcache wms assembly

Does mapcache manage the number of internal concurrent request when assembling layers to ensure MaxClients is not exceeded?

--

Travis Kirstine, Web Development Supervisor
t 905‑477‑3600 x 301 | m 905‑534‑4798 | tkirstine <at> firstbasesolution.com

First Base Solutions Inc.
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
t 905‑477‑3600 | f 905‑477‑0892 | www.firstbasesolutions.com

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Peisheng Zhao | 15 Jul 22:17 2015
Picon

RGB values of transparent pixel

Hi all,

I have a satellite PNG image and related world file. The RGB value for transparent pixels is (255,0,255,0) in this image. When I use MapServer WMS to get this image, its RGB value for transparent pixels changes into (0,0,0,0). Does anyone know how to keep its original RGB value?

Thanks. 
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Dash | 15 Jul 18:30 2015
Picon

MapCache WMS request zoom level

Aloha folks,

we have created a tileset using mapcache.  Now we are trying to access an
image using wms, however, the zoom level is all wrong.  Is there a way to
specify zoom level as a parameters in the wms request?

thanks.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/MapCache-WMS-request-zoom-level-tp5215766.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

Pablo Cecconi | 14 Jul 21:58 2015
Picon

Problem with SIZEUNITS on SLD

Hi, I'm using Mapserver SLD parameter to style layers using QGIS to generate SLD files. The problem I have is that QGIS only allows to define symbol size in either Milimeters or Map Units but Mapserver SIZEUNITS parameter on the layer doesn't support Milimeters as a valid unit (or at least this is not documented) so the symbols usually look too small. Am I doing something wrong? 

Thanks,
Pablo

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Gmane