⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ndb_gis.result

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 RESULT
📖 第 1 页 / 共 3 页
字号:
fid	NumInteriorRings(g)108	0109	1110	0SELECT fid, AsText(InteriorRingN(g, 1)) FROM gis_polygon ORDER by fid;fid	AsText(InteriorRingN(g, 1))108	NULL109	LINESTRING(10 10,20 10,20 20,10 20,10 10)110	NULLexplain extended select AsText(Centroid(g)),Area(g),AsText(ExteriorRing(g)),NumInteriorRings(g),AsText(InteriorRingN(g, 1)) FROM gis_polygon;id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra1	SIMPLE	gis_polygon	ALL	NULL	NULL	NULL	NULL	3	Warnings:Note	1003	select astext(centroid(`test`.`gis_polygon`.`g`)) AS `AsText(Centroid(g))`,area(`test`.`gis_polygon`.`g`) AS `Area(g)`,astext(exteriorring(`test`.`gis_polygon`.`g`)) AS `AsText(ExteriorRing(g))`,numinteriorrings(`test`.`gis_polygon`.`g`) AS `NumInteriorRings(g)`,astext(interiorringn(`test`.`gis_polygon`.`g`,1)) AS `AsText(InteriorRingN(g, 1))` from `test`.`gis_polygon`SELECT fid, IsClosed(g) FROM gis_multi_line ORDER by fid;fid	IsClosed(g)114	0115	0116	0SELECT fid, AsText(Centroid(g)) FROM gis_multi_polygon ORDER by fid;fid	AsText(Centroid(g))117	POINT(55.588527753042 17.426536064114)118	POINT(55.588527753042 17.426536064114)119	POINT(2 2)SELECT fid, Area(g) FROM gis_multi_polygon ORDER by fid;fid	Area(g)117	1684.5118	1684.5119	4.5SELECT fid, NumGeometries(g) from gis_multi_point ORDER by fid;fid	NumGeometries(g)111	4112	4113	2SELECT fid, NumGeometries(g) from gis_multi_line ORDER by fid;fid	NumGeometries(g)114	2115	1116	2SELECT fid, NumGeometries(g) from gis_multi_polygon ORDER by fid;fid	NumGeometries(g)117	2118	2119	1SELECT fid, NumGeometries(g) from gis_geometrycollection ORDER by fid;fid	NumGeometries(g)120	2121	2explain extended SELECT fid, NumGeometries(g) from gis_multi_point;id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra1	SIMPLE	gis_multi_point	ALL	NULL	NULL	NULL	NULL	3	Warnings:Note	1003	select `test`.`gis_multi_point`.`fid` AS `fid`,numgeometries(`test`.`gis_multi_point`.`g`) AS `NumGeometries(g)` from `test`.`gis_multi_point`SELECT fid, AsText(GeometryN(g, 2)) from gis_multi_point ORDER by fid;fid	AsText(GeometryN(g, 2))111	POINT(10 10)112	POINT(11 11)113	POINT(4 10)SELECT fid, AsText(GeometryN(g, 2)) from gis_multi_line ORDER by fid;fid	AsText(GeometryN(g, 2))114	LINESTRING(16 0,16 23,16 48)115	NULL116	LINESTRING(2 5,5 8,21 7)SELECT fid, AsText(GeometryN(g, 2)) from gis_multi_polygon ORDER by fid;fid	AsText(GeometryN(g, 2))117	POLYGON((59 18,67 18,67 13,59 13,59 18))118	POLYGON((59 18,67 18,67 13,59 13,59 18))119	NULLSELECT fid, AsText(GeometryN(g, 2)) from gis_geometrycollection ORDER by fid;fid	AsText(GeometryN(g, 2))120	LINESTRING(0 0,10 10)121	LINESTRING(3 6,7 9)SELECT fid, AsText(GeometryN(g, 1)) from gis_geometrycollection ORDER by fid;fid	AsText(GeometryN(g, 1))120	POINT(0 0)121	POINT(44 6)explain extended SELECT fid, AsText(GeometryN(g, 2)) from gis_multi_point;id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra1	SIMPLE	gis_multi_point	ALL	NULL	NULL	NULL	NULL	3	Warnings:Note	1003	select `test`.`gis_multi_point`.`fid` AS `fid`,astext(geometryn(`test`.`gis_multi_point`.`g`,2)) AS `AsText(GeometryN(g, 2))` from `test`.`gis_multi_point`SELECT g1.fid as first, g2.fid as second,Within(g1.g, g2.g) as w, Contains(g1.g, g2.g) as c, Overlaps(g1.g, g2.g) as o,Equals(g1.g, g2.g) as e, Disjoint(g1.g, g2.g) as d, Touches(g1.g, g2.g) as t,Intersects(g1.g, g2.g) as i, Crosses(g1.g, g2.g) as rFROM gis_geometrycollection g1, gis_geometrycollection g2 ORDER BY first, second;first	second	w	c	o	e	d	t	i	r120	120	1	1	0	1	0	0	1	0120	121	0	0	0	0	0	0	1	0121	120	0	0	1	0	0	0	1	0121	121	1	1	0	1	0	0	1	0explain extended SELECT g1.fid as first, g2.fid as second,Within(g1.g, g2.g) as w, Contains(g1.g, g2.g) as c, Overlaps(g1.g, g2.g) as o,Equals(g1.g, g2.g) as e, Disjoint(g1.g, g2.g) as d, Touches(g1.g, g2.g) as t,Intersects(g1.g, g2.g) as i, Crosses(g1.g, g2.g) as rFROM gis_geometrycollection g1, gis_geometrycollection g2 ORDER BY first, second;id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra1	SIMPLE	g1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort1	SIMPLE	g2	ALL	NULL	NULL	NULL	NULL	2	Warnings:Note	1003	select `test`.`g1`.`fid` AS `first`,`test`.`g2`.`fid` AS `second`,within(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `w`,contains(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `c`,overlaps(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `o`,equals(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `e`,disjoint(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `d`,touches(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `t`,intersects(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `i`,crosses(`test`.`g1`.`g`,`test`.`g2`.`g`) AS `r` from `test`.`gis_geometrycollection` `g1` join `test`.`gis_geometrycollection` `g2` order by `test`.`g1`.`fid`,`test`.`g2`.`fid`DROP TABLE gis_point, gis_line, gis_polygon, gis_multi_point, gis_multi_line, gis_multi_polygon, gis_geometrycollection, gis_geometry;CREATE TABLE t1 (gp  point,ln  linestring,pg  polygon,mp  multipoint,mln multilinestring,mpg multipolygon,gc  geometrycollection,gm  geometry);SHOW FIELDS FROM t1;Field	Type	Null	Key	Default	Extragp	point	YES		NULL	ln	linestring	YES		NULL	pg	polygon	YES		NULL	mp	multipoint	YES		NULL	mln	multilinestring	YES		NULL	mpg	multipolygon	YES		NULL	gc	geometrycollection	YES		NULL	gm	geometry	YES		NULL	ALTER TABLE t1 ADD fid INT;SHOW FIELDS FROM t1;Field	Type	Null	Key	Default	Extragp	point	YES		NULL	ln	linestring	YES		NULL	pg	polygon	YES		NULL	mp	multipoint	YES		NULL	mln	multilinestring	YES		NULL	mpg	multipolygon	YES		NULL	gc	geometrycollection	YES		NULL	gm	geometry	YES		NULL	fid	int(11)	YES		NULL	DROP TABLE t1;create table t1 (a geometry not null);insert into t1 values (GeomFromText('Point(1 2)'));insert into t1 values ('Garbage');ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY fieldinsert IGNORE into t1 values ('Garbage');ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY fielddrop table t1;create table t1 (fl geometry);insert into t1 values (1);ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY fieldinsert into t1 values (1.11);ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY fieldinsert into t1 values ("qwerty");ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY fieldinsert into t1 values (pointfromtext('point(1,1)'));ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY fielddrop table t1;set engine_condition_pushdown = on;DROP TABLE IF EXISTS t1, gis_point, gis_line, gis_polygon, gis_multi_point, gis_multi_line, gis_multi_polygon, gis_geometrycollection, gis_geometry;CREATE TABLE gis_point  (fid INTEGER, g POINT);CREATE TABLE gis_line  (fid INTEGER, g LINESTRING);CREATE TABLE gis_polygon   (fid INTEGER, g POLYGON);CREATE TABLE gis_multi_point (fid INTEGER, g MULTIPOINT);CREATE TABLE gis_multi_line (fid INTEGER, g MULTILINESTRING);CREATE TABLE gis_multi_polygon  (fid INTEGER, g MULTIPOLYGON);CREATE TABLE gis_geometrycollection  (fid INTEGER, g GEOMETRYCOLLECTION);CREATE TABLE gis_geometry (fid INTEGER, g GEOMETRY);SHOW CREATE TABLE gis_point;Table	Create Tablegis_point	CREATE TABLE `gis_point` (  `fid` int(11) default NULL,  `g` point default NULL) ENGINE=ndbcluster DEFAULT CHARSET=latin1SHOW FIELDS FROM gis_point;Field	Type	Null	Key	Default	Extrafid	int(11)	YES		NULL	g	point	YES		NULL	SHOW FIELDS FROM gis_line;Field	Type	Null	Key	Default	Extrafid	int(11)	YES		NULL	g	linestring	YES		NULL	SHOW FIELDS FROM gis_polygon;Field	Type	Null	Key	Default	Extrafid	int(11)	YES		NULL	g	polygon	YES		NULL	SHOW FIELDS FROM gis_multi_point;Field	Type	Null	Key	Default	Extrafid	int(11)	YES		NULL	g	multipoint	YES		NULL	SHOW FIELDS FROM gis_multi_line;Field	Type	Null	Key	Default	Extrafid	int(11)	YES		NULL	g	multilinestring	YES		NULL	SHOW FIELDS FROM gis_multi_polygon;Field	Type	Null	Key	Default	Extrafid	int(11)	YES		NULL	g	multipolygon	YES		NULL	SHOW FIELDS FROM gis_geometrycollection;Field	Type	Null	Key	Default	Extrafid	int(11)	YES		NULL	g	geometrycollection	YES		NULL	SHOW FIELDS FROM gis_geometry;Field	Type	Null	Key	Default	Extrafid	int(11)	YES		NULL	g	geometry	YES		NULL	INSERT INTO gis_point VALUES (101, PointFromText('POINT(10 10)')),(102, PointFromText('POINT(20 10)')),(103, PointFromText('POINT(20 20)')),(104, PointFromWKB(AsWKB(PointFromText('POINT(10 20)'))));INSERT INTO gis_line VALUES(105, LineFromText('LINESTRING(0 0,0 10,10 0)')),(106, LineStringFromText('LINESTRING(10 10,20 10,20 20,10 20,10 10)')),(107, LineStringFromWKB(LineString(Point(10, 10), Point(40, 10))));INSERT INTO gis_polygon VALUES(108, PolygonFromText('POLYGON((10 10,20 10,20 20,10 20,10 10))')),(109, PolyFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))')),(110, PolyFromWKB(Polygon(LineString(Point(0, 0), Point(30, 0), Point(30, 30), Point(0, 0)))));INSERT INTO gis_multi_point VALUES(111, MultiPointFromText('MULTIPOINT(0 0,10 10,10 20,20 20)')),(112, MPointFromText('MULTIPOINT(1 1,11 11,11 21,21 21)')),(113, MPointFromWKB(MultiPoint(Point(3, 6), Point(4, 10))));INSERT INTO gis_multi_line VALUES(114, MultiLineStringFromText('MULTILINESTRING((10 48,10 21,10 0),(16 0,16 23,16 48))')),(115, MLineFromText('MULTILINESTRING((10 48,10 21,10 0))')),(116, MLineFromWKB(MultiLineString(LineString(Point(1, 2), Point(3, 5)), LineString(Point(2, 5), Point(5, 8), Point(21, 7)))));INSERT INTO gis_multi_polygon VALUES(117, MultiPolygonFromText('MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))')),(118, MPolyFromText('MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))')),(119, MPolyFromWKB(MultiPolygon(Polygon(LineString(Point(0, 3), Point(3, 3), Point(3, 0), Point(0, 3))))));INSERT INTO gis_geometrycollection VALUES(120, GeomCollFromText('GEOMETRYCOLLECTION(POINT(0 0), LINESTRING(0 0,10 10))')),(121, GeometryFromWKB(GeometryCollection(Point(44, 6), LineString(Point(3, 6), Point(7, 9)))));INSERT into gis_geometry SELECT * FROM gis_point;INSERT into gis_geometry SELECT * FROM gis_line;INSERT into gis_geometry SELECT * FROM gis_polygon;INSERT into gis_geometry SELECT * FROM gis_multi_point;INSERT into gis_geometry SELECT * FROM gis_multi_line;INSERT into gis_geometry SELECT * FROM gis_multi_polygon;INSERT into gis_geometry SELECT * FROM gis_geometrycollection;SELECT fid, AsText(g) FROM gis_point ORDER by fid;fid	AsText(g)101	POINT(10 10)102	POINT(20 10)103	POINT(20 20)104	POINT(10 20)SELECT fid, AsText(g) FROM gis_line ORDER by fid;fid	AsText(g)105	LINESTRING(0 0,0 10,10 0)106	LINESTRING(10 10,20 10,20 20,10 20,10 10)107	LINESTRING(10 10,40 10)SELECT fid, AsText(g) FROM gis_polygon ORDER by fid;fid	AsText(g)108	POLYGON((10 10,20 10,20 20,10 20,10 10))109	POLYGON((0 0,50 0,50 50,0 50,0 0),(10 10,20 10,20 20,10 20,10 10))110	POLYGON((0 0,30 0,30 30,0 0))SELECT fid, AsText(g) FROM gis_multi_point ORDER by fid;fid	AsText(g)111	MULTIPOINT(0 0,10 10,10 20,20 20)112	MULTIPOINT(1 1,11 11,11 21,21 21)113	MULTIPOINT(3 6,4 10)SELECT fid, AsText(g) FROM gis_multi_line ORDER by fid;fid	AsText(g)114	MULTILINESTRING((10 48,10 21,10 0),(16 0,16 23,16 48))115	MULTILINESTRING((10 48,10 21,10 0))116	MULTILINESTRING((1 2,3 5),(2 5,5 8,21 7))SELECT fid, AsText(g) FROM gis_multi_polygon ORDER by fid;fid	AsText(g)117	MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))118	MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))119	MULTIPOLYGON(((0 3,3 3,3 0,0 3)))SELECT fid, AsText(g) FROM gis_geometrycollection ORDER by fid;fid	AsText(g)120	GEOMETRYCOLLECTION(POINT(0 0),LINESTRING(0 0,10 10))121	GEOMETRYCOLLECTION(POINT(44 6),LINESTRING(3 6,7 9))SELECT fid, AsText(g) FROM gis_geometry ORDER by fid;fid	AsText(g)101	POINT(10 10)102	POINT(20 10)103	POINT(20 20)104	POINT(10 20)105	LINESTRING(0 0,0 10,10 0)106	LINESTRING(10 10,20 10,20 20,10 20,10 10)107	LINESTRING(10 10,40 10)108	POLYGON((10 10,20 10,20 20,10 20,10 10))109	POLYGON((0 0,50 0,50 50,0 50,0 0),(10 10,20 10,20 20,10 20,10 10))110	POLYGON((0 0,30 0,30 30,0 0))111	MULTIPOINT(0 0,10 10,10 20,20 20)112	MULTIPOINT(1 1,11 11,11 21,21 21)113	MULTIPOINT(3 6,4 10)114	MULTILINESTRING((10 48,10 21,10 0),(16 0,16 23,16 48))115	MULTILINESTRING((10 48,10 21,10 0))116	MULTILINESTRING((1 2,3 5),(2 5,5 8,21 7))117	MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))118	MULTIPOLYGON(((28 26,28 0,84 0,84 42,28 26),(52 18,66 23,73 9,48 6,52 18)),((59 18,67 18,67 13,59 13,59 18)))119	MULTIPOLYGON(((0 3,3 3,3 0,0 3)))120	GEOMETRYCOLLECTION(POINT(0 0),LINESTRING(0 0,10 10))121	GEOMETRYCOLLECTION(POINT(44 6),LINESTRING(3 6,7 9))SELECT fid, Dimension(g) FROM gis_geometry ORDER by fid;fid	Dimension(g)101	0102	0103	0104	0105	1106	1107	1108	2109	2110	2111	0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -