[mapserver-users] GPX format supported?

bean at warbaby.com bean at warbaby.com
Tue Jan 13 11:44:35 PST 2009


Thanks Andreas,

An obvious and simple mistake. Sorry to have bothered the list with 
such a simple question.

I am still getting msLoadMap(): Premature End-of-File. 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.

Included is my current mapfile that fails with msLoadMap(): Premature 
End-of-File. OGR reads the file fine from the command line so my 
problem must be in my mapfile right?


LAYER
   NAME 'GPS'
   TYPE POINT
   CONNECTIONTYPE OGR
   CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'
   DATA 'waypoints'
   STATUS ON
   DEBUG 5
   CLASS
     STYLE
       SYMBOL 'CIRCLE'
       SIZE 3
        OUTLINECOLOR 0 0 0
        COLOR 106 7 182
     END
   END
END

bean

Hi,

I think the 'END' keyword after 'OPACITY 100' shouldn't be there 
since it terminates the LAYER block.
LAYER
   NAME 'GPS'
   TYPE POINT
   CONNECTIONTYPE OGR
   CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'
   DATA 'Waypoints'
   STATUS ON
   DEBUG 5
   OPACITY 100
#  END <-- terminates LAYER
   LABELITEM 'name'
   CLASS
     NAME 'name = Waypoint'
     STYLE
       SYMBOL  'circle'
       SIZE 8
       OUTLINECOLOR 0 0 0
       COLOR 255 255 0
     END
     LABEL
       SIZE medium
       COLOR 0 0 0
       ANGLE 0
       BUFFER 1
     END
   END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090113/56338243/attachment.htm>


More information about the MapServer-users mailing list