[mapserver-users] Error showing tracks from gpx file
Dejan Gambin
dejan.gambin at coin.hr
Mon Mar 22 03:56:51 PDT 2010
Hi,
I am trying to show data from gpx file using Mapserver. I can successfully show "track_points" layer but when trying with "tracks" layer, which is "multi line string" with one feature only, I get:
msOGRFileNextShape(): IllegalArgumentException: point array must contain 0 or >1 elements
here is the relevant part of mapfile:
LAYER
NAME "gpx_test"
TYPE LINE
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "test.gpx"
DATA "tracks"
PROJECTION
"init=epsg:4326"
END
METADATA
"DESCRIPTION" "GPX Test"
END
CLASS
Name 'Track points'
OUTLINECOLOR 0 0 0
SYMBOL 'circle'
SIZE 2
TEMPLATE void
END # Class
END
thanks very much
regards, dejan
More information about the MapServer-users
mailing list