From 0e53f21305f2260a66bb3f56d28fe7660080da3b Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Tue, 27 Dec 2011 06:27:33 +0000 Subject: [PATCH] fix typo and provide link to java jdbc download site git-svn-id: http://svn.osgeo.org/postgis/trunk@8593 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/using_raster_dataman.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/using_raster_dataman.xml b/doc/using_raster_dataman.xml index 3e9077387..d0af8a6e5 100644 --- a/doc/using_raster_dataman.xml +++ b/doc/using_raster_dataman.xml @@ -611,14 +611,15 @@ public class TestRaster : IHttpHandler }]]> - Java console app that outputs raster query as PNG file + Java console app that outputs raster query as Image file This is a simple java console app that takes a query that returns one image and outputs to specified file. + You can download the latest PostgreSQL JDBC drivers from http://jdbc.postgresql.org/download.html You can compile the following code using a command something like: set env CLASSPATH .:..\postgresql-9.0-801.jdbc4.jar javac SaveQueryImage.java jar cfm SaveQueryImage.jar Manifest.txt *.class And call it from the command-line with something like -java.exe -jar SaveQueryImage.jar -jar SaveQueryImage.jar "SELECT ST_AsPNG(ST_AsRaster(ST_Buffer(ST_Point(1,5),10, 'quad_segs=2'),150, 150, '8BUI',100));" "test.png" +java -jar SaveQueryImage.jar "SELECT ST_AsPNG(ST_AsRaster(ST_Buffer(ST_Point(1,5),10, 'quad_segs=2'),150, 150, '8BUI',100));" "test.png" -- Manifest.txt -- -- 2.50.1