Reading the WKB format in Java

From: David Garnier <david.garnier@etudier-online.com>
Date: Tue Jul 02 2002 - 17:53:29 EDT

Hello,
I'm looking for a free (as in freedom) WKBReader
written in Java i.e. a class that would take an array of bytes in the Well-Known-Binary format specified by the OpenGIS consortium
 and turn in into a geometry object of some kind, or at least an array of floats or doubles. I searched to web, to no avail. Do you know of/have written such a thing?

Background:
I'm trying to make OpenMap work with PostGIS (a very fine spatial extension to PostgreSQL, check it out at http://
postgis.refractions.net/). The problem is that right now the only way to extract the coordinates is to use the WKT format (a text representation) and then parse the output. This involves a huge overhead due to the large number of String allocations. If I need to write my own, it will be as geographical-toolkit agnostic as possible, meaning that the design of the reader won't lock you into one geographical toolkit.

Best Regards,
David Garnier

PS: This message was posted to several mailing-lists related to open-source geographical information system in Java. Sorry if you get several copies.

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jul 2 15:58:24 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT