Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kornholi on github.
  • I am korn (https://keybase.io/korn) on keybase.
  • I have a public key ASCQvDyVoMUtBsCmw7yG9XUvTyLFdflPZ2U6OWURGiUXXQo

To claim this, I am signing this object:

#include <cstdio>
#include <string>
using std::string;
struct variant
{
int type;
union
@kornholi
kornholi / proj-4.8.0-gridlist.patch
Created July 23, 2014 20:24
Proj 4.8.0 gridlist improvement patch
--- proj-4.8.0/src/pj_apply_gridshift.c 2012-02-20 19:11:24.000000000 -0600
+++ proj/src/pj_apply_gridshift.c 2014-07-23 14:49:44.741038533 -0500
@@ -85,7 +85,7 @@ int pj_apply_gridshift_2( PJ *defn, int
double *x, double *y, double *z )
{
- if( defn->gridlist == NULL )
+ if( defn->gridlist_count == -1 )
{
defn->gridlist =