Please refer to my previous posts.<br>Modify the SQL select command. Use the CONCAT function instead of the + operator to create the wkt.<br><br>It should be something like this: CONCAT(&#39;LINESTRING(&#39;, x1, &#39; &#39;, y1, &#39;,&#39;, x2, &#39; &#39;, y2, &#39;)&#39;)<br>
You may have to change the order of the points.<br><br><div class="gmail_quote">On Fri, Mar 2, 2012 at 9:24 PM, Murat Beyhan <span dir="ltr">&lt;<a href="mailto:beyhan@deprem.gov.tr">beyhan@deprem.gov.tr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Chaitanya,<br>
<br>
I store data in table not view as I told you before becasue I could not<br>
declare column as string, then I create a new table and select<br>
fault(line) column as linestring. in mysql WKT support these format<br>
<br>
<br>
      * A LineString with four points:<br>
<br>
        LINESTRING(0 0, 10 10, 20 25, 50 60)<br>
<br>
        Note that point coordinate pairs are separated by commas.<br>
<br>
      * A Polygon with one exterior ring and one interior ring:<br>
<br>
        POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7, 5 5))<br>
      * A MultiPoint with three Point values:<br>
<br>
        MULTIPOINT(0 0, 20 20, 60 60)<br>
      * A MultiLineString with two LineString values:<br>
<br>
        MULTILINESTRING((10 10, 20 20), (15 15, 30 15))<br>
      * A MultiPolygon with two Polygon values:<br>
<br>
        MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)),((5 5,7 5,7 7,5 7, 5 5)))<br>
      * A GeometryCollection consisting of two Point values and one<br>
        LineString:<br>
<br>
        GEOMETRYCOLLECTION(POINT(10 10), POINT(30 30), LINESTRING(15 15, 20 20))<br>
<br>
<br>
How to modify wkt geometry  in string format<br>
in map file it is already defined as<br>
&lt;GeometryType&gt;wkbLineString&lt;/GeometryType&gt;<br>
like this.<br>
<br>
I really sorry for giving trouble to you. Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
murat<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Fri, 2012-03-02 at 21:19 +0530, Chaitanya kumar CH wrote:<br>
&gt; Modify the table to store the line as a wkt geometry in string format.<br>
&gt;<br>
&gt; On Fri, Mar 2, 2012 at 9:12 PM, Murat Beyhan &lt;<a href="mailto:beyhan@deprem.gov.tr">beyhan@deprem.gov.tr</a>&gt;<br>
&gt; wrote:<br>
&gt;         Chaitanya,<br>
&gt;<br>
&gt;         I mean What should I do,<br>
&gt;         Still could not draw a simple line on the map,<br>
&gt;         Please how can I overcome this issue. How can I change VRT<br>
&gt;         file.<br>
&gt;         in order to read data from such table storing data as<br>
&gt;         linestring<br>
&gt;<br>
&gt;         regards<br>
&gt;<br>
&gt;         murat<br>
&gt;         On Fri, 2012-03-02 at 21:08 +0530, Chaitanya kumar CH wrote:<br>
&gt;         &gt; I was talking about the geometry format of the line. You<br>
&gt;         have to<br>
&gt;         &gt; decide for yourselves about the efficiency.<br>
&gt;         &gt;<br>
&gt;         &gt; On Fri, Mar 2, 2012 at 8:57 PM, Murat Beyhan<br>
&gt;         &lt;<a href="mailto:beyhan@deprem.gov.tr">beyhan@deprem.gov.tr</a>&gt;<br>
&gt;         &gt; wrote:<br>
&gt;         &gt;         Chaitanya,<br>
&gt;         &gt;<br>
&gt;         &gt;         What do you prefer and which way more fast to draw<br>
&gt;         line and<br>
&gt;         &gt;         point<br>
&gt;         &gt;         because I also draw point about 160000 and I use<br>
&gt;         wkbpoint.<br>
&gt;         &gt;<br>
&gt;         &gt;         Any way how to change and What I will change in the<br>
&gt;         vrt.<br>
&gt;         &gt;<br>
&gt;         &gt;         could you tell something about it<br>
&gt;         &gt;         thanks<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         On Fri, 2012-03-02 at 20:23 +0530, Chaitanya kumar<br>
&gt;         CH wrote:<br>
&gt;         &gt;         &gt; Murat,<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; You specified the encoding for GeometryField in<br>
&gt;         the VRT as<br>
&gt;         &gt;         WKT. OGR<br>
&gt;         &gt;         &gt; expects a WKT if you do that. Either change the<br>
&gt;         data or the<br>
&gt;         &gt;         VRT.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; On Fri, Mar 2, 2012 at 6:42 PM, Murat Beyhan<br>
&gt;         &gt;         &lt;<a href="mailto:beyhan@deprem.gov.tr">beyhan@deprem.gov.tr</a>&gt;<br>
&gt;         &gt;         &gt; wrote:<br>
&gt;         &gt;         &gt;         I have to say this is not view<br>
&gt;         &gt;         &gt;         this is a table created.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         Because I could not declare type of geom<br>
&gt;         field as a<br>
&gt;         &gt;         string<br>
&gt;         &gt;         &gt;         than I create<br>
&gt;         &gt;         &gt;         geometry field column in spatial mysql<br>
&gt;         database..<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         On Fri, 2012-03-02 at 18:39 +0530,<br>
&gt;         Chaitanya kumar<br>
&gt;         &gt;         CH wrote:<br>
&gt;         &gt;         &gt;         &gt; Murat,<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; Can you show a sample output of your<br>
&gt;         view?<br>
&gt;         &gt;         &gt;         &gt; SELECT * FROM geom;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; On Fri, Mar 2, 2012 at 6:12 PM, Murat<br>
&gt;         Beyhan<br>
&gt;         &gt;         &gt;         &lt;<a href="mailto:beyhan@deprem.gov.tr">beyhan@deprem.gov.tr</a>&gt;<br>
&gt;         &gt;         &gt;         &gt; wrote:<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         Dear Chaitanya,<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         I see what you explain first I<br>
&gt;         convert lat<br>
&gt;         &gt;         lon data<br>
&gt;         &gt;         &gt;         to string<br>
&gt;         &gt;         &gt;         &gt;         then I<br>
&gt;         &gt;         &gt;         &gt;         concatenate them to string<br>
&gt;         again. But I<br>
&gt;         &gt;         would like<br>
&gt;         &gt;         &gt;         to ask<br>
&gt;         &gt;         &gt;         &gt;         I have already add data to mysql<br>
&gt;         table as<br>
&gt;         &gt;         follows is<br>
&gt;         &gt;         &gt;         this also<br>
&gt;         &gt;         &gt;         &gt;         correct<br>
&gt;         &gt;         &gt;         &gt;         because when I browse table it<br>
&gt;         seems it<br>
&gt;         &gt;         store data<br>
&gt;         &gt;         &gt;         in geometry<br>
&gt;         &gt;         &gt;         &gt;         field<br>
&gt;         &gt;         &gt;         &gt;         but mapserver gives error<br>
&gt;         &gt;         &gt;         &gt;         Unable to identify source field<br>
&gt;         &#39;fault&#39;<br>
&gt;         &gt;         for<br>
&gt;         &gt;         &gt;         geometry.<br>
&gt;         &gt;         &gt;         &gt;         any way<br>
&gt;         &gt;         &gt;         &gt;         I will try to convert data first<br>
&gt;         then I<br>
&gt;         &gt;         can return<br>
&gt;         &gt;         &gt;         back you.<br>
&gt;         &gt;         &gt;         &gt;         Regards...<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         ps.<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         ogrinfo<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         MYSQL:dynamic,user=root,password=mysql_123,host=localhost,port=3306,tables=geom<br>
&gt;         &gt;         &gt;         &gt;         INFO: Open of<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         `MYSQL:dynamic,user=root,password=mysql_123,host=localhost,port=3306,tables=geom&#39;<br>
&gt;         &gt;         &gt;         &gt;              using driver `MySQL&#39;<br>
&gt;         successful.<br>
&gt;         &gt;         &gt;         &gt;         1: geom (None)<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         it say none in geom<br>
&gt;         &gt;         &gt;         &gt;         may be first I have to do what<br>
&gt;         you say<br>
&gt;         &gt;         &gt;         &gt;         thanks<br>
&gt;         &gt;         &gt;         &gt;         Murat<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; --<br>
&gt;         &gt;         &gt;         &gt; Best regards,<br>
&gt;         &gt;         &gt;         &gt; Chaitanya kumar CH.<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; <a href="tel:%2B91-9494447584" value="+919494447584">+91-9494447584</a><br>
&gt;         &gt;         &gt;         &gt; 17.2416N 80.1426E<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; --<br>
&gt;         &gt;         &gt;         &gt; This message has been scanned for<br>
&gt;         viruses and<br>
&gt;         &gt;         &gt;         &gt; dangerous content by MailScanner, and is<br>
&gt;         &gt;         &gt;         &gt; believed to be clean.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         Murat BEYHAN<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         Jeofizik Y.Müh.<br>
&gt;         &gt;         &gt;         T.C. Başbakanlık<br>
&gt;         &gt;         &gt;         Afet ve Acil Durum Yönetimi Başkanlığı<br>
&gt;         &gt;         &gt;         Deprem Dairesi Başkanlığı<br>
&gt;         &gt;         &gt;         Eskişehir Yolu 12. Km.<br>
&gt;         &gt;         &gt;         Lodumlu/ANKARA<br>
&gt;         &gt;         &gt;         Tel: 312 2872680-1556<br>
&gt;         &gt;         &gt;         <a href="mailto:email%3Abeyhan@deprem.gov.tr">email:beyhan@deprem.gov.tr</a><br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         --<br>
&gt;         &gt;         &gt;         This message has been scanned for viruses<br>
&gt;         and<br>
&gt;         &gt;         &gt;         dangerous content by MailScanner, and is<br>
&gt;         &gt;         &gt;         believed to be clean.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; --<br>
&gt;         &gt;         &gt; Best regards,<br>
&gt;         &gt;         &gt; Chaitanya kumar CH.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; <a href="tel:%2B91-9494447584" value="+919494447584">+91-9494447584</a><br>
&gt;         &gt;         &gt; 17.2416N 80.1426E<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; --<br>
&gt;         &gt;         &gt; This message has been scanned for viruses and<br>
&gt;         &gt;         &gt; dangerous content by MailScanner, and is<br>
&gt;         &gt;         &gt; believed to be clean.<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         Murat BEYHAN<br>
&gt;         &gt;<br>
&gt;         &gt;         Jeofizik Y.Müh.<br>
&gt;         &gt;         T.C. Başbakanlık<br>
&gt;         &gt;         Afet ve Acil Durum Yönetimi Başkanlığı<br>
&gt;         &gt;         Deprem Dairesi Başkanlığı<br>
&gt;         &gt;         Eskişehir Yolu 12. Km.<br>
&gt;         &gt;         Lodumlu/ANKARA<br>
&gt;         &gt;         Tel: 312 2872680-1556<br>
&gt;         &gt;         <a href="mailto:email%3Abeyhan@deprem.gov.tr">email:beyhan@deprem.gov.tr</a><br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         --<br>
&gt;         &gt;         This message has been scanned for viruses and<br>
&gt;         &gt;         dangerous content by MailScanner, and is<br>
&gt;         &gt;         believed to be clean.<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; --<br>
&gt;         &gt; Best regards,<br>
&gt;         &gt; Chaitanya kumar CH.<br>
&gt;         &gt;<br>
&gt;         &gt; <a href="tel:%2B91-9494447584" value="+919494447584">+91-9494447584</a><br>
&gt;         &gt; 17.2416N 80.1426E<br>
&gt;         &gt;<br>
&gt;         &gt; --<br>
&gt;         &gt; This message has been scanned for viruses and<br>
&gt;         &gt; dangerous content by MailScanner, and is<br>
&gt;         &gt; believed to be clean.<br>
&gt;<br>
&gt;         --<br>
&gt;<br>
&gt;         Murat BEYHAN<br>
&gt;         Geophysical Engineer, M.Sc.<br>
&gt;         Prime Ministry<br>
&gt;         Disaster and Emergency Management Presidency<br>
&gt;         Earthquake Department<br>
&gt;         Address: Eskisehir Yolu 12. Km.<br>
&gt;         Lodumlu/ANKARA<br>
&gt;         Tel: 312 2872680-1556<br>
&gt;         <a href="mailto:email%3Abeyhan@deprem.gov.tr">email:beyhan@deprem.gov.tr</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         This message has been scanned for viruses and<br>
&gt;         dangerous content by MailScanner, and is<br>
&gt;         believed to be clean.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Best regards,<br>
&gt; Chaitanya kumar CH.<br>
&gt;<br>
&gt; <a href="tel:%2B91-9494447584" value="+919494447584">+91-9494447584</a><br>
&gt; 17.2416N 80.1426E<br>
&gt;<br>
&gt; --<br>
&gt; This message has been scanned for viruses and<br>
&gt; dangerous content by MailScanner, and is<br>
&gt; believed to be clean.<br>
<br>
<br>
<br>
Murat BEYHAN<br>
<br>
Jeofizik Y.Müh.<br>
T.C. Başbakanlık<br>
Afet ve Acil Durum Yönetimi Başkanlığı<br>
Deprem Dairesi Başkanlığı<br>
Eskişehir Yolu 12. Km.<br>
Lodumlu/ANKARA<br>
Tel: 312 2872680-1556<br>
<a href="mailto:email%3Abeyhan@deprem.gov.tr">email:beyhan@deprem.gov.tr</a><br>
<br>
<br>
<br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>