[Gvsig_usuarios] GvSIG + Mapserver

Luis W. Sevilla sevilla_lui en gva.es
Lun Feb 28 16:01:44 CET 2005


Hola Eloy
Eloy Bonilla Perez wrote:

> Tengo instalado Mapserver 4.4.1 y gvSIG 0.3.
> Estoy haciendo pruebas para que gvSIG lea datos del servidor 
> Mapserver. He empezado con los datos de prueba que vienen con 
> Mapserver (itasca.map), desde el navegador funciona correctamente 
> accedo a la demo sin problemas, pero no se que poner para añadir la 
> capa desde GvSIG.
>
> He intentado las siguientes combinaciones :
>
> http://xp-sigespa/cgi-bin/mapserv.exe?map=itasca.map

gvSIG no tiene acceso directo a mapserver, sino que debes hacerlo a 
través de la opción wms de mapserver. en 
http://mapserver.gis.umn.edu/doc40/wms-server-howto.html tienes un howto 
sobre esta parte.

aparte de eso, la url no debe de incluir parámetros porque gvSIG hará 
una llamada ?REQUEST=GetCapabilities con las distintas versiones de WMS 
soportadas (1.1.1,  1.1.0, 1.0.0) hasta que encuentre una respuesta 
satisfactoria a la petición. Quiza debas hacer algo como lo que pone en 
ese howto:

> Here is a valid online resource URL:
>
>   http://my.host.com/cgi-bin/mapserv?map=mywms.map&
>          
>
> By creating a wrapper script on the server it is possible to hide the 
> "map=" parameter from the URL and then your server's online resource 
> URL could be something like:
>
>   http://my.host.com/cgi-bin/mywms?
>          
>
> This is covered in more detail in the section "More About the Online 
> Resource URL" 
> <http://mapserver.gis.umn.edu/doc40/wms-server-howto.html#onlineresourceurl> 
> below.
>
>

>
>
> y el mensaje de gvSIG es el siguiente:
>
> DEBUG [AWT-EventQueue-1] (WMS_1_1_0.java:79) - <HTML>
> <HEAD><TITLE>MapServer Message</TITLE></HEAD>
> <!-- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
> OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=
> FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTG
> IS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
> <BODY BGCOLOR="#FFFFFF">
> msEvalRegex(): Regular expression error. String 
> (itasca.map?VERSION=1.1.0) failed expression test. <br>
> </BODY></HTML>
> DEBUG [AWT-EventQueue-1] (WMS_1_1_0.java:81) - Parseando la respuesta...
> DEBUG [AWT-EventQueue-1] (WMS_1_0_0.java:61) - Obteniendo capabilities...
> DEBUG [AWT-EventQueue-1] (WMS_1_0_0.java:78) - <HTML>
>
>
> o lo siguiente con su error :
>
> http://xp-sigespa/cgi-bin/mapserv.exe?map=c:\ms4w\apache\htdocs\wotkshop\itasca.map 
>
>
> DEBUG [AWT-EventQueue-1] (WMS_1_0_0.java:61) - Obteniendo capabilities...
> DEBUG [AWT-EventQueue-1] (WMS_1_0_0.java:78) - <HTML>
> <HEAD><TITLE>MapServer Message</TITLE></HEAD>
> <!-- MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
> OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPOR
> FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=PO
> IS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
> <BODY BGCOLOR="#FFFFFF">
> msEvalRegex(): Regular expression error. String 
> (c:\ms4w\apache\htdocs\workshop\itasca.map?WMTVER=1.0.0) failed expre
> on test. <br>
> </BODY></HTML>
> DEBUG [AWT-EventQueue-1] (WMS_1_0_0.java:80) - Parseando la respuesta...
>
>
>
> Tengo que configurar de alguna forma el MapServer, (creo que la demo 
> ya está preparada para ello) , algun tutorial, documento o ayuda para 
> configurar etc.....
>
> Alguna sugerencia o luz en el camino......
>
>
> gracias.....
>
>
> _______________________________________________
> gvSIG_usuarios mailing list
> gvSIG_usuarios en runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios
>
>



Más información sobre la lista de distribución gvSIG_usuarios