<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Estimados<br>
<br>
Se tiene publicado un servicio WFS bajo mapserver 5.6.<br>
<br>
Trabaja bien, el archivo map es el siguiente:<br>
<br>
MAP<br>
NAME "WFS PostGIS"<br>
STATUS ON<br>
SYMBOLSET "configpg112.sym"<br>
FONTSET "fonts.txt"<br>
EXTENT -80.9519119169987 -17.748342599996 -68.7122954342272 -0.0381613749999552<br>
WEB<br>
METADATA<br>
"wfs_title" "Service WFS ANPs PostGIS"<br>
#"wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apps/MapFile/configpg.map"<br>
"wfs_abstract" "Servicio de ANPs en PostGIS"<br>
"wfs_srs" "epsg:4326"<br>
"wfs_enable_request" "*"<br>
END<br>
END<br>
PROJECTION<br>
"init=epsg:4326"<br>
END <br>
LAYER<br>
NAME "ANP"<br>
STATUS ON<br>
TYPE POLYGON<br>
DATA "the_geom from esquema.anp_nacional using unique gid using srid=4326"<br>
CONNECTIONTYPE POSTGIS<br>
CONNECTION "user=xxxx password=xxxx host=0.0.0.0 port=5432 dbname=xxxxx"<br>
DUMP TRUE<br>
TEMPLATE "."<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
METADATA<br>
"gml_include_items" "anp_nomb,anp_cate,anp_arle"<br>
"wfs_title" "ANP Nacional PG"<br>
"wfs_abstract" "generado por Javier PG"<br>
"wfs_extent" "-80.9519119169987 -17.748342599996 -68.7122954342272 -0.0381613749999552"<br>
END<br>
END # Layer<br>
END # Map File<br>
<br>
Un cliente me consulta que si es posible al momento de solicitar informacion del servicios WFS<br>
solo que le devuelva por ejemplo el campo anp_cate y no todos los campos
que devuelve el servicio WFS(anp_nomb,anp_cate,anp_arle)<br>
Como si fuera un SQL tipo : select anp_cate ... where anp_nomb"Manu"<br>
<br>
Me falta agregar algo a archivo mapfile para que realice esta
respuesta?, o la especificacion no tiene esta posibilidad de devolucion
de datos?<br>
<br>
Me despido esperando su pronto apoyo.<br>
<br>
Saludos<br>
<br>
Javier Quispe<br>
Lima-Peru                                            </div></body>
</html>