Changeset 8850


Ignore:
Timestamp:
Mar 31, 2009 2:30:03 PM (8 years ago)
Author:
assefa
Message:

setConnectionType(MS_WMS) doesn't work with mapscript (#2908)

Location:
trunk/mapserver
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mapserver/HISTORY.TXT

    r8847 r8850  
    1212Current Version (SVN trunk):
    1313----------------------------
     14
     15- setConnectionType(MS_WMS) doesn't work with mapscript (#2908)
    1416
    1517- Perl Mapscript: improvement of imageObj wrapper (#2962)
  • trunk/mapserver/maplayer.c

    r8604 r8850  
    12051205      layer->connectiontype = MS_TILED_SHAPEFILE;
    12061206
    1207     if(layer->type == MS_LAYER_RASTER )
     1207    if(layer->type == MS_LAYER_RASTER && layer->connectiontype != MS_WMS)
    12081208      layer->connectiontype = MS_RASTER;
    1209    
     1209
    12101210
    12111211    switch(layer->connectiontype) {
     
    12291229            break;
    12301230        case(MS_WMS):
    1231               /* WMS isn't a public layer type, it isn't used anywhere */
    1232               return MS_FAILURE;
     1231              /* WMS should be treated as a raster layer */
     1232              return(msRASTERLayerInitializeVirtualTable(layer));
    12331233              break;
    12341234        case(MS_ORACLESPATIAL):
Note: See TracChangeset for help on using the changeset viewer.