hi <br><br> first i have created table in <b>mysql </b>as <b>testdata </b>which have four fields<b>(areaID,x,y,sampleValue)</b><br><br>then i have created <b>aqidata.ovf</b> which have following code mention below<br><br>
<br><pre class="literal-block"><b><font size="4"><OGRVRTDataSource><br> <OGRVRTLayer name="aqidata"><br> <SrcDataSource>MYSQL:aqiTest,user=uuuuu,password=ppppp,host=192.170.1.100,port=3306,tables=testdata</SrcDataSource> <br>
<SrcSQL>SELECT areaID, x, y, sampleValue FROM testdata</SrcSQL> <br> <GeometryType>wkbPoint</GeometryType><br> <GeometryField encoding="PointFromColumns" x="x" y="y"/> <br>
</OGRVRTLayer><br></OGRVRTDataSource></font></b><br><br><br><font size="4">then i have execute this .ovf in command line as follows<br><br><b>C:\ms4w\tools\gdal-ogr>ogrinfo aqidata.ovf<br>ERROR 4: Update access not supported for VRT datasources.<br>
Had to open data source read-only.<br>INFO: Open of `aqidata.ovf'<br> using driver `VRT' successful.<br>1: aqidata (Point)</b></font><br><br><font size="4">then i have created map file as follows</font><br><br>
<br><b><font size="4">LAYER<br> NAME "MyAqi"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR <br> CONNECTION "aqidata.ovf"<br> DATA "aqidata"<br> <br> CLASS <br>
NAME "MyClass"<br> STYLE<br> SYMBOL 'circle'<br> SIZE 15<br> COLOR 0 255 0<br> END<br> END<br>END <br><br>#Circle symbol<br> SYMBOL<br>
NAME 'circle'<br> TYPE ellipse<br> FILLED true<br> POINTS<br> 1 1<br> END<br> END <br>END<br><br><br></font></b><font size="4">after that if i try to execute this map file means its showing the error<br>
</font><b><br><br><font size="4">C:\ms4w\tools\mapserv>shp2img -m ogr.map -o test.png<br>msDrawMap(): Image handling error. Failed to draw layer named 'MyAqi'. <br><br>msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `MyAqi'. Fi<br>
le not found or unsupported format. <br></font></b><b><br></b></pre>please help me out from this ,where i have done a mistake<br><br><br>thanks in advance<br><br>muzaffar<br><br><br><br><div class="gmail_quote">On Fri, Dec 19, 2008 at 8:25 PM, Fawcett, David <span dir="ltr"><<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>></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;">
<div>
<div><span><font color="#0000ff" face="Arial" size="2">Muzaffar, </font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">I
think that we would have to see the text from your map file to figure this
out. </font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">What
format is your data in? (Based on the name, I have a guess that it is
possible that you are using MySQL and following the HowTo that I wrote a long
time ago...)</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">If you
are using MySQL, it could be that your MapServer binary was not compiled with a
version of ogr that supports MySQL input. What do you get when you type
mapserv -v ?</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">We
definitely need more info to help you. </font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div><font color="#888888">
<div><span><font color="#0000ff" face="Arial" size="2">David. </font></span></div></font><div><div></div><div class="Wj3C7c">
<blockquote style="margin-right: 0px;">
<div></div>
<div dir="ltr" align="left" lang="en-us"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b>
<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>muzaffar
hussain<br><b>Sent:</b> Thursday, December 18, 2008 11:39 PM<br><b>To:</b>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> [mapserver-users] getting
error<br><br></font></div>hi <br> <br> i am
getting the following error if i am executing <b>"shp2img -m ogr.map -o
test.png"</b><br><br><b>msDrawMap(): Image handling error. Failed to draw
layer named 'MyAqi'. <br><br>msOGRFileOpen(): OGR error. Open failed for
OGR connection in layer `MyAqi'. Fi<br>le not found or unsupported
format. <br></b><br><br>please help out from this.<br><br>thanks in
advance<br><font color="#888888"><br><br>muzaffar<br></font></blockquote></div></div></div>
</blockquote></div><br>