Este ejemplo funciona con WFS, y vi que tu mapfile si esta configurado para WFS, sin embargo,  me parece que lla forma la mas facil de servir tus datos, en un popup o  en cualquier otra parte de tu pagina web, es usar la funcion GetFeatureInfo de OpenLayers con el WMS..<br>
<br><a href="http://openlayers.org/dev/examples/getfeatureinfo-popup.html">http://openlayers.org/dev/examples/getfeatureinfo-popup.html</a><br><br>Saludos<br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 11:54 AM, florencia.bujan <span dir="ltr">&lt;<a href="mailto:florita026@gmail.com">florita026@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Laurent,<br>
<br>
Muchas gracias por tu respuesta.<br>
Te cuento que estoy trabajando con OpenLayers. Además tengo la base de datos<br>
en PostGis.<br>
<br>
Hace algunos meses que estoy trabajando con esta herramienta y me ha sido de<br>
gran utilidad. Las capas me las dibuja correctamente y puedo hacer consultas<br>
sobre ellas. Ahora estoy tratando de desplegar en popup información traida<br>
desde la geodatabase.<br>
<br>
O sea, lo que yo quiero hacer ahora es mostrar (además de los mapas con sus<br>
colores) la información adicional de la GDB en alguna parte. En el ejemplo<br>
que me estoy basando es el siguiente:<br>
<a href="http://dev4.mapgears.com/bdga/options-by-zoom-and-highlight-bdga.html" target="_blank">http://dev4.mapgears.com/bdga/options-by-zoom-and-highlight-bdga.html</a>, pero<br>
tal vez tu me dices que hay otra forma mejor de hacerlo sin necesidad de los<br>
popups.<br>
<br>
En el .map me defino la capa de la siguiente forma:<br>
<br>
************* MAP FILE ***************<br>
MAP<br>
        NAME GIS<br>
        SIZE 700 700<br>
        STATUS ON<br>
        EXTENT -63.4393 -33.974 -48.1827 -32.0861<br>
<br>
        FONTSET &quot;misc/fonts/fonts.txt&quot;<br>
        SYMBOLSET &quot;misc/symbols/symbols.sym&quot;<br>
<br>
        IMAGECOLOR 255 255 255<br>
        UNITS dd<br>
<br>
        WEB<br>
                METADATA<br>
                        &quot;wms_title&quot;                     &quot;Sistema de Información Geográfica&quot;<br>
                        &quot;wms_onlineresource&quot;<br>
&quot;<a href="http://localhost/cgi-bin/mapserv.exe?map=../htdocs/Florencia/GISManager/flor.map&amp;" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=../htdocs/Florencia/GISManager/flor.map&amp;</a>&quot;<br>
                        &quot;wms_srs&quot;                               &quot;EPSG:4326&quot;<br>
                        &quot;wms_transparent&quot;               &quot;true&quot;<br>
                        &quot;labelcache_map_edge_buffer&quot; &quot;-10&quot;<br>
                        &quot;wfs_title&quot;                     &quot;Terrazas&quot;<br>
            &quot;wfs_onlineresource&quot;<br>
&quot;<a href="http://localhost/cgi-bin/mapserv.exe?map=../htdocs/Florencia/GISManager/flor.map&amp;" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=../htdocs/Florencia/GISManager/flor.map&amp;</a>&quot;<br>
            &quot;wfs_srs&quot;                                           &quot;EPSG:4326&quot;<br>
            &quot;wfs_abstract&quot;                              &quot;Some text&quot;<br>
            &quot;wfs_encoding&quot;                              &quot;UTF-8&quot;<br>
            &quot;wfs_namespace_prefix&quot;      &quot;MF&quot;<br>
                END<br>
        END<br>
<br>
        PROJECTION<br>
                &quot;init=EPSG:4326&quot;<br>
        END<br>
<br>
        # Capa de Terrazas<br>
        LAYER<br>
                CONNECTIONTYPE postgis<br>
                NAME &quot;Terrazas&quot;<br>
                STATUS ON<br>
                CONNECTION &quot;user=** password=** dbname=** host=**&quot;<br>
                DATA &quot;the_geom from (SELECT l.* from terrazas l, campos c WHERE<br>
<a href="http://c.id" target="_blank">c.id</a>=l.idcampo) as terrazas using unique gid using SRID=-1&quot;<br>
                METADATA<br>
              &quot;wfs_title&quot;           &quot;Terrazas&quot;<br>
              &quot;gml_featureid&quot;       &quot;Terrazas&quot;<br>
              &quot;gml_include_items&quot;   &quot;all&quot;<br>
              &quot;wfs_typename&quot;        &quot;Terrazas&quot;<br>
            END<br>
<br>
                TYPE LINE<br>
                CLASS<br>
                        NAME &quot;Terrazas&quot;<br>
                        STYLE<br>
               SIZE 4<br>
               COLOR 0 192 255<br>
               SYMBOL &quot;BigLine&quot;<br>
          END<br>
                END<br>
                TOLERANCE 20<br>
        END<br>
END<br>
<br>
<br>
<br>
<br>
<br>
En la función init del openlayers tengo algo del estilo:<br>
<br>
****** OPENLAYERS ********<br>
OpenLayers.Feature.Vector.style[&#39;default&#39;][&#39;strokeWidth&#39;] = &#39;2&#39;;<br>
<br>
var oRegStyleMap = new OpenLayers.StyleMap({<br>
            strokeColor: &quot;black&quot;,<br>
            strokeWidth: 2,<br>
            strokeOpacity: 1,<br>
            fillOpacity: 0.8<br>
});<br>
<br>
var aRegColor = {<br>
            &#39;01&#39;: {fillColor:&quot;purple&quot; },<br>
            &#39;02&#39;: {fillColor:&quot;blue&quot; },<br>
            &#39;03&#39;: {fillColor:&quot;yellow&quot; },<br>
            &#39;04&#39;: {fillColor:&quot;red&quot; },<br>
            &#39;05&#39;: {fillColor:&quot;#ffa500&quot; }, //orange<br>
            &#39;06&#39;: {fillColor:&quot;red&quot; },<br>
            &#39;07&#39;: {fillColor:&quot;purple&quot; },<br>
            &#39;08&#39;: {fillColor:&quot;blue&quot; },<br>
            &#39;09&#39;: {fillColor:&quot;green&quot; },<br>
            &#39;10&#39;: {fillColor:&quot;#ffa500&quot; },<br>
            &#39;11&#39;: {fillColor:&quot;#ffa500&quot; },<br>
            &#39;12&#39;: {fillColor:&quot;green&quot; },<br>
            &#39;13&#39;: {fillColor:&quot;purple&quot; },<br>
            &#39;14&#39;: {fillColor:&quot;#ffa500&quot; },<br>
            &#39;15&#39;: {fillColor:&quot;yellow&quot; },<br>
            &#39;16&#39;: {fillColor:&quot;green&quot; },<br>
            &#39;17&#39;: {fillColor:&quot;blue&quot; }<br>
};<br>
oRegStyleMap.addUniqueValueRules(&quot;default&quot;, &quot;res_co_reg&quot;, aRegColor);<br>
<br>
        // LOCAL SETTINGS<br>
        var szBDGAMapPath = &quot;../htdocs/Florencia/GISManager/flor.map&quot;;<br>
        var szHost = &quot;<a href="http://localhost/" target="_blank">http://localhost/</a>&quot;;<br>
        var szMSURL = szHost+&quot;cgi-bin/mapserv.exe&quot;;<br>
<br>
        oMap = new OpenLayers.Map( &#39;map&#39;);<br>
<br>
       //CAPA BASE<br>
        var wms = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>
                &quot;<a href="http://vmap0.tiles.osgeo.org/wms/vmap0" target="_blank">http://vmap0.tiles.osgeo.org/wms/vmap0</a>&quot;,<br>
                {layers: &#39;basic&#39;} );<br>
        oMap.addLayers([wms]);<br>
        oMap.setCenter(new OpenLayers.LonLat(-57.5, -34), 9);<br>
<br>
        //CAPA LOCAL<br>
        var olWFSReg = new OpenLayers.Layer.Vector(&quot;Terrazas&quot;, {<br>
            styleMap: oRegStyleMap,<br>
            strategies: [<br>
                new OpenLayers.Strategy.OptionsByZoom({<br>
                    optionsByZoom: {<br>
                        0: {featureType: &quot;Terrazas&quot;},<br>
                        1: {featureType: &quot;Terrazas&quot;},<br>
                        2: {featureType: &quot;Terrazas&quot;},<br>
                        3: {featureType: &quot;Terrazas&quot;}<br>
                    },<br>
                    defaultOptions: {featureType: &quot;Terrazas&quot;}<br>
                }),<br>
                new OpenLayers.Strategy.BBOX()<br>
            ],<br>
            protocol: new OpenLayers.Protocol.WFS({<br>
                version:       &quot;1.0.0&quot;,<br>
                url:           stringMapa+&quot;&amp;&quot;,<br>
                extractAttributes:true,<br>
                featureType:   &quot;Terrazas&quot;,<br>
                srsName:       &quot;EPSG:4326&quot;,<br>
                featureNS:     &quot;<a href="http://localhost4/" target="_blank">http://localhost4/</a>&quot;,<br>
                geometryName:  &quot;the_geom&quot;,<br>
                schema:<br>
szMSURL+&quot;?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;TypeName=Terrazas&quot;<br>
            })<br>
        });<br>
        oMap.addLayers([ olWFSReg ]);<br>
<br>
        var highlighter = new OpenLayers.Control.HighlightFeature({<br>
            layer: olWFSReg,<br>
            displayPopup: true,<br>
            popupOffset: {<br>
                &#39;left&#39;: 45,<br>
                &#39;right&#39;: 0,<br>
                &#39;top&#39;: 5<br>
            },<br>
            popupTitle: &quot;Province information&quot;,<br>
            popupSize: new OpenLayers.Size(200,225),<br>
            style:{<br>
                strokeColor: &quot;black&quot;,<br>
                strokeWidth: 2,<br>
                strokeOpacity: 0.8,<br>
                fillOpacity: 0.5,<br>
                fillColor: &quot;black&quot;<br>
            }<br>
        });<br>
        oMap.addControl(highlighter);<br>
        highlighter.activate();<br>
<br>
        oMap.addControl(new OpenLayers.Control.Navigation());<br>
        oMap.addControl(new OpenLayers.Control.Scale($(&#39;scale&#39;)));<br>
        oMap.addControl(new OpenLayers.Control.LayerSwitcher());<br>
        oMap.addControl(new OpenLayers.Control.PanZoomBar());<br>
<div class="im"><br>
<br>
Desde ya muchas gracias y saludos,<br>
Florencia<br>
<br>
--<br>
</div>View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Problema-con-popup-en-capa-MapServer-tp5655608p5655941.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Problema-con-popup-en-capa-MapServer-tp5655608p5655941.html</a><br>

<div><div></div><div class="h5">Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Spanish mailing list<br>
<a href="mailto:Spanish@lists.osgeo.org">Spanish@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/spanish" target="_blank">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
</div></div></blockquote></div><br>