[mapserver-users] MapServer and Guid USING UNIQUE
Good Morning. I am currently working with MapServer and the MSSQL Spatial driver. I am seeing that MS does not work with a DATA statement like this in the Map file: DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326" where PKey is defined like this: [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, No errors are triggered, however nothing is displayed, including all other layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas on how to fix it? Thanks! Roger Bedell Coordinate Solutions Inc. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer and Guid USING UNIQUE
Thanks Till, however, here is the trace from the ODBC tracer, pretty obvious what is going on: DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Insufficient result space to convert uniqueidentifier value to char. (8170) Guids generally take up 36 characters when converted to a string, and the Select statement only has room for 20. Since this is a SQL specific query, my guess it is being generated in the sql spatial driver? Roger HSTMT 0x0589B310 UCHAR * 0x05E1A990 [ -3] "SELECT Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 29.2473266843318,-93.22438 29.2473266843318,-93.22438 41.3707663156682,-104.18599 41.3707663156682,-104.18599 29.2473266843318))',4326)) = 1 \ 0" SDWORD-3 DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Insufficient result space to convert uniqueidentifier value to char. (8170) On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: > Dear Roger, > > if you get an empty image with no error, the first try would be to use a > simple symbol and no expression in your layer. > Also ensure, that your extent when querying the map is correct. > > So you make sure, that everything around your datasource is OK. > > Then use a datastring like this one: > > > DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo USING > UNIQUE PKey USING SRID=4326" > > or however the geometry-column in mssql server is called ;-) > > Regards, Till > > > > > Roger Bedell wrote: > > Good Morning. > I am currently working with MapServer and the MSSQL Spatial driver. I am > seeing that MS does not work with a DATA statement like this in the Map > file: > > DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326" > > where PKey is defined like this: > > [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, > > No errors are triggered, however nothing is displayed, including all other > layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas > on how to fix it? > > Thanks! > Roger Bedell > Coordinate Solutions Inc. > > -- > > ___ > mapserver-users mailing > listmapserver-users@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > > - > terrestris GmbH & Co. KG > Irmintrudisstrasse 17 > 53111 Bonn > Germany > > Till Adams > Geschäftsführung > > Tel: +49 (0)228 / 962 899-52 > Fax: +49 (0)228 / 962 899-57ad...@terrestris.de http://www.terrestris.de > Amtsgericht Bonn, HRA 6835 > - > > Komplementärin: > > terrestris Verwaltungs GmbH > > vertreten durch: > Hinrich Paulsen, Till Adams > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer and Guid USING UNIQUE
Hi Roger, Could you create a ticket with this issue ( http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing this. Best regards, Tamas 2011/3/10 Roger Bedell > Thanks Till, however, here is the trace from the ODBC tracer, pretty > obvious what is going on: > > DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL > Server]Insufficient result space to convert uniqueidentifier value to char. > (8170) > > Guids generally take up 36 characters when converted to a string, and the > Select statement only has room for 20. > > Since this is a SQL specific query, my guess it is being generated in the > sql spatial driver? > > Roger > > > HSTMT 0x0589B310 > UCHAR * 0x05E1A990 [ -3] "SELECT > Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader > WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 > 29.2473266843318,-93.22438 29.2473266843318,-93.22438 > 41.3707663156682,-104.18599 41.3707663156682,-104.18599 > 29.2473266843318))',4326)) = 1 \ 0" > SDWORD-3 > > DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL > Server]Insufficient result space to convert uniqueidentifier value to char. > (8170) > > > > > > > > On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: > >> Dear Roger, >> >> if you get an empty image with no error, the first try would be to use a >> simple symbol and no expression in your layer. >> Also ensure, that your extent when querying the map is correct. >> >> So you make sure, that everything around your datasource is OK. >> >> Then use a datastring like this one: >> >> >> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo >> USING UNIQUE PKey USING SRID=4326" >> >> or however the geometry-column in mssql server is called ;-) >> >> Regards, Till >> >> >> >> >> Roger Bedell wrote: >> >> Good Morning. >> I am currently working with MapServer and the MSSQL Spatial driver. I am >> seeing that MS does not work with a DATA statement like this in the Map >> file: >> >> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326" >> >> where PKey is defined like this: >> >> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, >> >> No errors are triggered, however nothing is displayed, including all other >> layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas >> on how to fix it? >> >> Thanks! >> Roger Bedell >> Coordinate Solutions Inc. >> >> -- >> >> ___ >> mapserver-users mailing >> listmapserver-users@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> -- >> >> - >> terrestris GmbH & Co. KG >> Irmintrudisstrasse 17 >> 53111 Bonn >> Germany >> >> Till Adams >> Geschäftsführung >> >> Tel: +49 (0)228 / 962 899-52 >> Fax: +49 (0)228 / 962 899-57ad...@terrestris.de http://www.terrestris.de >> Amtsgericht Bonn, HRA 6835 >> - >> >> Komplementärin: >> >> terrestris Verwaltungs GmbH >> >> vertreten durch: >> Hinrich Paulsen, Till Adams >> >> > > ___ > 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 and Guid USING UNIQUE
Thanks Tamas! It is ticket 3722 Roger On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres wrote: > Hi Roger, > > Could you create a ticket with this issue ( > http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing this. > > Best regards, > > Tamas > > > > 2011/3/10 Roger Bedell > > Thanks Till, however, here is the trace from the ODBC tracer, pretty >> obvious what is going on: >> >> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >> Server]Insufficient result space to convert uniqueidentifier value to char. >> (8170) >> >> Guids generally take up 36 characters when converted to a string, and the >> Select statement only has room for 20. >> >> Since this is a SQL specific query, my guess it is being generated in the >> sql spatial driver? >> >> Roger >> >> >> HSTMT 0x0589B310 >> UCHAR * 0x05E1A990 [ -3] "SELECT >> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader >> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599 >> 29.2473266843318,-93.22438 29.2473266843318,-93.22438 >> 41.3707663156682,-104.18599 41.3707663156682,-104.18599 >> 29.2473266843318))',4326)) = 1 \ 0" >> SDWORD-3 >> >> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL >> Server]Insufficient result space to convert uniqueidentifier value to char. >> (8170) >> >> >> >> >> >> >> >> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote: >> >>> Dear Roger, >>> >>> if you get an empty image with no error, the first try would be to use a >>> simple symbol and no expression in your layer. >>> Also ensure, that your extent when querying the map is correct. >>> >>> So you make sure, that everything around your datasource is OK. >>> >>> Then use a datastring like this one: >>> >>> >>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo >>> USING UNIQUE PKey USING SRID=4326" >>> >>> or however the geometry-column in mssql server is called ;-) >>> >>> Regards, Till >>> >>> >>> >>> >>> Roger Bedell wrote: >>> >>> Good Morning. >>> I am currently working with MapServer and the MSSQL Spatial driver. I am >>> seeing that MS does not work with a DATA statement like this in the Map >>> file: >>> >>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING >>> SRID=4326" >>> >>> where PKey is defined like this: >>> >>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL, >>> >>> No errors are triggered, however nothing is displayed, including all >>> other layers. Is this an issue with the SQL Spatial driver or MapServer? Any >>> ideas on how to fix it? >>> >>> Thanks! >>> Roger Bedell >>> Coordinate Solutions Inc. >>> >>> -- >>> >>> ___ >>> mapserver-users mailing >>> listmapserver-users@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> -- >>> >>> - >>> terrestris GmbH & Co. KG >>> Irmintrudisstrasse 17 >>> 53111 Bonn >>> Germany >>> >>> Till Adams >>> Geschäftsführung >>> >>> Tel: +49 (0)228 / 962 899-52 >>> Fax: +49 (0)228 / 962 899-57ad...@terrestris.de http://www.terrestris.de >>> Amtsgericht Bonn, HRA 6835 >>> - >>> >>> Komplementärin: >>> >>> terrestris Verwaltungs GmbH >>> >>> vertreten durch: >>> Hinrich Paulsen, Till Adams >>> >>> >> >> ___ >> 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!
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!
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. -- 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!
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
[mapserver-users] WMS on top of Google maps API
Hallo list! I have a problem with mapserver WMS and google maps API http://www.examples.geostrona.pl/WMS_on_top_of_google/ When I am adding WMS layer everything outside national park become white (is is an IMAGECOLOR in mapfile value). How to set transparency for it? I want to have only national park geometry displayed... here is a copy of mapfile: http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map Thanks for help! ___ 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!
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!
use AGG/JPEG regards, thomas On Thu, Mar 10, 2011 at 18:33, 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. >> > > 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!
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] WMS on top of Google maps API
Hi Michal, To get a map transparent I use TRANSPARENT ON in MAP or OUTPUT section and TRANSPARANT XX in the LAYERS section. Probably you won't need IMAGECOLOR anymore. May be it helps, Hans Wapenaar MAP NAME "" STATUS ON IMAGETYPE PNG UNITS METERS TRANSPARENT ON OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER AGG/PNG IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END LAYER ... STATUS ON TRANSPARENCY 30 TYPE POLYGON ... END Van: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Namens Michal Drozdz Verzonden: donderdag 10 maart 2011 18:20 Aan: mapserver-users Onderwerp: [mapserver-users] WMS on top of Google maps API Hallo list! I have a problem with mapserver WMS and google maps API http://www.examples.geostrona.pl/WMS_on_top_of_google/ When I am adding WMS layer everything outside national park become white (is is an IMAGECOLOR in mapfile value). How to set transparency for it? I want to have only national park geometry displayed... here is a copy of mapfile: http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map Thanks for help! ___ 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!
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 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!
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!
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 Morissette 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!
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 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] WMS on top of Google maps API
You need to be using png with transparency, not jpeg. Jpeg does not support transparency. format=image/png also &transparent=true quick test is: http://geoforest.org/mapserver/cgi-bin/mapserv?map=/home/mdrozdz/www/np.map&version=1.1.1&request=GetMap&Layers=National_parks_existing&Styles=default&SRS=EPSG:4326&BBOX=20.7421875,42.032974332441405,20.91796875,42.16340342422401&width=256&height=256&format=image/png&transparent=true looks like that works.. 2011/3/10 Michał Drożdż : > Hallo list! > > > > I have a problem with mapserver WMS and google maps API > > > > http://www.examples.geostrona.pl/WMS_on_top_of_google/ > > When I am adding WMS layer everything outside national park become white (is > is an IMAGECOLOR in mapfile value). How to set transparency for it? I want > to have only national park geometry displayed... > > > > here is a copy of mapfile: > > http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map > > > > Thanks for help! > > ___ > 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!
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!
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: 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!
nipped> 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!
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 > 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: > > > > 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!
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!
On 3/10/2011 1:59 PM, Yewondwossen Assefa wrote: nipped> 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!
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 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. 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!
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!
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 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. 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
[mapserver-users] Re: WMS on top of Google maps API
You can add the OFFSITE option to a layer to set a color to transparent. Jim On 03/10/2011 02:02 PM, mapserver-users-requ...@lists.osgeo.org wrote: Van:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Namens Michal Drozdz Verzonden: donderdag 10 maart 2011 18:20 Aan: mapserver-users Onderwerp: [mapserver-users] WMS on top of Google maps API Hallo list! I have a problem with mapserver WMS and google maps API http://www.examples.geostrona.pl/WMS_on_top_of_google/ When I am adding WMS layer everything outside national park become white (is is an IMAGECOLOR in mapfile value). How to set transparency for it? I want to have only national park geometry displayed... here is a copy of mapfile: http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map Thanks for help! ___ 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 - TEST PROBLEMS!
I have loaded MapServer 6.0 from ubuntugis-testing. I finally stripped down a mapfile and got it working. I have upgraded and downgraded several times trying to find the errors in my mapfile. The repository works GREAT. Thanks for creating it!. I want to test the new Cairo/pdf output. I have a need for pdf output and have been waiting for this release. My phpinfo output for mapscript only shows: OUTPUT=GIF/PNG/JPEG PDF and SVG is not included. Can you please add these to the configure options used to create the repository? If not could you give me the proper configuration I should use to compile MapServer 6.0. I have tried one or twice to compile from source and have not been very successful. I never seem to get the configuration right. Thanks for your help, Worth ___ 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!
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. 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. -- 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. 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. 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 - Error with $point->setXY()
I tried the MS 6beta1 from SVN (the osgeo download site is not responding). The first error I found in PHP Mapscript was related to the function setXY() for point objects, the following code causes a segmentation fault (something like "child pid 16057 exit signal Segmentation fault (11)" in the Apache error log): $pnt = new PointObj(); $pnt->setXY(250,200); Same problem appears when creating the point with the old syntax $pnt = ms_newPointObj(); The environment is Ubuntu 10.04, PHP 5.3.5 and Apache2 prefork (PHP as DSO). regards armin ___ 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!
-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
Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
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!
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. 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. -- 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. 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. 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!
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
[mapserver-users] MapServer 6 and KML outputformat
Hi all the outputformat KML in the new MS 6 is quite nice and it allows easy and flexible data export to KML especially via Mapscript. But the implementation of the export of data attributes could be improved IMHO. Currently the fields/items of the layers (defined under map file METADATA KML_INCLUDE_ITEMS) are exported to a KML tag "" and inserted as HTML table. While this is of course possible, a cleander way would be how GDAL/OGR exports the attributes: GDAL/OGR uses the tag and places the attribute values in tags, like ... Berlin 3899412 DE This leads to a much better display in Google Earth. In addition to the KML_INCLUDE_ITEMS, another possibility to define a field/item used in KML for the tag would be useful, like OGR allows this via the NameField option. So maybe a METADATA definition like KML_NAME_FIELD could do this. Best regards Armin ___ 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!
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
[mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
All, I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011. It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010. Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output. I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported. Can you help? Thanks, - Phil Anzel Web Soil Survey development team Vistronix Inc. for USDA/NRCS/ITC . start of map file . MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END STATUS ON SIZE 954 589 EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729 RESOLUTION 70 UNITS METERS IMAGECOLOR 255 255 255 PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END symbol name 'circle' filled true type ellipse points 0 0 1 1 end end LAYER NAME 'single line' STATUS ON TYPE LINE feature points -11760750 5057520 -11752920 5062330 end end CLASS style symbol 'circle' size 20 color 255 255 0 outlinecolor 255 0 0 end style width 1 color 0 0 255 end end END # end of layer 'single line' END # end of MAP . end of map file . ___ 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!
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