| Hello and thanks for the
replies, I have found an alternative solution: Instead of using geotools to create 4D coordinates, I used postgis to force whatever geometry I want to write to be in 4D. Here's some code: Geometry mGeometry = factory.createPoint(new Coordinate(100, 101, 102)); st = con.prepareStatement("INSERT INTO \""+TABLE_NAME+"\" " + "("+THE_GEOM+") " + "VALUES (ST_Force_4D(ST_GeomFromText(?, 20791)))", PreparedStatement.RETURN_GENERATED_KEYS); st.setString(1, g.mGeometry.toText()); I convert the geometry to Well Known Text and in the SQL statement I convert it back to a geometry and force it to use 4D. It may be a work around but I believe it is working. Diego
|
------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

