Browse Source

g.proj

Initialize hSRS for WKT output.
Markus Metz 4 years ago
parent
commit
6b8182eecc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      general/g.proj/output.c

+ 1 - 0
general/g.proj/output.c

@@ -246,6 +246,7 @@ void print_wkt(int esristyle, int dontprettify)
 
 	    epsg_num = atoi(G_find_key_value("epsg", projepsg));
 
+	    hSRS = OSRNewSpatialReference(NULL);
 	    OSRImportFromEPSG(hSRS, epsg_num);
 	    OSRExportToWktEx(hSRS, &outwkt, papszOptions);
 	}