[mapserver-users] WMS help with dataline issues

Tim Erwin taerwin at gmail.com
Mon Mar 21 21:37:25 EDT 2011


I am using raster data from naturalearthdata which is in EPSG:4326 [-180 -90
180 90]. But when requesting data via openlayers with the map centred at
180E it only draws up to 180E. Below is one of the requests from openlayers:


http://localhost/mapserv.cgi?map=naturalearth.map&LAYERS=NE1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=165,-30,215,20&WIDTH=256&HEIGHT=256

How do I get mapserver to render past 180E (or other options)?

Regards,

Tim

######MAPFILE########

MAP
    NAME "NaturalEarth"
    IMAGETYPE      PNG24
    SIZE           800 600
    SHAPEPATH      "./data"
    EXTENT -180 -90 180 90
    DEBUG 3

    WEB
        METADATA
            "wms_title"                  "NaturalEarth WMS"
            "wms_srs"                   "EPSG:4326"
        END
    END

    PROJECTION
       "init=epsg:4326"
    END

    #
    # Start of layer definitions
    #
    LAYER
        NAME "NE1"
        DATA "NE1_HR_LC_SR_W_DR.tif"
        TYPE RASTER
        STATUS ON

        PROJECTION
           "init=epsg:4326"
        END

    END

END #mapfile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110322/d3b9b09b/attachment.html


More information about the mapserver-users mailing list