Re: DataType for storing pointlist (x,y,z)?
- From: "MP" <NoSpam@xxxxxxxxxx>
- Date: Tue, 1 Apr 2008 12:37:22 -0500
Hi Ralph,
"Ralph" <nt_consulting64@xxxxxxxxx> wrote in message
news:g6adnfDtRpyN-W_anZ2dnUVZ_jCdnZ2d@xxxxxxxxxxxxxxx
"MP" <NoSpam@xxxxxxxxxx> wrote in message
news:u4N25P1kIHA.484@xxxxxxxxxxxxxxxxxxxxxxx
If I want to store an array of 3 doubles, what would be best for the data
type of the field?
most likely the incoming data will be either a variant containing an
array
of (2 or 3) doubles
or the array itself (not wrapped in a variant)
It really depends on what these "doubles" mean and if you only have three
or
many.
the 2 or 3 doubles represent a pointlist (x, y, z)
there are either 2 or 3 (x, y) or (x, y, z)
for example, a line has a startpoint and an endpoint which in cartesian
coordinates could be expressed as two pointlists of 3 doubles each (x,y,z).
so if I want to store info in a table about a line i would have (at a
minimum)
fldObjID, fldStartPoint, fldEndpoint
I would be sorely tempted to KISS it off, and store a primary key and then
store the doubles in another associated table.
so in that table the doubles each get a field?
fldPtX
fldPtY
fldPtZ
I could see that working, if I'm understanding you correctly...<g>
so i could have a table tblPoints
with fldPtId, fldPtX, fldPtY, fldPtZ
then in tblLines
instead of ...
fldObjID, fldStartPoint (as adVariant), fldEndpoint (as adVariant)
I would have ...
fldObjID, fldStartPointID (as FK tblPoints:fldPtId), fldEndpointID (as
FK tblPoints:fldPtId)
is that the idea????
A simple getrows() could
provide a variant array.
-ralph
<g>
Thanks again, as always
:-)
mark
.
- Follow-Ups:
- Re: DataType for storing pointlist (x,y,z)?
- From: Ralph
- Re: DataType for storing pointlist (x,y,z)?
- References:
- Re: DataType for storing pointlist (x,y,z)?
- From: Ralph
- Re: DataType for storing pointlist (x,y,z)?
- Prev by Date: Re: DataType for storing pointlist (x,y,z)?
- Next by Date: Re: DataType for storing pointlist (x,y,z)?
- Previous by thread: Re: DataType for storing pointlist (x,y,z)?
- Next by thread: Re: DataType for storing pointlist (x,y,z)?
- Index(es):
Relevant Pages
|
Loading