Spatial Extension not turned on

------=_NextPart_000_0007_01C5CEC7.744D3D80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I don't seem to be able to locate a Win32 binary distribution of MySQL =
that includes the spatial extension. I tried version 4.1.14 and the =
spatial functions do not work. The documentation says the spatial =
extension is available in version 4.1 and later. I found a beta release =
that had the spatial extension compiled in, but it did not work with PHP =
and Apache. Any help would be appreciated. Has anyone else had this =
problem? Do I need to compile the source myself?

Thanks,

Garry
------=_NextPart_000_0007_01C5CEC7.744D3D80--
Garry Washburn [ Mi, 12 Oktober 2005 06:54 ] [ ID #1007907 ]

Re: Spatial Extension not turned on

Garry,

I have an interest in this extension, too, but my target is Linux
not Windows.

I don't know if it's included in the Linux binary. However, knowing how
to compile the MySQL distribution is useful, if only to be able to alter
preset parameters. There's lots of hand-holding out there available to
help you along. I wouldn't be afraid of it.

- Jan


On Wed, 12 Oct 2005 00:54:09 -0400, "Garry Washburn"
<gwashburn [at] goldimaging.com> said:
> I don't seem to be able to locate a Win32 binary distribution of MySQL
> that includes the spatial extension. I tried version 4.1.14 and the
> spatial functions do not work. The documentation says the spatial
> extension is available in version 4.1 and later. I found a beta
> release that had the spatial extension compiled in, but it did not
> work with PHP and Apache. Any help would be appreciated. Has anyone
> else had this problem? Do I need to compile the source myself?
>
> Thanks,
>
> Garry
--
Jan Theodore Galkowski (o=B0) =

jtgalkowski [at] alum.mit.edu
http://www.smalltalkidiom.net



--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32 [at] m.gmane.org
Jan Theodore Galkowsk [ Do, 20 Oktober 2005 01:21 ] [ ID #1021965 ]

Consulta complexa


Bom dia,

estou num dilema, tenho que fazer um cadastro que poderia gerar algo:

tabela 1 1 ---------->N tabela 2

A tabela um s=E3o os dados gerais de um equipamento e a tabela dois sao =
as
coisas que este esquipamento pode ou nao ter. Bom occorre que para cada
equipaemnto eu posso ter at=E9 700 itens na tabela 2.
ex:

equipamento A tem dos 700 possiveis 400 itens e termos 3.000 =
equipementos
cadastrados

eu pensei em fazer um unico registro e desprezar a normalizacao com 750
campos( 50 agrupando os dados gerais do equipamento e mais 700 registor =
sdo
tipo boleano) Contudo isso ficaria um registro enorme.

Pergunta:

Eu preciso fazer a seguinte consulta:

se fosse normalizado

qual o numero do equipamento ( tabela 1 ) que tem o item 1 , 2 , 3, 134 =
mas
que nao tenha o Item 24, 38

Eu havia pensado em s=F3 gravar os itens que existissem no equipamento =
para
economizar espaco. Sera que =E9 possivel? como fazer esse select?

Alguem pode me ajudar?

Franco Catena



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/10/2005


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32 [at] m.gmane.org
facatena [ Do, 20 Oktober 2005 11:26 ] [ ID #1021968 ]

Re: Consulta complexa

On 10/20/05, Franco Catena <facatena [at] surson.com.br> wrote:
>
> Bom dia,

Bom dia, essa lista =E9 apenas em Ingl=EAs, sinto, mas n=E3o vais obter
muitas respostas formulando a pergunta em portugu=EAs, aconselho-te a
traduzir o email e reenviar.

Good morning, this list is english only, sorry, but you won't get many
answes with your question in portuguese, I advice you to translate and
repost it.

> estou num dilema, tenho que fazer um cadastro que poderia gerar algo:
>
> tabela 1 1 ---------->N tabela 2
>
> A tabela um s=E3o os dados gerais de um equipamento e a tabela dois sao a=
s
> coisas que este esquipamento pode ou nao ter. Bom occorre que para cada
> equipaemnto eu posso ter at=E9 700 itens na tabela 2.
> ex:
>
> equipamento A tem dos 700 possiveis 400 itens e termos 3.000 equipementos
> cadastrados
>
> eu pensei em fazer um unico registro e desprezar a normalizacao com 750
> campos( 50 agrupando os dados gerais do equipamento e mais 700 registor =
sdo
> tipo boleano) Contudo isso ficaria um registro enorme.

Muito grande mesmo, com 3000 equipamentos isso seria imenso, mas tenha
em mente que os campos s=E3o relativamente pequenos (em termos de
armazenagem)

> Pergunta:
>
> Eu preciso fazer a seguinte consulta:
>
> se fosse normalizado
>
> Eu havia pensado em s=F3 gravar os itens que existissem no equipamento p=
ara
> economizar espaco. Sera que =E9 possivel? como fazer esse select?

Eu criaria 3 tabelas (antes de come=E7ar a pensar leia o resto),
colocando todas as caracter=EDsticas que voc=EA disse (tabela B) em uma,
todos os equipamentos em outra (Tabela A) e numa tabela C colocaria
apenas os identificadores, assim:

Tabela A:
Id_equip
Nome
Modelo

Tabela B:
Id_caract
Caracter=EDstica

Tabela C:
Id_equip
Id_caract

Selecionando tudo na tabela C que tiver o identificador do equipamento
E o identificador da caracter=EDstica voc=EA sabe todos os que tem esta
caracter=EDstica, contando com cont(*) voc=EA acaba tendo todos os que tem
uma e n=E3o tem outra (=E9 s=F3 mudar a cl=E1usula select). T=F4 com pregui=
=E7a de
criar a SQL agora, mas tenho certeza que voc=EA pode pensar nisso.

--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------

--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32 [at] m.gmane.org
Daniel da Veiga [ Do, 20 Oktober 2005 15:11 ] [ ID #1021972 ]

RE: Consulta complexa

English Please!!!!!

-----Original Message-----
From: F=E1bio L=FAcio Meira [mailto:fabiomeira [at] saocamilo-es.br]
Sent: 20 October 2005 14:50
To: win32 [at] lists.mysql.com
Subject: RES: Consulta complexa


Camarada. Testei a solu=E7=E3o proposta e realmente ela =E9 funcional. =
Se voc=EA for
realizar muitas consultas, indexe todos os campos que s=E3o utilizados =
no
processo de jun=E7=E3o - chaves prim=E1ria e estrangeira (na vers=E3o =
INNODB isto j=E1
=E9 obrigat=F3rio). Esta indexa=E7=E3o acelera a consulta, por=E9m =
atrasa a
manipula=E7=E3o (inser=E7=E3o, altera=E7=E3o e exclus=E3o).
[]s

-----Mensagem original-----
De: F=E1bio L=FAcio Meira [mailto:fabiomeira [at] saocamilo-es.br]
Enviada em: quinta-feira, 20 de outubro de 2005 11:30
Para: win32 [at] lists.mysql.com
Assunto: RES: Consulta complexa

Concordo com o Daniel. Gere as tabelas no esquema:



equipamento =3D codigo | descricao

componente =3D codigo | descricao

eq_cp =3D equipamento | componente





Talvez uma solu=E7=E3o poss=EDvel seja:



select descricao

from equipamento e

where

exists

(select *

from componente c, eq_cp ec

where e.codigo =3D ec.equipamento and

ec.componente in (cod1, cod2, cod3, ..., codn)) --> =
componentes
desejados

and

not exists

(select *

from componente c, eq_cp ec

where e.codigo =3D ec.equipamento and

ec.componente in (cod1, cod2, cod3, ..., codn)); --> =
componentes
n=E3o desejados





Por=E9m eu n=E3o testei.

[]s





-----Mensagem original-----
De: Franco Catena [mailto:facatena [at] surson.com.br]
Enviada em: quinta-feira, 20 de outubro de 2005 07:27
Para: win32 [at] lists.mysql.com
Assunto: Consulta complexa





Bom dia,



estou num dilema, tenho que fazer um cadastro que poderia gerar algo:



tabela 1 1 ---------->N tabela 2



A tabela um s=E3o os dados gerais de um equipamento e a tabela dois sao =
as

coisas que este esquipamento pode ou nao ter. Bom occorre que para cada

equipaemnto eu posso ter at=E9 700 itens na tabela 2.

ex:



equipamento A tem dos 700 possiveis 400 itens e termos 3.000 =
equipementos

cadastrados



eu pensei em fazer um unico registro e desprezar a normalizacao com 750

campos( 50 agrupando os dados gerais do equipamento e mais 700 registor =
sdo

tipo boleano) Contudo isso ficaria um registro enorme.



Pergunta:



Eu preciso fazer a seguinte consulta:



se fosse normalizado



qual o numero do equipamento ( tabela 1 ) que tem o item 1 , 2 , 3, 134 =
mas

que nao tenha o Item 24, 38



Eu havia pensado em s=F3 gravar os itens que existissem no equipamento =
para

economizar espaco. Sera que =E9 possivel? como fazer esse select?



Alguem pode me ajudar?



Franco Catena







--

No virus found in this outgoing message.

Checked by AVG Anti-Virus.

Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: =
19/10/2005





--

MySQL Windows Mailing List

For list archives: http://lists.mysql.com/win32

To unsubscribe:
http://lists.mysql.com/win32?unsub=3Dfabiomeira [at] saocamilo-es .br



--

MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: =
http://lists.mysql.com/win32?unsub=3Dt.vanstratum [at] albanet.co .uk


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=3Dgcdmw-win32 [at] m.gmane.org
Theo Van Stratum [ Do, 20 Oktober 2005 15:43 ] [ ID #1021976 ]

Re: Spatial Extension not turned on

Thanks Jan,

I will look into compiling it myself. Would you happen to know of a good C
compiler for the job on Windows?

Garry

----- Original Message -----
From: "Jan Theodore Galkowski" <jtgalkowski [at] alum.mit.edu>
To: <win32 [at] lists.mysql.com>
Sent: Wednesday, October 19, 2005 7:21 PM
Subject: Re: Spatial Extension not turned on


Garry,

I have an interest in this extension, too, but my target is Linux
not Windows.

I don't know if it's included in the Linux binary. However, knowing how
to compile the MySQL distribution is useful, if only to be able to alter
preset parameters. There's lots of hand-holding out there available to
help you along. I wouldn't be afraid of it.

- Jan


On Wed, 12 Oct 2005 00:54:09 -0400, "Garry Washburn"
<gwashburn [at] goldimaging.com> said:
> I don't seem to be able to locate a Win32 binary distribution of MySQL
> that includes the spatial extension. I tried version 4.1.14 and the
> spatial functions do not work. The documentation says the spatial
> extension is available in version 4.1 and later. I found a beta
> release that had the spatial extension compiled in, but it did not
> work with PHP and Apache. Any help would be appreciated. Has anyone
> else had this problem? Do I need to compile the source myself?
>
> Thanks,
>
> Garry
--
Jan Theodore Galkowski (o°)
jtgalkowski [at] alum.mit.edu
http://www.smalltalkidiom.net

--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/win32?unsub=gcdmw-win32 [at] m.gmane.org
Garry Washburn [ Do, 20 Oktober 2005 20:34 ] [ ID #1021982 ]
Datenbanken » gmane.comp.db.mysql.windows » Spatial Extension not turned on

Vorheriges Thema: Wanted: Authors to assist with a MySQL on Windows book.
Nächstes Thema: Spatial Extension on Windows