[Spanish] Error con mapserver y Openlayers

Maximiliano Riffo Donoso maxyorate at gmail.com
Tue Dec 11 06:52:33 PST 2012


Estimados, estoy tratando de desplegar un shape sobre una capa de OSM en
openlayers, el problema es que si la ubico sobre osm no la encuentro,
separe los layers para ver que sucedia y me muestra en blanco el mapa y si
hago click derecho sobre el, ¿Deberia ser una imagen o no?El tema es que no
me sale como si fuese imagen. Este es el  mapfile
MAP
NAME MAPARUTAS
STATUS ON
UNITS METERS
SIZE 600 600
EXTENT -107863 3760442 876050 8092497
IMAGETYPE PNG
SHAPEPATH "C:/Users/Usuario/Documents/Proyecto/MapaWeb/"
CONFIG "PROJ_LIB" "C:/ms4w/proj/nad"
DEBUG 5
CONFIG "MS_ERRORFILE" "C:/Users/Usuario/Documents/Tesis/DEBUG.TXT"
 PROJECTION
"init=epsg:32719"
END

WEB
IMAGEPATH "tmp"
    IMAGEURL "tmp"
TEMPLATE void
METADATA
WMS_TITLE "Rutas OD"
WMS_ABSTRACT "Rutas OD."
WMS_ACCESSCONSTRAINTS "none"
WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv.exe?"
    WMS_SRS  "EPSG:32719"
END
END
 LAYER
NAME RutasMapserver
TYPE line
STATUS ON
DATA "datos"
METADATA
"DESCRIPTON" "Shapes_12Nov2012"
'wms_srs' 'EPSG:32719'
"wfs_title"    "Shapes_12Nov2012" ## REQUIRED
"wfs_featureid" "Shapes_12Nov2012" ## REQUIRED
"gml_include_items" "all"
END
CLASS
NAME "Dibujo"
STYLE
SYMBOL "circle"
COLOR  51 153 255
SIZE 1
END
END
END
END

y este el código de Openlayers :
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <title>OpenLayers Basic OSM Example</title>
    <link rel="stylesheet" href="openlayers/theme/default/style.css"
type="text/css">
    <link rel="stylesheet" href="style.css" type="text/css">
    <script src="openlayers/lib/OpenLayers.js"></script>
    <script type="text/javascript">
        var map, layer;
        function init(){
            map = new OpenLayers.Map( 'map', {
maxExtent: new OpenLayers.Bounds(-107863,3760442,876050,8092497),
                    maxResolution: 1921.705078125,
                    units: "m",
                    projection: "EPSG:32719",
numZoomLevels: 15,
controls: [ new OpenLayers.Control.Navigation({
            dragPanOptions: {
                enableKinetic: true
    }
        }),
        new OpenLayers.Control.Attribution(),
new OpenLayers.Control.LayerSwitcher({'ascending':false}),
        new OpenLayers.Control.Zoom()]
});
layerOs = new OpenLayers.Layer.OSM( "Simple OSM Map");
        map.addLayers([layerOs,layer]);
        map.setCenter(
            new OpenLayers.LonLat(348099,16296131), 10
        );
        }
    </script>
  </head>
  <body onload="init()">
      <div id="map" class="smallmap2"></div>
</body>
</html>


Espero me puedan ayudar y gracias de antemano
Saludos

-- 
Maximiliano Riffo Donoso
Licenciatura en Ciencia de la Computación
DMCC - Facultad de Ciencia
Universidad de Santiago De Chile
------------ pr?xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.osgeo.org/pipermail/spanish/attachments/20121211/d8d7dac1/attachment-0001.html>


More information about the Spanish mailing list