Opened 14 years ago

Closed 13 years ago

#3216 closed bug (worksforme)

WMS not working correctly

Reported by: pinux Owned by: mhugent
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Data Provider Version:
Keywords: WMS Cc:
Must Fix for Release: No Platform: Windows
Platform Version: Awaiting user input: yes

Description

This mapfile is working without problems on qgis 1.4:

MAP
  NAME my_map
  SIZE 640 640
  UNITS meters
  EXTENT 5387500.000000 4989000.000000 5401000.000000 5007000.000000
  IMAGECOLOR 255 255 255
  IMAGEQUALITY 100
  IMAGETYPE jpeg
 
PROJECTION
	"init=epsg:900913"
END 
  
OUTPUTFORMAT
  NAME jpeg
  DRIVER "GD/JPEG"
  MIMETYPE "image/jpeg"
  IMAGEMODE RGB
  EXTENSION "jpg"
END
   MAXSIZE 4096

  WEB
    IMAGEPATH 'C:/tmp/'
    IMAGEURL 'C:/tmp/'

    # WMS server settings
    METADATA
      'wms_title'           'My layer'
      'wms_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?map=C:\my_map.map'
      'wms_srs'             'EPSG:900913'
    END
  END

  LAYER
   PROCESSING "RESAMPLE=NEAREST"
    NAME "My map"
    STATUS ON
    TILEINDEX "index.shp"
    TILEITEM "Location"
    TYPE RASTER
    METADATA
      'wms_title' 'My Layer map'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
  END
END

From 1.5 to the trunk r14547 I'm having the following problems:

  1. When I try to select the layer under the number 1 it is automatically selecting the name of my map under number 0. It happens even when I have more than 1 layer.
  2. The output format is not automatically selected to jpg like it was working on qgis 1.4.

Change History (4)

comment:1 by lutra, 14 years ago

Owner: changed from nobody to mhugent

comment:2 by pcav, 13 years ago

Please check again with 1.6 or trunk. I cannot reproduce it. Thanks.

comment:3 by pcav, 13 years ago

Awaiting user input: set

comment:4 by jef, 13 years ago

Resolution: worksforme
Status: newclosed

probably solved. closing for the lack of feedback.

Note: See TracTickets for help on using tickets.