Oralce Spatial
1.建立数据库连接
create public database link ytlink
connect to hightop identified by hightop
using '(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.2.137)(PORT=1521))
(CONNECT_DATA=
(SERVER = DEDICATED)(SERVICE_NAME = orcl))
)';
2.跨库查询
select * from police@ytlink
3.创建临时表空间
create temporary tablespace POLICE_TEMP --创建临时表空间
tempfile 'E:\app\Administrator\product\POLICE_TEMP.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
4.删除表空间
drop tablespace POLICE_TEMP including contents and datafiles;--删除表空间
5.创建表空间
create tablespace POLICE --创建表空间
logging
datafile 'E:\app\Administrator\product\POLICE.dbf'
size 500m
autoextend on
next 500m maxsize 20480m
extent management local;
6.创建用户
create user hightop identified by "hightop" --创建用户并制定表空间
default tablespace POLICE
temporary tablespace POLICE_TEMP;
7.删除用户
drop user hightop cascade;--删除用户
8.用户授权
grant all privileges to hightop;--给用户授予权限
9.shp上传oracle
1.shp2sdo shp文件名 表名 -i id -s 4326 -d(在shp2sdo所在路径下执行)
2.SQL> @J:\DY\表名.sql(在plsql的sql命令行执行或sqlplus下执行)
3.sqlldr 用户名/密码@实例名 表名(在安装oracle机器的dos执行)
4.SQL> execute sdo_migrate.to_current('表名','geometry字段名');
5.SQL> CREATE INDEX 索引名 ON 表名(geometry字段名) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
10.空间关系计算
select c.id,s.id from tlmap_village c,cameragps s where sdo_geom.relate(s.geom,'Anyinteract',c.geom,0.000001)='TRUE' --计算点在面内
11.向mdsys.cs_srs中插入crs(以3857为例):
insert into mdsys.cs_srs (cs_name, srid, auth_srid, wktext, wktext3d)
values (
'WGS_1984_Web_Mercator_Auxiliary_Sphere',
3857,
3857,
'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',
''
);
12.SDO_SRID不为NULL时,SDO_SRID必须在MDSYS.CS_SRS 表中的 SRID 列有对应的值,而且它的值必须插入USER_SDO_GEOM_METADATA视图中。
Oralce Spatial的更多相关文章
- oralce 10g 官方认证的操作系统版本
oralce 10g 官方认证的操作系统版本 Operating system x86 Red Hat Enterprise Linux AS/ES 3 (Update 4 ...
- oracle遇到的锁异常,oralce record is locked by another user
由于我在前不久的一次项目调试的时候,将一条数据的ID与另一条数据的ID相同了,但不知为什么没有报错,当在页面发现问题时,删除这条数据时就报错了,oralce record is locked by a ...
- [转]ArcIMS 中地图坐标参考设置(ArcGIS Unknown Spatial Reference)
"ArcGIS Unknown Spatial Reference"问题: shp文件在Arcgis打开后经常因为原有坐标系无法识别而丢失信息,出现以下提示信息: "Un ...
- fMRI: spatial smoothing
Source: Brain voyager support Theoretical Background Spatial smoothing means that data points are av ...
- AE开发实现Spatial Join Analysis
总体网上资料不多,包括esri帮助文档都写的很简单,没有各个string参数如match_option之类的可以输入的string限制,导致在摸索中gp.Execute时报错n回. 结合网上搜集资料及 ...
- csc.rsp Nuget MVC/WebAPI、SignalR、Rx、Json、EntityFramework、OAuth、Spatial
# This file contains command-line options that the C# # command line compiler (CSC) will process as ...
- csc.rsp Nuget MVC/WebAPI 5.0、SignalR 2.0、Rx、Json、Azure、EntityFramework、OAuth、Spatial
# This file contains command-line options that the C# # command line compiler (CSC) will process as ...
- Spatial Transformer Networks(空间变换神经网络)
Reference:Spatial Transformer Networks [Google.DeepMind]Reference:[Theano源码,基于Lasagne] 闲扯:大数据不如小数据 这 ...
- 【Duke-Image】Week_3 Spatial processing
Chapter_3 Intensity Transsformations and Spatial Filtering 灰度变换与空间滤波 Intensity transformation functi ...
随机推荐
- URAL1297:Palindrome——题解
http://acm.timus.ru/problem.aspx?space=1&num=1297 https://vjudge.net/problem/URAL-1297 给定一个字符串,求 ...
- python----测试04.18
# py4测试题 # 1.8 << 2 # 等于? 8转化成二进制:1000 向左移动2位: 0010 0000 转化成十进制:32 # 2.通过内置函数计算5除以2的余数 print(d ...
- 探索CAS无锁技术
前言:关于同步,很多人都知道synchronized,Reentrantlock等加锁技术,这种方式也很好理解,是在线程访问的临界区资源上建立一个阻塞机制,需要线程等待 其它线程释放了锁,它才能运行. ...
- Linq改进
原代码: foreach (var item in pageData) { list.Add(new tn_Manager { UserName = item.UserName, IsAudit = ...
- BZOJ2434: [NOI2011]阿狸的打字机(AC自动机+dfs序+树状数组)
[NOI2011]阿狸的打字机 题目链接:https://www.luogu.org/problemnew/show/P2414 题目背景 阿狸喜欢收藏各种稀奇古怪的东西,最近他淘到一台老式的打字机. ...
- mybatis <where>、<set>、<trim>、<sql>、<foreach>标签的使用
转:http://www.cnblogs.com/lixiujie/p/5766669.html <resultMap>标签的使用:这个类似于hibernte用于映射我们创建的vo对象与数 ...
- bzoj 1098 [POI2007]办公楼biu bfs+补图+双向链表
[POI2007]办公楼biu Time Limit: 20 Sec Memory Limit: 162 MBSubmit: 1543 Solved: 743[Submit][Status][Di ...
- POJ 1753 BFS
Flip Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 44450 Accepted: 19085 Descr ...
- Base class does not contain a constructor that takes '0' argument
刚刚在写一段直播室网站中的一段程序遇,突然遇到一个错误,如下 'TVLLKBLL.BaseClass' does not contain a constructor that takes 0 argu ...
- Redis(3) 配置文件 redis.conf
Redis.conf 配置详解: # Redis configuration file example. # # Note that in order to read the configuratio ...