[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-505-g981fb9390

git at osgeo.org git at osgeo.org
Mon Feb 7 11:13:32 PST 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  981fb9390891328a9d82f2731ef81101826a73b5 (commit)
      from  05d3150c9222bd781871e627cf5b3973d18bcfc2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 981fb9390891328a9d82f2731ef81101826a73b5
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Mon Feb 7 11:13:27 2022 -0800

    Remove doc image generator unused code

diff --git a/doc/html/image_src/generator.c b/doc/html/image_src/generator.c
index 9679809d8..97b325667 100644
--- a/doc/html/image_src/generator.c
+++ b/doc/html/image_src/generator.c
@@ -269,43 +269,6 @@ drawGeometry(char *output, LWGEOM *lwgeom, LAYERSTYLE *styles )
 	return (ptr - output);
 }
 
-/**
- * Invokes a system call to ImageMagick's "convert" command that adds a drop
- * shadow to the current layer image.
- *
- * @param layerNumber the current working layer number.
-static void
-addDropShadow(int layerNumber)
-{
-	char str[512];
-	sprintf(
-	    str,
-	    "convert tmp%d.png -gravity center \"(\" +clone -background navy -shadow 100x3+4+4 \")\" +swap -background none -flatten tmp%d.png",
-	    layerNumber, layerNumber);
-	LWDEBUGF(4, "%s", str);
-	checked_system(str);
-}
- */
-
-/**
- * Invokes a system call to ImageMagick's "convert" command that adds a
- * highlight to the current layer image.
- *
- * @param layerNumber the current working layer number.
- */
-static void
-addHighlight(int layerNumber)
-{
-	// TODO: change to properly sized string
-	char str[512];
-	sprintf(
-	    str,
-	    "convert tmp%d.png \"(\" +clone -channel A -separate +channel -negate -background black -virtual-pixel background -blur 0x3 -shade 120x55 -contrast-stretch 0%% +sigmoidal-contrast 7x50%% -fill grey50 -colorize 10%% +clone +swap -compose overlay -composite \")\" -compose In -composite tmp%d.png",
-	    layerNumber, layerNumber);
-	LWDEBUGF(4, "%s", str);
-	checked_system(str);
-}
-
 /**
  * Invokes a system call to ImageMagick's "convert" command that reduces
  * the overall filesize
@@ -485,9 +448,6 @@ int main( int argc, const char* argv[] )
 		}
 		checked_system(output);
 
-		//-- (MD) disable highlighting since it doesn't work well with opacity
-		//addHighlight( layerCount );
-		// addDropShadow( layerCount );
 		layerCount++;
 		free(styleName);
 	}

-----------------------------------------------------------------------

Summary of changes:
 doc/html/image_src/generator.c | 40 ----------------------------------------
 1 file changed, 40 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list