Storing and accessing GeoData( Latitude and Longitude ) in PostgreSQL 8.3

Started by Stefan Sturmabout 18 years ago3 messagesgeneral
Jump to latest
#1Stefan Sturm
stefan.s.sturm@googlemail.com

Hello,

I have a lot of GeoData( Latitude and Longitude ) in my PostgreSQL Database.
Is store them as numeric at this time.
But now I want to access the data and want to have all Datasets around a
Geographic point. eg:
"within<http://dict.leo.org/ende?lp=ende&amp;p=thMx..&amp;search=within&gt;
a <http://dict.leo.org/ende?lp=ende&amp;p=thMx..&amp;search=a&gt;
radius<http://dict.leo.org/ende?lp=ende&amp;p=thMx..&amp;search=radius&gt;
of <http://dict.leo.org/ende?lp=ende&amp;p=thMx..&amp;search=of&gt;
5<http://dict.leo.org/ende?lp=ende&amp;p=thMx..&amp;search=5&gt;
km"... <http://dict.leo.org/ende?lp=ende&amp;p=thMx..&amp;search=km&gt;

Is there a simple way to do something like this?

Thanks for your Help,
Stefan Sturm

#2Ivan Zolotukhin
ivan.zolotukhin@gmail.com
In reply to: Stefan Sturm (#1)
Re: Storing and accessing GeoData( Latitude and Longitude ) in PostgreSQL 8.3

Hello,

You may want to have a look also at PgSphere
(http://pgfoundry.org/projects/pgsphere) and Q3C (http://q3c.sf.net)
which is actually a spherical indexing solution built specially for
PostgreSQL with the best performance among all other methods (even
within other databases).

Regards,
Ivan

On Wed, Apr 16, 2008 at 1:23 PM, Stefan Sturm
<stefan.s.sturm@googlemail.com> wrote:

Show quoted text

Hello,

I have a lot of GeoData( Latitude and Longitude ) in my PostgreSQL Database.
Is store them as numeric at this time.
But now I want to access the data and want to have all Datasets around a
Geographic point. eg: "within a radius of 5 km"...

Is there a simple way to do something like this?

Thanks for your Help,
Stefan Sturm

#3Stefan Sturm
stefan.s.sturm@googlemail.com
In reply to: Ivan Zolotukhin (#2)
Re: Storing and accessing GeoData( Latitude and Longitude ) in PostgreSQL 8.3

Hello,

thanks for your ansers.

PgSphere (http://pgfoundry.org/projects/pgsphere)

I think this look most promising. Is here someone using it and can give me
some tipps?

Thanks and greetings,
Stefan Sturm