Add experimental support for 'space view'
@@ -202,7 +202,14 @@ static int proj_regular_latlon(grib_handle* h, char* result)
static int proj_space_view(grib_handle* h, char* result)
{
- return GRIB_NOT_IMPLEMENTED;
+ int err = 0;
+ char shape[64] = {0,};
+
+ if ((err = get_earth_shape(h, shape)) != GRIB_SUCCESS)
+ return err;
+ /* Experimental: For now do the same as gdalsrsinfo - hard coded values! */
+ sprintf(result, "+proj=geos +lon_0=0 +h=35785831 +x_0=0 +y_0=0 %s", shape);
+ return err;
}
static int proj_albers(grib_handle* h, char* result)
{
