hello everyone, ive just started using mapserver with openlayers for a custom app for our company. being the super newbie that i am, i have this problem:

http://img688.imageshack.us/img688/5926/99138762.jpg

as you can see, i have my mapserver data as an overlay above a basemap(from google)... i have a TIFF image (the field) about 3000px by 2000px which i am just supposed to use as a raster overlay so i guess i am somewhat successful with displaying it abeit it was just a test overlay and the world file values arnt really accurate at the moment

now the problem is the background color. it seems that resizing the raster image through the world file only fixes the layer and im left with an opaque map that covers the base layer.. ive tried adjusting the map size and extent bounds to no avail.. help please! here's my map file:

-----------
  # Map image size
  SIZE 968 232 <----- i tried adjusting this but doesnt have any effect
  UNITS dd

  EXTENT -90 -45 90 45 <----- i tried adjusting this too
  PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
    ''
  END


  IMAGECOLOR 0 0 0 <----- obviously this is the black that i see
  IMAGEQUALITY 95
  IMAGETYPE PNG24
  OUTPUTFORMAT
    NAME PNG
    DRIVER 'GD/PNG24'
    MIMETYPE 'image/PNG'
    #IMAGEMODE PC256
    EXTENSION 'PNG'
  END
  # Legend
  LEGEND
      IMAGECOLOR 255 255 255
    STATUS ON
    KEYSIZE 18 12
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      COLOR 0 0 89
    END
  END


  WEB
    IMAGEPATH '/tmp/'
    IMAGEURL '/tmp/'


    METADATA
      'wms_title'           'bell'
'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map&;'
      'wms_srs'             'EPSG:4326'
    END

  END

  LAYER
    NAME '****************'
    TYPE RASTER
    DATA '*************************'
    METADATA
      'wms_title' '***************'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
    ''
    END
  END

END
------------------


i look forward to hearing from you guys :D
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to