[postgis-users] problem in ST_AsPNG with java- jpa

Ahmet Temiz ahmettemiz88 at gmail.com
Wed Jun 19 05:47:25 PDT 2013


hello

I want to use ST_AsPNG in java- jpa(hibernate) as:

List list_rast = session.createSQLQuery("SELECT
ST_AsPNG(ST_AsRaster(ST_Buffer(ST_Point(1,5),10, 'quad_segs=2'),150, 150,
'8BUI',100))").list();
then I converted it to byte [], code works but outcoming image is
problamatic

Do you have any idea what I am doing wrong ?

regards


-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20130619/5be08434/attachment.html>


More information about the postgis-users mailing list