jts

Propagation of Oracle Transactions Between C++ and Java

We have an existing C++ application that we are going to gradually replace with a new Java-based system. Until we have completely reimplemented everything in Java we expect the C++ and Java to have to communicate with each other (RMI, SOAP, messaging, etc - we haven't decided). Now my manager thinks we'll need the Java and C++ sides to...

How can I convert a JTS-Geometry into an AWT-Shape?

Is it possible to convert a com.vividsolutions.jts.geom.Geometry (or a subclass of it) into a class that implements java.awt.Shape? Which library/method can I use to achieve that goal? ...

Porting J2EE application from weblogic to Jboss, JTS? (weblogic.jdbc.jts.Driver)

My weblogic(8.1) application uses weblogic.jdbc.jts.Driver to connect to Oracle. I'd like to port this app to JBOSS(4.0) and quick googling did not yield the correct driver to replace this JDBC JTS driver with in order to connect from Jboss, ideas? ...

JTS.orthodromicDistance incorrectly calculate the equatorial radius of the earth

JTS.orthodromicDistance(new Coordinate(0,0), new Coordinate(180,0), DefaultGeographicCRS.WGS84) * 2 is equal to 40075016 but must be equal to 6378000. ...

In JTS, when I do geometry.buffer(1).buffer(-1), will the resulting geometry be equivalent to the original?

I was having problems while intersecting two geometries, getting a TopologyException probably due to a rounding error during the operation, then I read this fix and tried a buffer(0) on both input geometries, but still without success. Then I tried geo.buffer(1).buffer(-1) and it worked. Will these geometries be equivalent to the origi...

Which unit does JTS LineString.getLength() use

I'm trying to figure out which unit JTS LineString.getLength() return. for example: LineString foo = (initialize line string somehow) foo.getLength() -> 7.025667228118838E-4 Are these Kilometers?, Meters?, Feet? ...

[grails + xfire] How to map geo types?

Hi all, I have this class in Grails: import com.vividsolutions.jts.geom.Point class MouseMove { /** map latlon coordinates */ Point geoLocation // other stuff static mapping = { geoLocation type: org.hibernatespatial.GeometryUserType } } When I try to return this class in an xfire service, the SOAP cl...

Transactions (Atomicity property) in EJB 3 apply only to Database Operations - Am I right?

I know that transactions could be used to bring about atomicity. Like if methodOne() methodTwo() methodThree() are clubbed into one transaction, if any of the method fails, the entire operation is rolled back. A rollback would result in a database-level rollback and as a result the database would be brought to a state, as it was before...

Australian Geographical Data - simple format (perhaps WKT)

I'm looking for some data on Australian boundaries - particularly the national boundary and individual state boundaries. The format I would prefer is WKT but anything simple would be good (ideally I need to use it with the JTS (Java Topological Suite) package). Thanks, ...