[Mapserver-users] can't view 2 WMS layers(from 2 different servers)

Eduardo Patto Kanegae eduardo at consultoria.eti.br
Fri Jul 2 08:50:25 EDT 2004


After adding the 1st server ( "Teste1") , it logged:

    07/02/04 09:48:13 Sending Request to server GET
http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms1.map&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=estados&SRS=EPSG:4291&BBOX=-73.991,-33.751,-32.378,5.27222&WIDTH=545&HEIGHT=511&FORMAT=image/gif&STYLES=&TRANSPARENT=FALSE

and after adding the 2st server ( "Teste2") , got:

    07/02/04 09:50:30 Sending Request to server GET
http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms2.map&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=sedes&SRS=EPSG:4291&BBOX=-53.2885325,-14.3370575,-53.0804675,-14.1419425&WIDTH=794&HEIGHT=563&FORMAT=image/gif&STYLES=&TRANSPARENT=FALSE

why is it requesting GIF instead PNG, and TRANSPARENT FALSE instead TRUE?

best.

Eduardo

bartvde at xs4all.nl escreveu:

>Hi,
>
>Can you check which format ArcGIS is requesting, e.g. by logging the
>GetMap URL? Maybe it is requesting the images in jpeg?
>
>Best regards,
>Bart
>
>>Hi,
>>
>>I set up two WMS mapfile server and installed Intereoperability Tools
>>for ArcGIS 8.x but I can't view the both layers together in ArcGIS ( one
>>over the other - one is a point layer and the other is polygon layer).
>>
>>Here's the first mapfile:
>>
>>1 --------------
>>MAP
>>    NAME    "wmsserver"
>>    EXTENT -73.991 -33.751 -32.378 5.272
>>    SHAPEPATH "C:/local/mapas/mapasBrasil/"
>>    SIZE 600 400
>>    IMAGECOLOR -1 -1 -1
>>    IMAGETYPE PNG
>>    OUTPUTFORMAT
>>      NAME PNG
>>      DRIVER "GD/PNG"
>>      MIMETYPE "image/png"
>>      IMAGEMODE PC256
>>      EXTENSION "png"
>>      TRANSPARENT ON
>>    END
>>    PROJECTION
>>        "init=epsg:4291"
>>    END
>>
>>    WEB
>>        METADATA
>>            "wms_title"    "Teste1"
>>            "wms_onlineresource"
>>"http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms1.map&"
>>            "wms_srs" "EPSG:4291"
>>        END
>>    END
>>
>>
>>LAYER
>>    NAME "estados"
>>    PROJECTION
>>        "init=epsg:4291"
>>    END
>>    METADATA
>>        "wms_title" "Estados"
>>        "wms_srs" "EPSG:4291"
>>        "wms_group_title" "Todos"
>>    END
>>    TRANSPARENCY 50
>>    TYPE POLYGON
>>    DATA    "br_uf"
>>    CLASS
>>        COLOR    128 128 192
>>        OUTLINECOLOR      0
>>    END
>>    DUMP TRUE
>>END
>>
>>
>>
>>END
>>------------------
>>
>>and here's the 2nd one:
>>
>>2-----------
>>MAP
>>    NAME    "wmsserver"
>>    EXTENT -73.991 -33.751 -32.378 5.272
>>    SHAPEPATH "C:/local/mapas/mapasBrasil/"
>>    SIZE 600 400
>>    IMAGECOLOR -1 -1 -1
>>    IMAGETYPE PNG
>>    OUTPUTFORMAT
>>      NAME PNG
>>      DRIVER "GD/PNG"
>>      MIMETYPE "image/png"
>>      IMAGEMODE PC256
>>      EXTENSION "png"
>>      TRANSPARENT ON
>>    END
>>    PROJECTION
>>        "init=epsg:4291"
>>    END
>>
>>    WEB
>>        METADATA
>>            "wms_title"    "Teste2"
>>            "wms_onlineresource"
>>"http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms2.map&"
>>            "wms_srs" "EPSG:4291"
>>        END
>>    END
>>
>>SYMBOL
>>    NAME 'ponto'
>>    TYPE ELLIPSE
>>    FILLED TRUE
>>    POINTS
>>        1 1
>>    END
>>END
>>
>>LAYER
>>    DUMP TRUE
>>    NAME "sedes"
>>    PROJECTION
>>        "init=epsg:4291"
>>    END
>>    METADATA
>>        "wms_title" "Sedes"
>>        "wms_srs" "EPSG:4291"
>>        "wms_group_title" "Todos"
>>    END
>>    TYPE POINT
>>    DATA    "br_sede"
>>    TRANSPARENCY 50
>>    CLASS
>>        COLOR    255  0
>>        OUTLINECOLOR    255  0
>>        SYMBOL "ponto"
>>        SIZE 2
>>    END
>>END
>>
>>END
>>------------
>>
>>in ArcGIS when I load
>>http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms1.map&
>>and
>>http://localhost/cgi-bin/mapserv.exe?map=C:/local/web/testewms/wms2.map&
>>connection I can't view one over the other. only top layer appears.
>>
>>what is wrong?
>>
>>--
>>Eduardo Patto Kanegae
>>http://www.consultoria.eti.br
>>UIN: 303747254
>>
>>
>>Treinamento em UMN MapServer -
>>http://www.consultoria.eti.br/ptbr/?menuoption=mapserver
>>I Encontro Nacional de Usuários MapServer -
>>http://mapserver.cttmar.univali.br/encontro2004
>>Fórum MapServer Brasil - http://mapserver.cttmar.univali.br/forum
>>
>>
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>

-- 
Eduardo Patto Kanegae
http://www.consultoria.eti.br
UIN: 303747254

Treinamento em UMN MapServer - http://www.consultoria.eti.br/ptbr/?menuoption=mapserver
I Encontro Nacional de Usuários MapServer - http://mapserver.cttmar.univali.br/encontro2004
Fórum MapServer Brasil - http://mapserver.cttmar.univali.br/forum

***Fim da Mensagem / End of Message ***





More information about the mapserver-users mailing list