I have a mysql table with a field of the type POLYGON, containing a number of polygons, however I have discovered I also need to store POINTS.
I'd like to store the geometry types POLYGONS and POINTS in the same field.
The manual page suggests this is possible, by using the data type GEOMETRY.
Are there any drawbacks to using the more generic geometry type GEOMETRY to do this? Will I be losing access to any extra functionality by mixing POLYGONS and POINTS when I come to query this data at a later stage?
EDITED
To clarify my situation:
I have a table call it 'locations' each location will either best be described as a single POINT or an area a POLYGON but they will always have either one or the other.
So should the structure resemble:
locations:
id int
title var
single_point (POINT)
area (POLYGON)
or
locations:
id int
title var
coords (GEOMETRY)
or, as suggested in the comments below a 3 table solution?
The points and polygons will be baked into kml files in the first instance for display in web maps.
I envisage that the geometry fields will be indexed in order to make the best use of other spatial type queries in the future (nearest, largest area and so on).