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

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


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,
then I converted it to byte [], code works but outcoming image is

Do you have any idea what I am doing wrong ?


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