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

bartvde at xs4all.nl bartvde at xs4all.nl
Fri Jul 2 02:00:15 EDT 2004


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
>
>




More information about the mapserver-users mailing list