Querying data in MySQL Geometry data type column
问题 I have a table that stores polygons in a GEOMETRY data type column that I loaded via a shapefile using ogr2ogr. Here's the create statement: CREATE TABLE IF NOT EXISTS `sunzones` ( `OGR_FID` int(11) NOT NULL AUTO_INCREMENT, `polygon` geometry NOT NULL, UNIQUE KEY `OGR_FID` (`OGR_FID`), SPATIAL KEY `polygon` (`polygon`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=105 ; Here is a sample record: POLYGON((449455.354522821 2447255.57758461,449700.419971925 2447132.08575524,449970