2009년 05월 27일
그분의 연설
조선 건국이래로 600년동안 우리는
권력에 맞서서 권력을 한번도 바꾸어보지 못했습니다.
비록 그것이 정의라 할지라도
비록 그것이 진리라 할지라도
권력이 싫어하는 말을 했던 사람은,
또는 진리를 내세워 권력에 저항했던 사람들은 모두..
죽임을 당했습니다. 그 자손들까지.....
# by | 2009/05/27 13:07 | 트랙백 | 덧글(0)






# by | 2009/05/26 14:29 | :) FreeBoard | 트랙백 | 덧글(2)
# by | 2008/12/04 13:38 | :) FreeBoard | 트랙백 | 덧글(0)
# by | 2008/11/13 11:24 | 트랙백 | 덧글(0)
참고 URL
- http://bluemarble.tistory.com/31
- http://howto-use-mysql-spatial-ext.blogspot.com/
- http://jeremy.zawodny.com/blog/archives/000418.html
[1] 테이블 생성
CREATE TABLE IF NOT EXISTS `zz` (
`no` int(10) unsigned NOT NULL auto_increment,
`id` varchar(100) NOT NULL,
`x` varchar(30) NOT NULL,
`y` varchar(30) NOT NULL,
`gcode` point NOT NULL,
`date_update` int(10) NOT NULL default '0',
PRIMARY KEY (`no`),
KEY `ep_id` (`ep_id`),
KEY `x` (`x`),
KEY `y` (`y`),
SPATIAL KEY `gcode` (`gcode`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1846098 ;
[2] 다른 테이블의 데이터를 컨버팅하여 인서트 하는 경우
INSERT INTO `geo`.`zz`
SELECT no, id, x, y, geomfromtext(CONCAT( 'POINT(', x, ' ', y, ')' )), date_update
FROM `geo`.`qq`
[3] 기본 검색
select ep_id,x,y,astext(gcode) from zz
where X(gcode) < 127.45975555556
and X(gcode) > 127.55975555556
and Y(gcode) < 36.859327777778
and Y(gcode) > 36.759327777778
order by gcode asc
select ep_id,x,y,astext(gcode) from zz
where X(gcode) between 127.45975555556 and 127.55975555556
and Y(gcode) between 36.859327777778 and 36.959327777778
order by gcode asc
[4] 확장검색
//////////////////////////////////////////////////////////////////////////////////////////////////
Find points in a bounding box.
SET @bbox = 'POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))';
SELECT name, AsText(location) FROM Points WHERE Intersects( location, GeomFromText(@bbox) );
SET @bbox = 'POLYGON((126.76979814129 37.757124907164, 126.78137292149 37.757124907164, 126.78137292149 37.762572804209, 126.76979814129 37.762572804209, 126.76979814129 37.757124907164))';
SELECT ep_id,x,y, AsText(gcode) FROM zz WHERE Intersects( gcode, GeomFromText(@bbox) );
//////////////////////////////////////////////////////////////////////////////////////////////////
Array ( [X] => 126.76979814129 [Y] => 37.762572804209 ) Array ( [X] => 126.78137292149 [Y] => 37.757124907164 )
# by | 2008/11/06 14:40 | :( DataBase | 트랙백 | 덧글(0)
◀ 이전 페이지다음 페이지 ▶