<div dir="ltr">Brent,<div><br></div><div>It is generally a better idea to serve your raster from a filesystem instead of postgis. Postgis only makes sens if you want to query on your raster data (i.e. give me the number of cells containing water within distance K of point X), otherwise it only gives needless overhead. </div><div><br></div><div>Another option is to look at RASDAMAN (<a href="http://www.rasdaman.org/">http://www.rasdaman.org/</a>). I haven't looked at it for a long time but it serves raster data from postgres at lightning speed. Also, it is closer to HDF storage.</div><div><br></div><div>Best,</div><div> Tom</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 3:44 AM, Brent Wood <span dir="ltr"><<a href="mailto:Brent.Wood@niwa.co.nz" target="_blank">Brent.Wood@niwa.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div>
<p class="m_-4830751698500117124ImprintUniqueID"></p>
<div>Hi postgis users!!<br>
<br>
I'm exploring the option of importing HDF grids into Postgis, ideally to serve as WMS via Mapserver.<br>
<br>
Never having used PG Raster before, or Mapserver to serve them, I figured I'd ask for advice here first!<br>
<br>
The HDF files can be read by GDAL, so I'm assuming an ETL bash script could do the upload easily enough.<br>
<br>
I've been serving WMS from Postgis vector data for several years now, so should be able to figure that out. I'd prefer to use WMS than WCS if possible, I'm not sure what the ramifications are.<br>
<br>
Any advice, comments, examples gratefully received!<br>
<br>
<br>
Thanks,<br>
<br>
Brent Wood<br>
<br>
Brent Wood<br>
<br>
Programme leader: Environmental Information Delivery<br>
NIWA<br>
DDI:  +64 (4) 3860529<span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<table class="m_-4830751698500117124ImprintUniqueIDTable" style="BORDER-COLLAPSE:collapse" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="FONT-SIZE:18pt;FONT-FAMILY:Arial;COLOR:#333333" valign="top"><font style="font-family:Calibri;font-size:12pt;color:#1f497d;font-weight:normal">Brent Wood</font></td>
</tr>
<tr height="2">
<td height="1"><font style="font-family:Calibri;font-size:10pt;color:#1f497d">Principal Technician - GIS and Spatial Data Management</font><br>
<font style="font-family:calibri;font-size:10pt;color:#1f497d">Programme Leader - Environmental Information Delivery</font></td>
</tr>
</tbody>
</table>
<table class="m_-4830751698500117124ImprintUniqueIDTable" style="HEIGHT:1px;BORDER-COLLAPSE:collapse;WIDTH:96.43%" height="1" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td><font style="font-family:Calibri;font-size:10pt;color:#1f497d">+64-4-386-0529</font><font style="font-family:Calibri;font-size:10pt;color:#1f497d"> |
</font><font style="font-family:Calibri;font-size:10pt;color:#1f497d">301 Evans Bay Parade, Greta Point, Wellington</font><font style="font-family:Calibri;font-size:10pt;color:#1f497d;text-decoration:none"> |
</font><span style="font-family:Calibri;font-size:10pt;color:#0066cc;text-decoration:underline"><a href="http://www.niwa.co.nz" title="" style="font-family:Calibri;font-size:10pt;color:#0066cc;text-decoration:underline" target="_blank"><span style="font-family:Calibri;font-size:10pt;color:#0066cc;text-decoration:underline">www.niwa.co.nz</span></a></span></td>
</tr>
</tbody>
</table>
<table class="m_-4830751698500117124ImprintUniqueIDTable" style="BORDER-COLLAPSE:collapse;PADDING-BOTTOM:5px;PADDING-TOP:5px" height="76" cellspacing="0" cellpadding="0" width="500" border="0">
<tbody>
<tr>
<td style="WIDTH:541px" height="66" valign="top" width="475" align="left"><a href="http://www.niwa.co.nz" target="_blank"><img width="538" height="66" style="border:0px Solid" src="cid:imagef63428.JPG@54fb5589.42bfd84d" alt="NIWA"></a></td>
</tr>
</tbody>
</table>
<table class="m_-4830751698500117124ImprintUniqueIDTable" style="HEIGHT:1px;BORDER-COLLAPSE:collapse;WIDTH:96.43%" height="1" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td><font color="#1f497d" size="2" face="Calibri">To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service
 may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems.</font></td>
</tr>
</tbody>
</table>
<table class="m_-4830751698500117124ImprintUniqueIDTable" style="BORDER-COLLAPSE:collapse" cellspacing="0" cellpadding="0" width="500" border="0">
<tbody>
</tbody>
</table>
<br>
<br>
<br>
<p></p>
</font></span></div>

<br>______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">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/<wbr>mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>