Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Are there any embedded spatial databases for Java? I've come across H2 Spatial, but it was difficult to tell the status of that and if it can be used as an embedded spatial database.

thanks,

Jeff

share|improve this question
1  
It looks like the embedded hsql db does what I need... mvnbrowser.com/… –  Jeff Storey Sep 21 '10 at 3:28
    
SpatiaLit bostongis.com/… also looks promising. –  Jeff Storey Sep 21 '10 at 18:54

4 Answers 4

up vote 4 down vote accepted

You could try Hatbox (http://hatbox.sourceforge.net/derbyquickstart.html) from the web page:

Hatbox has two distinct parts: the core library and a Geotools DataStore. The core library can be used entirely independently of the Geotools DataStore. This quick start will use only the core library to get data into your new Hatbox spatialized table and to issue spatial queries on it. It will focus on using Hatbox with JavaDB (Sun's packaging of Apache Derby) simply because it comes as part of a Sun JDK 6 install.

share|improve this answer
    
I successfully used Hatbox with H2. Thanks so much. –  Jeff Storey Oct 12 '10 at 2:03

GeoDB is exactly what you need. It's an extension to H2 based on JTS. There also is a Hibernate dialect for geodb (http://www.hibernatespatial.org/hibernate-spatial-h2-geodb/).

share|improve this answer

H2 supports the Geometry type natively as of version 1.3.173. An extension called H2GIS available on Maven Central gives full SFSQL support.

A short sample of using this library is available at this url github.com/irstv/orbisgis-samples

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.