Nicer URL for my WMS Online Resource URL

Eduin Carrillo yecarrillo at YAHOO.COM
Thu Dec 1 12:02:36 PST 2005


I derived instructions to format my WMS Onlinereource URLs following steps of
http://mapserver.gis.umn.edu/doc42/wms-server-howto.html

My approach is a little different, and works fine with ArcGIS & JUMP, however
uDIG do not drive properly these URLs. 

http://sig.cas.gov.co/cgi-bin/mapserv?map=/mapas/map/ot_san_gil_-_division_politico-administrativa.map&

become

http://sig.cas.gov.co/wms/request?SERVICENAME=ot_san_gil_-_division_politico-administrativa&
http://sig.cas.gov.co/servlet/com.esri.ogc.wms.WMSServlet?SERVICENAME=ot_san_gil_-_division_politico-administrativa&
http://sig.cas.gov.co/servlet/com.esri.wms.Esrimap?SERVICENAME=ot_san_gil_-_division_politico-administrativa&

Any hint?



Steps:
#cd /usr/local/imsemu
#ln --symbolic /var/www/cgi-bin/mapserv com.esri.wms.Esrimap
#ln --symbolic /var/www/cgi-bin/mapserv com.esri.ogc.wms.WMSServlet

httpd.conf:

ScriptAlias /wms/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
    AllowOverride All
    Options Multiviews FollowSymLinks
    Order allow,deny
    Allow from all

    RewriteEngine on
    RewriteBase /wms
    RewriteCond %{QUERY_STRING} (.*)servicename=([^&]+) [NC]
    RewriteRule ^(.*)$ $1 [QSA,E=MS_MAPFILE:/mapas/map/%2.map]
</Directory>

ScriptAlias /servlet "/var/www/imsemu"
<Directory "/var/www/imsemu">
    AllowOverride All
    Options Multiviews FollowSymLinks
    Order allow,deny
    Allow from all
    
    RewriteCond %{QUERY_STRING} (.*)servicename=([^&]+) [NC]
    RewriteRule ^(.*)$ $1 [QSA,E=MS_MAPFILE:/mapas/map/%2.map] [PT]
</Directory>


--
Eduin Carrillo
GIS Manager
Santander Regional Autonomous Corporation (CAS)
yecarrillo at cas.gov.co

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 



More information about the MapServer-users mailing list