<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.emailstyle17
        {font-family:Arial;}
span.EmailStyle19
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

<style>
p.MsoNormal
        {margin-left:3.0pt;}
</style>
</head>

<body lang=EN-US link=blue vlink=purple style='margin-left:3.0pt;margin-top:
3.0pt;margin-right:3.0pt;margin-bottom:.75pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Robert,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks much for your reply.&nbsp; While I did
not go the route of manually defining my GML based on your example, what your
example did was jog my memory: &#8220;where have I seen that before???&#8221; &#8211;
mapserver WFS output of course.&nbsp; Since I have mapserver on my system,
configured for WFS, I simply loaded the WFS layer in an open layers shell, then
copied the GET for the layer in question out of the Firebug Console (thanks to
a post by Arnd Wipperman on an earlier thread), and voila, I had myself a
properly formatted GML file.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>What&#8217;s the use if I already have mapserver?&nbsp;
Well, I have a fairly restrictive internet setup here, so I am not able to hit
any of my mapserv installs, so I am experimenting with an entirely OL approach,
since that is javascript and runs on the client. So far, I am very encouraged!</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks again to Robert and Arnd for
kicking the knowledge.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Robert W. Burgholzer</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Surface Water Modeler</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Office of Water Supply and Planning</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
  10.0pt;font-family:Arial;color:navy'>Virginia</span></font><font size=2
 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
 color:navy'> </span></font><font size=2 color=navy face=Arial><span
  style='font-size:10.0pt;font-family:Arial;color:navy'>Department</span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> of Environmental Quality</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="mailto:rwburgholzer@deq.virginia.gov">rwburgholzer@deq.virginia.gov</a></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>804-698-4405</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Open Source Modeling Tools:</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="http://sourceforge.net/projects/npsource/">http://sourceforge.net/projects/npsource/</a></span></font></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Robert Sanson
[mailto:SansonR@asurequality.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Sunday, April
 27, 2008</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span
 style='font-size:10.0pt;font-family:Tahoma'>4:45 PM</span></font><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> Burgholzer,Robert;
users@openlayers.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [OpenLayers-Users]
KML/GML from text file?</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Yes, managed to get it to work. I
have some Java code that pulls a geometry out of a database (SDE) and writes it
to a local file system file. Seems OL is fairly fussy about the structure of
the GML file. Anyway, here is the OL code:</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>var fbnd = new OpenLayers.Layer.GML(&quot;Farm
boundary&quot;, &quot;./farmfiles/&quot; + farmid + &quot;.xml&quot;, {style:
farm_style});<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
map.addLayer(fbnd);</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>And here is a sample GML (I
experimented with GML structure using one of the OL examples that writes out
GML to a text box, then emulated that):</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&lt;wfs:FeatureCollection
xmlns:wfs=&quot;<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>&quot;&gt;<br>
&nbsp; &lt;gml:featureMember xmlns:gml=&quot;<a
href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;feature:features xmlns:feature=&quot;<a
href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>&quot;
fid=&quot;OpenLayers.Feature.Vector&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;feature:geometry&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:Polygon&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;gml:outerBoundaryIs&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;gml:LinearRing&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;gml:coordinates decimal=&quot;.&quot; cs=&quot;, &quot; ts=&quot;
&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1821412.509, 5534791.015 1821458.847, 5534735.59 1821598.037, 5534849.028
1821614.701, 5534862.607 1821673.566, 5534910.58 1821659.449, 5534927.465
1821655.449, 5534932.249 1821627.218, 5534966.016 1821412.509, 5534791.015<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/gml:coordinates&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/gml:LinearRing&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/gml:outerBoundaryIs&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gml:Polygon&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/feature:geometry&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/feature:features&gt;<br>
&nbsp; &lt;/gml:featureMember&gt;<br>
&lt;/wfs:FeatureCollection&gt;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Kind regads,</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Robert Sanson</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'><br>
&gt;&gt;&gt; &quot;Burgholzer,Robert&quot;
&lt;rwburgholzer@deq.virginia.gov&gt; 25/04/2008 </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>5:30 a.m.</span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
&gt;&gt;&gt;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'>Has anyone loaded a
simple KML/GML layer from a local text file?&nbsp; Maybe this is trivial . </span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></DEFANGHTML_SPAN><span
style='font-size:10.0pt;font-family:Arial;color:black'><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks!</span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'>r.b.</span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></DEFANGHTML_SPAN><span
style='font-size:10.0pt;font-family:Arial;color:black'><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Robert
W. Burgholzer</span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'>Surface Water Modeler</span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'>Office of Water Supply
and Planning</span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
  face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
  style='font-size:10.0pt;font-family:Arial;color:black'>Virginia</span></DEFANGHTML_SPAN></font><font
 size=2 color=black face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
 style='font-size:10.0pt;font-family:Arial;color:black'> </span></font><font
  size=2 color=black face=Arial></DEFANGHTML_SPAN><span style='font-size:10.0pt;
  font-family:Arial;color:black'><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Department</span></DEFANGHTML_SPAN></font><font
size=2 color=black face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'> of Environmental Quality</span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'><a
href="mailto:rwburgholzer@deq.virginia.gov">rwburgholzer@deq.virginia.gov</a></span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'>804-698-4405</span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'>Open Source Modeling
Tools:</span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Arial><DEFANGHTML_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style='font-size:10.0pt;font-family:Arial;color:black'><a
href="http://sourceforge.net/projects/npsource/">http://sourceforge.net/projects/npsource/</a></span></DEFANGHTML_SPAN></font></p>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=2 color=black face=Tahoma><DEFANGHTML_SPAN style="FONT-SIZE: 12pt"></DEFANGHTML_SPAN><span
style='font-size:10.0pt;font-family:Tahoma;color:black;background:white'>&nbsp;</span></font></p>

<p align=center style='margin-left:.5in;text-align:center'><font size=2
color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:black;background:white'>Click <a
href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</a> to
report this email as spam.</span></font></p>

</div>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

<table class=MsoNormalTable border=0 cellpadding=0 width=582 bgcolor=white
 style='width:436.5pt;margin-left:.5in;background:white'>
 <tr>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
  style='font-size:12.0pt;color:black'><br>
  ------------------------------------------------------------------<br>
  The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
  ------------------------------------------------------------------</span></font></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>&nbsp;</span></font></p>

<p align=center style='margin-left:.5in;text-align:center'><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;background:white'>This
message has been scanned for malware by SurfControl plc. </span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><a
href="http://www.surfcontrol.com/"><font color=black><span style='color:black;
background:white'>www.surfcontrol.com</span></font></a></span></font></p>

</div>

</body>

</html>