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

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to