Re: [mapserver-users] error in raster layer
That error is fairly vague. The first thing I would look at is permissions. Also a good rule of thumb is to not use () in file or directory names. On Thu, Apr 7, 2011 at 9:16 PM, morteza shabihkhani m.shabihkh...@gmail.com wrote: Hello all, I want to create a very simple raster layer, but I faced to this error: msDrawMap(): Image handling error. Failed to draw layer named 'elevation'. msDrawRaster(): Unable to access file. stcon using full path stcon this is my layer: LAYER NAME elevation TYPE raster STATUS on DATA stcon PROJECTION init=epsg:2260 END CLASS STYLE OUTLINECOLOR 0 200 0 END END END I checked paths and names, and everything is correct. I should note that I try to look at the only raster layer of itasca, but although all other layers are working very well, running this layer causes this error: msDrawMap(): Image handling error. Failed to draw layer named 'drgs'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /var/www/Mapserver/Amin(Itasca)/data/drgncimq1926.tif is not an EPPL file. Thank you in advance for your help. Amin ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ___ Any use, dissemination, distribution, posting on Internet bulletin boards, disclosure or copying of this e-mail or any information contained herein by or to anyone other than the intended recipient(s) is strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Problems with Query Template (Chameleon)
Hi there - really need some help if you can please regarding Template Query feature, and I have googled to exhaustion :-/ Background: I have an existing Map file referencing MapInfo Tab files running under ms4w_2.3.1 chameleon_ms4w-2.4.1 I have installed ms4w - V3.0.1 and chameleon V2.6.0 Copied my Map file across and made the necessary adjustments to get it working. However when using the Query Widget (info of layers at mouse click) against MapInfo Layers it is no longer returning results, and yet it did previously. My knowledge is not that great in php etc - but I suspect that its requiring a dbf rather than MapInfo Tab as it does work with a shp, dbf set of files. Can Anyone help please as I really struggling - ideally I just want to use the old widget. However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too. Thanks in advance Andy The information contained in or attached to this message is the responsibility of the sender and is meant for the confidential use of the intended recipients. It does not necessarily represent the position of Aligned Assets. If you are not an intended recipient you are notified that you have received this communication in error and that review, dissemination or copying of this communication is prohibited. If you have received this in error, please notify us. Aligned Assets Limited Unit 5 River Court Albert Drive Sheerwater Woking GU21 5RP Company Registration No: 4610724 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] RE: making POINT with SQL
Didn't I hear this advice before on this list :-) Jan On 7-4-2011 21:49, Lime, Steve D (DNR) wrote: Make sure you're actually turning the layer on. Status ON always makes me wonder. Try setting STATUS to DEFAULT and comment out the maxscale line and see what happens. Steve *From:*mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Juan Carlos Monestel *Sent:* Thursday, April 07, 2011 1:21 PM *To:* mapserver-users@lists.osgeo.org *Subject:* [mapserver-users] RE: making POINT with SQL Hi it is not drawing and no error occurs -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Thu 4/7/2011 2:43 PM To: Juan Carlos Monestel; mapserver-users@lists.osgeo.org Subject: RE: making POINT with SQL What does not working mean? Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Juan Carlos Monestel Sent: Thursday, April 07, 2011 12:04 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] making POINT with SQL Hello I'm trying to make an POINT in the map but it's not working this is my Layer layer name ponto connectiontype POSTGIS connection dbname= user=x host=x port=x data geo_info from table type point status on metadata tile_source nocache end maxscale 301 class style size 4 symbol circulo color 0 0 0 end style size 1 symbol circulo color 255 255 255 end end end The SQL brings me an geo info (010120E61079E9263108DC42C08716D9CEF75338C0) that in text is = POINT(-37.719 -24.328) Any Ideas ? ___ 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] MapServer 6: ESRI Grid display with KMZ output
Hi, I try to use Mapserver 6 beta 5 to generate kmz output with several type of input data (geotiff, shape and esri ascii grid): It is OK with geotiff and shape but there is no result with grd (empty image in temp). If I try to generate png output it's OK for all. Thank you for help Kelly ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MS 6.0 beta 4: OGR outputformat truncates WMS GetCapabilities
Hi, I was playing with the ORG outputformats. On the bottom I have a working mapfile for WMS. I took this section OUTPUTFORMAT NAME OGRGML DRIVER OGR/GML FORMATOPTION STORAGE=filesystem FORMATOPTION FORM=multipart FORMATOPTION FILENAME=result.gml END from document http://mapserver.org/trunk/output/ogr.html and added it into my mapfile. As a result the WMS GetCapabilities requsts fails. The response is truncated. All that is coming out is pasted here below ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE WMT_MS_Capabilities SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd; [ !ELEMENT VendorSpecificCapabilities EMPTY ] !-- end of DOCTYPE declaration -- WMT_MS_Capabilities version=1.1.1 !-- MapServer version 6.0.0-beta4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- Service NameOGC:WMS/Name TitleKaverin WMS-testipalvelu/Title OnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?/ ContactInformation /ContactInformation /Service Capability Request GetCapabilities Formatapplication/vnd.ogc.wms_xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetCapabilities GetMap Formatimage/png/Format Formatimage/jpeg/Format Formatimage/gif/Format Formatimage/png; mode=8bit/Format Formatapplication/x-pdf/Format Formatimage/svg+xml/Format Formatimage/tiff/Format Formatapplication/vnd.google-earth.kml+xml/Format Formatapplication/vnd.google-earth.kmz/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetMap GetFeatureInfo Formattext/plain/Format Formatapplication/vnd.ogc.gml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetFeatureInfo DescribeLayer Formattext/xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /DescribeLayer GetLegendGraphic Formatimage/png/Format Formatimage/jpeg/Format Formatimage/gif/Format Formatimage/png; mode=8bit/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetLegendGraphic GetStyles Formattext/xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetStyles /Request Exception Formatapplication/vnd.ogc.se_xml/Format Formatapplication/vnd.ogc.se_inimage/Format Formatappl -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MS 6.0 beta 4: OGR outputformat truncates WMSGetCapabilities
Done, #3822 with a simple mapfile that truncates GetCapabilities for me. And yes, I am on Windows, server 2003 and MS4W with MS 6.0 beta4 package. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Daniel Morissette Lähetetty: 8. huhtikuuta 2011 15:14 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] MS 6.0 beta 4: OGR outputformat truncates WMSGetCapabilities Looks like a seg fault (crash). You're on Windows, right? Can you please create a ticket? We may need more info to reproduce it once someone starts looking into it. Thanks Daniel On 11-04-08 08:10 AM, Rahkonen Jukka wrote: Hi, I was playing with the ORG outputformats. On the bottom I have a working mapfile for WMS. I took this section OUTPUTFORMAT NAME OGRGML DRIVER OGR/GML FORMATOPTION STORAGE=filesystem FORMATOPTION FORM=multipart FORMATOPTION FILENAME=result.gml END from document http://mapserver.org/trunk/output/ogr.html and added it into my mapfile. As a result the WMS GetCapabilities requsts fails. The response is truncated. All that is coming out is pasted here below ?xml version='1.0' encoding=ISO-8859-1 standalone=no ? !DOCTYPE WMT_MS_Capabilities SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd; [ !ELEMENT VendorSpecificCapabilities EMPTY ] !-- end of DOCTYPE declaration -- WMT_MS_Capabilities version=1.1.1 !-- MapServer version 6.0.0-beta4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- Service NameOGC:WMS/Name TitleKaverin WMS-testipalvelu/Title OnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?/ ContactInformation /ContactInformation /Service Capability Request GetCapabilities Formatapplication/vnd.ogc.wms_xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetCapabilities GetMap Formatimage/png/Format Formatimage/jpeg/Format Formatimage/gif/Format Formatimage/png; mode=8bit/Format Formatapplication/x-pdf/Format Formatimage/svg+xml/Format Formatimage/tiff/Format Formatapplication/vnd.google-earth.kml+xml/Format Formatapplication/vnd.google-earth.kmz/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetMap GetFeatureInfo Formattext/plain/Format Formatapplication/vnd.ogc.gml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetFeatureInfo DescribeLayer Formattext/xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /DescribeLayer GetLegendGraphic Formatimage/png/Format Formatimage/jpeg/Format Formatimage/gif/Format Formatimage/png; mode=8bit/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Post http://localhost/cgi-bin/mapserv.exe?//Post /HTTP /DCPType /GetLegendGraphic GetStyles Formattext/xml/Format DCPType HTTP GetOnlineResource xmlns:xlink=http://www.w3.org/1999/xlink; xlink:href=http://localhost/cgi-bin/mapserv.exe?//Get http://localhost/cgi-bin/mapserv.exe?//Get PostOnlineResource
[mapserver-users] Transparency of overlapping PNG-symbols
Dear list, while developing an application with PNG-symbols rendered on top of a map I have encountered a problem if the PNG-symbols overlap each other; artefacts are present (see attachment). The Symbols are defined as following: SYMBOL NAME Batnight TYPE PIXMAP IMAGE ./images/batnight.png TRANSPARENT 0 END Used outputformat: OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END Is there an easy way to let them disappear or is this a (perhaps known) bug in MapServer? I am using the AGG-renderer and MS 5.6.6 though. TIA Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner attachment: transparent_symbols.png signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms_style_xxx_legendurl_href
Hello Jörg, Jörg Thomsen j...@mapmedia.de, [20110316 - 11:53:52] Hi, o.k., it was not the best moment to ask my question, because at the same time the mapserver beta 6 was announced ;) so here a 'repost', it would be nice if anyone could give me a hint: Hi, I'm using the wms_style-parameters in the layer metadata section to tell the client to use a special legend-url: 'wms_style' 'Farbwerte' 'wms_style_Farbwerte_legendurl_height' '218' 'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png' 'wms_style_Farbwerte_legendurl_format' 'png' 'wms_style_Farbwerte_legendurl_width' '300' This works fine with only one style. But what do I have to do, if I have defined different styles / classgroups? one should use a pre-defined image, the other ones should be generated by mapserver. When defining 'wms_style' 'Farbwerte' the capabilities only shows this style, even if there are more styles (classgroups) defined. Any idea? leave wms_style away, just set 'wms_style_Farbwerte_legendurl_height' '218' 'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png' 'wms_style_Farbwerte_legendurl_format' 'png' 'wms_style_Farbwerte_legendurl_width' '300' 'wms_style_FarbwerteBlablabla_legendurl_height' '218' 'wms_style_FarbwerteBlablabla_legendurl_href' 'http://xxx/html/test/gimp.png' 'wms_style_FarbwerteBlablabla_legendurl_format' 'png' 'wms_style_FarbwerteBlablabla_legendurl_width' '300' untested, but should work. Cheers Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Error Message in WMS service
Hi folks, just a beginner's question: Is it possible to position the image-error message of a WMS request in the middle of the image? Normally it is placed in the upper left corner, and with OpenLayers (overlaid over Google Maps) the message is displayed on a tile outside the visual screen. Jan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Error Message in WMS service
Looking at the code it's always in the same place, so no... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Friday, April 08, 2011 9:21 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Error Message in WMS service Hi folks, just a beginner's question: Is it possible to position the image-error message of a WMS request in the middle of the image? Normally it is placed in the upper left corner, and with OpenLayers (overlaid over Google Maps) the message is displayed on a tile outside the visual screen. Jan ___ 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] Error Message in WMS service
OK, that means that I have to create an error image the size of the WMS request and position the message in the middle, with some combination of PHP Mapscript and PHP/GD. Doable. Thanks, Jan On 8-4-2011 16:27, Lime, Steve D (DNR) wrote: Looking at the code it's always in the same place, so no... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Friday, April 08, 2011 9:21 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Error Message in WMS service Hi folks, just a beginner's question: Is it possible to position the image-error message of a WMS request in the middle of the image? Normally it is placed in the upper left corner, and with OpenLayers (overlaid over Google Maps) the message is displayed on a tile outside the visual screen. Jan ___ 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] Transparency of overlapping PNG-symbols
Can you share the batnight.png file? Any difference if you remove TRANSPARENT 0? It shouldn't have any effect since transparency is picked up from the pixmap. By chance does this work ok in 6.0? Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl Sent: Friday, April 08, 2011 8:43 AM To: mapserver-users@lists.osgeo.org Cc: Björn Schilberg Subject: [mapserver-users] Transparency of overlapping PNG-symbols Dear list, while developing an application with PNG-symbols rendered on top of a map I have encountered a problem if the PNG-symbols overlap each other; artefacts are present (see attachment). The Symbols are defined as following: SYMBOL NAME Batnight TYPE PIXMAP IMAGE ./images/batnight.png TRANSPARENT 0 END Used outputformat: OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END Is there an easy way to let them disappear or is this a (perhaps known) bug in MapServer? I am using the AGG-renderer and MS 5.6.6 though. TIA Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Error Message in WMS service
Or limit the size of the WMS request to the viewport size (ratio:1). I would think that would be desirable regardless IMHO. Other option is to generate longer error messages with really long layer names. ;-) Steve -Original Message- From: Jan Hartmann [mailto:j.l.h.hartm...@uva.nl] Sent: Friday, April 08, 2011 9:31 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Error Message in WMS service OK, that means that I have to create an error image the size of the WMS request and position the message in the middle, with some combination of PHP Mapscript and PHP/GD. Doable. Thanks, Jan On 8-4-2011 16:27, Lime, Steve D (DNR) wrote: Looking at the code it's always in the same place, so no... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Friday, April 08, 2011 9:21 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Error Message in WMS service Hi folks, just a beginner's question: Is it possible to position the image-error message of a WMS request in the middle of the image? Normally it is placed in the upper left corner, and with OpenLayers (overlaid over Google Maps) the message is displayed on a tile outside the visual screen. Jan ___ 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] error in raster layer
On 11-04-08 12:16 AM, morteza shabihkhani wrote: Hello all, I want to create a very simple raster layer, but I faced to this error: msDrawMap(): Image handling error. Failed to draw layer named 'elevation'. msDrawRaster(): Unable to access file. stcon using full path stcon this is my layer: LAYER NAME elevation TYPE raster STATUS on DATA stcon Morteza, I don't think you mentioned what binaries you are using. Could you confirm that the mapserv -v output includes INPUT=GDAL? The error - particularly the EPPL one, could mean you don't even have GDAL raster support built in. In the above case, are you really really really sure the path is right? You haven't provided any path so it ought to be evaluated relative to the mapfile but to be very sure I'd suggest supplying a full path. Also, does your file really have no extension? MapServer isn't going to guess an extension! Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Transparency of overlapping PNG-symbols
Given the artifact, I'd say that you are using the GD renderer. Are you sure it's the AGG one that is being selected when you create that image? -- thomas 2011/4/8 Lime, Steve D (DNR) steve.l...@state.mn.us: Can you share the batnight.png file? Any difference if you remove TRANSPARENT 0? It shouldn't have any effect since transparency is picked up from the pixmap. By chance does this work ok in 6.0? Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl Sent: Friday, April 08, 2011 8:43 AM To: mapserver-users@lists.osgeo.org Cc: Björn Schilberg Subject: [mapserver-users] Transparency of overlapping PNG-symbols Dear list, while developing an application with PNG-symbols rendered on top of a map I have encountered a problem if the PNG-symbols overlap each other; artefacts are present (see attachment). The Symbols are defined as following: SYMBOL NAME Batnight TYPE PIXMAP IMAGE ./images/batnight.png TRANSPARENT 0 END Used outputformat: OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END Is there an easy way to let them disappear or is this a (perhaps known) bug in MapServer? I am using the AGG-renderer and MS 5.6.6 though. TIA Stephan -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ___ 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] 16 Bit PNG Output
On 11-04-07 08:19 AM, kaipi wrote: I am not able to output elevation data as 16 Bit PNGs. Is Mapserver not able to to this ? I tried with a current version of Mapserver on Windows and on Linux. I tried WMS and WCS requests - but I always get 8 Bit PNGs back although I have configured 16INT. Other formats like GTiff or Esri Bil work fine with 16Int. Any ideas ? Thanks, kaipi Here is my mapfile: [...] OUTPUTFORMAT NAME 'tif' DRIVER GDAL/GTIFF IMAGEMODE INT16 MIMETYPE image/tif END OUTPUTFORMAT NAME 'pngint16' DRIVER GDAL/PNG IMAGEMODE INT16 MIMETYPE image/pngint16 END Harry, I suspect the problem is that the PNG driver supposed unsigned 16bit integer while IMAGEMODE INT16 is signed 16bit integers. We really need a FORMATOPTION that will let us force the pixel data type of the generated file even if it is somewhat different from the IMAGEMODE type. Perhaps you could create an enhancement ticket for this and ensure it is assigned to me (userid: warmerdam)? It should be a pretty easy change. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] error in raster layer
Thank you, Because I'm new in Mapserver, I don't know how to track the errors. Could you please help me to check the permissions. On Fri, Apr 8, 2011 at 2:45 AM, fruitwerks fruitwe...@gmail.com wrote: That error is fairly vague. The first thing I would look at is permissions. Also a good rule of thumb is to not use () in file or directory names. On Thu, Apr 7, 2011 at 9:16 PM, morteza shabihkhani m.shabihkh...@gmail.com wrote: Hello all, I want to create a very simple raster layer, but I faced to this error: msDrawMap(): Image handling error. Failed to draw layer named 'elevation'. msDrawRaster(): Unable to access file. stcon using full path stcon this is my layer: LAYER NAME elevation TYPE raster STATUS on DATA stcon PROJECTION init=epsg:2260 END CLASS STYLE OUTLINECOLOR 0 200 0 END END END I checked paths and names, and everything is correct. I should note that I try to look at the only raster layer of itasca, but although all other layers are working very well, running this layer causes this error: msDrawMap(): Image handling error. Failed to draw layer named 'drgs'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /var/www/Mapserver/Amin(Itasca)/data/drgncimq1926.tif is not an EPPL file. Thank you in advance for your help. Amin ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ___ Any use, dissemination, distribution, posting on Internet bulletin boards, disclosure or copying of this e-mail or any information contained herein by or to anyone other than the intended recipient(s) is strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Error Message in WMS service
No, that doesn't work. It's an OpenLayers application, so the WMS request automatically computes an extent in excess of the screen. The second solution is really a bit of a kludge, don't you think so? :-) I use another kludge: handle the complete WMS request via PHP Mapscript: return a an XML file for a GetCapabilities request, and an image for everything else (http://mapserver.org/ogc/mapscript.html). This will not cover the complete WMS protocol, but works fine for simple map requests, both in OpenLayers, ArcGIS, MapInfo and QGis. And it gives me at least complete control over error handling, with GD-produced error images at the right position. It's the only way I am aware of to produce WMS output that can be debugged easily. Jan On 8-4-2011 16:34, Lime, Steve D (DNR) wrote: Or limit the size of the WMS request to the viewport size (ratio:1). I would think that would be desirable regardless IMHO. Other option is to generate longer error messages with really long layer names. ;-) Steve -Original Message- From: Jan Hartmann [mailto:j.l.h.hartm...@uva.nl] Sent: Friday, April 08, 2011 9:31 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Error Message in WMS service OK, that means that I have to create an error image the size of the WMS request and position the message in the middle, with some combination of PHP Mapscript and PHP/GD. Doable. Thanks, Jan On 8-4-2011 16:27, Lime, Steve D (DNR) wrote: Looking at the code it's always in the same place, so no... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Friday, April 08, 2011 9:21 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Error Message in WMS service Hi folks, just a beginner's question: Is it possible to position the image-error message of a WMS request in the middle of the image? Normally it is placed in the upper left corner, and with OpenLayers (overlaid over Google Maps) the message is displayed on a tile outside the visual screen. Jan ___ 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] Error Message in WMS service
Ah, I knew it was a beginner's question. Thanks Michael. Jan On 8-4-2011 18:36, Smith, Michael ERDC-CRREL-NH wrote: Jan, In the options to OpenLayers WMS layer, you set the ratio: 1 and OpenLayers will not request outside of the visible screen area. Mike ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] error in raster layer
Frank Thank you for your response. In fact, I'm not very familiar with binaries, but as I remember, I had installed GDAL/OGR before I installed Mapserv. How can I check that my installation process was correct? about the path, I have provided the path in my mapfile and the mapfile call this layer (in separate file). To make sure I replaced another shapefile (polygon layer) in the same path into this layer, and it worked. Also, I'm using linux, which I think doesn't need extension for files, but anyway my layer file has the extension of .lay. In addition, for the polygon layer with the same situation every thing is working very well. Thanks a lot. Regards, On Fri, Apr 8, 2011 at 10:42 AM, Frank Warmerdam warmer...@pobox.comwrote: On 11-04-08 12:16 AM, morteza shabihkhani wrote: Hello all, I want to create a very simple raster layer, but I faced to this error: msDrawMap(): Image handling error. Failed to draw layer named 'elevation'. msDrawRaster(): Unable to access file. stcon using full path stcon this is my layer: LAYER NAME elevation TYPE raster STATUS on DATA stcon Morteza, I don't think you mentioned what binaries you are using. Could you confirm that the mapserv -v output includes INPUT=GDAL? The error - particularly the EPPL one, could mean you don't even have GDAL raster support built in. In the above case, are you really really really sure the path is right? You haven't provided any path so it ought to be evaluated relative to the mapfile but to be very sure I'd suggest supplying a full path. Also, does your file really have no extension? MapServer isn't going to guess an extension! Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ 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] error in raster layer
On 11-04-08 01:41 PM, morteza shabihkhani wrote: Frank Thank you for your response. In fact, I'm not very familiar with binaries, but as I remember, I had installed GDAL/OGR before I installed Mapserv. How can I check that my installation process was correct? Morteza, I suggested using the command mapserv -v to get the version information which includes things like INPUT=GDAL if GDAL input support for rasters is supported. I don't think GDAL is picked up automatically when building from source though I'm not sure. about the path, I have provided the path in my mapfile and the mapfile call this layer (in separate file). To make sure I replaced another shapefile (polygon layer) in the same path into this layer, and it worked. Shapefiles and raster files use subtly different rules, and the shapefile layer type is distinct in that an extension is not required. Also, I'm using linux, which I think doesn't need extension for files, but anyway my layer file has the extension of .lay. In addition, for the polygon layer with the same situation every thing is working very well. Thanks a lot. GDAL does not support ArcGIS layer files (I'm guessing this is what your .lay file is). And if the file has an extension then you must specify it (on linux or Windows). And vectors aren't the same as rasters. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users