SELECT sde.st_area(zone) from sde.test1 ORDER BY name;//
SELECT shape from schools ORDER BY name;
SELECT objectid, sde.st_astext(SDE.ST_POINTfromSHAPE(shape,0)) AS points from schools;
SELECT name, sde.st_x (zone) "The X coordinate" from test ; //正确执行
SELECT name, sde.st_x (shape) "The X coordinate" from dijishi; //报错
//对于不是SQL语句生成的表格,比如shp文件import进来的,上面语句报错。SQL语句建立的表格空间字段为geometry,
而导入进去的表格shape字段也显示为geometry,但是同样的语句报错。
问题已解决,0表示用的spatial参数,spatial表名为st_spatial_references
SELECT id, st_astext (shape) AS geometry from schools;
CREATE TABLE Test(OBJECTID integer, name varchar(128), type varchar(10), zone sde.st_geometry);
CREATE TABLE Test1(OBJECTID integer, name varchar(128), type varchar(10), zone sde.st_geometry);
select * from sys.all_indexes t where t.owner='sde' AND T.INDEX_TYPE='DOMAIN';
select owner,index_name from sys.all_indexes where owner='sde';
select owner,index_name from all_indexes where domidx_status != 'VALID' or domidx_opstatus !='VALID';
drop index from sys.all_indexes where domidx_status != 'VALID' or domidx_opstatus !='VALID';
grant CREATE TYPE to SDE;
grant UNLIMITED TABLESPACE to SDE;
grant CREATE LIBRARY to SDE;
grant CREATE OPERATOR to SDE;
grant CREATE INDEXTYPE to SDE;
grant CREATE PUBLIC SYNONYM to SDE;
grant DROP PUBLIC SYNONYM to SDE;
sdelayer -o register -l Test,zone -e p -C area_id,SDE -u sde -p petrol -t ST_GEOMETRY
-u 为用户 -p为密码
sdelayer -o register -l SIP_LAND,SHAPE -e ac+ -P BASIC -C FID,sde -u eplan -
p 123 -i esri_sde
INSERT INTO sde.Test1(name,area_id,type,zone) VALUES ('第3小学',3, 'school', sde.ST_PolyfromText('polygon ((76.8213 31.4152,76.8213 41.4027,126.8325 41.4017,126.8337 31.4162,76.8213 31.4152))',2));
INSERT INTO sde.Test1(OBJECTID, name,area_id,type,zone) VALUES (9, '第9区域',9, 'school9', sde.ST_PolyfromText('polygon ((16.8213 31.4152,16.8213 4
oracle的odbc网关(gateway)几乎提供一个无线的数据整合平台,在oracle和其它RDBMS之间,我在这不想说它的,操作,限制以及相关性,它解决了一个小问题,把它建立起来你能,例如,创建一个 database link 在oracle 和oracle之间,毕竟,这样不是很好么,例如你能运行下面的sql语句,
select o.col1, m.col1 from or ......