<div dir="ltr"><div>Thanks, Jorge, very much! <br></div><div><br></div><div>My main concern was that data was being written somewhere for the database postgres in the raster2pgsql process before it was established as a table that I'd see, but it sounds like that's not the case. <br></div><div><br></div><div>And thanks for the feedback on Tile Size... ages ago I had done some experimentation and that size ended up working well. I have no recollection what potential issues were coming up with coarser tile sizes, but in case it helps for context, I ultimately use these data for spatial overlays with fairly small polygons across the landscape. <br></div><div><br></div><div>And I'll just note that comparable raster2pgsql code worked for a similar raster, only slightly smaller in dimensions, but as you note - it is slow and took a while (albeit finished within about half a day if I recall correctly).<br></div><div><br></div><div>Thanks again! As someone who's largely self taught with PostGIS & Postgresql, with support from books and blogs, I always appreciate the invaluable insights folks here have :-) <br></div><div><br></div><div>Mike<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 15, 2021 at 11:03 AM Jorge Gustavo Rocha <<a href="mailto:jgr@di.uminho.pt">jgr@di.uminho.pt</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Mike,<br>
<br>
The raster and the overviews will be in your base_rasters schema. The<br>
raster itself will be landcover6in_2010. Overviews will be<br>
o_256_landcover6in_2010, o_128_landcover6in_2010 and so on.<br>
<br>
If there are no tables there, you don't need to do anything. Just<br>
restart the import again.<br>
<br>
I would recommend bigger tiles. 128x128 tiles are quite small and you<br>
will end up with too many rows. Try 1000x1000 tiles if you really don't<br>
need 128x128 for any special processing.<br>
<br>
raster2pgsql is slow. It will take a couple of hours.<br>
<br>
Regards,<br>
<br>
Jorge<br>
<br>
Às 15:30 de 15/02/21, Mike Treglia escreveu:<br>
> Hi All,<br>
> <br>
> I've had an import of a raster going on my computer for a few days<br>
> (going on 3 days) now via rater2pgsql. It was pretty comparable to a<br>
> raster import that took something around ~12 hours, except I was<br>
> building additional overview levels - my command line looks something<br>
> like this:<br>
> <br>
> raster2pgsql -s 2263 -d -C -t 128x128 -M -I -l 4,16,128,256<br>
> "LandCover.tif" base_rasters.landcover6in_2010 | psql.exe -h localhost<br>
> -U postgres -d db -v ON_ERROR_STOP=1<br>
> <br>
> (the overview levels I added were 128 and 256... maybe should've tested<br>
> on a subset of the data... first. It is a large raster - 320,000 x<br>
> 320,000 8 bit unsigned int pixels)<br>
> <br>
> I'm getting to a point where I'll need to restart my pc for some<br>
> administrative processes - thus, I was wondering - if I kill the<br>
> raster2pgsql process before it complete, will I need to clean up those<br>
> files somewhere? (at this point I haven't seen any of the files showing<br>
> up in my database, so simply dropping the tables doesn't seem like it<br>
> would work)<br>
> <br>
> Any insights are greatly appreciated - thank you!<br>
> Mike<br>
> <br>
> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
> <br>
<br>
J. Gustavo<br>
-- <br>
Jorge Gustavo Rocha<br>
Departamento de Informática<br>
Universidade do Minho<br>
4710-057 Braga<br>
Gabinete 3.29 (Piso 3)<br>
Tel: +351 253604480<br>
Fax: +351 253604471<br>
Móvel: +351 910333888<br>
skype: nabocudnosor<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>