zakres polygon

0

Witam

przy tworzeniu tabeli w MySQL lepiej utworzyć pole geometryczne jako POLYGON czy GEOMETRY:

CREATE TABLE `geom` (
        `fid` INT(11) NOT NULL, 
        `Name` VARCHAR(50) NOT NULL, 
        `poly` POLYGON NOT NULL,
        `pt` POINT NOT NULL,
        PRIMARY KEY (`Id`),
        SPATIAL KEY (`poly`),
        SPATIAL KEY (`pt`)
) ENGINE=MYISAM

CZY

CREATE TABLE `route` (
  `fid` INT(11) NOT NULL, 
  `Name` varchar(50) NOT NULL,
  `Location` geometry NOT NULL,
  PRIMARY KEY (`fid`),
  SPATIAL KEY `Location` (`Location`)
) ENGINE=MyISAM 

Ma to później jakieś odbicie na wyciąganie tych danych, jakieś parsowanie ?

0

GEOMETRY can store geometry values of any type. The other single-value types (POINT, LINESTRING, and POLYGON) restrict their values to a particular geometry type.

1 użytkowników online, w tym zalogowanych: 0, gości: 1