X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fgis-util.h;h=ccc75585ad702a7b9f9730e189dc87a5c84c2da5;hb=83022c436beddefd676430c554f24660ad4c7ddc;hp=c7838966709f9c74f8cb5a3de23b54f9b486280f;hpb=6cbd796209e724ddff668447337069539498c243;p=grits diff --git a/src/gis-util.h b/src/gis-util.h index c783896..ccc7558 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); + +/* GisBounds */ +typedef struct _GisBounds GisBounds; +struct _GisBounds { + gdouble n, s, e, w; +}; + +void gis_bounds_set_bounds(GisBounds *bounds, + gdouble n, gdouble s, gdouble e, gdouble w); + + /******** * Misc * ********/