Maybe it works for the test coordinate system (srid=32632) but not for my
coordinate system (srid=90112).
Could you test it with the following:
String sql = "CREATE TABLE CURVES (" + "id INT, name
VARCHAR(64), geometry MDSYS.SDO_GEOMETRY, PRIMARY KEY(id))"; run(sql);
sql = "INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME,
DIMINFO, SRID ) " + "VALUES
('curves','geometry',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',0,1000000,0.0005),
" + "MDSYS.SDO_DIM_ELEMENT('Y',0,1000000,0.0005)), 90112)";
run(sql);
sql = "CREATE INDEX CURVES_GEOMETRY_IDX ON CURVES(GEOMETRY) INDEXTYPE
IS MDSYS.SPATIAL_INDEX" // + " PARAMETERS ('SDO_INDX_DIMS=2')";
run(sql);
// adding data sql = "INSERT INTO CURVES VALUES (0, 'Arc
segment', " + "sdo_geometry (2002, 90112, null,
sdo_elem_info_array (1,2,2), sdo_ordinate_array (263333, 472000, 263383,
472050, 263433, 472000)))"; run(sql);
This is not visualised in my case.
On Saturday, 25 April 2015, 11:23, Andrea Aime
<[email protected]> wrote:
On Mon, Apr 20, 2015 at 9:46 AM, Ron Lindhoudt <[email protected]> wrote:
Hi All,
Can anyone confirm that the testcases with curves in Oracle line-geometry are
not yet supported (=visualised) by GeoTools?I find it hard to believe that
these testcases are not visualised.Maybe I did something wrong. So I want to
ask if anyone could confirm this issue.
I believe there is something wrong with your setup, here is the full test setup
code:
private void createCurvesTable() throws Exception { String sql = "CREATE
TABLE CURVES (" + "id INT, name VARCHAR(64), geometry
MDSYS.SDO_GEOMETRY, PRIMARY KEY(id))"; run(sql);
sql = "INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME,
DIMINFO, SRID ) " + "VALUES
('curves','geometry',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',-180,180,0.5),
" + "MDSYS.SDO_DIM_ELEMENT('Y',-90,90,0.5)), 32632)";
run(sql);
sql = "CREATE INDEX CURVES_GEOMETRY_IDX ON CURVES(GEOMETRY) INDEXTYPE
IS MDSYS.SPATIAL_INDEX" // + " PARAMETERS ('SDO_INDX_DIMS=2')";
run(sql);
// adding data sql = "INSERT INTO CURVES VALUES (0, 'Arc
segment', " + "sdo_geometry (2002, 32632, null,
sdo_elem_info_array (1,2,2), sdo_ordinate_array (10,15, 15,20, 20,15)))";
run(sql);
sql = "INSERT INTO CURVES VALUES (1, 'Arc string', " +
"sdo_geometry (2002, 32632, null, sdo_elem_info_array (1,2,2),
sdo_ordinate_array (10,35, 15,40, 20,35, 25,30, 30,35)))"; run(sql);
sql = "INSERT INTO CURVES VALUES (2, 'Closed arc string', "
+ "sdo_geometry (2002, 32632, null, sdo_elem_info_array (1,2,2),
sdo_ordinate_array (15,65, 10,68, 15,70, 20,68, 15,65)))"; run(sql);
sql = "INSERT INTO CURVES VALUES (3, 'Compound line string', "
+ "sdo_geometry (2002, 32632, null, sdo_elem_info_array (1,4,3, 1,2,1,
3,2,2, 7,2,1), sdo_ordinate_array (10,45, 20,45, 23,48, 20,51, 10,51)))";
run(sql);
sql = "INSERT INTO CURVES VALUES (4, 'Closed mixed line', "
+ "sdo_geometry (2002, 32632, null, sdo_elem_info_array (1,4,2, 1,2,1,
7,2,2), sdo_ordinate_array (10,78, 10,75, 20,75, 20,78, 15,80, 10,78)))";
run(sql);
sql = "INSERT INTO CURVES VALUES (5, 'Circle', " +
"sdo_geometry (2003, 32632, null, sdo_elem_info_array (1,1003,4),
sdo_ordinate_array (15,145, 10,150, 20,150)))"; run(sql);
sql = "INSERT INTO CURVES VALUES (6, 'Compound polygon', "
+ "sdo_geometry (2003, 32632, null, sdo_elem_info_array(1,1005,2, 1,2,1,
5,2,2), sdo_ordinate_array(6,10, 10,1, 14,10, 10,14, 6,10)))"; run(sql);
sql = "INSERT INTO CURVES VALUES (7, 'Compound polygon with hole',
sdo_geometry(2003, 32632, null," + "
sdo_elem_info_array(1,1005,2, 1,2,1, 13,2,2, 19,2003,4)," + "
sdo_ordinate_array(20,30, 11,30, 7,22, 7,15, 11,10, 21,10, 27,30, 25,27, 20,30,
10,17, 15,22, 20,17)))"; run(sql);
sql = "INSERT INTO CURVES VALUES (8, 'Multipolygon with curves',
sdo_geometry(2007, 32632, null," + "
sdo_elem_info_array(1,1005,2, 1,2,1, 5,2,2, 11,2005,2, 11,2,1, 15,2,2,
21,1005,2, 21,2,1, 25,2,2)," + " sdo_ordinate_array(6,10, 10,1,
14,10, 10,14, 6,10, 13,10, 10,2, 7,10, 10,13, 13,10, 106,110, 110,101,
114,110, 110,114,106,110)))"; run(sql); }
And here is the visual result:
I run a few GetFeatureInfo, and accounted for all 9 geometries in the test
CheersAndrea
--
==GeoServer Professional Services from the experts! Visithttp://goo.gl/NWWaa2
for more information.==
Ing. Andrea Aime
@geowolfTechnical Lead
GeoSolutions S.A.S.Via Poggio alle Viti 118755054 Massarosa (LU)Italyphone:
+39 0584 962313fax: +39 0584 1660272mob: +39 339 8844549
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003Le informazioni contenute in questo
messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi
strettamente riservate. Il loro utilizzo è consentito esclusivamente al
destinatario del messaggio, per le finalità indicate nel messaggio stesso.
Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla distruzione del
messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio
stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003. The information in this message and/or
attachments, is intended solely for the attention and use of the named
addressee(s) and may be confidential or proprietary in nature or covered by the
provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's
New Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either dissemination,
either whole or partial, is strictly forbidden except previous formal approval
of the named addressee(s). If you are not the intended recipient, please
contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does
not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes made
after they were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.
-------------------------------------------------------
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel