[mapserver-users] Can a layer (with type UV raster) with a mask have a custom projection?

Jorrit Goddijn Jorrit.Goddijn at meteogroup.com
Wed May 28 08:32:33 PDT 2014


Hi all,

I have a layer  which draws fine with data over the whole world. It has this projection object:

####################
        PROJECTION
          "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360"
        END
        METADATA
            "wms_title"    "the current arrow grid"
            "wms_srs"      "epsg:4326 epsg:54004"
        END
####################

If I try to put a MASK on this layer,  I get a "NO DATA RECEIVED" error.

The MASK layer draws fine on it's own. I have tried masking this layer with a layer with the same custom projection, but the same result.

This is my layer object:

    LAYER
        NAME "current_grid"
        TYPE POINT
        CONNECTIONTYPE uvraster
        STATUS OFF
        MASK "water_outline" #breaks!

        DATA "/var/www/mapserver/data/grib/routeguard/4nwcur99_2013110412.grb2"    #v and u-component of current
        #PROCESSING "BANDS=1,2"
        PROCESSING "UV_SPACING=20"
        CLASS
            STYLE
                SYMBOL "arrow"
                ANGLE [uv_angle]
                SIZE 10 #we can also use [uv_length] here but this doesnt scale nicely for current. for the file 4nwwin99... it does work as expected.
                COLOR 0 255 0
            END # style
        END # class

        PROJECTION
          "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360"
        END
        METADATA
            "wms_title"    "the current arrow grid"
            "wms_srs"      "epsg:4326 epsg:54004"
        END

    END # layer

Thank you all,

Jorrit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140528/fddd6f02/attachment.htm>


More information about the MapServer-users mailing list