<div class="gmail_quote">Hi Guys, I really need your help.<div><br></div><div>I have features kept in my PostGIS database. When I tried to query the features from PostGIS using ST_AsGML function, I got following data:</div>
<div><span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; font-size: medium; "><span><br></span></span></div><div><span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; font-size: medium; "><span><gml:Polygon></span><span><gml:outerBoundaryIs></span><span><gml:LinearRing></span><span><gml:coordinates></span>645082.056400000001304,2609956.632699999958277 645063.701299999956973,2609918.905300000216812 645063.597799999988638,2609918.944600000046194 645040.522600000025705,2609925.99709999980405 645055.089500000001863,2609963.028799999970943 645082.056400000001304,2609956.632699999958277<span></gml:coordinates></span><span></gml:LinearRing></span><span></gml:outerBoundaryIs></span><span></gml:Polygon></span></span></div>
<div><br></div><div>I think the above data is incomplete GML features. Because when I parsed the data to obtain OpenLayers.Feature.Vector object using function OpenLayers.Format.GML.read(), it returned NULL.</div><div><br>
</div><div>My question: is there any way to create OpenLayers.Feature.Vector from the above data in order to show the feature in Vector layer?</div><div><br></div><div>Thanks,<br clear="all">-herry<br><br>
</div>
</div><br>