[mapserver-users] Mapserver as wms client error trace
Sowmya Tiramdasu
stiramdasu at qcoherent.com
Wed Jul 25 10:35:05 PDT 2012
Hi,
I checked the trace after running the shp2img.exe. I see that there is no
call made to my wms server. There is a re-projection error seems like. All
the ortho images and output from shape files is coming good.Only the layer
from my WMS server is not being rendered. Here is my mapfile and the error
log.
MAPFILE_________________________________________________________
MAP
IMAGETYPE PNG
EXTENT 1525556.83 190608.70 1547770.63 207656.82 # LAEA
SIZE 984 660
SHAPEPATH "../data"
SYMBOLSET "../symbols/symbols35.sym"
IMAGECOLOR 232 32 132
FONTSET "../fonts/fonts.list"
PROJECTION
"proj=utm"
"zone=17"
"ellps=WGS84"
"datum=WGS84"
"units=m"
"no_defs"
END
WEB
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
"wms_enable_request" "*"
"wms_title" "WMS Lidar Server"
"wms_onlineresource" "http://localhost:8080/keenland?"
"wms_srs" "espg:32617"
END
END
LAYER
NAME "lidar"
TYPE RASTER
STATUS ON
CONNECTION "http://localhost:8080/keenland?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:32617"
"wms_name" "Contours,Points,Boundaries"
"wms_server_version" "1.1.1"
"wms_format" "image/png"
"wms_exceptions_format"
"application/vnd.ogc.se_xml"
"wms_latlonboundingbox" "1517852.6794090855
186462.90718181827 1555978.4750454489 212035.08718181826"
"wms_width" "984"
"wms_height" "660"
END
PROJECTION
"init=epsg:32617"
END
END
LAYER
NAME "image"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0002.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0003.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0004.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0005.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0006.tif"
OPACITY 100
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0007.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0008.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0009.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0010.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0011.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0012.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0013.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0014.tif"
END # LAYER
LAYER
NAME "image1"
TYPE RASTER
STATUS DEFAULT
DATA "raster/lo-0015.tif"
END # LAYER
LAYER
NAME ControlPoints #Photogrammetric points
DATA Photogrammetric_Point
STATUS DEFAULT
TYPE POINT
CLASS
STYLE
# Symbol to be used (reference)
SYMBOL "circle"
# Size of the symbol in pixels
SIZE 6
# Colour (RGB) - red
COLOR 255 0 0
# Outline colour (RGB) - black
OUTLINECOLOR 0 0 0
END
END
END
LAYER
NAME projections #Photogrammetric points
DATA SBET_Trajectory_Source
STATUS DEFAULT
TYPE LINE
CLASS
STYLE
# Colour (RGB) - red
COLOR 150 0 0
WIDTH 5.0
# Outline colour (RGB) - black
OUTLINECOLOR 0 0 0
END
END
END
DEBUG 5
CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt"
END # Map File
___________________ERROR LOG__________________________________________
[Wed Jul 25 12:13:17 2012].80000 msLoadMap(): 0.017s
[Wed Jul 25 12:13:17 2012].81000 msDrawMap(): rendering using outputformat
named png (AGG/PNG).
[Wed Jul 25 12:13:17 2012].88000 msProjectRect(): all points failed to
reproject, trying to fall back to using world bounds ... hope this helps.
[Wed Jul 25 12:13:17 2012].88000 msDrawMap(): WMS/WFS set-up and query,
0.007s
[Wed Jul 25 12:13:17 2012].88000 msDrawMap(): Layer 0 (lidar), 0.000s
[Wed Jul 25 12:13:17 2012].89000 msDrawRasterLayerLow(image): entering.
[Wed Jul 25 12:13:17 2012].89000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].89000 msDrawRasterLayerGDAL(): src=0,0,2222,1706,
dst=277,0,215,165
[Wed Jul 25 12:13:17 2012].89000 msDrawRasterLayerGDAL(): source raster PL
(-3.301,-4.902) for dst PL (277,0).
[Wed Jul 25 12:13:17 2012].90000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].91000 msDrawMap(): Layer 1 (image), 0.003s
[Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerGDAL(): src=0,0,2222,1706,
dst=491,0,216,165
[Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerGDAL(): source raster PL
(-9.856,-4.902) for dst PL (491,0).
[Wed Jul 25 12:13:17 2012].91000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].92000 msDrawMap(): Layer 2 (image1), 0.001s
[Wed Jul 25 12:13:17 2012].92000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].93000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].93000 msDrawRasterLayerGDAL(): src=0,0,2223,1706,
dst=706,0,215,165
[Wed Jul 25 12:13:17 2012].93000 msDrawRasterLayerGDAL(): source raster PL
(-6.063,-4.902) for dst PL (706,0).
[Wed Jul 25 12:13:17 2012].93000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].94000 msDrawMap(): Layer 3 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].94000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].95000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].95000 msDrawRasterLayerGDAL(): src=0,0,2223,1705,
dst=62,165,215,165
[Wed Jul 25 12:13:17 2012].95000 msDrawRasterLayerGDAL(): source raster PL
(-6.093,-2.503) for dst PL (62,165).
[Wed Jul 25 12:13:17 2012].95000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].96000 msDrawMap(): Layer 4 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerGDAL(): src=0,0,2222,1705,
dst=277,165,215,165
[Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerGDAL(): source raster PL
(-3.301,-2.503) for dst PL (277,165).
[Wed Jul 25 12:13:17 2012].96000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].98000 msDrawMap(): Layer 5 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerGDAL(): src=0,0,2222,1705,
dst=491,165,216,165
[Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerGDAL(): source raster PL
(-9.856,-2.503) for dst PL (491,165).
[Wed Jul 25 12:13:17 2012].98000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].99000 msDrawMap(): Layer 6 (image1), 0.001s
[Wed Jul 25 12:13:17 2012].99000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].100000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].100000 msDrawRasterLayerGDAL():
src=0,0,2223,1705, dst=706,165,215,165
[Wed Jul 25 12:13:17 2012].100000 msDrawRasterLayerGDAL(): source raster PL
(-6.063,-2.503) for dst PL (706,165).
[Wed Jul 25 12:13:17 2012].100000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].101000 msDrawMap(): Layer 7 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].101000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].102000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].102000 msDrawRasterLayerGDAL():
src=0,0,2223,1706, dst=62,329,215,166
[Wed Jul 25 12:13:17 2012].102000 msDrawRasterLayerGDAL(): source raster PL
(-6.093,-9.452) for dst PL (62,329).
[Wed Jul 25 12:13:17 2012].102000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].103000 msDrawMap(): Layer 8 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerGDAL():
src=0,0,2222,1706, dst=277,329,215,166
[Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerGDAL(): source raster PL
(-3.301,-9.452) for dst PL (277,329).
[Wed Jul 25 12:13:17 2012].103000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].105000 msDrawMap(): Layer 9 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerGDAL():
src=0,0,2222,1706, dst=491,329,216,166
[Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerGDAL(): source raster PL
(-9.856,-9.452) for dst PL (491,329).
[Wed Jul 25 12:13:17 2012].105000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].106000 msDrawMap(): Layer 10 (image1), 0.001s
[Wed Jul 25 12:13:17 2012].106000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].107000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].107000 msDrawRasterLayerGDAL():
src=0,0,2223,1706, dst=706,329,215,166
[Wed Jul 25 12:13:17 2012].107000 msDrawRasterLayerGDAL(): source raster PL
(-6.063,-9.452) for dst PL (706,329).
[Wed Jul 25 12:13:17 2012].107000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].108000 msDrawMap(): Layer 11 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].108000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].109000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].109000 msDrawRasterLayerGDAL():
src=0,0,2223,1706, dst=62,494,215,166
[Wed Jul 25 12:13:17 2012].109000 msDrawRasterLayerGDAL(): source raster PL
(-6.093,-7.053) for dst PL (62,494).
[Wed Jul 25 12:13:17 2012].109000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].110000 msDrawMap(): Layer 12 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerGDAL():
src=0,0,2222,1706, dst=277,494,215,166
[Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerGDAL(): source raster PL
(-3.301,-7.053) for dst PL (277,494).
[Wed Jul 25 12:13:17 2012].110000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].112000 msDrawMap(): Layer 13 (image1), 0.002s
[Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerLow(image1): entering.
[Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerGDAL(): Entering
transform.
[Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerGDAL():
src=0,0,2222,1706, dst=491,494,216,166
[Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerGDAL(): source raster PL
(-9.856,-7.053) for dst PL (491,494).
[Wed Jul 25 12:13:17 2012].112000 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,0,0,0
[Wed Jul 25 12:13:17 2012].113000 msDrawMap(): Layer 14 (image1), 0.001s
[Wed Jul 25 12:13:17 2012].114000 msDrawMap(): Layer 15 (ControlPoints),
0.001s
[Wed Jul 25 12:13:17 2012].114000 msDrawMap(): Layer 16 (projections),
0.000s
[Wed Jul 25 12:13:17 2012].114000 msDrawMap(): Drawing Label Cache, 0.000s
[Wed Jul 25 12:13:17 2012].114000 msDrawMap() total time: 0.034s
[Wed Jul 25 12:13:17 2012].339000
msSaveImage(C:\ms4w\apps\tutorial\htdocs\ttt.png) total time: 0.225s
[Wed Jul 25 12:13:17 2012].340000 msFreeMap(): freeing map at 03AE8FE8.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AEFF48.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF1E58.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF2780.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF3100.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF3A80.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF61F0.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF6960.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF70D0.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF7840.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF7FF8.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF8768.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AF8E80.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFA598.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFACB0.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFB3C8.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFBAE0.
[Wed Jul 25 12:13:17 2012].340000 freeLayer(): freeing layer at 03AFC5D8.
[Wed Jul 25 12:13:17 2012].340000 shp2img total time: 0.277s
I hope someone can please help me with this.
Thanks,
Sowmya.
_______________________________
Sowmya Tiramdasu
QCoherent Software
9668 Madison Blvd., Suite 202
Madison, AL 35758
(256) 461-8289 Telephone
(256) 461-8249 Fax
www.geocue.com
-----Original Message-----
From: Sowmya Tiramdasu [mailto:stiramdasu at qcoherent.com]
Sent: Wednesday, July 25, 2012 12:05 PM
To: 'Sowmya Tiramdasu'; 'Jeff McKenna'; mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] Mapserver as wms client
Hi Jeff,
Sorry for the previous email. I got the Utility running now. I am checking
where the problem is . Will let you know if I have further questions.
Thank you very much for your help!
Thanks,
Sowmya.
_______________________________
Sowmya Tiramdasu
QCoherent Software
9668 Madison Blvd., Suite 202
Madison, AL 35758
(256) 461-8289 Telephone
(256) 461-8249 Fax
www.geocue.com
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya
Tiramdasu
Sent: Wednesday, July 25, 2012 11:47 AM
To: 'Jeff McKenna'; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Mapserver as wms client
Hi Jeff,
Thanks for the reply. I think that should work. But, I am having a problem
running the utility. The error is : The program can not start because
libmap.dll is missing from your computer. Try reinstalling the program to
fix the problem.
I went and checked in my C:\ms4w\Apache\cgi-bin folder and libmap.dll is
present. I also ran the setenv.bat before running the utility. Can you
please guide me how to get this utility running?
Thanks in advance!
Sowmya.
_______________________________
Sowmya Tiramdasu
QCoherent Software
9668 Madison Blvd., Suite 202
Madison, AL 35758
(256) 461-8289 Telephone
(256) 461-8249 Fax
www.geocue.com
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna
Sent: Wednesday, July 25, 2012 9:31 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Mapserver as wms client
On 12-07-24 7:13 PM, Sowmya Tiramdasu wrote:
> Hi,
>
>
>
> I configures map server to act as a WMS Client. But it doesn't work as
> expected. When i make a getMap request to my WMS server I get the right
> image back but when I try to make it a layer through my map server it is
> not working.
>
>
>
> I am using fiddler to see all the calls made to the server. I see the
> request I am sending to the map server but do not see a request to my
> WMS Server( I thought when Map server tries to consume the WMS server,
> it sends a request to the WMS Server- which should be shown in fiddler)
A very easy way to see all of the WMS requests, is to use the included
"shp2img" commandline utility with the "-all_debug 5" option
(http://www.mapserver.org/utilities/shp2img.html), MS4W users can call
this utility after executing 'setenv.bat' in the same command window.
For example, the command could be:
shp2img -m demo_wms.map -o ttt.png -all_debug 5
and the results would be:
msLoadMap(): 0.003s
msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG).
HTTP: Starting to prepare HTTP requests.
Using CURL_CA_BUNDLE=\ms4w\Apache\conf\ca-bundle\cacert.pem
HTTP request: id=0, http://demo.mapserver.org/cgi-bin
/wms?LAYERS=country_bounds&REQUEST=Ge
tMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:
4326&WIDTH=400
&BBOX=-180.451127819549,-135.338345864662,180.451127819549,135.338345864662&
TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage
HTTP: Before download loop
msHTTPWriteFct(id=0, 1306 bytes)
msHTTPWriteFct(id=0, 2748 bytes)
HTTP: After download loop
msHTTPExecuteRequests() timing summary per layer (connect_time +
time_to_first_packet + download_time = total_time in seconds)
Layer 0: 0.109 + 0.624 + 0.203 = 0.936s
msDrawMap(): WMS/WFS set-up and query, 0.857s
msDrawRasterLayerLow(country_bounds): entering.
msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0
msDrawMap(): Layer 0 (country_bounds), 0.007s
msDrawMap(): Drawing Label Cache, 0.000s
msDrawMap() total time: 0.869s
msSaveImage(ttt.png) total time: 0.009s
msFreeMap(): freeing map at 026ED540.
freeLayer(): freeing layer at 036C3850.
shp2img total time: 0.886s
I hope that helps.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list