[Mapserver-users] WMS server - client communication error

Alexandros Chimarios alhim at intracom.gr
Fri May 7 09:42:44 EDT 2004


Hello , 

 I  succesfully setup a WMS server using MapServer 4.2beta1, Apache 2 on a 
Linux RH 9(2.4.20 kernel) pc. I tested my WMS server trough my browser and I 
was able to see the image sent by the WMS.

Unfortunately when I tried to embed a layer of the WMS server into my Python 
Mapscript based client testbed, I got the following error :

[Fri May  7 16:31:42 2004].514558 HTTP: Before download loop
[Fri May  7 16:31:42 2004].746877 msHTTPWriteFct(id=0, 4071 bytes)
[Fri May  7 16:31:42 2004].747725 msHTTPWriteFct(id=0, 4096 bytes)
[Fri May  7 16:31:42 2004].748155 msHTTPWriteFct(id=0, 3729 bytes)
[Fri May  7 16:31:42 2004].846551 HTTP: After download loop
[Fri May  7 16:31:42 2004].847062 msHTTPExecuteRequests() timing summary per 
layer (connect_time + time_to_first_packet + download_time = total_time in 
seconds)
[Fri May  7 16:31:42 2004].847617 Layer 0: 0.001 + 0.231 + 0.002 = 0.234s
[Fri May  7 16:31:42 2004].848405 msDrawRasterLayerLow(country): entering.
Traceback (most recent call last):
  File "./src/test.py", line 131, in ?
    image = mo.draw();
  File "/usr/lib/python2.2/site-packages/mapscript.py", line 1783, in draw
    def draw(*args): return apply(_mapscript.mapObj_draw,args)
_mapscript.MapServerError: msLookupHashTable: Hash table error. Invalid hash 
table or key


Could anyone please give me a hint ?


Here my configuration files :

#***********************
server.map map file of WMS
#***********************


    NAME test_WMS_SERVER
    STATUS ON
    SIZE 600 600
    SHAPEPATH "/usr/local/apache2/wmsdata"
	IMAGECOLOR 60 175 220
	IMAGETYPE PNG
    
    WEB
        METADATA
           "wms_title"                   "WMS Demo Server"
            "wms_onlineresource"   						
"http://localhost:80/wms/mapserv?map=server.map&"
            "wms_srs"                    "EPSG:4326" 
            "wms_format"                "image/png"
            
             
        END
    
    END
    
    LAYER
    		NAME country
       
    		STATUS ON
    		DATA country
    		TYPE POLYGON
	 		 		   
    		CLASS
      			STYLE
        			COLOR 150 120 80
                    		OUTLINECOLOR 25 25 25
      			END
            END
    END
        
        
END







#**************************
client.map map file of client app
#**************************


# Start of map file
#
MAP
	NAME Mediteranean
	STATUS ON
	SIZE 600 600
	EXTENT 2.5256 21.5595 34.1734 53.2078

	
	SHAPEPATH "/root/projects/data"
    
    WEB
        IMAGEPATH '/root/projects/data/tmp/'
        IMAGEURL '/tmp'
        LOG "cascade_wms.log"
    END
    
	IMAGECOLOR 60 175 220
	IMAGETYPE PNG
        INTERLACE OFF
	

    PROJECTION
        "init=epsg:4326"
    END

 			

   # This the country layer coming from a WMS server
	LAYER
    
    		NAME country
       
    		STATUS ON
            OFFSITE 0 0 0
    		
    		TYPE RASTER
            DEBUG ON
            CONNECTIONTYPE WMS
            CONNECTION "http://localhost:80/cgi-bin/mapserv?map=server.map&"
            
                 
            
            METADATA
            
              "wms_title" "wms_COUNTRY"
              "wms_name"    "country"
              "wms_server_version" "1.1.1"
              "wms_srs" "epsg:4326"
              "wms_format"  "image/png"
              "wms_latlonboundingbox"   "-180 -90 180 90"
             
            END
            
            
            PROJECTION
                "init=epsg:4326"
            END
            
    		
            
	END

	
 
    
            

END # end of map file definition








More information about the mapserver-users mailing list