[mapserver-users] GPX format supported?

Fawcett, David David.Fawcett at state.mn.us
Tue Jan 13 16:59:44 EST 2009


Don't forget to set STATUS to DEFAULT, or explicitly request the layer
by name in the URL request.

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Tuesday, January 13, 2009 3:59 PM
To: bean at warbaby.com
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] GPX format supported?


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

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


More information about the mapserver-users mailing list