Hi Andrea,
The sql script is:
–CREATE TABLE
create table EGEOTRECHO2D
(
SGRODOVIA CHAR(6) not null,
CDTRECHO NUMBER(3) not null,
DTATUALIZA DATE,
GMTRECHO2D MDSYS.SDO_GEOMETRY
)
–METADATA
insert into user_sdo_geom_metadata
(TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
values
(‘EGEOTRECHO2D’,
‘GMTRECHO2D’,
sdo_dim_array(sdo_dim_element(‘X’, 227737.932890026, 757720.019527611, 0.005),
SDO_DIM_ELEMENT(‘Y’, 6755279.99936535,7124727.00079743, 0.005)),
29192);
–DATA INSERTS
insert into egeotrecho2d (sgrodovia, cdtrecho, gmtrecho2d)values
(‘SC402’,
102,
sdo_geometry(2002,
29192,
NULL,
sdo_elem_info_array(1, 2, 1),
sdo_ordinate_array(593236.000174423,
6856399.00003553,
593228.999086416,
6856423.00054755,
593234.000302421,
6856447.00003557,
593239.000494426,
6856509.00016363,
593209.999790399,
6856570.00086768,
593207.000494396,
6856597.00067571,
593207.010734396,
6856597.06416371,
593207.645614396,
6856600.61744371,
593212.0006864,
6856625.00093174,
593213.479342402,
6856659.03971577,
593213.999534402,
6856671.00003578,
593210.347950399,
6856681.55133179,
593204.999598394,
6856697.0004198,
593165.198766357,
6856748.17277185)));
insert into egeotrecho2d
(sgrodovia, cdtrecho, gmtrecho2d)
values
(‘SC401’,
101,
sdo_geometry(2002,
29192,
NULL,
sdo_elem_info_array(1, 2, 1),
sdo_ordinate_array(593163.000238355,
6856751.00003585,
593162.969518355,
6856751.03075585,
593162.963374355,
6856751.03689985,
593055.999406255,
6856860.00073995,
593041.005998241,
6856879.99331597,
593040.999854241,
6856879.99843597,
592989.999534194,
6856911.000036,
592986.742190191,
6856912.32714,
592962.999726169,
6856922.00086801,
592934.000046142,
6856923.00131601,
592886.000046097,
6856901.00067599,
592885.752238097,
6856901.02832399,
592868.315566081,
6856902.96573199,
592868.00017408,
6856903.00054799)));
insert into egeotrecho2d
(sgrodovia, cdtrecho, gmtrecho2d)
values
(‘SC401’,
101,
sdo_geometry(2002,
29192,
NULL,
sdo_elem_info_array(1, 2, 1),
sdo_ordinate_array(592867.47076608,
6856903.38249999,
592844.091822058,
6856920.21501201,
592843.000238057,
6856921.00042001,
592821.999022037,
6856980.99965207,
592761.000365981,
6857046.99952413,
592742.000045963,
6857060.00022814,
592725.508525947,
6857065.24822815,
592720.000429942,
6857067.00029215,
592711.841197935,
6857066.62960415,
592698.000813922,
6857065.99984415,
592654.999981882,
6857056.99990814,
592608.880045839,
6857041.78019612,
592555.000237789,
6857023.99946011,
592543.430061778,
6857022.00573211,
592526.001581762,
6857019.0002921,
592500.000173737)));
–CREATE INDEX
create index egeotrecho2d_sidx on egeotrecho2d(gmtrecho2d) indextype is mdsys.spatial_index;
Best Regards,
Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@anonymised.com
Date: Thu, 5 Mar 2009 15:48:01 -0500
From: aaime@anonymised.com
To: fsquadro@anonymised.com
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GeoServer and Oracle Locator
Fernando Quadro wrote:
Hi Andrea,
The columns that dont appear are: SGRODOVIA, CDTRECHO.
The sql script is:
create table EGEOTRECHO2D
(
SGRODOVIA CHAR(6) not null,
CDTRECHO NUMBER(3) not null,
DTATUALIZA DATE,
GMTRECHO2D MDSYS.SDO_GEOMETRY
)
tablespace SIDER
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
Some Idea?
Hmmm… unsure. Which Oracle datastore and GeoServer version
are you using?
Afaik the latest nightly build of GeoServer + the Oracle NG
driver should be able to handle all of those columns:
http://gridlock.openplans.org/geoserver/1.7.x/
(pick the Marth 5 build).
I believe the CHAR column was not handled up to one week ago,
bbut the number and date one should have…
Do you have a full script (create table, registration in
metadata, index creation, a few rows of data) so that I can
double check against my local build?
Cheers
Andrea
Conheça já o Windows Live Spaces, o site de relacionamentos do Messenger! Crie já o seu!