[Geoserver-users] Problem selecting features on Openlayers preview

Hi, I succesfully created a Data Store from a Hand-Made PHP generated WFS.

It works fine but, when I select the layer Preview in OpenLayers, I click on
a feature/icon, but it returns me the whole information of all the features
in the layer, not only the info of the one which I clicked.

Any ideas of why this is happening?

This is the structure of my basic GetFeature Doc:

<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:massgis="http://geoserver.sigis.local/featuretype&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://geoserver.sigis.local/featuretype
http://webserver2.sigis.local/~hpartidas/WS/GeoserverFeed/src/www/?request=DescribeFeatureType
http://www.opengis.net/wfs
http://geoserver.sigis.local/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
<gml:boundedBy>
<gml:null>unknown</gml:null>
</gml:boundedBy>
<gml:featureMember>
<massgis:VEHICULOS fid="VEHICULOS.30379">
<massgis:ALIAS>04165020759</massgis:ALIAS>
<massgis:ICON>1</massgis:ICON>
<massgis:FEC_REP>2013-06-27 06:34:56</massgis:FEC_REP>
<massgis:ANGLE>0</massgis:ANGLE>
<massgis:SHAPE>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs=","
ts=" ">-71.6315166666667,10.6463333333333</gml:coordinates>
</gml:Point>
</massgis:SHAPE>
</massgis:VEHICULOS>
</gml:featureMember>
<gml:featureMember>
<massgis:VEHICULOS fid="VEHICULOS.10687">
<massgis:ALIAS>10110057</massgis:ALIAS>
<massgis:ICON>18</massgis:ICON>
<massgis:FEC_REP>2013-07-31 20:13:49.960057</massgis:FEC_REP>
<massgis:ANGLE>-180</massgis:ANGLE>
<massgis:SHAPE>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs=","
ts=" ">-66.6126166666667,10.4758833333333</gml:coordinates>
</gml:Point>
</massgis:SHAPE>
</massgis:VEHICULOS>
</gml:featureMember>
<gml:featureMember>
<massgis:VEHICULOS fid="VEHICULOS.9044">
<massgis:ALIAS>353681041748955</massgis:ALIAS>
<massgis:ICON>1</massgis:ICON>
<massgis:FEC_REP>2013-06-27 06:31:15</massgis:FEC_REP>
<massgis:ANGLE>-270</massgis:ANGLE>
<massgis:SHAPE>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs=","
ts=" ">-71.616713,10.6510443</gml:coordinates>
</gml:Point>
</massgis:SHAPE>
</massgis:VEHICULOS>
</gml:featureMember>
<gml:featureMember>
<massgis:VEHICULOS fid="VEHICULOS.12242">
<massgis:ALIAS>Toyota CorollaL</massgis:ALIAS>
<massgis:ICON>146</massgis:ICON>
<massgis:FEC_REP>2013-09-03 17:23:33</massgis:FEC_REP>
<massgis:ANGLE>-45</massgis:ANGLE>
<massgis:SHAPE>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs=","
ts=" ">-67.03827,10.35343</gml:coordinates>
</gml:Point>
</massgis:SHAPE>
</massgis:VEHICULOS>
</gml:featureMember>
</wfs:FeatureCollection>

Please help!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-selecting-features-on-Openlayers-preview-tp5083466.html
Sent from the GeoServer - User mailing list archive at Nabble.com.