SQL Server自带的导入导出功能可以导普通的属性表:

但是,如果你要复制的表中存在Geometry字段,如果用Sql server自带的导入导出表的功能将无法导入带Geometry字段的表。可以用insert into select语句将一个表中的数据复制到另一表中:
两个表在同一数据库中:
insert INTO mapping_geodata_boundary_code(code, name, description, type, parent_code, boundary, center_point, boundary_hole, boundary_hole_id, is_thematicmap, supportfile_code, boundary_All)
SELECT code, name, description, type, parent_code, boundary, center_point, boundary_hole, boundary_hole_id, is_thematicmap, supportfile_code, boundary_All from mapping_geodata_boundary
两个表在不同数据库中( OPENQUERY):
insert mapping_geodata_boundary
(code, name, description, type, parent_code, boundary, center_point, boundary_hole, boundary_hole_id, is_thematicmap)
SELECT code, name, description, type, parent_code, boundary, center_point, boundary_hole, boundary_hole_id, is_thematicmap from OPENQUERY([10.10.1.31],'select code, name, description, type, parent_code, boundary, center_point, boundary_hole, boundary_hole_id,
is_thematicmap from epro30.dbo.mapping_geodata_boundary')
如果在不同的数据库中,还需要创建数据库链:

分享到:
相关推荐
本文将详细解释如何通过EclipseLink和JPA来映射和操作SDO_GEOMETRY字段。 首先,为了能够在EclipseLink中处理SDO_GEOMETRY字段,你需要引入Oracle提供的特定jar包,这些包包含了处理Oracle空间数据类型的类和接口。...
INSERT INTO user_sdo_geom_metadata VALUES ( 'G_GADGETS_TC2_LF_520', 'SHAPE', MDSYS.SDO_DIM_ARRAY( MDSYS.SDO_DIM_ELEMENT('X', -180, 180, 0.005), MDSYS.SDO_DIM_ELEMENT('Y', -90, 90, 0.005) ), ...
在保存或查询这类对象时,Hibernate Spatial会自动进行类型转换,将Java中的geometry对象转化为SQL语句中的WKT(Well-Known Text)或WKB(Well-Known Binary)格式。 在实际操作中,你可能还需要使用JTS(Java ...
INSERT INTO PROV (SHAPE) VALUES (SDO_GEOMETRY('POINT(120 30)', 8307)); 三、空间查询 在进行空间查询之前,需要授予当前用户查询选择 SDE 用户的 PROV 表的权限。例如,以下是授予权限的 SQL 语句: GRANT ...
支持postgresql的geometry类型数据同步,使用方法:将下载的datax压缩包替换本地的datax即可,注:下载的datax目录plugin的reader和writer只保留了postgresql和rdbms模块,如需其它数据库模块,将其复制进来即可。
通过使用ST_Geometry,用户能够更有效率地利用数据库资源,并且能够与其他Oracle数据库特性如复制和分区兼容。 ST_Geometry的配置可以应用于不同的操作系统环境,包括Windows、Linux和Unix。文档中提到了Oracle监听...
- 你可以使用`OleDbCommand`构建SQL查询语句,例如`SELECT * FROM TableName WHERE ColumnName = 'SomeValue'`来进行属性查询。 - `ExecuteReader()`方法执行查询并返回一个`OleDbDataReader`,你可以遍历这个数据...
解决 Oracle 安装 SDE 报 ST_Geometry 错误的方法 在安装 Oracle 数据库和 SDE(Spatial Database Engine)时,可能会遇到 ST_Geometry 错误的问题。本文将详细介绍解决该错误的方法。 一、安装顺序和流程 在安装...
* 支持多种数据类型:OCCI 可以支持多种 Oracle 数据库中的数据类型,包括 SDO_GEOMETRY 字段。 * 提高开发效率:使用 OCCI 可以提高开发效率,减少开发时间和成本。 * 提高数据安全性:OCCI 可以确保数据的安全性,...
在 Oracle RAC 环境下,配置 ST_Geometry 技术可以实现高效的空间数据处理和分析。以下是 Oracle RAC 配置 ST_Geometry 技术文档的详细说明: 标题:Oracle RAC 配置 ST_Geometry 技术文档 描述:本文档实例介绍 ...
对于包含更复杂几何类型的表(如线和面),数据库中的`geometry`字段通常存储了这些对象的WKT(Well-Known Text)或WKB(Well-Known Binary)表示。导出时,需要解析这些几何数据,将其转换为Shapefile的二进制格式...
2. **局部轴对齐**:除了可以沿全局x、y、z轴进行投影,Geometry Projection还支持基于对象局部坐标系的投影,这意味着你可以更自由地控制投影方向,适应各种复杂的建模需求。 3. **顶点选择**:在需要精确控制投影...
3. 位置服务:移动应用中,如共享单车、打车软件,S2Geometry可以提高位置查询和匹配的准确性。 4. 游戏开发:在需要处理球面空间的游戏场景中,S2Geometry提供了一套实用的几何工具。 综上所述,S2Geometry库是...
例如,如果你有一个实体类`GSegmentsTc2`,其中有一个`Shape`属性映射到SDO_GEOMETRY类型的数据库字段,你可以通过以下方式获取和打印其WKT(Well-Known Text)表示: ```java List<GSegmentsTc2> segList = ...
INSERT INTO locations (name, location) VALUES ('北京', ST_GeomFromText('POINT(116.4074 39.9042)', 4326)); ``` 这里,4326是EPSG(欧洲石油勘探协会)编码,代表WGS84坐标系,全球最常用的经纬度参考系统。...
Computational Geometry: Algorithms and Applications, 3rd ed (2008), De Berg et al. Authors: Mark de Berg, Otfried Cheong, Marc van Kreveld, Mark Overmars Publisher: Springer; 3rd edition (April 16, ...
This is a textbook for an undergraduate course in axiomatic geometry. The text is targeted at mathematics students who have completed the calculus sequence and perhaps a first course in linear algebra...
自ArcSDE推出ST_Geometry存储类型以来,用户可以直接通过SQL语句来查询和操作空间数据,极大地提高了空间数据处理的灵活性和效率。本文将详细介绍如何配置SQL空间查询ST_Geometry,以便于更好地利用ArcGIS进行空间...
Information geometry provides the mathematical sciences with a new framework of analysis. It has emerged from the investigation of the natural differential geometric structure on manifolds of ...