Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test! (OpenGL)

2011-03-23 Thread Toby Rahilly
Hi Andy, Thomas,

Yes OpenGL requires a good video card to be worth while. A poor
quality video card will not only result in bad performance, but low
quality renderings.

That said, it shouldn't be crashing, and I'll take a look at the
dependency on X.

Cheers,
Toby

On Fri, Mar 11, 2011 at 7:20 PM, thomas bonfort
thomas.bonf...@gmail.com wrote:
 Andy,
 yes a (beefy) video card is needed or at least wanted, as you want to
 offset the calculations to the GPU. If one isn't present, you're going
 to fall back to a software opengl implementation which will be orders
 of magnitude slower than what AGG is going to take.

 cc-ing Toby if he wants to comment further on this.

 regards,
 thomas

 On Fri, Mar 11, 2011 at 03:02, Andy Colson a...@squeakycode.net wrote:
 On 03/10/2011 07:16 PM, Andy Colson wrote:

 On 03/09/2011 08:47 PM, Daniel Morissette wrote:

 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


 I cannot seem to get opengl to work.

 a stacktrace of shp2img:

 Program received signal SIGSEGV, Segmentation fault.
 0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
 (gdb) backtrace
 #0 0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
 #1 0x0047667f in OglRenderer::OglRenderer(unsigned int, unsigned
 int, colorObj*) ()
 #2 0x00474988 in msImageCreateOgl(int, int, outputFormatObj*,
 colorObj*) ()
 #3 0x0044cd26 in msPrepareImage ()
 #4 0x0044ce75 in msDrawMap ()
 #5 0x00415067 in main ()
 (gdb)



 MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
 SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE
 SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

 I dont need special video card and/or drivers, do I? And I'm not running
 X. Dont need to, do I?

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

 To reply to myself, after some googling, it looks like yes, X is needed.

 Which kinda sucks.  This is a webserver, it runs apache and postgresql.  In
 a rack someplace.  Doesn't even have a monitor attached.  If I ever need to
 do something I ssh in.

 Its also has a crappy video card.  Cuz its a server.  Never thought I'd need
 good video.

 So here is my delima: do I buy a $80 video card, and run X, so I can get
 hardware accelerated maps?  Is it worth it?  Is it that much faster?

 How many concurrent maps can be drawn at once?  If 10 people hit my website
 can all 10 images be rendered at once?  Or will one run and the others error
 out?  Is there an upper limit for the number of concurrent renderings?

 Any benchmarks?

 -Andy
 ___
 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] MapServer 6.0.0-beta1 release - Please test!

2011-03-11 Thread thomas bonfort
Andy,
yes a (beefy) video card is needed or at least wanted, as you want to
offset the calculations to the GPU. If one isn't present, you're going
to fall back to a software opengl implementation which will be orders
of magnitude slower than what AGG is going to take.

cc-ing Toby if he wants to comment further on this.

regards,
thomas

On Fri, Mar 11, 2011 at 03:02, Andy Colson a...@squeakycode.net wrote:
 On 03/10/2011 07:16 PM, Andy Colson wrote:

 On 03/09/2011 08:47 PM, Daniel Morissette wrote:

 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


 I cannot seem to get opengl to work.

 a stacktrace of shp2img:

 Program received signal SIGSEGV, Segmentation fault.
 0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
 (gdb) backtrace
 #0 0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
 #1 0x0047667f in OglRenderer::OglRenderer(unsigned int, unsigned
 int, colorObj*) ()
 #2 0x00474988 in msImageCreateOgl(int, int, outputFormatObj*,
 colorObj*) ()
 #3 0x0044cd26 in msPrepareImage ()
 #4 0x0044ce75 in msDrawMap ()
 #5 0x00415067 in main ()
 (gdb)



 MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
 SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE
 SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

 I dont need special video card and/or drivers, do I? And I'm not running
 X. Dont need to, do I?

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

 To reply to myself, after some googling, it looks like yes, X is needed.

 Which kinda sucks.  This is a webserver, it runs apache and postgresql.  In
 a rack someplace.  Doesn't even have a monitor attached.  If I ever need to
 do something I ssh in.

 Its also has a crappy video card.  Cuz its a server.  Never thought I'd need
 good video.

 So here is my delima: do I buy a $80 video card, and run X, so I can get
 hardware accelerated maps?  Is it worth it?  Is it that much faster?

 How many concurrent maps can be drawn at once?  If 10 people hit my website
 can all 10 images be rendered at once?  Or will one run and the others error
 out?  Is there an upper limit for the number of concurrent renderings?

 Any benchmarks?

 -Andy
 ___
 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] MapServer 6.0.0-beta1 release - Please test!

2011-03-11 Thread Lime, Steve D (DNR)
This is fixed in svn. See http://trac.osgeo.org/mapserver/ticket/3727.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Colson 
[a...@squeakycode.net]
Sent: Thursday, March 10, 2011 4:46 PM
To: Lime, Steve D (DNR)
Cc: mapserver-users; Daniel Morissette
Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Colson
 Sent: Thursday, March 10, 2011 11:39 AM
 To: Daniel Morissette
 Cc: mapserver-users
 Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

 On 3/9/2011 8:47 PM, Daniel Morissette wrote:
 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


 My mapfile has:

 LABEL
   TYPE truetype
   FONT Vera
   SIZE 10
   COLOR 255 255 255
   OUTLINECOLOR 0 61 245
   BUFFER 3
   ANGLE [txt_angle]
   POSITION cc
   PARTIALS false
 END

 I get error:

 ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()

 (the line number is correct... that's very nice)

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



On 3/10/2011 3:18 PM, Lime, Steve D (DNR) wrote:
  Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img?
Will have a look.
 
  THANKS FOR TESTING!!!
 
  Steve
 

Both fail.  Here is the map file.  It uses postGis, hopefully it'll die
parsing before you actually need to hit the db.


-Andy

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


RE: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-11 Thread Peter Hopfgartner
Hi Daniel


Daniel Morissette dmorisse...@mapgears.com wrote
Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Date: 10.03.2011 20:05

Hi Peter,

It is quite likely that you are using a SWIG version newer than 1.3.36.


CentOS comes with swig 1.3.29, which, I guess, is not recent enough. I tried to 
skip make interface, but swig is run even without this. How can I avoid that 
swig regenerates the wrappers?

Anyway, having a closer look, it seems more that CCFLAGS was not build 
correctly, since it contains things like @AGG_ENABLED@ @PDF_ENABLED@ which 
leads to the errors:
gcc: @AGG_ENABLED@: No such file or directory
gcc: @PDF_ENABLED@: No such file or directory
gcc: @PDF_INC@: No such file or directory

The others are just warnings.

The Java SWIG wrappers work best with SWIG 1.3.36. The MapServer source 
package already contains SWIG wrappers generated using SWIG 1.3.36 so 
you could use that, or if you must regenerate them then I'd suggest that 
you try with SWIG 1.3.36.

Daniel


Peter
 
R3 GIS Srl - GmbH
http://www.r3-gis.com


On 11-03-10 02:02 PM, Peter Hopfgartner wrote:
 While trying to build the package for CentOS 5.6, I stumble on Java
support:

 + cd ../java
 + JAVA_HOME=/usr/lib/jvm/java-1.6.0
 + make interface
 mkdir -p edu/umn/gis/mapscript
 swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript
-o mapscript_wrap.c ../mapscript.i
 + JAVA_HOME=/usr/lib/jvm/java-1.6.0
 + make
 javac edu/umn/gis/mapscript/*.java
 gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC
-Wall  -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR 
-DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR
-DUSE_WCS_SVR -DUSE_SOS_SVR   -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW
-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
-DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ @PDF_ENABLED@  -DUSE_OGR
-DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS
-DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include
-Irenderers/agg/include  @PDF_INC@ -I/usr/include/php/ext/ereg/
-I/usr/include/gdal -I/usr/include -I/usr/include/mysql  -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv-I/usr/include 
-I/usr/include/libxml2 -I/usr/l
ib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux
-fno-strict-aliasing mapscript_wrap.c
 gcc: @AGG_ENABLED@: No such file or directory
 gcc: @PDF_ENABLED@: No such file or directory
 gcc: @PDF_INC@: No such file or directory
 mapscript_wrap.c: In function 'new_imageObj':
 mapscript_wrap.c:2746: warning: passing argument 1 of
'renderer-loadImageFromFile' discards qualifiers from pointer target type
 mapscript_wrap.c: In function
'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes':
 mapscript_wrap.c:29157: warning: pointer targets in passing argument 2
of 'SWIG_JavaArrayOutSchar' differ in signedness
 mapscript_wrap.c: In function
'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes':
 mapscript_wrap.c:43772: warning: pointer targets in passing argument 2
of 'SWIG_JavaArrayOutSchar' differ in signedness
 make: *** [mapscript_so] Error 1
 error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448
(%build)


 RPM build errors:
  Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448
(%build)
 [rpmbuild@rpm-devel ~]$

 Regards,

 Peter

 R3 GIS Srl - GmbH
 http://www.r3-gis.com


 Daniel Morissettedmorisse...@mapgears.com  wrote
 Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
 Date: 10.03.2011 03:48

 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.

 This new release introduces important changes in key components of the
 MapServer core (rendering, query and expressions), and for this reason
 we count on you, MapServer power users, to help test the release in
your
 respective environments and provide feedback (through the users list
or
 Trac tickets).
 (...)

 Thanks! - The MapServer Team
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
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: [Ubuntu] Re: [mapserver-users] MapServer 6.0.0-beta1 release -Please test!

2011-03-11 Thread Worth Lutz
Alan,

 

Thanks for the ubuntugis repository.

 

It took me a good bit of trying today but I got Mapserver 6.0 installed
today by building from source.  I'm not sure I've got it all right but I've
got a working version for testing.  I'd prefer to just load from the
repository.

 

Could you add  --with-cairo  to the next build to allow pdf output.

 

Thanks

Worth

 

  _  

From: ubuntu-boun...@lists.osgeo.org [mailto:ubuntu-boun...@lists.osgeo.org]
On Behalf Of Alan Boudreault
Sent: Wednesday, March 09, 2011 11:13 PM
To: mapserver-users@lists.osgeo.org
Cc: ubu...@lists.osgeo.org; mapserver-d...@lists.osgeo.org
Subject: [Ubuntu] Re: [mapserver-users] MapServer 6.0.0-beta1 release
-Please test!

 

The binaries of MapServer 6.0.0-beta1 are now available in UbuntuGIS  for
Ubuntu  hardy, lucid and maverick.

ubuntugis-testing ppa:
https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/

Alan

On March 9, 2011 09:47:54 pm Daniel Morissette wrote:
 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.

 This new release introduces important changes in key components of the
 MapServer core (rendering, query and expressions), and for this reason
 we count on you, MapServer power users, to help test the release in your
 respective environments and provide feedback (through the users list or
 Trac tickets).

 The timing and feedback for this first beta is very important since it
 comes one week before the Montreal Code Sprint where about a dozen
 participants will be working specifically on MapServer and will have a
 chance to tackle important 6.0 issues that may be found and reported.

 Here is a quick list of RFCs documenting some of the new features or
 important changes in 6.0. This list is not complete, we will update it
 as we polish the release documentation:

 Core Changes in MapServer 6.0 which could affect existing applications:

 * MS RFC 54: Rendering Interface API
 * MS RFC 64: MapServer Expression Parser Overhaul
 * MS RFC 65: Single-pass Query Changes for 6.0

 New Features and Enhancements in MapServer 6.0:

 * MS RFC 58: Kml Output
 * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
 with too much character overlap
 * MS RFC 61: Enhance MapServer Feature Style Support
 * MS RFC 62: Support Additional WFS GetFeature Output Formats
 * MS RFC 63: Built-in OpenLayers map viewer
 * MS RFC 66: Better handling of temporary files
 * MS RFC 67: Enable/Disable Layers in OGC Web Services
 * MS RFC 68: Support for combining features from multiple layers
 * MS RFC 69: Support for clustering of features in point layers

 (RFCs are available online at http://mapserver.org/development/rfc/)

 As usual there an a large number of additional small enhancements and
 bug fixes. For a complete list see the HISTORY.TXT file at:

  
 http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT

 We have started working on a 5.6 - 6.0 migration guide. This document
 contains important notes on backwards incompatibilities or other changes
 required when upgrading to 6.0. It is not complete yet but we strongly
 recommend that you review the latest version online at:


http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT

 The source for this release can be downloaded at:

  http://mapserver.org/download.html
 or
  http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz

 The binary distributions listed in the download page should be updated
 with binaries for the new 6.0.0-beta1 release in the next day or so.


 This is the first of four planned beta releases and if all goes well a
 final release should occur around the end of April. The full release
 plan can be viewed at:

http://trac.osgeo.org/mapserver/wiki/60ReleasePlan

 Once again we need your help to ensure a high quality product,
 especially for this beta due to its timing with next week's Code Sprint,
 so please help out by testing your applications with this new code base.

 Thanks! - The MapServer Team
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
UbuntuGIS mailing list
ubu...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1497/3495 - Release Date: 03/09/11

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 3/9/2011 8:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.




Having a problem compiling opengl support.  Without opengl it compiles 
fine.  Looks like its looking in /usr/lib, not /usr/lib64.


Slackware64 13.1.

./configure --with-ogr --with-gdal --with-agg --with-geos --with-postgis 
  --with-xml2 --with-free-type --with-proj --with-tiff --with-jpeg 
--with-curl --with-gd --with-postgis=/usr/local/pgsql/bin/pg_config 
--with-opengl --with-ftgl



...lots of output...

checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 
-lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).

checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR 
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.

checking if FTGL support requested... looking for ftgl libs in /usr
using ftgl from /usr
checking if OGL support requested... looking for opengl libs in /usr
./configure: line 9891: -L/usr/lib64: No such file or directory
configure: error: could not find libGL or libGLU in /usr/lib/.




config.log:

configure:9774: checking if FTGL support requested
configure:9785: result: looking for ftgl libs in /usr
configure:9849: result: using ftgl from /usr
configure:9873: checking if OGL support requested
configure:9885: result: looking for opengl libs in /usr
configure:9917: error: could not find libGL or libGLU in /usr/lib/.

## - ##
## Output variables. ##
## - ##
ALL_ENABLED='-DUSE_FTGL   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR 
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV 
-DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE '

ALL_INC='-I/usr/include/FTGL/ -I/usr/include   -I/usr/include/freetype2 '
ALL_LIB='-L/usr/lib64 -lftgl -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype 
-lz -lpng -lz -lXpm -lX11  -lc -lz -lfreetype -lz '


FTGL_ENABLED='-DUSE_FTGL '
FTGL_INC='-I/usr/include/FTGL/'
FTGL_LIB='-L/usr/lib64 -lftgl'



-Andy

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 3/10/2011 10:17 AM, Daniel Morissette wrote:

On 11-03-10 10:08 AM, Andy Colson wrote:


Having a problem compiling opengl support. Without opengl it compiles
fine. Looks like its looking in /usr/lib, not /usr/lib64.



I have created ticket http://trac.osgeo.org/mapserver/ticket/3724 for
this and committed a change that should fix it. However I am not setup
to test on that platform, so please test and reopen the ticket if that
didn't fix the issue.



It works.  configure went ok, and make built ok.  Still need to install 
and use it.


Thanks!

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 3/9/2011 8:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.



My mapfile has:

IMAGECOLOR 192 192 192
IMAGEQUALITY 95
IMAGETYPE jpeg
OUTPUTFORMAT
NAME jpeg
DRIVER 'GD/JPEG'
MIMETYPE 'image/jpeg'
EXTENSION 'jpeg'
END

Error I get:
ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver 
isn't configured.:loadOutputFormat()



 mapserv -v
MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL 
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



Sure enough, no GD... but I did compile it in:

configure: checking for GD 2.0.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 
-lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).

checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR 
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.


So what do I use?

I'd also like to try the new opengl stuff.. is there new docs for:

http://mapserver.org/mapfile/outputformat.html

-Andy

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread thomas bonfort
use AGG/JPEG

regards,
thomas

On Thu, Mar 10, 2011 at 18:33, Andy Colson a...@squeakycode.net wrote:
 On 3/9/2011 8:47 PM, Daniel Morissette wrote:

 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


 My mapfile has:

        IMAGECOLOR 192 192 192
        IMAGEQUALITY 95
        IMAGETYPE jpeg
        OUTPUTFORMAT
                NAME jpeg
                DRIVER 'GD/JPEG'
                MIMETYPE 'image/jpeg'
                EXTENSION 'jpeg'
        END

 Error I get:
 ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver
 isn't configured.:loadOutputFormat()


  mapserv -v
 MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
 SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE
 SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE


 Sure enough, no GD... but I did compile it in:

 configure: checking for GD 2.0.28 or higher...
 checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
        using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd
 -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
 checking for gdImageCreate in -lgd... yes
 checking for gdImageGif in -lgd... yes
 checking for gdImagePng in -lgd... yes
 checking for gdImageJpeg in -lgd... yes
 checking for gdImageWBMP in -lgd... yes
 checking for gdImageStringFT in -lgd... yes
 checking for gdImageOpenPolygon in -lgd... yes
 checking for gdImageGifPtr in -lgd... yes
 checking for gdFontGetTiny in -lgd... yes
 checking for gdImageSetResolution in -l... no
 checking whether gdImageGetTrueColorPixel is declared... yes
 checking for gdImageGetTrueColorPixel in -lgd... yes
        using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
 -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
 -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.

 So what do I use?

 I'd also like to try the new opengl stuff.. is there new docs for:

 http://mapserver.org/mapfile/outputformat.html

 -Andy

 ___
 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] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 3/9/2011 8:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.



My mapfile has:

LABEL
TYPE truetype
FONT Vera
SIZE 10
COLOR 255 255 255
OUTLINECOLOR 0 61 245
BUFFER 3
ANGLE [txt_angle]
POSITION cc
PARTIALS false
END

I get error:

ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()

(the line number is correct... that's very nice)

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


RE: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Peter Hopfgartner
While trying to build the package for CentOS 5.6, I stumble on Java support:

+ cd ../java
+ JAVA_HOME=/usr/lib/jvm/java-1.6.0
+ make interface
mkdir -p edu/umn/gis/mapscript 
swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript -o 
mapscript_wrap.c ../mapscript.i
+ JAVA_HOME=/usr/lib/jvm/java-1.6.0
+ make
javac edu/umn/gis/mapscript/*.java
gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall  
-DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR  -DUSE_PROJ 
-DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR 
-DUSE_SOS_SVR   -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR 
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ 
@PDF_ENABLED@  -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS 
-DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include 
-Irenderers/agg/include  @PDF_INC@ -I/usr/include/php/ext/ereg/ 
-I/usr/include/gdal -I/usr/include -I/usr/include/mysql  -g -pipe 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv-I/usr/include  
-I/usr/include/libxml2 -I/usr/lib/jvm/java-1.6.0/include 
-I/usr/lib/jvm/java-1.6.0/include/linux -fno-strict-aliasing mapscript_wrap.c
gcc: @AGG_ENABLED@: No such file or directory
gcc: @PDF_ENABLED@: No such file or directory
gcc: @PDF_INC@: No such file or directory
mapscript_wrap.c: In function 'new_imageObj':
mapscript_wrap.c:2746: warning: passing argument 1 of 
'renderer-loadImageFromFile' discards qualifiers from pointer target type
mapscript_wrap.c: In function 
'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes':
mapscript_wrap.c:29157: warning: pointer targets in passing argument 2 of 
'SWIG_JavaArrayOutSchar' differ in signedness
mapscript_wrap.c: In function 
'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes':
mapscript_wrap.c:43772: warning: pointer targets in passing argument 2 of 
'SWIG_JavaArrayOutSchar' differ in signedness
make: *** [mapscript_so] Error 1
error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build)


RPM build errors:
Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build)
[rpmbuild@rpm-devel ~]$ 

Regards,

Peter
 
R3 GIS Srl - GmbH
http://www.r3-gis.com


Daniel Morissette dmorisse...@mapgears.com wrote
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Date: 10.03.2011 03:48

The MapServer Team is pleased to announce the release of MapServer 
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.

This new release introduces important changes in key components of the 
MapServer core (rendering, query and expressions), and for this reason 
we count on you, MapServer power users, to help test the release in your 
respective environments and provide feedback (through the users list or 
Trac tickets).
(...)

Thanks! - The MapServer Team
___
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] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 3/9/2011 8:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.



I cannot get perl mapscript to work.

my code:

$x = $map-OWSDispatch( $owreq );
if ($x)
{
print STDERR ERROR: OWSDispatch: $x\n;
my $errObj = new mapscript::errorObj();
while ($errObj) {
		print STDERR ERROR: 
$errObj-{code}:$errObj-{message}:$errObj-{routine} \n;

$errObj = $errObj-next();
}
}

my $content_type = mapscript::msIO_stripStdoutBufferContentType();
$x = mapscript::msIO_getStdoutBufferBytes();

This is a test script, and the first problem is I'm not passing any 
arguments to OWSDispatch.  Prior versions errored out and reported:


ERROR: OWSDispatch: 1
ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue, 
locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch()



Ver 6 however reports:

ERROR: OWSDispatch: 2
ERROR: 0::

Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff 
did not get set.


(when I do pass arguments to OWSDispatch I still get an error but with 
no errorObj descriptions I have no idea whats wrong)


Oh, and shp2img works ok.

-Andy

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Daniel Morissette

Hi Peter,

It is quite likely that you are using a SWIG version newer than 1.3.36.

The Java SWIG wrappers work best with SWIG 1.3.36. The MapServer source 
package already contains SWIG wrappers generated using SWIG 1.3.36 so 
you could use that, or if you must regenerate them then I'd suggest that 
you try with SWIG 1.3.36.


Daniel


On 11-03-10 02:02 PM, Peter Hopfgartner wrote:

While trying to build the package for CentOS 5.6, I stumble on Java support:

+ cd ../java
+ JAVA_HOME=/usr/lib/jvm/java-1.6.0
+ make interface
mkdir -p edu/umn/gis/mapscript
swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript -o 
mapscript_wrap.c ../mapscript.i
+ JAVA_HOME=/usr/lib/jvm/java-1.6.0
+ make
javac edu/umn/gis/mapscript/*.java
gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall  
-DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR  -DUSE_PROJ 
-DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR 
-DUSE_SOS_SVR   -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR 
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ 
@PDF_ENABLED@  -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS 
-DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include 
-Irenderers/agg/include  @PDF_INC@ -I/usr/include/php/ext/ereg/ 
-I/usr/include/gdal -I/usr/include -I/usr/include/mysql  -g -pipe 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv-I/usr/include  
-I/usr/include/libxml2 -I/usr/l

ib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux 
-fno-strict-aliasing mapscript_wrap.c

gcc: @AGG_ENABLED@: No such file or directory
gcc: @PDF_ENABLED@: No such file or directory
gcc: @PDF_INC@: No such file or directory
mapscript_wrap.c: In function 'new_imageObj':
mapscript_wrap.c:2746: warning: passing argument 1 of 
'renderer-loadImageFromFile' discards qualifiers from pointer target type
mapscript_wrap.c: In function 
'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes':
mapscript_wrap.c:29157: warning: pointer targets in passing argument 2 of 
'SWIG_JavaArrayOutSchar' differ in signedness
mapscript_wrap.c: In function 
'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes':
mapscript_wrap.c:43772: warning: pointer targets in passing argument 2 of 
'SWIG_JavaArrayOutSchar' differ in signedness
make: *** [mapscript_so] Error 1
error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build)


RPM build errors:
 Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build)
[rpmbuild@rpm-devel ~]$

Regards,

Peter

R3 GIS Srl - GmbH
http://www.r3-gis.com


Daniel Morissettedmorisse...@mapgears.com  wrote
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Date: 10.03.2011 03:48


The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.

This new release introduces important changes in key components of the
MapServer core (rendering, query and expressions), and for this reason
we count on you, MapServer power users, to help test the release in your
respective environments and provide feedback (through the users list or
Trac tickets).

(...)


Thanks! - The MapServer Team
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users






--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

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


RE: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Peter Hopfgartner
The spec file for MapServer has the following code:

chmod -x tests/home.png
chmod -x mapscript/php/php_mapscript.c
chmod -x mappluginlayer.c
chmod -x mapscript/php/mapscript_i.c
chmod -x mapscript/php/examples/test_writeshape.phtml
chmod -x mapscript/python/examples/*.py
chmod -x mapscript/python/tests/rundoctests.dist
chmod -x mapscript/perl/examples/*.pl
chmod -x mapscript/php/README

(...)

iconv -f ISO-8859-1 -t UTF-8  \
mapscript/java/examples/QueryByAttributeUnicode.java  \
mapscript/java/examples/QueryByAttributeUnicode-tmp.java
mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \
mapscript/java/examples/QueryByAttributeUnicode.java

Could these issues be fixed upstream?

Regards,

Peter

R3 GIS Srl - GmbH
http://www.r3-gis.com


Daniel Morissette dmorisse...@mapgears.com wrote
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Date: 10.03.2011 03:48

The MapServer Team is pleased to announce the release of MapServer 
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.

This new release introduces important changes in key components of the 
MapServer core (rendering, query and expressions), and for this reason 
we count on you, MapServer power users, to help test the release in your 
respective environments and provide feedback (through the users list or 
Trac tickets).

The timing and feedback for this first beta is very important since it 
comes one week before the Montreal Code Sprint where about a dozen 
participants will be working specifically on MapServer and will have a 
chance to tackle important 6.0 issues that may be found and reported.

Here is a quick list of RFCs documenting some of the new features or 
important changes in 6.0. This list is not complete, we will update it 
as we polish the release documentation:

Core Changes in MapServer 6.0 which could affect existing applications:

* MS RFC 54: Rendering Interface API
* MS RFC 64: MapServer Expression Parser Overhaul
* MS RFC 65: Single-pass Query Changes for 6.0

New Features and Enhancements in MapServer 6.0:

* MS RFC 58: Kml Output
* MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels 
with too much character overlap
* MS RFC 61: Enhance MapServer Feature Style Support
* MS RFC 62: Support Additional WFS GetFeature Output Formats
* MS RFC 63: Built-in OpenLayers map viewer
* MS RFC 66: Better handling of temporary files
* MS RFC 67: Enable/Disable Layers in OGC Web Services
* MS RFC 68: Support for combining features from multiple layers
* MS RFC 69: Support for clustering of features in point layers

(RFCs are available online at http://mapserver.org/development/rfc/)

As usual there an a large number of additional small enhancements and 
bug fixes. For a complete list see the HISTORY.TXT file at:

  
http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT

We have started working on a 5.6 - 6.0 migration guide. This document 
contains important notes on backwards incompatibilities or other changes 
required when upgrading to 6.0. It is not complete yet but we strongly 
recommend that you review the latest version online at:

http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT

The source for this release can be downloaded at:

 http://mapserver.org/download.html
or
 http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz

The binary distributions listed in the download page should be updated
with binaries for the new 6.0.0-beta1 release in the next day or so.


This is the first of four planned beta releases and if all goes well a 
final release should occur around the end of April. The full release 
plan can be viewed at:

   http://trac.osgeo.org/mapserver/wiki/60ReleasePlan

Once again we need your help to ensure a high quality product, 
especially for this beta due to its timing with next week's Code Sprint, 
so please help out by testing your applications with this new code base.

Thanks! - The MapServer Team
___
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] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Daniel Morissette

I have filed a ticket for this and will see what we can do:
  http://trac.osgeo.org/mapserver/ticket/3726

Daniel

On 11-03-10 02:05 PM, Peter Hopfgartner wrote:

The spec file for MapServer has the following code:

chmod -x tests/home.png
chmod -x mapscript/php/php_mapscript.c
chmod -x mappluginlayer.c
chmod -x mapscript/php/mapscript_i.c
chmod -x mapscript/php/examples/test_writeshape.phtml
chmod -x mapscript/python/examples/*.py
chmod -x mapscript/python/tests/rundoctests.dist
chmod -x mapscript/perl/examples/*.pl
chmod -x mapscript/php/README

(...)

iconv -f ISO-8859-1 -t UTF-8  \
mapscript/java/examples/QueryByAttributeUnicode.java  \
mapscript/java/examples/QueryByAttributeUnicode-tmp.java
mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \
mapscript/java/examples/QueryByAttributeUnicode.java

Could these issues be fixed upstream?

Regards,

Peter

R3 GIS Srl - GmbH
http://www.r3-gis.com



--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 3/10/2011 1:03 PM, Andy Colson wrote:

On 3/9/2011 8:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.



I cannot get perl mapscript to work.

my code:

$x = $map-OWSDispatch( $owreq );
if ($x)
{
print STDERR ERROR: OWSDispatch: $x\n;
my $errObj = new mapscript::errorObj();
while ($errObj) {
print STDERR ERROR:
$errObj-{code}:$errObj-{message}:$errObj-{routine} \n;
$errObj = $errObj-next();
}
}

my $content_type = mapscript::msIO_stripStdoutBufferContentType();
$x = mapscript::msIO_getStdoutBufferBytes();

This is a test script, and the first problem is I'm not passing any
arguments to OWSDispatch. Prior versions errored out and reported:

ERROR: OWSDispatch: 1
ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue,
locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch()


Ver 6 however reports:

ERROR: OWSDispatch: 2
ERROR: 0::

Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff
did not get set.

(when I do pass arguments to OWSDispatch I still get an error but with
no errorObj descriptions I have no idea whats wrong)

Oh, and shp2img works ok.

-Andy

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


Oh, if I set EXCEPTIONS to vnd.ogc.se_xml, I do get a message:

snipped
ServiceException code=LayerNotDefined
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the 
LAYERS parameter.


The layer is set and is valid, its the same request I make to the prior 
version of mapscript and it works fine.


I did have to modify my map file just a bit (commented out the ANGLE and 
label backgroundcolor), but all the layers are still there.


-Andy

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Yewondwossen Assefa

nipped

ServiceException code=LayerNotDefined
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in 
the LAYERS parameter.


The layer is set and is valid, its the same request I make to the 
prior version of mapscript and it works fine.


I did have to modify my map file just a bit (commented out the ANGLE 
and label backgroundcolor), but all the layers are still there.


This could be related to that fact that you should enable ows request 
(http://mapserver.org/development/rfc/ms-rfc-67.html)


ows_enable_request *


best regards,




-Andy

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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Tamas Szekeres
Andy,

Take a look at the migration guide
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
Specifically to the OGC Web Services part.

Best regards,

Tamas



2011/3/10 Andy Colson a...@squeakycode.net

 On 3/10/2011 1:03 PM, Andy Colson wrote:

 On 3/9/2011 8:47 PM, Daniel Morissette wrote:

 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


 I cannot get perl mapscript to work.

 my code:

 $x = $map-OWSDispatch( $owreq );
 if ($x)
 {
 print STDERR ERROR: OWSDispatch: $x\n;
 my $errObj = new mapscript::errorObj();
 while ($errObj) {
 print STDERR ERROR:
 $errObj-{code}:$errObj-{message}:$errObj-{routine} \n;
 $errObj = $errObj-next();
 }
 }

 my $content_type = mapscript::msIO_stripStdoutBufferContentType();
 $x = mapscript::msIO_getStdoutBufferBytes();

 This is a test script, and the first problem is I'm not passing any
 arguments to OWSDispatch. Prior versions errored out and reported:

 ERROR: OWSDispatch: 1
 ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue,
 locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch()


 Ver 6 however reports:

 ERROR: OWSDispatch: 2
 ERROR: 0::

 Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff
 did not get set.

 (when I do pass arguments to OWSDispatch I still get an error but with
 no errorObj descriptions I have no idea whats wrong)

 Oh, and shp2img works ok.

 -Andy

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


 Oh, if I set EXCEPTIONS to vnd.ogc.se_xml, I do get a message:

 snipped
 ServiceException code=LayerNotDefined
 msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the
 LAYERS parameter.

 The layer is set and is valid, its the same request I make to the prior
 version of mapscript and it works fine.

 I did have to modify my map file just a bit (commented out the ANGLE and
 label backgroundcolor), but all the layers are still there.


 -Andy

 ___
 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] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Jeff McKenna
Windows users can test the beta with an MS4W upgrade package (details at 
http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html). 
 Enjoy!


-jeff



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




On 11-03-09 10:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.

This new release introduces important changes in key components of the
MapServer core (rendering, query and expressions), and for this reason
we count on you, MapServer power users, to help test the release in your
respective environments and provide feedback (through the users list or
Trac tickets).

The timing and feedback for this first beta is very important since it
comes one week before the Montreal Code Sprint where about a dozen
participants will be working specifically on MapServer and will have a
chance to tackle important 6.0 issues that may be found and reported.

Here is a quick list of RFCs documenting some of the new features or
important changes in 6.0. This list is not complete, we will update it
as we polish the release documentation:

Core Changes in MapServer 6.0 which could affect existing applications:

* MS RFC 54: Rendering Interface API
* MS RFC 64: MapServer Expression Parser Overhaul
* MS RFC 65: Single-pass Query Changes for 6.0

New Features and Enhancements in MapServer 6.0:

* MS RFC 58: Kml Output
* MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
with too much character overlap
* MS RFC 61: Enhance MapServer Feature Style Support
* MS RFC 62: Support Additional WFS GetFeature Output Formats
* MS RFC 63: Built-in OpenLayers map viewer
* MS RFC 66: Better handling of temporary files
* MS RFC 67: Enable/Disable Layers in OGC Web Services
* MS RFC 68: Support for combining features from multiple layers
* MS RFC 69: Support for clustering of features in point layers

(RFCs are available online at http://mapserver.org/development/rfc/)

As usual there an a large number of additional small enhancements and
bug fixes. For a complete list see the HISTORY.TXT file at:

http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT

We have started working on a 5.6 - 6.0 migration guide. This document
contains important notes on backwards incompatibilities or other changes
required when upgrading to 6.0. It is not complete yet but we strongly
recommend that you review the latest version online at:

http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT

The source for this release can be downloaded at:

http://mapserver.org/download.html
or
http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz

The binary distributions listed in the download page should be updated
with binaries for the new 6.0.0-beta1 release in the next day or so.


This is the first of four planned beta releases and if all goes well a
final release should occur around the end of April. The full release
plan can be viewed at:

http://trac.osgeo.org/mapserver/wiki/60ReleasePlan

Once again we need your help to ensure a high quality product,
especially for this beta due to its timing with next week's Code Sprint,
so please help out by testing your applications with this new code base.

Thanks! - The MapServer Team


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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 3/10/2011 1:59 PM, Yewondwossen Assefa wrote:

nipped

ServiceException code=LayerNotDefined
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in
the LAYERS parameter.

The layer is set and is valid, its the same request I make to the
prior version of mapscript and it works fine.

I did have to modify my map file just a bit (commented out the ANGLE
and label backgroundcolor), but all the layers are still there.


This could be related to that fact that you should enable ows request
(http://mapserver.org/development/rfc/ms-rfc-67.html)

ows_enable_request *


best regards,




-Andy

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






Ga!  Yep.  Sort of.  My SERVICE is set to WMS not OWS so I completely 
skipped over it, but I see, reading further there is also 
wms_enable_request.


I enabled both (and either one individually to test) and now I dont get 
an error, but I also dont get an image back.  Might be some other 
mapfile change.  I'll go threw it again.


Thanks (and you too Tamas)

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Stephen Woodbridge
A couple of points on this, MS6.0 no longer has a GD driver? is this 
correct? if so, then:

   a. need to add to migration guide
   b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
   c. mapfile parsing should throw an error ob DRIVER 'GD/...'

-Steve W

On 3/10/2011 12:36 PM, thomas bonfort wrote:

use AGG/JPEG

regards,
thomas

On Thu, Mar 10, 2011 at 18:33, Andy Colsona...@squeakycode.net  wrote:

On 3/9/2011 8:47 PM, Daniel Morissette wrote:


The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.



My mapfile has:

IMAGECOLOR 192 192 192
IMAGEQUALITY 95
IMAGETYPE jpeg
OUTPUTFORMAT
NAME jpeg
DRIVER 'GD/JPEG'
MIMETYPE 'image/jpeg'
EXTENSION 'jpeg'
END

Error I get:
ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver
isn't configured.:loadOutputFormat()


  mapserv -v
MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE


Sure enough, no GD... but I did compile it in:

configure: checking for GD 2.0.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd
-ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.

So what do I use?

I'd also like to try the new opengl stuff.. is there new docs for:

http://mapserver.org/mapfile/outputformat.html

-Andy

___
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] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Lime, Steve D (DNR)
Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img? Will have a 
look.

THANKS FOR TESTING!!!

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Colson
Sent: Thursday, March 10, 2011 11:39 AM
To: Daniel Morissette
Cc: mapserver-users
Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

On 3/9/2011 8:47 PM, Daniel Morissette wrote:
 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


My mapfile has:

LABEL
TYPE truetype
FONT Vera
SIZE 10
COLOR 255 255 255
OUTLINECOLOR 0 61 245
BUFFER 3
ANGLE [txt_angle]
POSITION cc
PARTIALS false
END

I get error:

ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()

(the line number is correct... that's very nice)

-Andy
___
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] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Yewondwossen Assefa

GD is still there . It is still there and does  8bit png and gif.

On 10/03/2011 3:54 PM, Stephen Woodbridge wrote:
A couple of points on this, MS6.0 no longer has a GD driver? is this 
correct? if so, then:

   a. need to add to migration guide
   b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
   c. mapfile parsing should throw an error ob DRIVER 'GD/...'

-Steve W

On 3/10/2011 12:36 PM, thomas bonfort wrote:

use AGG/JPEG

regards,
thomas

On Thu, Mar 10, 2011 at 18:33, Andy Colsona...@squeakycode.net  wrote:

On 3/9/2011 8:47 PM, Daniel Morissette wrote:


The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.



My mapfile has:

IMAGECOLOR 192 192 192
IMAGEQUALITY 95
IMAGETYPE jpeg
OUTPUTFORMAT
NAME jpeg
DRIVER 'GD/JPEG'
MIMETYPE 'image/jpeg'
EXTENSION 'jpeg'
END

Error I get:
ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this 
driver

isn't configured.:loadOutputFormat()


  mapserv -v
MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL 
SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS 
INPUT=OGR

INPUT=GDAL INPUT=SHAPEFILE


Sure enough, no GD... but I did compile it in:

configure: checking for GD 2.0.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from system libs 
(-L/usr/lib64 -lgd

-ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP

-DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system 
libs.


So what do I use?

I'd also like to try the new opengl stuff.. is there new docs for:

http://mapserver.org/mapfile/outputformat.html

-Andy

___
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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 10/03/2011 3:54 PM, Stephen Woodbridge wrote:

A couple of points on this, MS6.0 no longer has a GD driver? is this
correct? if so, then:
a. need to add to migration guide
b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
c. mapfile parsing should throw an error ob DRIVER 'GD/...'

-Steve W



On 3/10/2011 3:32 PM, Yewondwossen Assefa wrote:
 GD is still there . It is still there and does 8bit png and gif.



Well, then I think somethings wrong.  I cannot get GD to work at all, 
and I cannot get it to use anything else:


andy@mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.jpg -i jpeg
loadOutputFormat(): General error message. OUTPUTFORMAT clause 
references driver GD/JPEG, but this driver isn't configured. br


andy@mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i jpg
loadOutputFormat(): General error message. OUTPUTFORMAT clause 
references driver GD/JPEG, but this driver isn't configured. br


-- yes, bob2 is defined as an outputform in my .map file as AGG/PNG

andy@mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i bob2
loadOutputFormat(): General error message. OUTPUTFORMAT clause 
references driver GD/JPEG, but this driver isn't configured. br


andy@mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i png
loadOutputFormat(): General error message. OUTPUTFORMAT clause 
references driver GD/JPEG, but this driver isn't configured. br


Does not seem to matter what I have in the .map file... nothing works.

And I did compile GD in, why why wont it use it?

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Colson
Sent: Thursday, March 10, 2011 11:39 AM
To: Daniel Morissette
Cc: mapserver-users
Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

On 3/9/2011 8:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.



My mapfile has:

LABEL
TYPE truetype
FONT Vera
SIZE 10
COLOR 255 255 255
OUTLINECOLOR 0 61 245
BUFFER 3
ANGLE [txt_angle]
POSITION cc
PARTIALS false
END

I get error:

ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()

(the line number is correct... that's very nice)

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




On 3/10/2011 3:18 PM, Lime, Steve D (DNR) wrote:
 Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img? 
Will have a look.


 THANKS FOR TESTING!!!

 Steve


Both fail.  Here is the map file.  It uses postGis, hopefully it'll die 
parsing before you actually need to hit the db.



-Andy
# at zero (at + sign)
# 400 at 1
# 900 at 3   **start
# 3000 at 4
# 6000 at 5
# 11000 at 6
# 22000 at 7
# 44000 at 8
# 87000 at 9
MAP
#CONFIG MS_ERRORFILE /tmp/blue.tmp

NAME blueearth
SIZE 800 800
UNITS feet
SHAPEPATH '/pub/maps/BlueearthMN/shape'
FONTSET /pub/www/fonts/fonts.txt

#EXTENT 507346.988736 100294.437868 628854.325083 241675.238498
EXTENT 471625 98939 636718 252080

PROJECTION
+proj=lcc +lat_1=45.216667 +lat_2=43.78 
+lat_0=43 +lon_0=-94 +x_0=80 +y_0=10 +ellps=GRS80 +units=m +no_defs
END

IMAGECOLOR 192 192 192

QUERYMAP
STATUS ON
STYLE HILITE
END


LEGEND
IMAGECOLOR 255 255 255
STATUS ON
#KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END

WEB
IMAGEPATH '/tmp/'
IMAGEURL '/tmp/'
METADATA
'wms_title'   'blueearthmn'
'wms_onlineresource'  
'http://mapper/getmap.pl?map=blueearthmn;'
'wms_srs' 'EPSG:2812'
wms_feature_info_mime_type  text/plain
wms_enable_request   *
END
END

SYMBOL
NAME 'dashed1'
TYPE ELLIPSE
POINTS 1 1 END
FILLED true
PATTERN 5 5 5 5 END
END

SYMBOL
NAME 'CIRCLE'
TYPE ellipse
FILLED true
POINTS
1 1
END
END

SYMBOL
NAME railway
TYPE truetype
FONT Vera
CHARACTER |
GAP -25 # distance between symbols
END

LAYER
#DEBUG 4
NAME raster12
STATUS off
TILEINDEX raster12.shp
TILEITEM location
TYPE RASTER
END

LAYER
#DEBUG 4
NAME raster6
STATUS off
TILEINDEX raster6.shp
TILEITEM location
TYPE RASTER
END

LAYER
NAME 'search'
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION dbname=gis user=andy
DATA 'the_geom from (select parcelPoly.gid, general.gid as 
genid, the_geom from blueearthmn.parcelPoly inner join blueearthmn.general on 
general.parcelpin=parcelPoly.pin) as subq using unique gid using srid=-1'
STATUS off
# getmap.pl will fixup this filter, by default show nothing
FILTER '1=2'

METADATA
'wms_title' 'search'
END

CLASS
STYLE
SYMBOL  'circle'
COLOR255 153 53
OUTLINECOLOR 255 126 1
SIZE 1
END
END
END

LAYER
NAME 'parcel_point'
STATUS off
TYPE POINT
CONNECTIONTYPE postgis
CONNECTION dbname=gis user=andy
DATA 'the_geom FROM blueearthmn.parcelPoint using unique gid 
using srid=-1

Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Angelos Tzotsos

Hi,

I have completed a test build of beta 1 on OpenSUSE Build Service:
https://build.opensuse.org/project/monitor?project=home%3Atzotsos%3Abranches%3AApplication%3AGeo

The repository for openSUSE 11.4 is:
http://download.opensuse.org/repositories/home:/tzotsos:/branches:/Application:/Geo/openSUSE_11.4/

When the final 6.0.0 is released, I will forward the package to the 
official repository (Application:Geo)


Angelos

On 03/10/2011 04:47 AM, Daniel Morissette wrote:
The MapServer Team is pleased to announce the release of MapServer 
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


This new release introduces important changes in key components of the 
MapServer core (rendering, query and expressions), and for this reason 
we count on you, MapServer power users, to help test the release in 
your respective environments and provide feedback (through the users 
list or Trac tickets).


The timing and feedback for this first beta is very important since it 
comes one week before the Montreal Code Sprint where about a dozen 
participants will be working specifically on MapServer and will have a 
chance to tackle important 6.0 issues that may be found and reported.


Here is a quick list of RFCs documenting some of the new features or 
important changes in 6.0. This list is not complete, we will update it 
as we polish the release documentation:


Core Changes in MapServer 6.0 which could affect existing applications:

* MS RFC 54: Rendering Interface API
* MS RFC 64: MapServer Expression Parser Overhaul
* MS RFC 65: Single-pass Query Changes for 6.0

New Features and Enhancements in MapServer 6.0:

* MS RFC 58: Kml Output
* MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels 
with too much character overlap

* MS RFC 61: Enhance MapServer Feature Style Support
* MS RFC 62: Support Additional WFS GetFeature Output Formats
* MS RFC 63: Built-in OpenLayers map viewer
* MS RFC 66: Better handling of temporary files
* MS RFC 67: Enable/Disable Layers in OGC Web Services
* MS RFC 68: Support for combining features from multiple layers
* MS RFC 69: Support for clustering of features in point layers

(RFCs are available online at http://mapserver.org/development/rfc/)

As usual there an a large number of additional small enhancements and 
bug fixes. For a complete list see the HISTORY.TXT file at:


  
http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT


We have started working on a 5.6 - 6.0 migration guide. This document 
contains important notes on backwards incompatibilities or other 
changes required when upgrading to 6.0. It is not complete yet but we 
strongly recommend that you review the latest version online at:


http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT 



The source for this release can be downloaded at:

http://mapserver.org/download.html
or
http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz

The binary distributions listed in the download page should be updated
with binaries for the new 6.0.0-beta1 release in the next day or so.


This is the first of four planned beta releases and if all goes well a 
final release should occur around the end of April. The full release 
plan can be viewed at:


  http://trac.osgeo.org/mapserver/wiki/60ReleasePlan

Once again we need your help to ensure a high quality product, 
especially for this beta due to its timing with next week's Code 
Sprint, so please help out by testing your applications with this new 
code base.


Thanks! - The MapServer Team
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
Angelos Tzotsos
Remote Sensing Laboratory
National Technical University of Athens
http://users.ntua.gr/tzotsos

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 3/10/2011 4:39 PM, Andy Colson wrote:

On 10/03/2011 3:54 PM, Stephen Woodbridge wrote:

A couple of points on this, MS6.0 no longer has a GD driver? is this
correct? if so, then:
a. need to add to migration guide
b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
c. mapfile parsing should throw an error ob DRIVER 'GD/...'

-Steve W



On 3/10/2011 3:32 PM, Yewondwossen Assefa wrote:
  GD is still there . It is still there and does 8bit png and gif.
 


Well, then I think somethings wrong. I cannot get GD to work at all, and
I cannot get it to use anything else:

andy@mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.jpg -i jpeg
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver GD/JPEG, but this driver isn't configured. br

andy@mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i jpg
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver GD/JPEG, but this driver isn't configured. br

-- yes, bob2 is defined as an outputform in my .map file as AGG/PNG

andy@mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i bob2
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver GD/JPEG, but this driver isn't configured. br

andy@mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i png
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver GD/JPEG, but this driver isn't configured. br

Does not seem to matter what I have in the .map file... nothing works.

And I did compile GD in, why why wont it use it?

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


BA!  I was editing blueearthmn2.map but shp2img'ing blueearthmn.map

but still, I cannot get GD to work at all.  And it seems like the 
outputFormats are colliding.  If I define:


OUTPUTFORMAT
NAME bob2
DRIVER 'AGG/PNG'
MIMETYPE image/png
IMAGEMODE RGB
EXTENSION png
END

I can use bob2, but if I name it agg or aggpng24 (or whatever) it has 
problems.  (same with jpeg and jpg, cant seem to use em)  If I use 
anything standard I get an empty image back.  Meaning zero byte file. 
 (from perl mapscript).  Using bob2 I can get an image back, and it 
looks nice.


-Andy

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Jeff McKenna
I must not be the only one wanting to test the Cairo PDF output in 
6.0...and I thought I'd end the day with something positive: it looks 
nice and it is easy to test! :)


Verify that you have the support required in your local MapServer build 
by executing mapserv -v and making sure the response contains 
SUPPORTS=CAIRO.


Then simply change IMAGETYPE in your mapfile to pdf, and test with a 
shp2img command (shp2img -m test.map -o test.pdf) et voila!


-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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 03/09/2011 08:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. 
This is the first beta on our way to a final 6.0 release.



I cannot seem to get opengl to work.

a stacktrace of shp2img:

Program received signal SIGSEGV, Segmentation fault.
0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
(gdb) backtrace
#0  0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
#1  0x0047667f in OglRenderer::OglRenderer(unsigned int, unsigned int, 
colorObj*) ()
#2  0x00474988 in msImageCreateOgl(int, int, outputFormatObj*, 
colorObj*) ()
#3  0x0044cd26 in msPrepareImage ()
#4  0x0044ce75 in msDrawMap ()
#5  0x00415067 in main ()
(gdb)



MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL 
INPUT=SHAPEFILE

I dont need special video card and/or drivers, do I?  And I'm not running X.  
Dont need to, do I?

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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Andy Colson

On 03/10/2011 07:16 PM, Andy Colson wrote:

On 03/09/2011 08:47 PM, Daniel Morissette wrote:

The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. 
This is the first beta on our way to a final 6.0 release.



I cannot seem to get opengl to work.

a stacktrace of shp2img:

Program received signal SIGSEGV, Segmentation fault.
0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
(gdb) backtrace
#0 0x7690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
#1 0x0047667f in OglRenderer::OglRenderer(unsigned int, unsigned int, 
colorObj*) ()
#2 0x00474988 in msImageCreateOgl(int, int, outputFormatObj*, 
colorObj*) ()
#3 0x0044cd26 in msPrepareImage ()
#4 0x0044ce75 in msDrawMap ()
#5 0x00415067 in main ()
(gdb)



MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL 
INPUT=SHAPEFILE

I dont need special video card and/or drivers, do I? And I'm not running X. 
Dont need to, do I?

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


To reply to myself, after some googling, it looks like yes, X is needed.

Which kinda sucks.  This is a webserver, it runs apache and postgresql.  In a 
rack someplace.  Doesn't even have a monitor attached.  If I ever need to do 
something I ssh in.

Its also has a crappy video card.  Cuz its a server.  Never thought I'd need 
good video.

So here is my delima: do I buy a $80 video card, and run X, so I can get 
hardware accelerated maps?  Is it worth it?  Is it that much faster?

How many concurrent maps can be drawn at once?  If 10 people hit my website can 
all 10 images be rendered at once?  Or will one run and the others error out?  
Is there an upper limit for the number of concurrent renderings?

Any benchmarks?

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


[mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-09 Thread Daniel Morissette
The MapServer Team is pleased to announce the release of MapServer 
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


This new release introduces important changes in key components of the 
MapServer core (rendering, query and expressions), and for this reason 
we count on you, MapServer power users, to help test the release in your 
respective environments and provide feedback (through the users list or 
Trac tickets).


The timing and feedback for this first beta is very important since it 
comes one week before the Montreal Code Sprint where about a dozen 
participants will be working specifically on MapServer and will have a 
chance to tackle important 6.0 issues that may be found and reported.


Here is a quick list of RFCs documenting some of the new features or 
important changes in 6.0. This list is not complete, we will update it 
as we polish the release documentation:


Core Changes in MapServer 6.0 which could affect existing applications:

* MS RFC 54: Rendering Interface API
* MS RFC 64: MapServer Expression Parser Overhaul
* MS RFC 65: Single-pass Query Changes for 6.0

New Features and Enhancements in MapServer 6.0:

* MS RFC 58: Kml Output
* MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels 
with too much character overlap

* MS RFC 61: Enhance MapServer Feature Style Support
* MS RFC 62: Support Additional WFS GetFeature Output Formats
* MS RFC 63: Built-in OpenLayers map viewer
* MS RFC 66: Better handling of temporary files
* MS RFC 67: Enable/Disable Layers in OGC Web Services
* MS RFC 68: Support for combining features from multiple layers
* MS RFC 69: Support for clustering of features in point layers

(RFCs are available online at http://mapserver.org/development/rfc/)

As usual there an a large number of additional small enhancements and 
bug fixes. For a complete list see the HISTORY.TXT file at:


  http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT

We have started working on a 5.6 - 6.0 migration guide. This document 
contains important notes on backwards incompatibilities or other changes 
required when upgrading to 6.0. It is not complete yet but we strongly 
recommend that you review the latest version online at:


http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT

The source for this release can be downloaded at:

http://mapserver.org/download.html
or
http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz

The binary distributions listed in the download page should be updated
with binaries for the new 6.0.0-beta1 release in the next day or so.


This is the first of four planned beta releases and if all goes well a 
final release should occur around the end of April. The full release 
plan can be viewed at:


  http://trac.osgeo.org/mapserver/wiki/60ReleasePlan

Once again we need your help to ensure a high quality product, 
especially for this beta due to its timing with next week's Code Sprint, 
so please help out by testing your applications with this new code base.


Thanks! - The MapServer Team
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-09 Thread Alan Boudreault
The binaries of MapServer 6.0.0-beta1 are now available in UbuntuGIS  for 
Ubuntu  hardy, lucid and maverick.

ubuntugis-testing ppa:
https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/

Alan

On March 9, 2011 09:47:54 pm Daniel Morissette wrote:
 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
 
 This new release introduces important changes in key components of the
 MapServer core (rendering, query and expressions), and for this reason
 we count on you, MapServer power users, to help test the release in your
 respective environments and provide feedback (through the users list or
 Trac tickets).
 
 The timing and feedback for this first beta is very important since it
 comes one week before the Montreal Code Sprint where about a dozen
 participants will be working specifically on MapServer and will have a
 chance to tackle important 6.0 issues that may be found and reported.
 
 Here is a quick list of RFCs documenting some of the new features or
 important changes in 6.0. This list is not complete, we will update it
 as we polish the release documentation:
 
 Core Changes in MapServer 6.0 which could affect existing applications:
 
 * MS RFC 54: Rendering Interface API
 * MS RFC 64: MapServer Expression Parser Overhaul
 * MS RFC 65: Single-pass Query Changes for 6.0
 
 New Features and Enhancements in MapServer 6.0:
 
 * MS RFC 58: Kml Output
 * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
 with too much character overlap
 * MS RFC 61: Enhance MapServer Feature Style Support
 * MS RFC 62: Support Additional WFS GetFeature Output Formats
 * MS RFC 63: Built-in OpenLayers map viewer
 * MS RFC 66: Better handling of temporary files
 * MS RFC 67: Enable/Disable Layers in OGC Web Services
 * MS RFC 68: Support for combining features from multiple layers
 * MS RFC 69: Support for clustering of features in point layers
 
 (RFCs are available online at http://mapserver.org/development/rfc/)
 
 As usual there an a large number of additional small enhancements and
 bug fixes. For a complete list see the HISTORY.TXT file at:
 
   
 http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT
 
 We have started working on a 5.6 - 6.0 migration guide. This document
 contains important notes on backwards incompatibilities or other changes
 required when upgrading to 6.0. It is not complete yet but we strongly
 recommend that you review the latest version online at:
 
 http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
 
 The source for this release can be downloaded at:
 
  http://mapserver.org/download.html
 or
  http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz
 
 The binary distributions listed in the download page should be updated
 with binaries for the new 6.0.0-beta1 release in the next day or so.
 
 
 This is the first of four planned beta releases and if all goes well a
 final release should occur around the end of April. The full release
 plan can be viewed at:
 
http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
 
 Once again we need your help to ensure a high quality product,
 especially for this beta due to its timing with next week's Code Sprint,
 so please help out by testing your applications with this new code base.
 
 Thanks! - The MapServer Team
 ___
 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