[Gdal-dev] using a feature to store a "Track"

mathieu_gdal mathieu_gdal at yahoo.fr
Wed Dec 10 10:11:42 EST 2003


Dear All,

I have a very basic question, I would like to know if my approach is
good or not at all.

I have a list of points, called "a track". Each point is defined by :
- a position (in lat,lon,WGS84)
- an altitude
- a heading (it is an example)

I would like to use the class OGRFeature to store this "Track".
The Track's Geometry (lat, lon, and altitude) is very well managed in
the OGRFeature (OGRFeature::poGeometry)
But how to store the other attributes, such as heading?

My idea is to store the heading in a feature's special attribute, as a
list of double. 
This size of this list would be the same as the geometry size.
To retrieve a specific point, I will have to retrieve its position with
the geometry, and the heading with the "double list" attribute.
It might be costly if I want to store many other parameters for each
point. 

Do you think it is a good approach?
Is there alternatives?

Thanks,
Mathieu





More information about the Gdal-dev mailing list