[mapserver-users] CLASS visualization with different attribute value

2011-01-17 Thread Simone Frigerio
Hello,
I need to visualize a POLYGON with one class composed by different values
of the same attribute. This is the string I used, but no visualizations
occour.

 LAYER
NAME COMBI_DF_RF_SL
TYPE POLYGON
..
CLASSITEM Combis
CLASS
  NAME PROVA2
  EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)
  STYLE
COLOR 251 25 11
...
  END
END
  END

The attribute Combis has thousands of recordsand different values. Could
be possible aggregate in a EXPRESSION string like i did with pixel value
for raster?

Thanks!
Simone

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Is --with-experimental-png still experimental ?

2011-01-17 Thread Ivan Mincik
Hi,
I am using compile option  --with-experimental-png for some 2 Years
on all production machines to produce nice quantized PNG images. I
would like to ask, if this option should be still marked as
experimental ?


My setting:
1. Debian Lenny
2. Mapserver 5.2 - 5.6
3. Mapfile

   IMAGETYPE 'AGG_PNG'
   OUTPUTFORMAT
   NAME 'AGG_PNG'
   DRIVER 'AGG/PNG'
   MIMETYPE 'image/png'
   IMAGEMODE RGBA
   FORMATOPTION 'QUANTIZE_FORCE=ON'
   FORMATOPTION 'QUANTIZE_DITHER=OFF'
   FORMATOPTION 'QUANTIZE_COLORS=256'
   FORMATOPTION 'INTERLACE=OFF'
   EXTENSION 'png'
   END

Thanks,
Ivan
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is --with-experimental-png still experimental ?

2011-01-17 Thread thomas bonfort
Ivan,
for the 5.x branches, it will stay like that.
for the 6.0 and subsequent releases, the flag is removed and the
functionality is native.

regards,
thomas

On Mon, Jan 17, 2011 at 12:54, Ivan Mincik ivan.min...@gmail.com wrote:
 Hi,
 I am using compile option  --with-experimental-png for some 2 Years
 on all production machines to produce nice quantized PNG images. I
 would like to ask, if this option should be still marked as
 experimental ?


 My setting:
 1. Debian Lenny
 2. Mapserver 5.2 - 5.6
 3. Mapfile

       IMAGETYPE 'AGG_PNG'
       OUTPUTFORMAT
               NAME 'AGG_PNG'
               DRIVER 'AGG/PNG'
               MIMETYPE 'image/png'
               IMAGEMODE RGBA
               FORMATOPTION 'QUANTIZE_FORCE=ON'
               FORMATOPTION 'QUANTIZE_DITHER=OFF'
               FORMATOPTION 'QUANTIZE_COLORS=256'
               FORMATOPTION 'INTERLACE=OFF'
               EXTENSION 'png'
       END

 Thanks,
 Ivan
 ___
 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


[mapserver-users] MS4W 3.0 released!

2011-01-17 Thread Jeff McKenna
I am very happy to announce that MapServer for Windows (MS4W) version 
3.0 is now available, with

improvements and bug fixes for many libraries.  I also updated the
Windows Setup Installer, and made some changes there was well.  Here are
the download links:

   Windows Setup Installer:
http://www.maptools.org/dl/ms4w/ms4w-3.0-setup.exe

   Archive: http://www.maptools.org/dl/ms4w/ms4w_3.0.zip

As always I encourage feedback, so if you find any problems please file
a bug in the the bug tracker, noting the 3.0 version in your summary
(login or create an account at:
http://bugzilla.maptools.org/query.cgi?GoAheadAndLogIn=1 then search the
MS4W product to check for existing tickets, and then click New' to
file a ticket).


Here is the log of the recent changes for this release:

   - upgraded MapServer and MapScript to 5.6.5 release (ticket 
2246)

   - upgraded GDAL to 1.7.3 (ticket 2280)
   - upgraded Apache to 2.2.17 (ticket 2279)
   - upgraded PHP to 5.3.5 (ticket 2278)
   - rebuilt PHP with exif support (ticket 2261)
   - upgraded mod_fcgid to 2.3.6 (ticket 2281)
   - fixed GIF symbol rendering problem based on size (ticket 2094)
   - upgraded to PostgreSQL 9.0.2 support for GDAL
   - upgraded to jpeg 8b support for GDAL and MapServer
   - upgraded to zlib 1.2.5 support for GDAL and MapServer
   - upgraded to geotiff 1.3.1-dev support for GDAL
   - upgraded to xerces 3.1.1 support for GDAL
   - upgraded to HDF5 5.1.8 support for GDAL
   - upgraded to OpenSSL 1.0.0c support for GDAL
   - upgraded to CURL 7.21.3 support for GDAL and MapServer
   - upgraded to Freetype 2.4.4 support for MapServer
   - upgraded to Iconv 1.11.1 support for MapServer
   - upgraded to libxml2 2.7.7 support for MapServer
   - added shptreetst utility (ticket 2253)


And many more improvements through the long Beta release plan! (history:
http://www.maptools.org/ms4w/index.phtml?page=HISTORY.txt)

Thank you for your continued use and support of the MapServer for
Windows product.

-jeff

--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Is --with-experimental-png still experimental ?

2011-01-17 Thread Ivan Mincik
On Mon, Jan 17, 2011 at 1:09 PM, thomas bonfort
thomas.bonf...@gmail.com wrote:
 Ivan,
 for the 5.x branches, it will stay like that.
 for the 6.0 and subsequent releases, the flag is removed and the
 functionality is native.

Thanks a lot for answer.

Ivan
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] CLASS visualization with different attribute value

2011-01-17 Thread Lime, Steve D (DNR)
The expression is invalid since 0_2_0_4_5 isn't quoted and isn't a number. Try:

  EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Simone Frigerio 
[simone.frige...@univie.ac.at]
Sent: Monday, January 17, 2011 3:55 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] CLASS visualization with different attribute value

Hello,
I need to visualize a POLYGON with one class composed by different values
of the same attribute. This is the string I used, but no visualizations
occour.

 LAYER
NAME COMBI_DF_RF_SL
TYPE POLYGON
..
CLASSITEM Combis
CLASS
  NAME PROVA2
  EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)
  STYLE
COLOR 251 25 11
...
  END
END
  END

The attribute Combis has thousands of recordsand different values. Could
be possible aggregate in a EXPRESSION string like i did with pixel value
for raster?

Thanks!
Simone

___
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


[mapserver-users] Z_BEST_COMPRESSION undeclared Error on MapServer 5.6.5 make.

2011-01-17 Thread Passmore, James H.
I'm trying to compile MapServer 5.6.5 on Ubuntu 10.10, the ultimate aim is to 
add a patch to support the INSPIRE language requirement (otherwise I'd use one 
of the existing binaries).

I can run configure ( ./configure --with-ogr --with-gdal --with-wfsclient 
--with-wmsclient --with-proj --with-wcs --with-postgis --with-geos --with-sos 
--with-experimental-png --with-fribidi-config --with-threads --enable-debug 
--with-wfs ) and this completes with no errors.

ZLIB is found:

configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
using libz from system libs (-DUSE_ZLIB).

and I have reported:

MapServer is now configured for 

 -- Compiler Info - 
  C compiler:gcc -g  -fPIC -Wall  
  C++ compiler:  g++ -g  -fPIC -Wall  
  Debug: -g 
  Generic NINT:  

 -- Renderer Settings - 
  OpenGL support:
  zlib support:  -DUSE_ZLIB
  png support:   
  palette rgba png support:  -DUSE_RGBA_PNG
  jpeg support:  
  iconv support: -DUSE_ICONV
  AGG support:   -DUSE_AGG
  Cairo (SVG,PDF) support:   
  Ming(flash) support:   
  PDFLib support:

 -- Support Libraries - 
  Proj.4 support:-DUSE_PROJ
  Libxml2 support:   -DUSE_LIBXML2
  FriBidi support:   -DUSE_FRIBIDI
  Curl support:  -DUSE_CURL
  FastCGI support:   
  Threading support: -DUSE_THREAD
  GEOS support:  -DUSE_GEOS -DGEOS_HAS_SIMPLIFY

 -- Data Format Drivers --- 
  native tiff support:   
  PostGIS support:   -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION
  EPPL7 support: -DUSE_EPPL
  ArcSDE support:
  OGR support:   -DUSE_OGR
  GDAL support:  -DUSE_GDAL
  Oracle Spatial support:

 -- OGC Services -- 
  WMS Server:-DUSE_WMS_SVR
  WMS Client:-DUSE_WMS_LYR
  WFS Server:-DUSE_WFS_SVR
  WFS Client:-DUSE_WMS_LYR
  WCS Server:-DUSE_WCS_SVR
  SOS Server:-DUSE_SOS_SVR

 -- MapScript - 
  PHP MapScript: no


However when I run make I get the following error:

local/include-I/usr/include/libxml2 -I/usr/local/include  maprgbapng.c -o 
maprgbapng.o
maprgbapng.c: In function ‘ms_png_write_image_init’:
maprgbapng.c:146: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this 
function)
maprgbapng.c:146: error: (Each undeclared identifier is reported only once
maprgbapng.c:146: error: for each function it appears in.)
make: *** [maprgbapng.o] Error 1


Can anyone tell me where I might be going wrong?

thanks

James Passmore
GIS and WWW Specialist
Information Systems and Infrastructure
British Geological Survey







-- 
This message (and any attachments) is for the recipient only NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management 
system.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] CLASS visualization with different attribute value

2011-01-17 Thread Simone Frigerio

Thanks for support, Steve.
In the middle I tried also the expression:
CLASS
 NAME PROVA7
 GROUP group7
 EXPRESSION /0_2_0_4_5|1_2_3_4_5/
 STYLE
 SYMBOL vertical-DF
 SIZE 10


It is working. Is it conceptually the same?
Thanks.
s





On Mon, January 17, 2011 17:49, Lime, Steve D (DNR) wrote:
 The expression is invalid since 0_2_0_4_5 isn't quoted and isn't a number.
 Try:

   EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)

 Steve
 
 From: mapserver-users-boun...@lists.osgeo.org
 [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Simone Frigerio
 [simone.frige...@univie.ac.at]
 Sent: Monday, January 17, 2011 3:55 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] CLASS visualization with different attribute
 value

 Hello,
 I need to visualize a POLYGON with one class composed by different values
 of the same attribute. This is the string I used, but no visualizations
 occour.

  LAYER
 NAME COMBI_DF_RF_SL
 TYPE POLYGON
 ..
 CLASSITEM Combis
 CLASS
   NAME PROVA2
   EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)
   STYLE
 COLOR 251 25 11
 ...
   END
 END
   END

 The attribute Combis has thousands of recordsand different values. Could
 be possible aggregate in a EXPRESSION string like i did with pixel value
 for raster?

 Thanks!
 Simone

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users






-- 
Simone Frigerio
Department of Geography and Regional Research
University of Vienna
Universitaetsstr. 7
A-1010 Vienna
AUSTRIA

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


AW: [mapserver-users] CLASS visualization with different attributevalue

2011-01-17 Thread Arnd Wippermann
And OR instead of AND I would suggest.

Arnd 

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Lime, Steve
D (DNR)
Gesendet: Montag, 17. Januar 2011 17:49
An: Simone Frigerio; mapserver-users@lists.osgeo.org
Betreff: RE: [mapserver-users] CLASS visualization with different
attributevalue

The expression is invalid since 0_2_0_4_5 isn't quoted and isn't a number.
Try:

  EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)

Steve

From: mapserver-users-boun...@lists.osgeo.org
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Simone Frigerio
[simone.frige...@univie.ac.at]
Sent: Monday, January 17, 2011 3:55 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] CLASS visualization with different attribute
value

Hello,
I need to visualize a POLYGON with one class composed by different values of
the same attribute. This is the string I used, but no visualizations occour.

 LAYER
NAME COMBI_DF_RF_SL
TYPE POLYGON
..
CLASSITEM Combis
CLASS
  NAME PROVA2
  EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5)
  STYLE
COLOR 251 25 11
...
  END
END
  END

The attribute Combis has thousands of recordsand different values. Could
be possible aggregate in a EXPRESSION string like i did with pixel value for
raster?

Thanks!
Simone

___
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

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Z_BEST_COMPRESSION undeclared Error on MapServer 5.6.5 make.

2011-01-17 Thread thomas bonfort
add --with-png, and make sure the png development headers are available.

regards,
thomas

On Mon, Jan 17, 2011 at 18:07, Passmore, James H. jp...@bgs.ac.uk wrote:
 I'm trying to compile MapServer 5.6.5 on Ubuntu 10.10, the ultimate aim is to 
 add a patch to support the INSPIRE language requirement (otherwise I'd use 
 one of the existing binaries).

 I can run configure ( ./configure --with-ogr --with-gdal --with-wfsclient 
 --with-wmsclient --with-proj --with-wcs --with-postgis --with-geos --with-sos 
 --with-experimental-png --with-fribidi-config --with-threads --enable-debug 
 --with-wfs ) and this completes with no errors.

 ZLIB is found:

 configure: checking where Zlib is installed...
 checking for zlibVersion in -lz... yes
        using libz from system libs (-DUSE_ZLIB).

 and I have reported:

 MapServer is now configured for

  -- Compiler Info -
  C compiler:                gcc -g  -fPIC -Wall
  C++ compiler:              g++ -g  -fPIC -Wall
  Debug:                     -g
  Generic NINT:

  -- Renderer Settings -
  OpenGL support:
  zlib support:              -DUSE_ZLIB
  png support:
  palette rgba png support:  -DUSE_RGBA_PNG
  jpeg support:
  iconv support:             -DUSE_ICONV
  AGG support:               -DUSE_AGG
  Cairo (SVG,PDF) support:
  Ming(flash) support:
  PDFLib support:

  -- Support Libraries -
  Proj.4 support:            -DUSE_PROJ
  Libxml2 support:           -DUSE_LIBXML2
  FriBidi support:           -DUSE_FRIBIDI
  Curl support:              -DUSE_CURL
  FastCGI support:
  Threading support:         -DUSE_THREAD
  GEOS support:              -DUSE_GEOS -DGEOS_HAS_SIMPLIFY

  -- Data Format Drivers ---
  native tiff support:
  PostGIS support:           -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION
  EPPL7 support:             -DUSE_EPPL
  ArcSDE support:
  OGR support:               -DUSE_OGR
  GDAL support:              -DUSE_GDAL
  Oracle Spatial support:

  -- OGC Services --
  WMS Server:                -DUSE_WMS_SVR
  WMS Client:                -DUSE_WMS_LYR
  WFS Server:                -DUSE_WFS_SVR
  WFS Client:                -DUSE_WMS_LYR
  WCS Server:                -DUSE_WCS_SVR
  SOS Server:                -DUSE_SOS_SVR

  -- MapScript -
  PHP MapScript:             no


 However when I run make I get the following error:

 local/include    -I/usr/include/libxml2 -I/usr/local/include  maprgbapng.c -o 
 maprgbapng.o
 maprgbapng.c: In function ‘ms_png_write_image_init’:
 maprgbapng.c:146: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this 
 function)
 maprgbapng.c:146: error: (Each undeclared identifier is reported only once
 maprgbapng.c:146: error: for each function it appears in.)
 make: *** [maprgbapng.o] Error 1


 Can anyone tell me where I might be going wrong?

 thanks

 James Passmore
 GIS and WWW Specialist
 Information Systems and Infrastructure
 British Geological Survey







 --
 This message (and any attachments) is for the recipient only NERC
 is subject to the Freedom of Information Act 2000 and the contents
 of this email and any reply you make may be disclosed by NERC unless
 it is exempt from release under the Act. Any material supplied to
 NERC may be stored in an electronic records management 
 system.___
 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


[mapserver-users] Typo on Mapserver homepage

2011-01-17 Thread Ivan Mincik
Hi,
there is a typo in Announcements paragraph (version 5.6.5). MapServer
5.6.3 has been released  should be MapServer 5.6.5 has been
released ...

Ivan
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer 5.6.6 released

2011-01-17 Thread Daniel Morissette

The MapServer team announces the release of MapServer version 5.6.6.

No new functionality has been added. 5.6.6 is a maintenance release that 
fixes some issues that were found since the release of 5.6.5. The list 
of fixes since 5.6.5 is included at the end of this message.



Source and binary downloads:


The source code is available at:

http://mapserver.org/download.html

The binary distributions listed in the download page should be updated
with binaries for the new 5.6.6 release soon.


Version 5.6.6 (2011-01-17):
---

- SLD: Fix point symbolizer issue when color is not set (#3658)

- Fix WMS EXCEPTIONS parameter issue with fastcgi (#3525)

- Fixed missing time in msDrawMap logging (#3651)

- Fixed Internal error with Oracle Spatial multi point geometries (#3627)

- Fixed double free in shp2img.c (#3497)

- Fixed free(): invalid next size in mapfile.c (#3604)

- Fix for the memory corruption when mapping the string data type in the
  Java bindings (3491)

- Correct wms 1.3.0 latlong bbox error (#2578)

- Fix ProperyIsLike not used efficiently with Oracle (#3557)

- Fixed msOGRGetSymbolId according to the changes in gdal 1.8 (#3556)

- Fixed crash when drawing a map using UNIQUE fid in the layer data (#3271)

- Fixed Oracle Spatial Data gets corrupt (#3541)

- Fixed issue with multiple styles and binding (#3538)

- Fixed multiple include tags not supported in xml mapfiles (#3530)

- Ensure the class is not marked BeforeFieldInit causing memory corruption
  with C#/CLR4 (#3438)

- Fixed MSSQL2008 driver returning invalid extent (#3498)

- Fix computation of shape bounds when the first line contains no points
  (#3119)(fixes #3383)

- Fixed error message tiles on zero-sized map cause memory allocation 
errors

  in maperror.c. (#3524)

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Typo on Mapserver homepage

2011-01-17 Thread Daniel Morissette

On 11-01-17 05:30 PM, Ivan Mincik wrote:

Hi,
there is a typo in Announcements paragraph (version 5.6.5). MapServer
5.6.3 has been released  should be MapServer 5.6.5 has been
released ...



Thanks for pointing it out. Your message came in just in time. I fixed 
the typo at the same time as I added the 5.6.6 release news item.


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Character Limit for NAME and GROUP

2011-01-17 Thread Lime, Steve D (DNR)
How are you arriving at the 54 character limit? There's not a limit beyond 
maximum token sizes in the flex generated lexer and those are much larger than 
54 chars...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of tellett 
[thomas.ell...@statkart.no]
Sent: Friday, January 14, 2011 9:28 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Character Limit for NAME and GROUP

Hi All,

I'm currently coming up against a limitation in mapserver with regards
character limits for certain elements, namely 'NAME' and 'GROUP'. It seems
theres a 54 character limit for these, does anybody know if this is correct
and if there's a possibility to fix it ( I appreciate this should be moved
to the dev list if a change can be made).

Regards
Tom
--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Character-Limit-for-NAME-and-GROUP-tp5922135p5922135.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