[OpenLayers-Users] Incomplete GML feature

Herry herry13 at gmail.com
Mon Apr 11 20:06:57 EDT 2011


Hi Guys, I really need your help.

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:

<gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>645082.056400000001304,2609956.632699999958277
645063.701299999956973,2609918.905300000216812
645063.597799999988638,2609918.944600000046194
645040.522600000025705,2609925.99709999980405
645055.089500000001863,2609963.028799999970943
645082.056400000001304,2609956.632699999958277</gml:coordinates>
</gml:LinearRing></gml:outerBoundaryIs></gml:Polygon>

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.

My question: is there any way to create OpenLayers.Feature.Vector from the
above data in order to show the feature in Vector layer?

Thanks,
-herry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110412/40e907c1/attachment.html


More information about the Users mailing list