[Mapserver-users] Como usar mapserver con asp

Lautaro Diego Mosquera ldm_ar at speedy.com.ar
Fri Jun 27 06:36:24 PDT 2003


This is a multi-part message in MIME format.

--Boundary_(ID_fxcA33gFujuXIRfAFpxGMQ)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

Hola a todos

Les voy a mostrar el codigo que estoy usando y no logro que el mapserver genere una imagen.

<%@ Language=VBScript %>
<%
     mapServerURL = "http://miserver/mapserver/cgi-bin/mapserv.exe?map=ejemplo.map"

   Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
   xmlhttp.Open "GET", mapServerURL, False
   xmlhttp.send ()
   mapServerHTML = xmlhttp.responseText
   imgURL = mapServerURL
   Set xmlHTTP = Nothing
%>
<HTML>
  <HEAD>
    <TITLE>map</TITLE>
    <link REL="STYLESHEET" TYPE="text/css" HREF="map.css" TITLE="Standard">
  </HEAD>
     <BODY>
    <center>
<table>
  <tr>
    <td>
   <img src="<% =imgURL %>">
    </td>
  </tr>
</table>
</center>
  </BODY>
</HMTL>

el archivo .map es:

NAME ejemplo
#EXTENT -5696501 1923039 5696501 11022882
EXTENT -97.238976 41.619778 -82.122902 49.38562
SIZE 400 300
SHAPEPATH "/tmp/europa.shp"
WEB
  #HEADER demo_header.html
  TEMPLATE template.asp
  #FOOTER demo_footer.html
  IMAGEPATH "c:\inetpub\wwwroot\mapserver\tmp\"
  IMAGEURL "http://miserver/mapserver/tmp/"
END
LAYER 
  NAME "world"
  DATA europa
  STATUS DEFAULT
  TYPE POLYGON
  CLASS
    COLOR 220 220 220
    OUTLINECOLOR 0 0 0
  END # end of class object
END # end of layer object
END # end of map file

no se porque no me genera ninguna imagen, agradeceria alguna ayuda.
Saludos
Lic. Lautaro Diego Mosquera

--Boundary_(ID_fxcA33gFujuXIRfAFpxGMQ)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hola a todos</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Les voy a mostrar el codigo que estoy usando y no 
logro que el mapserver genere una imagen.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><%@ Language=VBScript 
%><BR><%<BR>     mapServerURL = "<A 
href="http://miserver/mapserver/cgi-bin/mapserv.exe?map=ejemplo.map">http://miserver/mapserver/cgi-bin/mapserv.exe?map=ejemplo.map</A>"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>   Set xmlhttp = 
Server.CreateObject("MSXML2.ServerXMLHTTP")<BR>   xmlhttp.Open "GET", 
mapServerURL, False<BR>   xmlhttp.send ()<BR>   
mapServerHTML = xmlhttp.responseText<BR>   imgURL = 
mapServerURL<BR>   Set xmlHTTP = 
Nothing<BR>%><BR><HTML><BR>  <HEAD><BR>    
<TITLE>map</TITLE><BR>    <link REL="STYLESHEET" 
TYPE="text/css" HREF="map.css" TITLE="Standard"><BR>  
</HEAD><BR>     <BODY><BR>    
<center><BR><table><BR>  <tr><BR>    
<td><BR>   <img src="<% =imgURL 
%>"></FONT></DIV>
<DIV><FONT face=Arial size=2>    </td><BR>  
</tr><BR></table><BR></center><BR>  
</BODY><BR></HMTL></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>el archivo .map es:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>NAME ejemplo<BR>#EXTENT -5696501 1923039 5696501 
11022882<BR>EXTENT -97.238976 41.619778 -82.122902 49.38562<BR>SIZE 400 
300<BR>SHAPEPATH "/tmp/europa.shp"<BR>WEB<BR>  #HEADER 
demo_header.html<BR>  TEMPLATE template.asp<BR>  #FOOTER 
demo_footer.html<BR>  IMAGEPATH 
"c:\inetpub\wwwroot\mapserver\tmp\"<BR>  IMAGEURL "<A 
href="http://miserver/mapserver/tmp/">http://miserver/mapserver/tmp/</A>"<BR>END<BR>LAYER 
<BR>  NAME "world"<BR>  DATA europa<BR>  STATUS DEFAULT<BR>  
TYPE POLYGON<BR>  CLASS<BR>    COLOR 220 220 
220<BR>    OUTLINECOLOR 0 0 0<BR>  END # end of class 
object<BR>END # end of layer object<BR>END # end of map file</DIV>
<DIV> </DIV>
<DIV>no se porque no me genera ninguna imagen, agradeceria alguna ayuda.</DIV>
<DIV>Saludos</DIV>
<DIV>Lic. Lautaro Diego Mosquera<BR> </FONT></DIV></BODY></HTML>

--Boundary_(ID_fxcA33gFujuXIRfAFpxGMQ)--



More information about the MapServer-users mailing list