Re: Spatial extensions

2009-12-22 Thread René Fournier
NULL, add spatial index > (coordinates); > > You can check the data with the ASTEXT() function: > > SELECT longitude, latitude, ASTEXT(coordinates) FROM places; > > > Hope this helps > -Gavin Towey > > From: René Fournier [mailto:m...@renefournier.com] > Sent:

RE: Spatial extensions

2009-12-21 Thread Gavin Towey
ordinates); You can check the data with the ASTEXT() function: SELECT longitude, latitude, ASTEXT(coordinates) FROM places; Hope this helps -Gavin Towey From: René Fournier [mailto:m...@renefournier.com] Sent: Saturday, December 19, 2009 12:42 AM To: Gavin Towey Cc: mysql Subject: Re: Spatial e

Re: Spatial extensions

2009-12-19 Thread René Fournier
tial index. Oops, I forgot to change a couple > occurances of "line_segment" to "coordinates" line_segment was just the > column name I was using in my original query. > > Regards, > Gavin Towey > > -Original Message----- > From: René Fournier [mai

RE: Spatial extensions

2009-12-17 Thread Gavin Towey
couple occurances of "line_segment" to "coordinates" line_segment was just the column name I was using in my original query. Regards, Gavin Towey -Original Message- From: René Fournier [mailto:m...@renefournier.com] Sent: Thursday, December 17, 2009 8:54 AM To: Gavin Towey C

Re: Spatial extensions

2009-12-17 Thread Jim Ginn
Rene: We've easily integrated GIS with MySQL into our sites: http://tenant.com/map-search.php http://yearlyrentals.com http://acnj.com/map.php ... Thanks! Jim Ginn Visit My Work (888) 546-4466 office (609) 226-5709 cell > Awesome, this is what I was trying to find, as you succinctly wro

Re: Spatial extensions

2009-12-17 Thread René Fournier
Awesome, this is what I was trying to find, as you succinctly wrote it. I *really* appreciate getting pointed in the right direction, since I haven't found a lot of MySQL's GIS tutorials directed at what I'm trying to do. Still, a couple questions, the Distance() function you included, that must

RE: Spatial extensions

2009-12-16 Thread Gavin Towey
Yes, spatial indexes are very fast: Query would be something like: SET @center = GeomFromText('POINT(37.372241 -122.021671)'); SET @radius = 0.005; SET @bbox = GeomFromText(CONCAT('POLYGON((', X(@center) - @radius, ' ', Y(@center) - @radius, ',', X(@center) + @radius, ' ', Y(@center) - @rad

Re: Spatial Extensions in MySQL: Multidimensional Points?

2006-02-07 Thread Brandon Ooi
Use 3d pythagorean theorem. the distance d between point1 (x1,y1,z1) and point2 (x2,y2,z2) is... d = sqrt((x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2) as for building an index for this? i have no idea. but that is how you find the distance between two 3D points. b Jose Antonio wrote: MySQL offers Sp

Re: Spatial Extensions in MySQL: Multidimensional Points?

2006-02-07 Thread Gleb Paharenko
Hello. For a pity, I do not have an exact answer on how to do your task in a best way with MySQL. Searching in the archives gave me these links: http://lists.mysql.com/mysql/185851 http://lists.mysql.com/mysql/185846 Perhaps, you will need the help of stored routines or UDFs: http://dev.mys

Re: Spatial Extensions to make a Dealer Locator?

2005-10-19 Thread Peter Brawley
Brian >I'm in the midst of the age-old problem of finding the right SQL to >make a Dealer Locator by ZIP code. Like Steffan's posts from a >couple weeks ago, I have the ZIP code data in one table with >latitudes and longitudes, and the table of Dealers with ZIP codes >in a separate table. Fo

RE: spatial extensions - SRID

2005-08-15 Thread SGreen
"Andras Kende" <[EMAIL PROTECTED]> wrote on 08/13/2005 10:32:07 PM: > Hello, > > I have a html page with 70+ form fields some like 40 fields are only used > for entering quantity numbers… > > Don’t want to do Mysql table with 70 fields… > > Is it a good idea to put this 50 fields of the form f

Re: spatial extensions - SRID

2005-08-13 Thread Peter Brawley
Andras, >Is it a good idea to put this 50 fields of the form fields into a single >text mysql field? >Somehow process it with php before, put inside of some kind of xml >structure? Nothing wrong with 70 columns unless there are interdependencies &/or groupings amongst the 70 values that re

RE: spatial extensions - SRID

2005-08-13 Thread Andras Kende
Hello, I have a html page with 70+ form fields some like 40 fields are only used for entering quantity numbers… Don’t want to do Mysql table with 70 fields… Is it a good idea to put this 50 fields of the form fields into a single text mysql field? Somehow process it with php before, put inside

Re: spatial extensions - SRID

2005-08-13 Thread douglass_davis
Paul DuBois wrote: At 16:27 -0400 8/12/05, [EMAIL PROTECTED] wrote: This is a big issue. Will this be the same in version 5? Or will the SRIDs actually be used? I would like to just represent everything in lat/lon, not on a planar surface. Now, if the SRIDs are used in MySql 5, whe

Re: spatial extensions - SRID

2005-08-13 Thread Paul DuBois
At 16:27 -0400 8/12/05, [EMAIL PROTECTED] wrote: To the powers that be: Can we get a MySql GIS/spatial list?? This is going to be a very popular area (actually it is already). I am trying to use the Spatial extensions to MySql. To be honest PostGIS has many more features, but MySql is my f

Re: Spatial extensions and GIS

2004-06-07 Thread Mirza
In both cases you will have to write your own code. MySQL, so far, only can store Spatial data and do very simple (still, r-tree optimized) GIS queries (like: all objects inside rect). mirza Terry Pothecary wrote: Hi. This may be a daft question, so forgive me: I am just starting out with the Sp