<!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 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>
NAME 'GPS'<br>
TYPE POINT<br>
CONNECTIONTYPE OGR<br>
CONNECTION
'/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'<br>
DATA 'waypoints'<br>
STATUS ON<br>
DEBUG 5<br>
CLASS<br>
STYLE<br>
SYMBOL 'CIRCLE'<br>
SIZE 3</font></div>
<div><font face="Arial" size="-1">
OUTLINECOLOR 0 0 0<br>
COLOR 106 7 182<br>
END<br>
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> </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>
NAME 'GPS'<br>
TYPE POINT<br>
CONNECTIONTYPE OGR<br>
CONNECTION
'/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'<br>
DATA 'Waypoints'<br>
STATUS ON<br>
DEBUG 5<br>
OPACITY 100<br>
# END <-- terminates LAYER<br>
LABELITEM 'name'<br>
CLASS<br>
NAME 'name = Waypoint'<br>
STYLE<br>
SYMBOL 'circle'<br>
SIZE 8<br>
OUTLINECOLOR 0 0 0</font></div>
<div><font size="-1"> COLOR 255 255
0</font></div>
<div><font size="-1"> END<br>
LABEL<br>
SIZE medium<br>
COLOR 0 0 0<br>
ANGLE 0<br>
BUFFER 1<br>
END<br>
END</font></div>
<div><font size="-1">END</font></div>
</body>
</html>