[mapserver-users] GPX format supported?
Stephen Woodbridge
woodbri at swoodbridge.com
Tue Jan 13 13:58:50 PST 2009
bean at warbaby.com wrote:
> Hi Steve,
>
> Thanks for the rapid reply. I have removed the layers one by one. They
> all parse right but this GPX layer.
> Curiously if I remove the class statement (including the first end
> statement) I get no parse errors but the layer fails to render.
>
> Still puzzled,
> bean
>
>> Bean,
>>
>> You probably have some other layer that does not have the block ...
>> ENDs match up correctly. Try making a mapfile with just the single
>> layer below and see if that works, then add another layer and test it,
>> and so on until it breaks. Also check the all quoted strings are
>> properly terminated.
>>
>> No magic here, just take it layer by layer until you find the problem.
>>
>> -Steve W
>
So the following nesting of tags looks correct:
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
I a can't help you a lot with the the OGR connection, as I don't use it
that often.
Are sure that DATA 'waypoints' is correct?
You might try at the command line, something like:
ogrinfo --formats
and verify that GPX is supported.
ogrinfo /Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx
and see what it says. I would also ask OGR specific question on the
GDAL/OGR list, as they might have more info on ogr related problems.
-Steve
More information about the MapServer-users
mailing list