Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / August 2004

Tip: Looking for answers? Try searching our database.

Geometery access via JDBC

Thread view: 
Laura P - 20 Aug 2004 10:32 GMT
Hi,

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

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!

Thank you,
Laura
Lee Fesperman - 20 Aug 2004 22:45 GMT
> 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
[quoted text clipped - 11 lines]
> 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.

Signature

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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.