Howard,<br><br>I did try gdalinfo and it works great.&nbsp; Just to be sure, I used gdal_transform to create a tiff file and asked mapserver to try that instead using shp2img, and that worked beautifully.&nbsp; So it&#39;s just that the GDAL inside mapserver (??!!)) isn&#39;t making the same connection or something.&nbsp; I don&#39;t know why.&nbsp; When I do a getfeatureinfo I get that error I mentioned in the first post, but for maps, I just get a segmentation fault.<br>
<br>Liz<br><br><div class="gmail_quote">On Tue, Nov 4, 2008 at 11:50 AM, Howard Butler <span dir="ltr">&lt;<a href="mailto:hobu.inc@gmail.com">hobu.inc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Liz,<br>
<br>
To use SDE raster data in MapServer, you must use GDAL compiled with SDE raster support. &nbsp;The &quot;native&quot; SDE raster support that was in MapServer was removed and no longer works.<br>
<br>
Ensure that your GDAL SDE raster is working with gdalinfo and then specify your layer as follows:<br>
<br>
<br>
LAYER<br>
<br>
TYPE RASTER<br>
DATA &quot;SDE:<a href="http://sdemachine.iastate.edu" target="_blank">sdemachine.iastate.edu</a>,5151,database,username,password,fully.specified.tablename,RASTER&quot;<br>
...<br>
<br>
END<div><div></div><div class="Wj3C7c"><br>
<br>
On Nov 4, 2008, at 9:41 AM, Liz Godwin wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ll give it a try. &nbsp;I didn&#39;t actually try it - I read the docs and it didn&#39;t suggest that it would support rasters.<br>
<br>
Liz<br>
<br>
On Tue, Nov 4, 2008 at 10:13 AM, Lucena, Ivan &lt;<a href="mailto:ivan.lucena@pmldnet.com" target="_blank">ivan.lucena@pmldnet.com</a>&gt; wrote:<br>
Ron,<br>
<br>
Some raster driver in GDAL are not flie based but RDBMS based but most of the softwares based on GDAL did not<br>
noticed that change. In those case, instead of a file path what you need is a identification string but those software<br>
usually have code to grab the file path, to check if the file really exist, to check other files on the same folder and<br>
that is where it crashes.<br>
<br>
What I suggest to Liz is to use a VRT file instead of the identification string. As you might know, a VRT file does not<br>
contain the data but a path to the real data set.<br>
<br>
I use that trick to load images direct from the RDBMS server to OpenEv and QuantumGIS:<br>
<br>
% gdal_translate -of VRT &lt;the identification string of your dataset&gt; &lt;temporary.vrt&gt;<br>
... check if it works:<br>
% gdalinfo &lt;temporary.vrt&gt;<br>
... check what is inside it:<br>
% more &lt;temporary.vrt&gt;<br>
... load it:<br>
% openev &lt;temporary.vrt&gt;<br>
% qgis<br>
... click on add layer<br>
... select your &lt;temporary.vrt&gt;<br>
<br>
I thought that it would work for mapserve too...<br>
<br>
/filepath/&lt;temporary.vrt&gt;<br>
<br>
But Liz tried and said it doesn&#39;t. Too bad, I was counting on it. ;(<br>
<br>
Regards,<br>
<br>
Ivan<br>
<br>
&gt; &nbsp;-------Original Message-------<br>
&gt; &nbsp;From: Ron Goldman &lt;<a href="mailto:ron@ocean.org.il" target="_blank">ron@ocean.org.il</a>&gt;<br>
&gt; &nbsp;Subject: [mapserver-users] Re: GDAL and SDE raster<br>
&gt; &nbsp;Sent: Nov 04 &#39;08 14:01<br>
&gt;<br>
&gt; &nbsp;I had a similar problem with NetCDF raster. It probably won&#39;t help much for SDE<br>
&gt; &nbsp;but make sure you have absolute filepath after the &quot;SDE:&quot; and not before it.<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;Date: Tue, 4 Nov 2008 08:24:52 -0500<br>
&gt; &nbsp;From: &quot;Liz Godwin&quot; &lt;<a href="mailto:godwin.liz@gmail.com" target="_blank">godwin.liz@gmail.com</a>&gt;<br>
&gt; &nbsp;Subject: Re: [mapserver-users] GDAL and SDE raster<br>
&gt; &nbsp;To: &quot;Lucena, Ivan&quot; &lt;<a href="mailto:ivan.lucena@pmldnet.com" target="_blank">ivan.lucena@pmldnet.com</a>&gt;<br>
&gt; &nbsp;Cc: <a href="mailto:eidsnessl@agr.gc.ca" target="_blank">eidsnessl@agr.gc.ca</a>, <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>,<br>
&gt; &nbsp;<a href="mailto:whittekerc@agr.gc.ca" target="_blank">whittekerc@agr.gc.ca</a><br>
&gt; &nbsp;Message-ID:<br>
&gt; &nbsp;&lt;<a href="mailto:d33d7cc00811040524o6642e27w234e060f5ed87cd4@mail.gmail.com" target="_blank">d33d7cc00811040524o6642e27w234e060f5ed87cd4@mail.gmail.com</a>&gt;<br>
&gt; &nbsp;Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;Thank you, but that option doesn&#39;t appear to work for Raster data types.<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;Liz<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan &lt;<a href="mailto:ivan.lucena@pmldnet.com" target="_blank">ivan.lucena@pmldnet.com</a>&gt;wrote:<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;&gt; &gt; I don&#39;t have SDE to tell you the truth but I would suggest you to create a<br>
&gt; &nbsp;&gt; &gt; VRT version of your dataset and use the VRT on your map file. [<br>
&gt; &nbsp;&gt; &gt; gdal_translate -of vrt<br>
&gt; &nbsp;&gt; &gt; /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER<br>
&gt; &nbsp;&gt; &gt; replacement.vrt ]<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;-------Original Message-------<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;From: Liz Godwin &lt;<a href="mailto:godwin.liz@gmail.com" target="_blank">godwin.liz@gmail.com</a>&gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;Subject: [mapserver-users] GDAL and SDE raster<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;Sent: Nov 03 &#39;08 22:19<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;Hey folks,<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;We&#39;ve been beating ourselves up over this problem and I&#39;m not sure<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;what to try next.<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;We can&#39;t seem to connect to SDE for a raster using GDAL in mapserver.<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;This is happening on Linux.<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;snippit from mapfile:<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;TYPE RASTER<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;DATA &quot;SDE:server,port:5151,sde,user,pass,schema.table,RASTER&quot;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;when trying to draw a map, i get a seg fault. &nbsp;When trying a<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;getFeatureinfo request, I get this error:<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;/filepath/SDE:server,port:5151,sde,user: Image handling error. Unable to<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;open file LayerName for layer<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;`/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER&#39; does<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;not exist in the file system, and is not recognised as a supported<br>
&gt; &nbsp;&gt;&gt;<br>
&gt; &nbsp;&gt; &gt; dataset<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;name.<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;... fatal error.<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;msRasterQueryByRect()<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;Any ideas how I might start to debug this? &nbsp;I have DEBUG set to 5 in<br>
&gt; &nbsp;&gt;&gt;<br>
&gt; &nbsp;&gt; &gt; both<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;the LAYER and MAP object in the map file.<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;Thanks!<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;Liz<br>
&gt; &nbsp;&gt;&gt; &gt; &gt;<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;--------------------<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;_______________________________________________<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;mapserver-users mailing list<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;[LINK: compose.php?to=<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>]<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;[LINK: <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>]<br>
&gt; &nbsp;&gt;&gt; &gt; &gt; &nbsp;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt; &nbsp;&gt;&gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;-------------- next part --------------<br>
&gt; &nbsp;An HTML attachment was scrubbed...<br>
&gt; &nbsp;URL: <a href="http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html" target="_blank">http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html</a><br>

&gt;<br>
&gt; &nbsp;------------------------------<br>
&gt;<br>
&gt; &nbsp;_______________________________________________<br>
&gt;<br>
&gt; &nbsp;mapserver-users mailing list<br>
&gt; &nbsp;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
&gt; &nbsp;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;***********************************************************<br>
&gt; &nbsp;This outgoing email was scanned for viruses and other malicious content by the IT Department of Israel<br>
Oceanographic &amp; Limnological Research.<br>
&gt; &nbsp;AntiVirus system managed by Eli W. Tel. 972-4-8565267<br>
&gt; &nbsp;IMPORTANT: Do not open attachments from unrecognized senders.<br>
&gt; &nbsp;Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe.<br>
&gt;<br>
***********************************************************________________________________<br>
_______________<br>
&gt; &nbsp;mapserver-users mailing list<br>
&gt; &nbsp;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
&gt; &nbsp;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote>
<br>
</div></div></blockquote></div><br>