<div dir="auto"><div>Hi,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>> schrieb am So., 28. Aug. 2022, 15:27:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Asim,<br>
<br>
You could try to use raster2pgsql after making sure you have the GDAL-GRASS plugin installed.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">FYI:</div><div dir="auto">This GDAL-GRASS driver you find here:</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/OSGeo/gdal-grass">https://github.com/OSGeo/gdal-grass</a></div><div dir="auto"><br></div><div dir="auto">MarkusĀ </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Then you should be able to load GRASS GIS raster maps directly into PostGIS by pointing to the header of your GRASS GIS maps. Something like:<br>
raster2pgsql -s 4326 -C -l 2,4 -I -F -t 2700x2700 /your_grassdb/location/mapset/cellhd/your_raster_map output_pg_shema_name. output_table_name | psql -h your_host -p 5432 -U postgres -d your_pg_database<br>
(obviously you have to adjust options and flags of raster2pgsql to your case...).<br>
<br>
Hope that helps.<br>
<br>
Cheers<br>
Stefan<br></blockquote></div></div></div>