<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.16798"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial>Mike,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial>You are correct the PostGIS windows GDAL lib for raster
support (which includes raster2pgsql) is not built with netcdf
support. We built it to not require extra dependencies beyond what gdal
includes,</FONT></SPAN><SPAN class=930134507-03032014><FONT color=#0000ff size=2
face=Arial></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial>what you could do is use MS4W or <A
href="http://www.gisinternals.com/sdk/">http://www.gisinternals.com/sdk/</A>
and use gdal_translate to convert to a supported format. Though this may
not be an option depending on what you want to read from it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial>I recall trying once to build in with netcdf and ran into
issues (mostly with additional dependencies required like hdf this that)
so put it aside as a non-trivial bit of effort to include
that.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial>If there is enough interest and people are willing to
subsidize our effort, we'd be willing to put in the work to add it and maintain
it as part of PostGIS windows distribution.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial>Regina</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial><A
href="http://www.postgis.us">http://www.postgis.us</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial>Windows PostGIS Stack Builder maintainer</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=930134507-03032014><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV><BR>
<DIV lang=en-us class=OutlookMessageHeader dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> postgis-users-bounces@lists.osgeo.org
[mailto:postgis-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Mike
T<BR><B>Sent:</B> Thursday, February 27, 2014 1:28 PM<BR><B>To:</B> PostGIS
Users Discussion<BR><B>Subject:</B> [postgis-users] raster2pgsql, netcdf, and
windows<BR></FONT><BR></DIV>
<DIV></DIV>Hi all,<BR><BR>I'm new to PostGIS, so I apologize in advance if this
has been asked and answered, or if this the wrong place.<BR><BR>I've just
installed Postgres 9.3 on Windows 8.1 from pre-built binaries, and had installed
PostGIS 2.1.1 via Stack Builder . I'm trying to use raster2pgsql on a
netcdf file. Does anyone know if this is supported on Windows? All I
get is "unable to read raster file". <BR><BR>raster2pgsql -G yields a long
list with nothing that looks like netcdf. From what I've able to gather
from the docs, there's some underlying dependency with GDAL stuff. But on
Windows, installing from pre-built binaries, there's no separate gdal toolkit I
can see. I believe it's all already baked into the distributed
executable. If I need to alter the underlying tools, or rebuild with a
netcdf library, I'm not sure how I'd go about that. I can probably build
from sources if I have to, but I'd really rather not go down that rabbit
hole.<BR><BR>I tried reinstalling PostGIS from the latest dev binary
distribution, but there's no difference.<BR><BR>I was able to install MS4W,
which includes a version of gdal tools for Windows, and, using <I>that</I>, I
can read the netcdf metadata, so I know the file itself is good.<BR><BR>Does
anyone know how I can get raster2pgsql to recognize it? Did I miss a step,
or is this just not possible on Windows?<BR><BR>Any suggestions, or pointers to
additional info would be a big help!<BR><BR>Thanks,<BR>Mike </BODY></HTML>