X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgis-util.h;h=1b03f2fa578ff1c314b8f6d9886c1a98dbe56d21;hp=c7838966709f9c74f8cb5a3de23b54f9b486280f;hb=5350256efff1c97426e0db60e404bfd8a6cb08be;hpb=b66ec3a8a09805cd81c7a55bf3e0d1de7efb9ad1 diff --git a/src/gis-util.h b/src/gis-util.h index c783896..1b03f2f 100644 --- a/src/gis-util.h +++ b/src/gis-util.h @@ -146,6 +146,29 @@ #define rad2deg(rad) (((rad)*180.0)/G_PI) +/************* + * Datatypes * + *************/ + +/* GisPoint */ +typedef struct _GisPoint GisPoint; +struct _GisPoint { + gdouble lat, lon, elev; +}; + +void gis_point_set_lle(GisPoint *point, + gdouble lat, gdouble lon, gdouble elev); + +/* GisBBox */ +typedef struct _GisBBox GisBBox; +struct _GisBBox { + gdouble n, s, e, w; +}; + +void gis_bbox_set_bounds(GisBBox *bbox, + gdouble n, gdouble s, gdouble e, gdouble w); + + /******** * Misc * ********/