[GRASS-SVN] r72098 - in grass/trunk: include/Make lib lib/raster
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 19 09:43:52 PST 2018
Author: mmetz
Date: 2018-01-19 09:43:52 -0800 (Fri, 19 Jan 2018)
New Revision: 72098
Modified:
grass/trunk/include/Make/Grass.make
grass/trunk/lib/Makefile
grass/trunk/lib/raster/gdal.c
Log:
r.external.out: write CRS (#3059)
Modified: grass/trunk/include/Make/Grass.make
===================================================================
--- grass/trunk/include/Make/Grass.make 2018-01-18 16:23:18 UTC (rev 72097)
+++ grass/trunk/include/Make/Grass.make 2018-01-19 17:43:52 UTC (rev 72098)
@@ -213,7 +213,7 @@
OGSFDEPS = $(BITMAPLIB) $(RASTER3DLIB) $(VECTORLIB) $(DBMILIB) $(RASTERLIB) $(GISLIB) $(TIFFLIBPATH) $(TIFFLIB) $(OPENGLLIB) $(OPENGLULIB) $(MATHLIB)
PNGDRIVERDEPS = $(DRIVERLIB) $(GISLIB) $(PNGLIB) $(MATHLIB)
PSDRIVERDEPS = $(DRIVERLIB) $(GISLIB) $(MATHLIB)
-RASTERDEPS = $(GISLIB) $(MATHLIB)
+RASTERDEPS = $(GISLIB) $(GPROJLIB) $(MATHLIB)
RLIDEPS = $(RASTERLIB) $(GISLIB) $(MATHLIB)
ROWIODEPS = $(GISLIB)
RTREEDEPS = $(GISLIB) $(MATHLIB)
Modified: grass/trunk/lib/Makefile
===================================================================
--- grass/trunk/lib/Makefile 2018-01-18 16:23:18 UTC (rev 72097)
+++ grass/trunk/lib/Makefile 2018-01-19 17:43:52 UTC (rev 72098)
@@ -6,6 +6,7 @@
SUBDIRS = \
datetime \
gis \
+ proj \
raster \
external \
gmath \
@@ -21,7 +22,6 @@
display \
db \
fonts \
- proj \
vector \
imagery \
cluster \
Modified: grass/trunk/lib/raster/gdal.c
===================================================================
--- grass/trunk/lib/raster/gdal.c 2018-01-18 16:23:18 UTC (rev 72097)
+++ grass/trunk/lib/raster/gdal.c 2018-01-19 17:43:52 UTC (rev 72098)
@@ -18,6 +18,7 @@
#include <grass/config.h>
#include <grass/gis.h>
#include <grass/raster.h>
+#include <grass/gprojects.h>
#include <grass/glocale.h>
#include "R.h"
@@ -431,12 +432,8 @@
read_gdal_options();
st->projinfo = G_get_projinfo();
st->projunits = G_get_projunits();
-#if 0
- /* We cannot use GPJ_grass_to_wkt() here because that would create a
- circular dependency between libgis and libgproj */
if (st->projinfo && st->projunits)
- st->srswkt = GPJ_grass_to_wkt(st->projinfo, st->projunits);
-#endif
+ st->srswkt = GPJ_grass_to_wkt(st->projinfo, st->projunits, 0, 0);
G_initialize_done(&st->initialized);
}
More information about the grass-commit
mailing list