<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. While I did
not go the route of manually defining my GML based on your example, what your
example did was jog my memory: “where have I seen that before???” –
mapserver WFS output of course. 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'> </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’s the use if I already have mapserver?
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'> </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'> </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'> </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'> </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("Farm
boundary", "./farmfiles/" + farmid + ".xml", {style:
farm_style});<br>
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'> </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'> </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'><wfs:FeatureCollection
xmlns:wfs="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>"><br>
<gml:featureMember xmlns:gml="<a
href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>"><br>
<feature:features xmlns:feature="<a
href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>"
fid="OpenLayers.Feature.Vector"><br>
<feature:geometry><br>
<gml:Polygon><br>
<gml:outerBoundaryIs><br>
<gml:LinearRing><br>
<gml:coordinates decimal="." cs=", " ts="
"><br>
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>
</gml:coordinates><br>
</gml:LinearRing><br>
</gml:outerBoundaryIs><br>
</gml:Polygon><br>
</feature:geometry><br>
</feature:features><br>
</gml:featureMember><br>
</wfs:FeatureCollection></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'> </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>
>>> "Burgholzer,Robert"
<rwburgholzer@deq.virginia.gov> 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'>
>>></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? 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'> </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'> </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 contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this 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'> </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>