pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Vijay Garg <vijay.g@sabudh.org>
Cc: pgsql-general@lists.postgresql.org, Sukhjit Singh <sukhjit@sabudh.org>
Cc: sukhjit sehra <sukhjitsehra@gmail.com>
Subject: Re: Problem in Storing Satellite imagey(Geotiff file)
Date: Mon, 4 Oct 2021 08:12:45 -0700
Message-ID: <4fc6204d-b1ff-24b1-5f51-d569077e6440@aklaver.com> (raw)
In-Reply-To: <CAJOh4ukbxaFRBfdgf6gzRGECQ+h+8hMGczYD6nkrDad3A+uyaw@mail.gmail.com>
References: <CAJOh4um0yGD236mpSc_9Eos8yPz4rL1FCwM4hCmbF8=r_H_o8w@mail.gmail.com>
	<0fe09d2c-ca81-a21c-7359-f217907d548a@aklaver.com>
	<CAJOh4ukbxaFRBfdgf6gzRGECQ+h+8hMGczYD6nkrDad3A+uyaw@mail.gmail.com>

On 10/4/21 2:19 AM, Vijay Garg wrote:
> Hi Adrian,
> 
> I am using postgres 13.4 version & postgis 3.1 version. I have used the 
> following command to upload the data.
> 
> raster2pgsql -I -C -s 4326  C:\Users\Admin\Desktop\dem.tif raster.dem | 
> psql -U postgres -d India -h localhost -p 5432
> 
> I am able to upload dem file in postgres but I am not able to check any 
> table.

The image shows that you can check(select from) the table. What you are 
seeing is the image data stored in a binary format. You will not see the 
actual image. To get that see this section of PostGIS docs:

https://postgis.net/docs/using_raster_dataman.html#RT_Raster_Applications

> 
> I am attaching the screenshot in this email.
> 
> image.png
> 
> --
> *Thanks & Regards*
> Vijay Garg
> Contact Number: 6283101848
> Sabudh Foundation
> New Delhi
> 
> 
> 
> 
> On Sun, Oct 3, 2021 at 2:18 AM Adrian Klaver <adrian.klaver@aklaver.com 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (4+ messages)

Message-ID: <4fc6204d-b1ff-24b1-5f51-d569077e6440@aklaver.com>
Permalink:  ../4fc6204d-b1ff-24b1-5f51-d569077e6440@aklaver.com/
Also on:    postgresql.org/message-id/4fc6204d-b1ff-24b1-5f51-d569077e6440@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, vijay.g@sabudh.org, sukhjit@sabudh.org, sukhjitsehra@gmail.com
  Subject: Re: Problem in Storing Satellite imagey(Geotiff file)
  In-Reply-To: <4fc6204d-b1ff-24b1-5f51-d569077e6440@aklaver.com>
  References: <CAJOh4um0yGD236mpSc_9Eos8yPz4rL1FCwM4hCmbF8=r_H_o8w@mail.gmail.com> <0fe09d2c-ca81-a21c-7359-f217907d548a@aklaver.com> <CAJOh4ukbxaFRBfdgf6gzRGECQ+h+8hMGczYD6nkrDad3A+uyaw@mail.gmail.com> <4fc6204d-b1ff-24b1-5f51-d569077e6440@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox