curl error
Pratap Anchuri
panchuri at MSA-OXFORD.ARS.USDA.GOV
Fri Apr 15 14:54:42 PDT 2005
we are using Java mapscripting program to access terraserver's images
through WMS service. We r getting following error msg when the program is
run. with debug on in Map file for the wms layer.
java.lang.UnknownError: WMS GetMap request failed for layer 'aerial'
(Status -6: ).
at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method)
at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397)
at serv.DrawMap.main(DrawMap.java:41)
HTTP: Starting to prepare HTTP requests.
HTTP request: id=0, http://terraservice.net/ogcmap.ashx?
LAYERS=DRG&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%
2Fjpeg&STYLES=&HEIGHT=500&VERSION=1.1.1&SRS=EPSG:26910&WIDTH=600&BBOX=54720
0%2C4181733%2E3333333335%2C553600%2C4187066%
2E6666666665&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage
HTTP: Before download loop
HTTP: After download loop
msHTTPExecuteRequests() timing summary per layer (connect_time +
time_to_first_packet + download_time = total_time in seconds)
HTTP: request failed with curl error code 6 () for
http://terraservice.net/ogcmap.ashx?
LAYERS=DRG&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%
2Fjpeg&STYLES=&HEIGHT=500&VERSION=1.1.1&SRS=EPSG:26910&WIDTH=600&BBOX=54720
0%2C4181733%2E3333333335%2C553600%2C4187066%
2E6666666665&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage
Layer 0: 0.000 + 0.000 + 0.000 = 0.000s
Exception in thread "main"
And the map file used is :
MAP
NAME STATES
STATUS ON
SIZE 600 500
EXTENT 547200.00 4182400.00 553600.00 4186400.00
#UNITS METERS
#SHAPEPATH "gisdata"
#TEMPLATEPATTERN "itasca"
IMAGETYPE PNG
PROJECTION
# "proj=utm"
# "ellps=GRS80"
# "zone=15"
# "north"
# "no_defs"
#
# OR:
#
"init=epsg:26910"
END
WEB
IMAGEPATH 'C:\eclipse\workspace\MapSeverProj\Output\tmp\'
IMAGEURL '/tmp/'
END
LAYER
NAME "aerial"
TYPE RASTER
DEBUG ON
STATUS ON
CONNECTIONTYPE WMS
CONNECTION "http://terraservice.net/ogcmap.ashx?"
METADATA
#VERSION=1.1.1&SERVICE=wms&LAYERS=DRG&FORMAT=image/jpeg&STYLES=&req
uest=GetMap
"wms_name" "DRG"
"wms_request" "GetMap"
"wms_srs" "EPSG:26910"
"wms_format" "image/jpeg"
"wms_bbox" "547,200.00 4,182,400.00 553,600.00
4,186,400.00"
"wms_width" "800"
"wms_height" "500"
"wms_server_version" "1.1.1"
"wms_Exceptions" "application/vnd.ogc.se_xml"
END
END
END
we have placed libcurl.dll in windows system directory.
Any suggest for the possible cause of error.
Thanks in advance.
pratap
More information about the MapServer-users
mailing list