GeoCanvasPlace

GeoCanvasPlace — a canvas group that is geo-coordinate aware.

Synopsis




            GeoCanvasPlacePrivate;
            GeoCanvasPlace;
            GeoCanvasPlaceClass;
void        geo_canvas_place_request_g2w    (GeoCanvasPlace *place);

Object Hierarchy


  GObject
   +----GtkObject
         +----FooCanvasItem
               +----FooCanvasGroup
                     +----GeoCanvasPlace

Properties


  "lat"                  gdouble               : Read / Write
  "lon"                  gdouble               : Read / Write

Description

The GeoCanvasPlace will automatically update itself as changes are made to the projection properties such as type, reference point, and rotation. This object is useful for plotting any simple or complex object that is reference to a single point in geographic space.

Details

GeoCanvasPlacePrivate

typedef struct _GeoCanvasPlacePrivate GeoCanvasPlacePrivate;


GeoCanvasPlace

typedef struct _GeoCanvasPlace GeoCanvasPlace;


GeoCanvasPlaceClass

typedef struct {
        FooCanvasGroupClass parent_class;
        /* This is called by an idle handler but before the canvas update method
         * is called.  Use it to recompute geo to world mappings as required.
         * When chaining-up always call the parent last to prevent
         * recursive requests.
         */
        void (* rebuild_g2w) (GeoCanvasPlace *place);
} GeoCanvasPlaceClass;


geo_canvas_place_request_g2w ()

void        geo_canvas_place_request_g2w    (GeoCanvasPlace *place);

This routine sets up an idle handle. When idle, causes all geographic coordinates to be recomputed to new world coordinates. It is generally only useful to GeoCanvasPlace implementations.

place :

Properties

The "lat" property

  "lat"                  gdouble               : Read / Write

Group latitude in degress.

Allowed values: [-90,90]

Default value: 0


The "lon" property

  "lon"                  gdouble               : Read / Write

Group longitude in degress.

Allowed values: [-360,360]

Default value: 0

See Also

GeoCanvasPlaces, GeoCanvasLines