Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 85821 invoked from network); 16 Feb 2009 22:02:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 22:02:28 -0000 Received: (qmail 21414 invoked by uid 500); 16 Feb 2009 22:02:27 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 21384 invoked by uid 500); 16 Feb 2009 22:02:27 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 21373 invoked by uid 99); 16 Feb 2009 22:02:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 14:02:27 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of opencoeli@gmail.com designates 209.85.218.159 as permitted sender) Received: from [209.85.218.159] (HELO mail-bw0-f159.google.com) (209.85.218.159) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 22:02:18 +0000 Received: by bwz3 with SMTP id 3so5147145bwz.7 for ; Mon, 16 Feb 2009 14:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=KcEZkYul5LTWJa5QIRVC1EW8CV6dhwhI8uxIZTCvIDg=; b=O0C0YAQQLpN/DsTAUqxtoIE8dyPq/yoKuUoZvtvfEIyzzbMh7kFN4cxb6XtvdtbW/+ G8WVtslCxigsGO9QQ6bwGIRTOzQFWj354FJg/Cp1ycJoSVe3V3Nk0M/PMM13iZPhC34Q l9rHB8O1Wo3YbZIPqSLpHLC3YhV9RMeeFjqQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=SAbuj/i2pWJcEWPgKZpDbX0IjFXh+vpQI9DNFYpqgQXA7SchL4+fn2o5t/kD7j0Qwl pPu85K49Jtc/aIdlvfJ4Mi1gv46KPOZq0VGqNUIlqiv5p8QC9ALXY2E66skWizO/KIO4 yKylZuC2b93Rw0lc3eBqJBmjZMEDS3JX+H05o= MIME-Version: 1.0 Received: by 10.223.103.207 with SMTP id l15mr822672fao.2.1234821715776; Mon, 16 Feb 2009 14:01:55 -0800 (PST) Date: Mon, 16 Feb 2009 22:01:55 +0000 Message-ID: Subject: Spatial indexing with Healpix From: Jan Kotek To: derby-user@db.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am working on spatial indexing for Derby using Healpix: http://healpix.jpl.nasa.gov/. It is way to split sphere into pixels and number them. Pixel numbers are associative (near locations have near numerical values). And can be stored in long column with btree index. Pixel resolution can be choosed, maximum is 0.2 arcsec. Healpix was originally developed for astronomy. My program is also astronomical application. But it works for geographical coordinates as well. Currently I implemented spatial indexing using 1:N table. But on high resolutions it generates too much rows (one for each pixel). So next step is range set, to reduce number of rows. Related code is relatively simple and compact. If someone wants help, it would be very welcomed. Jan Kotek http://kotek.net/opencoeli.