configuring WMS service
toni hernández
toni at SIGTE.UDG.ES
Wed Sep 6 01:55:11 PDT 2006
yeah!
I changed the map object name and now everything is working fine.
thanks a lot guys
toni hernández wrote:
> Hi,
>
> the version is 4.8.4
> I have just seen that the name of the map object is the same of a layer.
> Could that be a problem.
>
> here goes the map file.
>
> MAP
> NAME SALT
> STATUS ON
> SIZE 500 300
> EXTENT 481843.62 4644280.84 487294.27 4651758.01
> UNITS METERS
> SHAPEPATH "data"
>
> IMAGECOLOR 255 255 255
>
> # you may need to change this to match your MapServer build
> IMAGETYPE PNG
>
> PROJECTION
> "init=epsg:23031"
> END
>
> #
> # Start of web interface definition (including WMS enabling metadata)
> #
> WEB
> TEMPLATE demo.html
> MINSCALE 100
> MAXSCALE 1550000
> IMAGEPATH "/var/www/tmp/"
> IMAGEURL "/tmp/"
> METADATA
> WMS_TITLE "SALT"
> WMS_ABSTRACT "Servir la cartografia DGN de Salt"
> WMS_ACCESSCONSTRAINTS "none"
> WMS_ONLINERESOURCE "http://sigserver4.udg.es/mapserversalt"
>
> WMS_SRS "EPSG:23031"
> END
>
> END
>
> REFERENCE
> IMAGE graphics/reference.gif
> EXTENT 481144.82 4643861.56 489320.80 4651897.77
> SIZE 150 150
> STATUS ON
> COLOR -1 -1 -1
> OUTLINECOLOR 255 0 0
> END
>
> QUERYMAP
> SIZE 400 400
> STATUS ON
> STYLE HILITE
> COLOR 255 0 0
> END
>
> LEGEND
> KEYSIZE 18 12
> LABEL
> TYPE BITMAP
> SIZE MEDIUM
> COLOR 0 0 89
> END
> STATUS ON
> END
>
> #
> # Start of scalebar
> #
> SCALEBAR
> IMAGECOLOR 0 0 0
> LABEL
> COLOR 255 255 255
> SIZE TINY
> END
> STYLE 1
> SIZE 100 2
> COLOR 255 255 255
> UNITS MILES
> INTERVALS 1
> TRANSPARENT TRUE
> STATUS ON
> END
>
> #
> # Start of symbol definitions (we're only using a few)
> #
> SYMBOL
> NAME 'circle'
> TYPE ELLIPSE
> POINTS 1 1 END
> FILLED TRUE
> END
>
> #
> # Start of layer definitions
> #
>
>
> LAYER
> NAME "girona"
> STATUS ON
> TYPE POLYGON
> DATA base
> MINSCALE 2600
> METADATA
> WMS_TITLE "Base Girona"
> WMS_SRS "EPSG:23031"
> END
> PROJECTION
> "init=epsg:23031"
> END
> CLASS
> NAME "Girona"
> OUTLINECOLOR 128 128 128
> COLOR 225 225 185
> END
> END
>
> LAYER
> NAME "salt"
> STATUS ON
> GROUP DGN
> CONNECTIONTYPE OGR
> TRANSPARENCY 100
> CONNECTION "/var/www/mapserversalt/data/Saltcadv81.dgn"
> TYPE line
> TOLERANCE 10
> STYLEITEM "AUTO"
> METADATA
> WMS_TITLE "Comerços"
> WMS_SRS "EPSG:23031"
> END
> PROJECTION
> "init=epsg:23031"
> END
> CLASS
> NAME "Salt"
> color 255 0 255
> END
> #DUMP true
> END
>
> END # Map File
>
>
> Eijnden, Bart van den (AGI) wrote:
>> Which Mapserver version?
>>
>> Can you post your complete MAP file, most specifically what is the
>> name of your MAP object?
>>
>> Best regards,
>> Bart
>>
>> -----Oorspronkelijk bericht-----
>> Van: UMN MapServer Users List
>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens toni hernández
>> Verzonden: woensdag 6 september 2006 8:47
>> Aan: MAPSERVER-USERS at LISTS.UMN.EDU
>> Onderwerp: [UMN_MAPSERVER-USERS] configuring WMS service
>>
>>
>> HI all,
>>
>> I've reading the documentation about configuring a mapserver as a WMS
>> server.
>> Everything seems to be working fine except for the fact that the
>> LAYERS parameter (in the url) is not working properly.
>>
>> In the map file I just have two layers: salt (.dgn file), and girona
>> (.shp file with poligons) . Both with status off in the map file
>> The problem is that the girona layer is always on the image. As you
>> can see in the URL bellow the layers parameter is just asking for the
>> salt layer.
>>
>> http://sigserver4.udg.es/cgi-bin/salt_carto?request=GetMap&VERSION=1.1.0&SERVICE=WMS&SRS=EPSG:23031&BBOX=482840.46367545397,4646726.721942619,484238.53218965203,4648124.7904568175&WIDTH=600&HEIGHT=600&LAYERS=salt&STYLES=&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&EXCEPTION=INIMAGE
>>
>>
>>
>> Here is the girona layer in the map file.
>>
>> LAYER
>> NAME "girona"
>> STATUS ON
>> TYPE POLYGON
>> DATA base
>> MINSCALE 2600
>> METADATA
>> WMS_TITLE "Base Girona"
>> WMS_SRS "EPSG:23031"
>> END
>> PROJECTION
>> "init=epsg:23031"
>> END
>> CLASS
>> NAME "Girona"
>> OUTLINECOLOR 128 128 128
>> COLOR 225 225 185
>> END
>> END
>>
>>
>> Disclaimer
>> ************************************************************************
>> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
>> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
>> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
>> informeren. Wij adviseren u om bij twijfel over de juistheid of de
>> volledigheid van de mail contact met afzender op te nemen.
>>
>> This message shall not constitute any rights or obligations.
>> This message is intended solely for the addressee.
>> If you have received this message in error, please delete it and
>> notify the sender immediately. When in doubt whether this message
>> is correct or complete, please contact the sender.
>> ************************************************************************
>>
>>
>
More information about the MapServer-users
mailing list