<div dir="ltr"><div><div><div>Hi Arnd,<br><br></div>It works when we tried it with GML.V3.<br><br></div>Thanks,<br></div>Nipuni<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 10:12 PM, Arnd Wippermann <span dir="ltr"><<a href="mailto:arnd.wippermann@web.de" target="_blank">arnd.wippermann@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>Your gml is in format gml3</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>try with:</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial">format: new
OpenLayers.Format.GML.v3()</font></div>
<div><font color="#0000ff" face="Arial"></font> </div>
<div dir="ltr" align="left"><span></span><font color="#0000ff" face="Arial">i<span> had to add
xmlns:xsi to the xml to get it loaded.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span></span><br><gml:FeatureCollection
xmlns:xsi="</font><a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"><font face="Arial">http://www.w3.org/2001/XMLSchema-instance</font></a><font color="#0000ff" face="Arial">" xsi:schemaLocation="</font><a href="http://www.opengis.net/gml" target="_blank"><font face="Arial">http://www.opengis.net/gml</font></a><font color="#0000ff" face="Arial"> ...</font></div>
<div> </div>
<div><font color="#0000ff" face="Arial"><span>Arnd</span></font></div>
<div><font color="#0000ff" face="Arial"></font> </div>
<div><br></div>
<div dir="ltr" align="left" lang="de">
<hr>
<font face="Tahoma"><b>Von:</b> <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>] <b>Im Auftrag von </b>Nipuni
Piyabasi Perera<br><b>Gesendet:</b> Donnerstag, 27. Juni 2013
04:59<br><b>An:</b> <a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a><br><b>Betreff:</b>
[OpenLayers-Users] Issues reading a GML file<br></font><br></div><div><div class="h5">
<div></div>
<div dir="ltr">
<div>
<div><br clear="all">
<div>
<div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px">
<div>Hi, <br><br></div>We are trying to read and visualize GML data output
given by a WPS process in using OpenLayers. According to our current
requirement, we write the GML output to a file. When trying to read the file
using a client written similar to GML <a href="http://openlayers.org/dev/examples/gml-layer.html" target="_blank">example</a> with OpenLayers, it is not visualized. But
polygon.xml[1] file works properly with the same client. </div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px"><br></div></div></div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px">Input file we tried:
<a href="https://www.dropbox.com/s/zxma61o566qmnb5/GML.xml" target="_blank">https://www.dropbox.com/s/zxma61o566qmnb5/GML.xml</a><br>I used
the content starting with <code style="BACKGROUND-IMAGE:none!important;BORDER-BOTTOM:0px;BORDER-LEFT:0px;PADDING-BOTTOM:0px!important;LINE-HEIGHT:13px;MARGIN:0px;OUTLINE-STYLE:none!important;OUTLINE-COLOR:invert!important;PADDING-LEFT:0px!important;OUTLINE-WIDTH:0px!important;WIDTH:auto!important;PADDING-RIGHT:0px!important;FONT-FAMILY:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important;WHITE-SPACE:pre-wrap;FLOAT:none!important;COLOR:rgb(0,102,153)!important;FONT-SIZE:12px;VERTICAL-ALIGN:baseline!important;OVERFLOW:visible!important;BORDER-TOP:0px;FONT-WEIGHT:bold!important;BORDER-RIGHT:0px;PADDING-TOP:0px!important;border-radius:0px 0px 0px 0px">gml:FeatureCollection
</code><font color="#000000"><code style="BACKGROUND-IMAGE:none!important;BORDER-BOTTOM:0px;BORDER-LEFT:0px;PADDING-BOTTOM:0px!important;LINE-HEIGHT:13px;MARGIN:0px;OUTLINE-STYLE:none!important;OUTLINE-COLOR:invert!important;PADDING-LEFT:0px!important;OUTLINE-WIDTH:0px!important;WIDTH:auto!important;PADDING-RIGHT:0px!important;FONT-FAMILY:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important;WHITE-SPACE:pre-wrap;FLOAT:none!important;FONT-SIZE:12px;VERTICAL-ALIGN:baseline!important;OVERFLOW:visible!important;BORDER-TOP:0px;BORDER-RIGHT:0px;PADDING-TOP:0px!important;border-radius:0px 0px 0px 0px">tag.</code></font><br>
<br></div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px">[1] <a href="http://dev.openlayers.org/releases/OpenLayers-2.12/examples/gml/polygon.xml" target="_blank">http://dev.openlayers.org/releases/OpenLayers-2.12/examples/gml/polygon.xml</a></div>
<br></div>Thanks,<br></div>Nipuni<br>
<div>
<div>-- <br>
<div><span>Nipuni Piyabasi Perera</span></div><span>Undergraduate</span>
<div>Department of Computer Science And Engineering</div>
<div>University of Moratuwa
<div>Sri Lanka</div></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div><span>Nipuni Piyabasi Perera</span></div><span>Undergraduate</span><div>Department of Computer Science And Engineering</div><div>University of Moratuwa<div>Sri Lanka</div>
</div>
</div>