java oracle spatial_Using Java with Oracle Spatial — oracle-tech

I am using the JDBC (Java classes dowloaded from

technet.oracle.com - (sdoapi.zip)) together with Oracle Spatial

8.1.6. I am writing a collection of Linestrings into Oracle

Spatial using the supplied java classes(sdoapi.zip). I use the

function createGeometryCollection(myCollection)to write the

Linestring collection to Oracle Spatial and they are written to

the database without error. However, when I try to read the

object back I get the following error:

Exception in thread "main"

oracle.sdoapi.geom.InvalidGeometryException

at oracle.sdoapi.adapter.AdapterSDO.importGeometry

(AdapterSDO.java:101)

at

MapInfoToOracleSpatial.MapInfoToOracleSpatial.main

(MapInfoToOracleSpatial.java:211)

I do not have a listing of this code so can you please tell me

what the error is (line of code) at line 211. Also, when I use

the Oracle Spatial Index Advisor to view the spatial data, it

only displays a quarter of the data. When I use MapInfo to view

it's equivalent TAB (Table) file it views correctly all the

data.

I can't understand why this is happening because the writing to

oracle and creation of each individual linestring does not

throw an error. It is only when I try to read back larger

objects from the database (2500 points) that it gives an error.

Is there a limitation on the size one can create linestrings?

Thanks

Regards

Stephen Syrett

Mobile Telecommunications Network

(MTN) South Africa

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值