Re: [mapserver-users] wms_style_xxx_legendurl_href

2011-03-16 Thread Jörg Thomsen

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?

Jörg

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


Re: [mapserver-users] two mapserver speed-optimization questions

2011-03-16 Thread Frank Warmerdam
On Tue, Mar 15, 2011 at 5:03 PM, Vince Miller  wrote:
> 1. The following two lines of PHP from my application transform an php image 
> object into a raster map layer:
>
> imagepng($rmap, __MAPS_PATH__ . "resource.png");
> $map->getLayerByName("resource")->set("data", __MAPS_PATH__ . "resource.png");
>
> The imagepng call is a major bottleneck when the extent of the layer is large.
> Can the data in image "$rmap" be accessed for layer "resource" directly, 
> without the file write/read? If so, how? FYI, the following lines appear in 
> my mapfile:


Vince,

There are no mechanisms to utilize a PHP image object as the
data in a mapserver raster layer without first writing to disk.  I
gather PHP image resources are actually a handle to a gdImage
object, so if you needed it badly enough it should be possible to
write a PHP function that turn that gdImage into something that
was accessable to GDAL as a raster but that would be quite
involved and not something likely to go back into the core
distribution.

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] two mapserver speed-optimization questions

2011-03-16 Thread Mohamed Saâd HESSANE
For the raster image you can build pyramid with gdaladdo, it's really useful
to increase performances



2011/3/16 Frank Warmerdam 

> On Tue, Mar 15, 2011 at 5:03 PM, Vince Miller 
> wrote:
> > 1. The following two lines of PHP from my application transform an php
> image object into a raster map layer:
> >
> > imagepng($rmap, __MAPS_PATH__ . "resource.png");
> > $map->getLayerByName("resource")->set("data", __MAPS_PATH__ .
> "resource.png");
> >
> > The imagepng call is a major bottleneck when the extent of the layer is
> large.
> > Can the data in image "$rmap" be accessed for layer "resource" directly,
> without the file write/read? If so, how? FYI, the following lines appear in
> my mapfile:
>
>
> Vince,
>
> There are no mechanisms to utilize a PHP image object as the
> data in a mapserver raster layer without first writing to disk.  I
> gather PHP image resources are actually a handle to a gdImage
> object, so if you needed it badly enough it should be possible to
> write a PHP function that turn that gdImage into something that
> was accessable to GDAL as a raster but that would be quite
> involved and not something likely to go back into the core
> distribution.
>
> 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


[mapserver-users] GeoWebCache WMS

2011-03-16 Thread Eric Weisbender
Hello,
 
I am trying to use the GeoWebCache WMS service, 
http://maps.opengeo.org/geowebcache/service/wms ( 
http://maps.opengeo.org/geowebcache/service/wms ), with cgi MapServer as a 
layer defined in may mapfile and it doesn't work.  It also doesn't work in 
QGIS, GlobalMapper, or Google Earth.  However, It works fine in may OpenLayers 
app.  Any insight as to why it only works with OpenLayers would be greatly 
appreciated.
 
Thanks
EW
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Nodata in raster queries

2011-03-16 Thread Frank Warmerdam

On 11-03-14 03:23 PM, Boss, Ken (DNR) wrote:

I have a DEM that I am using with mapserver 5.6 to service queries for an 
elevation value at a given point.  The DEM contains significant offsite/nodata 
areas.  From gdalinfo:

Band 1 Block=19063x1 Type=Int16, ColorInterp=Gray
NoData Value=-32768

If I open the image in QGIS and use the identify tool over a nodata area, it 
says:

   Band 1  null (no data)

But when I run a mapserver point query at the same point, the value returned is 
-32768.  Is there a way to configure mapserver to return something more like 
null for raster nodata areas?


Ken,

Mapserver has a few mechanisms for specifying nodata.  I skimmed the
raster query code and it does not seem to honour these.  If you file
a ticket on this issue, I can try and implement nodata support in the
raster query code this week at the code sprint.

In MapServer 6.0 (trunk) there are some improvements to detecting nodata
values, even for non-8bit data, in the raster drawing case.  This just
hasn't all made it into the raster query logic.

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] About html code inside query attribute responses

2011-03-16 Thread Lime, Steve D (DNR)
Can you or someone else share a sample shapefile with HTML in an attribute? 
I've not experienced this problem but donw have access to a datafile with that 
type of content...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Manuel Aymerich 
[maymer...@argongra.es]
Sent: Tuesday, March 15, 2011 10:04 AM
To: mapserver-users@lists.osgeo.org
Cc: Lime, Steve D (DNR)
Subject: RE: [mapserver-users] About html code inside query attribute responses

Thanks Steve.

As you already pointed out [item name=”name” escape=”none”] behaves exactly as 
[name_raw], which in my case translates html tags from <…> to 
. Not a really coherent behavior, is it? Manuel De: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Enviado el: lunes, 14 de marzo de 2011 16:46 Para: Manuel Aymerich; mapserver-users@lists.osgeo.org Asunto: RE: [mapserver-users] About html code inside query attribute responses What you describe is basically correct. Except, there is no code in place to translate html elements like you mention with [attribute item name_raw]. That should be the correct method of telling MapServer not to touch the contents of an attribute at all. You could also try: [item name=”name” escape=”none”] That should generate the same output as [name_raw] and is the preferred way of doing this sort of thing. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Manuel Aymerich Sent: Monday, March 14, 2011 10:18 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] About html code inside query attribute responses Hi, I’ve prepared WMS getFeautreInfo queries so that mapserver’s template receives pure html attributes (containing the tag for example). I would like to show this html code as it is. So that it integrates with the existing html header, footer and the rest of the template inside mapservers response, hoping that at the frontend the html response could be interpreted as a whole. However, the html stored data is shown either as escaped html or as url encoded data. I’ver read mapserver documentation but I had not success while implementing each possible solution: If I try: [attribute name] : I get escaped html ( is translated into
) [attrribute name_esc]: I get url encdes text ( is translated into %3Cbr%2F%3) [attribute item name_raw]: I get something in between but not pure html ( is translated into \n). Mapserver documentation says “…By default the attributes are encoded especially for HTML representation” but I now disagree. Any ideas about what’s happening here? Any workaround solutions? Thanks in advance, Manuel Aymerich Se certificó que el correo no contiene virus. Comprobada por AVG - www.avg.es Versión: 10.0.1204 / Base de datos de virus: 1498/3505 - Fecha de la versión: 13/03/2011 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] GeoWebCache WMS

2011-03-16 Thread Bart van den Eijnden
Hi,

it's a tiled service, so only imagery at certain scales. That's why it does not 
work in regular WMS clients, only tiled (WMS-C) clients.

Best regards,
Bart

-- 
Looking for flexible support on OpenLayers or GeoExt? Please check out 
http://www.osgis.nl/support.html

Bart van den Eijnden
OSGIS
bart...@osgis.nl

On Mar 16, 2011, at 5:18 PM, Eric Weisbender wrote:

> Hello,
>  
> I am trying to use the GeoWebCache WMS service, 
> http://maps.opengeo.org/geowebcache/service/wms, with cgi MapServer as a 
> layer defined in may mapfile and it doesn't work.  It also doesn't work in 
> QGIS, GlobalMapper, or Google Earth.  However, It works fine in may 
> OpenLayers app.  Any insight as to why it only works with OpenLayers would be 
> greatly appreciated.
>  
> Thanks
> EW
> ___
> 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] GeoWebCache WMS

2011-03-16 Thread Mark Korver
GlobalMapper has been updated in ver 12 to work with tiled services,
but I have not tried WMS-C with it.

MapServer will also work with tiled services from gdal ver 1.7+ see

http://www.gdal.org/frmt_wms.html

Another angle on this is to put MapProxy in front of it which is easy
way to wms a tms source and get both for the price of one?



On Wed, Mar 16, 2011 at 12:13 PM, Bart van den Eijnden  wrote:
> Hi,
> it's a tiled service, so only imagery at certain scales. That's why it does
> not work in regular WMS clients, only tiled (WMS-C) clients.
> Best regards,
> Bart
> --
> Looking for flexible support on OpenLayers or GeoExt? Please check out
> http://www.osgis.nl/support.html
> Bart van den Eijnden
> OSGIS
> bart...@osgis.nl
> On Mar 16, 2011, at 5:18 PM, Eric Weisbender wrote:
>
> Hello,
>
> I am trying to use the GeoWebCache WMS service,
> http://maps.opengeo.org/geowebcache/service/wms, with cgi MapServer as a
> layer defined in may mapfile and it doesn't work.  It also doesn't work in
> QGIS, GlobalMapper, or Google Earth.  However, It works fine in may
> OpenLayers app.  Any insight as to why it only works with OpenLayers would
> be greatly appreciated.
>
> Thanks
> EW
> ___
> 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


[mapserver-users] display tile error as text?

2011-03-16 Thread fruitwerks
Is there a way to get a request resulting in an error to return plain text?

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


Re: [mapserver-users] display tile error as text?

2011-03-16 Thread Mohamed Saâd HESSANE
intercept exception with try catch finally (C# mapscript)

2011/3/16 fruitwerks 

> Is there a way to get a request resulting in an error to return plain text?
>
> Thanks!
>
> ___
> 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