Re: Geometery access via JDBC

From: Lee Fesperman (firstsql_at_ix.netcom.com)
Date: 08/20/04


Date: Fri, 20 Aug 2004 21:45:53 GMT

Laura P wrote:
>
> I was wondering if anyone knows if there is any vendor-inspecific way
> of storing and querying a polygon shape via the JDBC?

There really isn't a vendor-generic way of doing this.

> I currently have an application that stores a simple rectangle across
> 4 decimal columns: top left lat; top left lon; bottom left lat; bottom
> left lon. These are easy to populate and to query (to discover if a
> specified area is contained within the rectangle).
>
> However, I know have a new requirement that states that my stored
> geometery should be a polygon composed of one or more coordinates. I
> have been having difficulty defining a geometry structure that is
> efficient to query.
>
> I know there are various geometry functions in MySQL and Oracle, but I
> need a function that will work on both, and work across JDBC...
>
> If anyone could tell me if such a function exists, or can suggest a
> workaround I would be very grateful!

The best solution to those requirements would be an RDBMS that stores (Java) objects in
columns and offers access to object methods in SQL. Working across JDBC is then no
problem. Our ORDBMS (see my sig) does this, but there is no truly portable solution.

-- 
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS  (http://www.firstsql.com)


Relevant Pages

  • Geometery access via JDBC
    ... of storing and querying a polygon shape via the JDBC? ... efficient to query. ... I know there are various geometry functions in MySQL and Oracle, ... need a function that will work on both, and work across JDBC... ...
    (comp.lang.java.databases)
  • Re: TimeFormat
    ... >> Isn't there a TimeFormat just as there is a DecimalFormat? ... Interval is the only SQL92 data type that JDBC ignores. ... FirstSQL/J Object/Relational DBMS ...
    (comp.lang.java.programmer)
  • Re: How to tell if I can update/delete the current result set row in a ResultSet?
    ... When the JDBC Driver receives a createStatementrequesting specific result set type ... executeQuery() calls under the statement. ... Some drivers may throw an exception on the ... FirstSQL/J Object/Relational DBMS ...
    (comp.lang.java.programmer)
  • Re: configuring jdbc
    ... > I'm trying to obtain I need to connect via jdbc. ... > thrown exceptions, are distilled below. ... the problem is what the message says: "Data source name not found". ... FirstSQL/J Object/Relational DBMS ...
    (comp.lang.java.databases)
  • Re: Is perl better? :(((
    ... >> At least with JDBC, much of this can be covered with defensive programming. ... Lee Fesperman, FFE Software, Inc. ... FirstSQL/J Object/Relational DBMS ...
    (comp.lang.java.databases)