On Tue, Jun 21, 2011 at 8:32 AM, <[email protected]> wrote: > Hi List, > > There had been request to map a 1D linestring as a Borehole interval for > quite sometime. I had tried sometime ago but had no luck... now coming > back to do more test and stil no luck with both simple and complex feature > to get a 1D linestring. I wonder if 1D geometry is possible ?!?! > I'd tried postgis but couldn't find any function which I can create a point > with just one value. Tried Oracle, managed to create a 1D linestring : > mdsys.SDO_GEOMETRY(1002,NULL,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(startdepth,enddepth)) > AS geom_linestring_test.
You want to be a linestring and yet the code is parsing a polygon: at com.vividsolutions.jts.geom.LinearRing.validateConstruction(LinearRing.java:105) at com.vividsolutions.jts.geom.LinearRing.<init>(LinearRing.java:100) at com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:339) at com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:329) at org.geotools.data.oracle.sdo.SDO.createLinearRing(SDO.java:2655) at org.geotools.data.oracle.sdo.SDO.createPolygon(SDO.java:2555) at org.geotools.data.oracle.sdo.SDO.create(SDO.java:2357) at org.geotools.data.oracle.sdo.SDO.create(SDO.java:2324) at org.geotools.data.oracle.sdo.GeometryConverter.asGeometry(GeometryConverter.java:124) at org.geotools.data.oracle.OracleDialect.readGeometry(OracleDialect.java:438) at org.geotools.data.oracle.OracleDialect.readGeometry(OracleDialect.java:424) However this path is chosen only if the geometry type is x003, not x002. I'd suggest to double check your data, or to step by step debug the SDO class Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
