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
adius, ',', >> X(@center) - @radius, ' ', Y(@center) - @radius, '))') >> ); >> >> select id, astext(coordinates), Distance(@center,line_segment) as dist >> FROM places where MBRContains(@bbox, line_segment) order by dist limit >> 10;

Re: Spatial extensions

2009-12-17 Thread René Fournier
nter) - @radius, '))') > ); > > select id, astext(coordinates), Distance(@center,line_segment) as dist > FROM places where MBRContains(@bbox, line_segment) order by dist limit 10; > > Regards, > Gavin Towey > > > -Original Message- > From: Ren

RE: Spatial extensions

2009-12-16 Thread Gavin Towey
') ); select id, astext(coordinates), Distance(@center,line_segment) as dist FROM places where MBRContains(@bbox, line_segment) order by dist limit 10; Regards, Gavin Towey -Original Message- From: René Fournier [mailto:m...@renefournier.com] Sent: Wednesday, December 16, 2009 4:32 PM To:

Spatial extensions

2009-12-16 Thread René Fournier
irly quick: SELECT SQL_NO_CACHE * FROM places WHERE latitude BETWEEN 51.98228037384 AND 52.033153677 AND longitude BETWEEN -113.94770681881 AND -113.86685484296; But I wonder a couple things: 1. Would MySQL's [seemingly anemic] spatial extensions would speed things up if I added a colum

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

Spatial Extensions in MySQL: Multidimensional Points?

2006-02-07 Thread Jose Antonio
MySQL offers Spacial Extensions to operate with points in a 2 dimensional space. For a project I'm working on, I need to work with points in an N dimensional space and measure the distance among them. Is there a clever do to solve the following problem?: Let's say I have 4 3D point (X,Y,Z): (0,0

Re: Spatial Extensions to make a Dealer Locator?

2005-10-19 Thread Peter Brawley
longitudes, and the table of Dealers with ZIP codes in a separate table. While researching this I came across a reference to MySQL's Spatial Extensions: http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions-in-mysql.html This is WAY over my head. The reference I found said these e

Spatial Extensions to make a Dealer Locator?

2005-10-19 Thread Brian Dunning
e. While researching this I came across a reference to MySQL's Spatial Extensions: http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions-in-mysql.html This is WAY over my head. The reference I found said these extensions are "immature". I'm not even exactly sure what an ext

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

spatial extensions - SRID

2005-08-12 Thread douglass_davis
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 favorite, and on top of that, the applications

Re: Spatial extensions and GIS

2004-06-07 Thread Mirza
Spatial extensions and I am wondering how I can use it to determine the distances between any 2 landmarks that have been entered as POINTs in the database. The POINTs are entered with longitude and lattitude coordinates. I have 2 problems: 1) The Distance nor the Buffer functions have not been

Spatial extensions and GIS

2004-06-07 Thread Terry Pothecary
Hi. This may be a daft question, so forgive me: I am just starting out with the Spatial extensions and I am wondering how I can use it to determine the distances between any 2 landmarks that have been entered as POINTs in the database. The POINTs are entered with longitude and lattitude

Using spatial extensions

2003-11-20 Thread Rainer M. Krug
Hi is there an easy way (through e.g. VCL components) to use the spatial features which will be offerd by MySQL 4.1 from Delphi? Rainer -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Load Spatial Extensions

2003-11-12 Thread [EMAIL PROTECTED]
HI! I'm trying to use spatial extensions. I need to transfer a table like this, ++-+---+--+-+-+---+ | Field | Type| Collation | Null | Key | Default | Extra | ++-+---+--+-+-+---+ | x | i

Spatial Extensions in MySQL 4.1 - converting to SRID values...

2003-10-30 Thread Bill Hess
I am new to the world of GIS and have an application where I would like to use MySQL's (found in 4.1 alpha currently) Spatial Extensions. I have a set of latitude and longitude for various locations and am trying to figure out how to convert to the SRID units. I have started going thr

Re: Incompatibility: FreeBSD+MySQL 4.1.0+InnoDB+Spatial Extensions

2003-09-29 Thread Paul DuBois
At 22:05 +0400 9/29/03, G B U wrote: > On Mon, Sep 29, 2003 at 09:33:29PM +0400, G B U wrote: > > Hmm... am I missing something?! IIRC there is nothing manual about Innodb > not supporting spatial extensions. And on windows it seems that all is working > fine. This is from

Re: Incompatibility: FreeBSD+MySQL 4.1.0+InnoDB+Spatial Extensions

2003-09-29 Thread Paul DuBois
t;> abnormal behaviour. >> > >Currently you can use spatial columns only in the MyISAM tables. Also, the crash described above is fixed in MySQL 4.1.1. GIS features still are available only in MyISAM (as Victoria notes), but attempting to use them with InnoDB won't

Re: Incompatibility: FreeBSD+MySQL 4.1.0+InnoDB+Spatial Extensions

2003-09-29 Thread G B U
> On Mon, Sep 29, 2003 at 09:33:29PM +0400, G B U wrote: > > > > Hmm... am I missing something?! IIRC there is nothing manual about Innodb > > not supporting spatial extensions. And on windows it seems that all is working > > fine. This is from my Win2000 box

Re: Incompatibility: FreeBSD+MySQL 4.1.0+InnoDB+Spatial Extensions

2003-09-29 Thread Jeremy Zawodny
On Mon, Sep 29, 2003 at 09:33:29PM +0400, G B U wrote: > > Hmm... am I missing something?! IIRC there is nothing manual about Innodb > not supporting spatial extensions. And on windows it seems that all is working > fine. This is from my Win2000 box with the same Mysql version

Re: Incompatibility: FreeBSD+MySQL 4.1.0+InnoDB+Spatial Extensions

2003-09-29 Thread G B U
meone test this and confirm or disconfirm above-mentioned > >> abnormal behaviour. > >> > > > >Currently you can use spatial columns only in the MyISAM tables. > > > Also, the crash described above is fixed in MySQL 4.1.1. GIS features > still are available on

Re: Incompatibility: FreeBSD+MySQL 4.1.0+InnoDB+Spatial Extensions

2003-09-29 Thread Paul DuBois
At 19:16 +0300 9/29/03, Victoria Reznichenko wrote: "G B U" <[EMAIL PROTECTED]> wrote: It seems to me that combination from the subject just doesn't work. Every time I try to incorporate spatial column into Innodb table Mysql dies. The simplest case, easy to repeat is bellow. When I'm trying to

Re: Incompatibility: FreeBSD+MySQL 4.1.0+InnoDB+Spatial Extensions

2003-09-29 Thread Victoria Reznichenko
"G B U" <[EMAIL PROTECTED]> wrote: > > It seems to me that combination from the subject just doesn't work. > Every time I try to incorporate spatial column into Innodb table > Mysql dies. The simplest case, easy to repeat is bellow. > When I'm trying to create table with just one spatial column

Incompatibility: FreeBSD+MySQL 4.1.0+InnoDB+Spatial Extensions

2003-09-29 Thread G B U
Hi It seems to me that combination from the subject just doesn't work. Every time I try to incorporate spatial column into Innodb table Mysql dies. The simplest case, easy to repeat is bellow. When I'm trying to create table with just one spatial column I'm getting following error: mysql> cre

RE: Problems with spatial extensions

2003-08-14 Thread Enrique Andreu
Firstable thanks for all, now I have two more questions: The first, I would like to know if the JDBC driver supports the spatial extensions, and the second question is how much stable is version alpha 4.1 of MySQL? Thanks: Enrique ___ Yahoo

RE: Problems with spatial extensions

2003-08-05 Thread Andy Eastham
> -Original Message- > From: Enrique Andreu [mailto:[EMAIL PROTECTED] > Sent: 05 August 2003 08:08 > To: [EMAIL PROTECTED] > Subject: Problems with spatial extensions > > > Hi, I would like to have a column of a table of the > type GeometryCollection, but when I tr

Problems with spatial extensions

2003-08-05 Thread Enrique Andreu
Hi, I would like to have a column of a table of the type GeometryCollection, but when I try to type a simple example like the ones in the manual, I get this: mysql> CREATE TABLE geom (g GEOMETRY); ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL se

Re: [MySQL Spatial Extensions] Questions?

2003-07-14 Thread Victoria Reznichenko
t; start with: > > 1) For now, is the [EMAIL PROTECTED] the place to discuss MySQL's > Spatial Extensions? Yes. > 2) Are there any plans to create a separate list (e.g. > [EMAIL PROTECTED]) in the future? Nope. -- For technical support contracts, goto https://order.mysql.c

[MySQL Spatial Extensions] Questions?

2003-07-14 Thread Gijsbert Noordam
MySQL's Spatial Extensions? 2) Are there any plans to create a separate list (e.g. [EMAIL PROTECTED]) in the future? Kind regards, Gijsbert Noordam ISIS Benelux BV The Netherlands T +31 345-544 744 F +31 345-544 777