<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><FONT face=Arial><FONT size=2>I set up a WFS Server,
accessing a PostGIS poligon table. I use OpenLayers to visualise the WFS
layer, but <SPAN id=result_box lang=en class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="129">But</SPAN> <SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="130">not</SPAN> <SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="131">shown</SPAN> <SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="132">on the</SPAN> <SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133">map</SPAN></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><FONT size=2 face=Arial><SPAN lang=en
class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"> I use MapServer V54.10.6 and Tomcat
6</SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><FONT size=2 face=Arial><SPAN lang=en
class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"></SPAN></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><SPAN lang=en class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"><PRE id=line60><FONT class=Apple-style-span size=2 face=Arial><SPAN style="FONT-SIZE: 11px" class=Apple-style-span>Any help is really appreciated.</SPAN></FONT></PRE><PRE id=line60><FONT class=Apple-style-span size=2 face=Arial><SPAN style="FONT-SIZE: 11px" class=Apple-style-span>Thanks,</SPAN></FONT></PRE><PRE><FONT class=Apple-style-span size=2 face=Arial><SPAN style="FONT-SIZE: 11px" class=Apple-style-span>Flor Marina Rocha</SPAN></FONT></PRE></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><SPAN lang=en class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"></SPAN></SPAN></SPAN><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 11px" class=Apple-style-span><FONT
size=2 face=Arial><SPAN lang=en class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133">---------------------------------------------------------------------------------------------------------------------------------------------------</SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><FONT size=2 face=Arial><SPAN lang=en
class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"></SPAN></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><SPAN lang=en class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"><FONT size=2 face=Arial> wfs = new
OpenLayers.Layer.Vector("prueba", {<BR> strategies: [new
OpenLayers.Strategy.BBOX()],<BR>
protocol: new
OpenLayers.Protocol.WFS({<BR>
version: "1.0.0",<BR>
srsName:
"EPSG:4326",<BR>
url: "</FONT><A
href="http://localhost:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS"><FONT
size=2
face=Arial>http://localhost:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS</FONT></A><FONT
size=2
face=Arial>",<BR>
featureType:
"departamentos_wfs",<BR>
featureNS: "</FONT><A href="http://mapserver.gis.umn.edu/mapserver"><FONT size=2
face=Arial>http://mapserver.gis.umn.edu/mapserver</FONT></A><FONT size=2
face=Arial>",<BR>
geometryName:
"the_geom",<BR>
extractAttributes:
true<BR>
})<BR> });</FONT></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><FONT size=2 face=Arial><SPAN lang=en
class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"></SPAN></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><FONT size=2 face=Arial><SPAN lang=en
class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133">
map.addLayer(wfs);</SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><FONT size=2 face=Arial><SPAN lang=en
class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133">______________________________________________________________________________________________________</SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><SPAN lang=en class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"><FONT size=2 face=Arial>MAP<BR> NAME
"WFS_server"<BR> EXTENT -81.735857 -4.223438 -66.851802
13.389054<BR> SIZE 800 800<BR> UNITS
meters<BR> SHAPEPATH
"../mapaInternet/00000_Colombia/SH"<BR> CONFIG "MS_ERRORFILE"
"/ms4w/tmp/ms_depto_error.txt" <BR> WEB<BR> TEMPLATE
'geobis.html'<BR> IMAGEPATH "/ms4w/tmp/"<BR>
IMAGEURL
"/tmp/"<BR> METADATA<BR> "wfs_title"
"WMS Server Departamentos"<BR> "wfs_onlineresource" "</FONT><A
href="http://localhost:8081/cgi-bin//mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS"><FONT
size=2
face=Arial>http://localhost:8081/cgi-bin//mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS</FONT></A><FONT
size=2 face=Arial>"<BR> "wfs_srs"
"epsg:4326"<BR> "wfs_abstract" "my service
wms"</FONT></SPAN></SPAN></SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><FONT size=2 face=Arial><SPAN lang=en
class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"> END<BR> END <BR>
PROJECTION<BR>
"init=epsg:4326"<BR> END <BR> OUTPUTFORMAT<BR> NAME
png32<BR> DRIVER "GD/PNG"<BR> MIMETYPE "image/png"<BR>
IMAGEMODE RGBA<BR> EXTENSION
"png"<BR>END</SPAN></SPAN></FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 11px"
class=Apple-style-span><SPAN lang=en class=short_text><SPAN class=hps
title="Haz clic para obtener traducciones alternativas"
closure_uid_8dhvn3="133"><FONT size=2 face=Arial>
LAYER<BR> NAME
"departamentos_wfs"<BR>
METADATA<BR> "wfs_title"
"departamentos_wfs"<BR>
"gml_featureid" "gid"<BR>
"wfs_featureid" "gid"<BR>
"gml_include_items" "all"<BR>
"wfs_include_items"
"all"<BR>
"wfs_maxfeatures" "1000"<BR>
"wfs_namespace_uri" "</FONT><A
href="http://mapserver.gis.umn.edu/mapserver"><FONT size=2
face=Arial>http://mapserver.gis.umn.edu/mapserver</FONT></A><FONT size=2
face=Arial>"<BR>
"wfs_namespace_prefix" "ms"<BR>
END<BR> STATUS
ON<BR> TYPE
POLYGON<BR> CONNECTIONTYPE
POSTGIS<BR> CONNECTION "user=geobis
password=geobis2010 host=192.168.1.39 port=5432
dbname=geobis"<BR> DATA "the_geom from
cartografia.col_departamentos_pol using unique gid using
srid=4326"<BR> <BR> PROCESSING
"CLOSE_CONNECTION=DEFER"<BR>
PROJECTION<BR>
"init=epsg:4326"<BR> END<BR>DUMP TRUE
<BR>
CLASS<BR> STYLE
<BR> COLOR 128
128 128<BR>
OUTLINECOLOR 128 128
128<BR> WIDTH
2<BR>
END<BR> NAME
"NAME"<BR> END<BR> END<BR>
<BR> END</FONT></SPAN></SPAN></DIV>
<DIV id=gt-res-content class=almost_half_cell><FONT size=2
face=Arial></FONT> </DIV></SPAN></BODY></HTML>