[mapserver-users] Raster parameter PROCESSING BANDS=... and ECW files

2011-09-04 Thread Armin Burger

Hi all

I noticed a strange behaviour of MapServer (5.6.7 and 6.0.1) when 
defining for a raster layer based on an ECW file a processing parameter 
for the bands order like


PROCESSING BANDS=3,2,1

The order of the bands does not have any effect. The image is always 
displayed in the original band order 1,2,3, whatever I define for the 
BANDS value. If I just define a single band, like

BANDS=3 or BANDS=1
then it's displaying it correctly using the right band.

This problem seems just to appear for ECW files, not e.g. for Tiff 
files. If I wrap a VRT image around the ECW and use this VRT in the DATA 
tag of the map file then the BANDS order is taken into account, just not 
when defining the DATA using the pure ECW file.


Any ideas what's going wrong?

Thanks for any hints

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


Re: [mapserver-users] Raster parameter PROCESSING BANDS=... and ECW files

2011-09-04 Thread Frank Warmerdam

On 11-09-04 09:33 AM, Armin Burger wrote:

Hi all

I noticed a strange behaviour of MapServer (5.6.7 and 6.0.1) when defining for
a raster layer based on an ECW file a processing parameter for the bands order
like

PROCESSING BANDS=3,2,1

The order of the bands does not have any effect. The image is always displayed
in the original band order 1,2,3, whatever I define for the BANDS value. If I
just define a single band, like
BANDS=3 or BANDS=1
then it's displaying it correctly using the right band.

This problem seems just to appear for ECW files, not e.g. for Tiff files. If I
wrap a VRT image around the ECW and use this VRT in the DATA tag of the map
file then the BANDS order is taken into account, just not when defining the
DATA using the pure ECW file.

Any ideas what's going wrong?


Armin,

I suspect that the special interleaved read method in the GDAL ECW driver
is not properly honouring the list of bands passed in to it.  If this is
the problem then it might not have come up with earlier mapserver versions
that didn't do such reads in one interleaved request.

If this is the issue then please test with GDAL trunk and if the problem
persists file a ticket against GDAL.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/warmerda
and watch the world go round - Rush| Geospatial Software Developer

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


[mapserver-users] Coloring vectordata by features/infos

2011-09-04 Thread Michael G.
Hello,

I am rendering vectordata from a PostGIS database which works like a charm.
My layer definition looks like this:
LAYER
NAME vector
METADATA
wms_include_items all
wms_title dortmund_basic
END
TEMPLATE gfi.html
TYPE POLYGON
## Should be inherited from MAP level, but is good practice to have
here, too: ##(or not? .)
#PROJECTION
#   init=epsg:900913
#END
DUMP true

CONNECTIONTYPE postgis
CONNECTION host=x dbname=x user=x password=x port=5432
DATA the_geom FROM x

CLASS
STYLE
COLOR 200 50 50
OUTLINECOLOR 60 60 60
#SYMBOL 0
ANTIALIAS true
OPACITY 80  # in percent
END
END
END

Right now, I have not fully grasped how features/information is saved along
with the vector data in the PostGIS database, but I am also not maintaining
it. Supposingly we will have a float-value saved along with every vector.
Can someone explain or give me hints, how I could map such a value which is
saved along into a color? Like a brighter shade of red the higher the value is?

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


Re: [mapserver-users] Raster parameter PROCESSING BANDS=... and ECW files

2011-09-04 Thread Armin Burger



On 04/09/2011 19:07, Frank Warmerdam wrote:

On 11-09-04 09:33 AM, Armin Burger wrote:

Hi all

I noticed a strange behaviour of MapServer (5.6.7 and 6.0.1) when
defining for
a raster layer based on an ECW file a processing parameter for the
bands order
like

PROCESSING BANDS=3,2,1

The order of the bands does not have any effect. The image is always
displayed
in the original band order 1,2,3, whatever I define for the BANDS
value. If I
just define a single band, like
BANDS=3 or BANDS=1
then it's displaying it correctly using the right band.

This problem seems just to appear for ECW files, not e.g. for Tiff
files. If I
wrap a VRT image around the ECW and use this VRT in the DATA tag of
the map
file then the BANDS order is taken into account, just not when
defining the
DATA using the pure ECW file.

Any ideas what's going wrong?


Armin,

I suspect that the special interleaved read method in the GDAL ECW driver
is not properly honouring the list of bands passed in to it. If this is
the problem then it might not have come up with earlier mapserver versions
that didn't do such reads in one interleaved request.

If this is the issue then please test with GDAL trunk and if the problem
persists file a ticket against GDAL.

Best regards,



Frank,

thanks for the quick reply. I tested the same configuration using the 
GDAL trunk from today and the problem persists. I filed a ticket for it 
on GDAL Trac (#4234).


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


[mapserver-users] Re: WMS getFeatureInfo WFS getFeature

2011-09-04 Thread jjwang
Thank you for your reply.
But I still don't know how to get extra information by using templates.
Could you give me an example?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/WMS-getFeatureInfo-WFS-getFeature-tp6752411p6759479.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] google map

2011-09-04 Thread qazi iqbal
Is it possible that we can use google maps as a base map (for personal use -
not for commercial applications). If we can, I need a sample of map file
which shows configuration of google map layer in the map file.

Appreciate your input
Thanks

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