Re: distance vector databases and country maps

From: Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>
To: Frank Joerdens <frank(at)joerdens(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: distance vector databases and country maps
Date: 2001-10-07 07:26:26
Message-ID: 3.0.5.32.20011007152626.016f29c0@192.228.128.13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I believe postgresql has polygon, box, circle etc datatypes which could be
useful in your situation. Depending on how you are doing your maps the
world being approximately spheroid may or may not be a consideration in how
you approach things (to avoid 2-D wraparound issues for instance).

Datatypes
http://www.postgresql.org/idocs/index.php?datatype-geometric.html#AEN3665

Operators/functions to use with those data types.
http://www.postgresql.org/idocs/index.php?functions-geometry.html

e.g.
Operator: @
Meaning: Contained or on
Usage: point '(1,1)' @ circle '((0,0),2)'

Indexes
http://www.postgresql.org/idocs/index.php?indices-types.html

CREATE INDEX name ON table USING RTREE (column);

I haven't any experience in using these features but I figure they might be
helpful to you.

Cheerio,
Link.

p.s. Yeah Postgresql is also copyrighted, but it's BSDtype :).

At 05:33 PM 10/6/01 +0200, you wrote:
>I am looking for info on free/open source (or if that's not available,
>any other product) products which can be integrated with PostgreSQL that
>provide geometric vector data on geographic maps.
>
>In particular, I need that for Germany. What I want to do is to find
>cities within a 50-100 km radius of any given location on the map. I
>know that quite a few people are working on this and that such solutions
>exist; I just don't know where to start looking. Also, my impression is
>that all of these solutions are heavily copyrighted, patented etc. and
>that it's probably really expensive to get to use this kind of data.
>
>Can anyone help out with info, starting points?
>
>Thanks, Frank
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://archives.postgresql.org
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Frank Joerdens 2001-10-07 09:37:13 Re: PG mailing list problems (was Re: Support issues)
Previous Message Seung-won Hwang 2001-10-07 00:39:12 Compilation of C function on Windows