[Mapbender-users] problem including wms from localhost

karsten vennemann karsten at terragis.net
Wed Dec 12 15:49:56 EST 2007


Hi Mapbender List,

 

I’m new to mapbender, and specifically setting up wms with mapserver . 

 

So far mapbender 2.4.3 is running great on my windows XP box under Apache
:-).

I created a new gui and wanted to include a new wms which I (tried) to
create with mapserver.for the last week :-( .

Finally I kind of succeded “halfway” and got 

http://localhost/mapserver/mapserv.exe?map=/mapserver/ok.map
<http://localhost/mapserver/mapserv.exe?map=/mapserver/ok.map&VERSION=1.1.1&
REQUEST=GetMap&SERVICE=WMS&LAYERS=People1>
&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=People1

to deliver an image in Firefox.

 

Mapbender let me upload the capabilities of the wms only if I use version
1.1.0 – not when I used 1.1.1 

 

(then I got this in my log file :

2007.12.12, 11:51:36,db_query(UPDATE wms SET wms_version = ''
,wms_getcapabilities  = '' ,wms_getmap  = '' ,wms_getfeatureinfo  = ''
,wms_getlegendurl  = '' ,wms_getcapabilities_doc = 'MZ' ,wms_upload_url =
'http://localhost:81/mapserver/mapserv.exe?map=ok.map&REQUEST=GetCapabilitie
s&SERVICE=WMS&VERSION=1.1.1',  wms_owner = 1, wms_timestamp = 1197489096
WHERE wms_id = 913)= db_error=ERROR:  invalid byte sequence for encoding
"UTF8": 0x90

HINT:  This error can also happen if the byte sequence does not match the
encoding expected by the server, which is controlled by "client_encoding"

 

What does that mean with the encoding ? 

Also sometimes I find in my log files lines like 

2007.12.12, 12:30:16,Conversion: ISO-8859-1 to UTF-8

Why is that ? Is that a problem and how can I fix it ?

 

 

Ok now when I join my  wms to my GUI it shows up on the legend but the layer
doesn’t display on the map but I get this error:

Faied to load WMS “ocla” from server
http://localhost:81/mapserver/mapserv?map=ok.map”
Do you weant to try to load it in a new window?

 

Once I open that in Firewfox I get:

Not Found

The requested URL /mapserver/mapserv was not found on this server.

 

What could be wrong ?

Also I don’t know why it strip out the information I put in when up loading
the capabilities it displays 

http://localhost:81/mapserver/mapserv?map=ok.map

when I put in 

http://localhost:81/mapserver/mapserv.exe?map=ok.map

 

 

Any ideas?

more detailed infos see below

 

Thanks

Karsten

-----------

 

In Mapbender admin I uploaded the wms and got this information – does that
look ok?

 

file:
http://localhost/mapserver/mapserv.exe?map=ok.map&REQUEST=GetCapabilities&SE
RVICE=WMS&VERSION=1.1.0
id: 915 
version: 1.1.0 
title: ocla 
abstract: 
maprequest: http://localhost:81/mapserver/mapserv?map=ok.map& 
capabilitiesrequest: http://localhost:81/mapserver/mapserv?map=ok.map& 
featureinforequest: http://localhost:81/mapserver/mapserv?map=ok.map& 
gui_wms_mapformat: image/png 
gui_wms_featureinfoformat: text/plain 
gui_wms_exceptionformat: application/vnd.ogc.se_inimage 
gui_wms_epsg: EPSG:4326 
wms_srs: epsg:4326 
gui_wms_visible: 1 
map -> image/gif
map -> image/png
map -> image/png; mode=24bit
map -> image/jpeg
map -> image/wbmp
map -> image/tiff
featureinfo -> text/plain
featureinfo -> application/vnd.ogc.gml
exception -> application/vnd.ogc.se_xml
exception -> application/vnd.ogc.se_inimage
exception -> application/vnd.ogc.se_blank

 

 

id: 1 parent: 0 name: People1 title: people queryable: 1 minScale: 0
maxScale: 0
dataurl: 
metadataurl: 


EPSG:4326

661172

-527873

2.63636e+006

751825


 

 

 

 

 

layerstyle:


name

title

legendurl

legendurlformat


default

default

http://localhost:81/mapserver/mapserv?map=ok.map&version=1.1.1&service=WMS&r
equest=GetLegendGraphic&layer=People1&format=image/png

image/png

 

 

And finally here is what I have in my map file:

 

# Start of map file

NAME "ocla"

EXTENT 600000 -800000 2750000 1000000

 

SIZE 400 400

UNITS FEET

IMAGECOLOR 204 221 255

IMAGETYPE PNG

INTERLACE OFF

 

 

#### Start of projection definition ###################

# NAD83 / Washington North (ftUS) EPSG <2285> 

PROJECTION

                        "init=epsg:4326"

END

 

# Start of web interface definition##############################

WEB

  IMAGEPATH "D:/web/sites/mapserver/tmp/"      

            METADATA

     # "wms_title" "terragis"

     "wms_onlineresource" "http://localhost:81/mapserver/mapserv?map=ok.map"

     "wms_srs" "epsg:4326"                     

            END

END

 

 

# Start of layer definitions##################################

 

LAYER

            NAME "People1"

            TYPE POLYGON

            DATA "D:/web/sites/mapserver/wsba/mapdata/layers/tracts"

     metadata

              "wms_srs"               "EPSG:4326"

        "wms_title"             "people"

        "wms_exceptions_format" "application/vnd.ogc.se_xml"

        "wms_server_version"    "1.1.1"

        "wms_formatlist"        "image/png"

        "wms_format"            "image/png"        

     end

            dump true

            

PROJECTION

                        "init=epsg:4326"

END

 

 

            TEMPLATE "template"

            TOLERANCE 3

            STATUS ON

            CLASS

                        NAME "Up to 5"

                        EXPRESSION ([INSTITUTN] >= 0 AND [INSTITUTN] <= 5)

                        STYLE

                                    COLOR 112 153 89

                        END

            END

            CLASS

                        NAME "6 - 50"

                        EXPRESSION ([INSTITUTN] >= 5 AND [INSTITUTN] <= 50)

                        STYLE

                                    COLOR 178 194 141

                        END

            END     

            

            

END

#################################

 

END # Map File

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapbender_users/attachments/20071212/bccae961/attachment-0001.html


More information about the Mapbender_users mailing list