<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>GPX format supported?</title></head><body>
<div><font face="Arial" size="-1">Thanks Andreas,</font></div>
<div><font face="Arial" size="-1"><br></font></div>
<div><font face="Arial" size="-1">An obvious and simple mistake. Sorry
to have bothered the list with such a simple question.</font></div>
<div><font face="Arial" size="-1"><br></font></div>
<div><font face="Arial" size="-1">I am still getting</font><font
face="Times" size="-4" color="#000000"> msLoadMap(): Premature
End-of-File.</font><font face="Arial" size="-1"> I am a relative
newbie with mapserver&nbsp; although I have managed to build a 2800
line mapfile of many layer types. This is my first CONNECTIONTYPE OGR
layer and I just don't seem to get the context.</font></div>
<div><font face="Arial" size="-1"><br></font></div>
<div><font face="Arial" size="-1">Included is my current mapfile that
fails with</font><font face="Times" size="-4" color="#000000">
msLoadMap(): Premature End-of-File.</font><font face="Arial"
size="-1"> OGR reads the file fine from the command line so my problem
must be in my mapfile right?</font></div>
<div><font face="Arial" size="-1"><br></font></div>
<div><font face="Arial" size="-1"><br></font></div>
<div><font face="Arial" size="-1">LAYER<br>
&nbsp; NAME 'GPS'<br>
&nbsp; TYPE POINT<br>
&nbsp; CONNECTIONTYPE OGR<br>
&nbsp; CONNECTION
'/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'<br>
&nbsp; DATA 'waypoints'<br>
&nbsp; STATUS ON<br>
&nbsp; DEBUG 5<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 'CIRCLE'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 3</font></div>
<div><font face="Arial" size="-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OUTLINECOLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 106 7 182<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END</font></div>
<div><font face="Arial" size="-1">END</font></div>
<div><font face="Arial" size="-1"><br></font></div>
<div><font face="Arial" size="-1">bean</font></div>
<div><font face="Arial" size="-1" color="#0000FF"><br></font></div>
<div><font face="Arial" size="-1" color="#0000FF">Hi,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="-1" color="#0000FF">I think the 'END'
keyword after 'OPACITY 100' shouldn't be there since it terminates the
LAYER block.</font></div>
<div><font size="-1">LAYER<br>
&nbsp; NAME 'GPS'<br>
&nbsp; TYPE POINT<br>
&nbsp; CONNECTIONTYPE OGR<br>
&nbsp; CONNECTION
'/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'<br>
&nbsp; DATA 'Waypoints'<br>
&nbsp; STATUS ON<br>
&nbsp; DEBUG 5<br>
&nbsp; OPACITY 100<br>
#&nbsp; END &lt;-- terminates LAYER<br>
&nbsp; LABELITEM 'name'<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; NAME 'name = Waypoint'<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL&nbsp; 'circle'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0</font></div>
<div><font size="-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 255
0</font></div>
<div><font size="-1">&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE medium<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANGLE 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 1<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END</font></div>
<div><font size="-1">END</font></div>
</body>
</html>