Thaks again David,<br>I thought that was possible. I'd read the 'Ogr Direct Connection to Mysql' page and I will use it.<br>I don't want to have shp, shx, dbf and duplicate database data to prevent errors.<br><br><br><div>
<span class="gmail_quote">2006/6/15, Fawcett, David &lt;<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
John,<br><br>My understanding is that MyGIS support has not been maintained in MapServer for a long time.&nbsp;&nbsp;Recently, direct connection through OGR to MySQL for spatial support.<br><br>Take a look at this page.<br><br>David.
<br><br><br>-----Original Message-----<br>From: UMN MapServer Users List on behalf of John Prof<br>Sent: Wed 6/14/2006 10:50 AM<br>To: <a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</a><br>Subject: Re: [UMN_MAPSERVER-USERS] MyGis connection question
<br><br>Hi David,<br>I would prefer use the spatial extensions but I can't find nothing about.<br>Your method works fine.<br>Thanks<br><br>2006/6/13, Fawcett, David &lt;<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us
</a> &gt;:<br>&gt;<br>&gt;&nbsp;&nbsp;John,<br>&gt;<br>&gt; Take a look at this:&nbsp;&nbsp;<a href="http://mapserver.gis.umn.edu/docs/howto/ogrmysql">http://mapserver.gis.umn.edu/docs/howto/ogrmysql</a><br>&gt;<br>&gt; You would need to change your data structure so that you store your x and
<br>&gt; y values in separate columns.<br>&gt;<br>&gt; Note that this method doesn't use MyGIS, it uses a direct connection<br>&gt; driver in OGR, so your MapServer binary would need to be compiled with OGR<br>&gt; support (as most are).
<br>&gt;<br>&gt; David.<br>&gt;<br>&gt;&nbsp;&nbsp;-----Original Message-----<br>&gt; *From:* UMN MapServer Users List [mailto:<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</a>] *On<br>&gt; Behalf Of *John Prof
<br>&gt; *Sent:* Tuesday, June 13, 2006 4:03 AM<br>&gt; *To:* <a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</a><br>&gt; *Subject:* [UMN_MAPSERVER-USERS] MyGis connection question<br>&gt;<br>
&gt; Hello,<br>&gt;<br>&gt; I'm trying to connect mapserver's map with a mysql datatable like this:<br>&gt;<br>&gt; id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int<br>&gt; name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;varchar(20)<br>&gt; description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;varchar(100)
<br>&gt; location&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;point<br>&gt;<br>&gt; I'd like to create a shape with the points and the labels of the name. Is<br>&gt; it possible? I've tried many ways but I have errors.<br>&gt; I'd like to do something like this example:
<br>&gt;<br>&gt;<br>&gt; LAYER<br>&gt;<br>&gt; CONNECTIONTYPE mygis<br>&gt; NAME &quot;City&quot;<br>&gt; CONNECTION &quot;host:user:passwd:database:bin&quot;<br>&gt; DATA &quot;location from city&quot;<br>&gt; TYPE POINT
<br>&gt; STATUS ON<br>&gt; .<br>&gt; .<br>&gt; .<br>&gt; END<br>&gt;<br>&gt; It fails. I've tried with some mysql functions like AsBinary(point), but<br>&gt; it doesn't work.<br>&gt; I must use sh2mysql structure to store data in my database? Is not
<br>&gt; possible make my simply case?<br>&gt;<br>&gt; Thanks and sorry for my english :p<br>&gt;<br>&gt;<br><br><br></blockquote></div><br>