我正尝试从FME Desktop中导入到Oracle DB中的shapefile(表示街道中心线)创建空间网络。 'CENTRELINES'空间对象包含一个GEOM专栏,我想用它作为网络分析的基础,根据路线距离作为成本属性来分配养老院(点)中的救护车设施(点)。任何关于解决Oracle Spatial中病态问题的方法建议都会受到欢迎,但主要问题是我是SQL初学者。我使用Oracle的documentation组成以下SQL语句:创建空间网络时出现SQL语法错误
-- create an LRS geometry network
EXEC SDO_NET.CREATE_LRS_NETWORK(
'LRS_net', -- network name
'CENTRELINES', -- LRS geometry table name
'GEOM', -- LRS geometry column name
1, -- number of hierarchy levels
FALSE, -- directed link?
TRUE -- node with cost?
);
的脚本输出如下:
Error starting at line 2 in command:
EXEC SDO_NET.CREATE_LRS_NETWORK(
Error report:
ORA-06550: line 1, column 34:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
() - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
table continue avg count current exists max min prior sql
stddev sum variance execute multiset the both leading
trailing forall merge year month day hour minute second
timezone_hour timezone_minute timezone_region timezone_abbr
time timestamp interval date
<a string literal with character set specification>
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
...
Error starting at line 9 in command:
)
Error report:
Unknown Command
据我了解,2号线正在生产的错误:
PLS-00103: Encountered the symbol ";" when expecting one of the following...
鉴于需要分号才能结束SQL查询,为什么这是一个问题?
编辑:下面的脚本通过将开始/结束产生的网络:
begin
SDO_NET.CREATE_LRS_NETWORK(
'LRS_net',
'CENTRELINES',
'GEOM',
1,
FALSE,
TRUE);
end;
谢谢您的帮助!
我加入了开始/结束语法: – user2109092 2013-03-27 02:52:18
您需要添加一个分号排队8.改变'TRUE)''到TRUE);'。 – 2013-03-27 03:57:43